qiushang 1 年之前
父節點
當前提交
e75e3a6334
共有 3 個文件被更改,包括 43 次插入34 次删除
  1. 1 1
      nsis/skin/uninstallpage.xml
  2. 9 9
      nsis/test.nsi
  3. 33 24
      src/renderer/components/home.vue

+ 1 - 1
nsis/skin/uninstallpage.xml

@@ -3,7 +3,7 @@
    <VerticalLayout >
     <VerticalLayout width="570" height="314" bkimage="file='uninstall_bg1.png'">
 		<Control height="40" />
-		<WebBrowser height="264" width="550"  padding="10,0,0,0" name="oneclick_browser" homepage="https://xy.xingyousoft.com/soft/XYAudio/uninstallWeb/" autonavi="true"/>
+		<WebBrowser height="264" width="550"  padding="10,0,0,0" name="oneclick_browser" homepage="https://xy.xingyousoft.com/soft/XYRename/uninstallWeb/" autonavi="true"/>
 	</VerticalLayout>
 	
 	<VerticalLayout bkimage="file='bgbottom.png' corner='10,0,10,10'" >

+ 9 - 9
nsis/test.nsi

@@ -1,16 +1,16 @@
 # ====================== 自定义宏 产品信息==============================
-!define PRODUCT_MID        		    "W0GN9r611Z7w"
-!define PRODUCT_VERSION        		"2.1.0.0"
-!define PRODUCT_NAME           		"星优音频助手"
-!define INSTALL_OUTPUT_NAME    		"XYAudio_XY.exe" 
-!define EXE_NAME               		"XYAudio.exe"
-!define PRODUCT_PATHNAME           	"XYAudio"     #安装卸载项用到的KEY,注册表
-!define INSTALL_APPEND_PATH         "XYAudio"     #安装路径追加的名称 
-!define APP_DOWNLOAD_URL    		"https://xy.xingyousoft.com/soft/XYAudio/lastest2.1.0.0.7z"
+!define PRODUCT_MID        		    "4qgNl8jfYlLV"
+!define PRODUCT_VERSION        		"2.0.0.0"
+!define PRODUCT_NAME           		"星优文件处理器"
+!define INSTALL_OUTPUT_NAME    		"XYRename_XY.exe" 
+!define EXE_NAME               		"XYRename.exe"
+!define PRODUCT_PATHNAME           	"XYRename"     #安装卸载项用到的KEY,注册表
+!define INSTALL_APPEND_PATH         "XYRename"     #安装路径追加的名称 
+!define APP_DOWNLOAD_URL    		"https://xy.xingyousoft.com/soft/XYRename/lastest2.0.0.0.7z"
 !define PRODUCT_PUBLISHER      	    "苏州星优办公软件有限公司"
 !define PRODUCT_LEGAL          	    "苏州星优办公软件有限公司"
 !define STATISTICS_url              "https://www.xingyousoft.com/api/index/user_log"   # 统计网址
-!define UNINSTALL_url               "https://xy.xingyousoft.com/soft/XYAudio/uninstallWeb/?v=2.1.0.0"   # 接卸优惠网址
+!define UNINSTALL_url               "https://xy.xingyousoft.com/soft/XYRename/uninstallWeb/?v=2.0.0.0"   # 接卸优惠网址
 
 # ====================== 自定义宏 安装信息==============================
 !define INSTALL_7Z_NAME 	   		"app.7z"

+ 33 - 24
src/renderer/components/home.vue

@@ -139,7 +139,7 @@
 										<template #edit="{ row, rowIndex }">
 											<div style="display: flex; justify-content: space-between;">
 												<vxe-input v-model="row.modifyName" type="text" placeholder="请输入新文件名" @input="modifyChange(row, rowIndex)"></vxe-input>
-												<el-popover popper-class="popper-open" placement="bottom" width="200" trigger="manual" v-model="visible3" content='文件名不能包含下列任何字符: \ / : * ? " < > |'>
+												<el-popover popper-class="popper-open" placement="bottom" trigger="manual" v-model="visible3" content='文件名不能包含下列任何字符: \ / : * ? " < > |'>
 													<i slot="reference"></i>
 												</el-popover>
 												<div style="word-break: keep-all; line-height: 33px;">{{row.newName.lastIndexOf('.') > -1 ? row.newName.substr(row.newName.lastIndexOf('.')) : ''}}</div>
@@ -361,7 +361,7 @@
 						<div class="content-right">
 							
 							<!--创建文件设置 -->
-							<template v-if="menuIndex == '7'">
+							<div v-show="menuIndex == '7'">
 								<div class="handle-item" >
 									<label class="handle-label">文件类型:</label>
 									<el-select v-model="foundData.foundType" style="width:150px;" size="small" @change="refreshList('change')">
@@ -387,7 +387,7 @@
 								<el-divider content-position="left">
 									<i class="el-icon-s-tools" style="margin-right: 3px;"></i>文件名设置
 								</el-divider>
-								<el-popover placement="left" popper-class="popper-open" width="200" trigger="manual" v-model="visible4" content='文件名不能包含下列任何字符: \ / : * ? " < > |'>
+								<el-popover placement="left" popper-class="popper-open" trigger="manual" v-model="visible5" content='文件名不能包含下列任何字符: \ / : * ? " < > |'>
 									<i slot="reference"></i>
 								</el-popover>
 								
@@ -404,8 +404,8 @@
 									</div>
 									
 									<el-popover placement="bottom" popper-class="popper-open" trigger="hover">
-										<img src="../assets/image/f-tips.jpg" style="width: 260px;"/>
-										<div slot="reference" style="margin: 10px 0; text-decoration: underline;cursor: pointer;color: #777; text-align: center;">查看文件名填写示例</div>
+										<img src="../assets/image/f-tips.jpg" style="width: 220px;"/>
+										<div slot="reference" class="i-tips" style="margin-bottom: 10px;">查看文件名填写示例</div>
 									</el-popover>
 								</template>
 								
@@ -416,7 +416,7 @@
 									</div>
 									<div class="handle-item">
 										<label class="handle-label">创建名称:</label>
-										<el-input placeholder="请输入创建名称" @input="inputChange('foundData', 'foundName', 'visible4')" size="small" v-model="foundData.foundName" style="width:150px;"></el-input>
+										<el-input placeholder="请输入创建名称" @input="inputChange('foundData', 'foundName', 'visible5')" size="small" v-model="foundData.foundName" style="width:150px;"></el-input>
 									</div>
 									<el-divider content-position="left">
 										<i class="el-icon-s-tools" style="margin-right: 3px;"></i>编号设置
@@ -460,11 +460,11 @@
 									    <i class="el-icon-folder-opened" slot="reference" style="width: 18px;cursor: pointer; font-size: 22px; vertical-align: middle;" @click="openFolder('foundData')"></i>
 									</el-popover>
 								</div>
-							</template>
+							</div>
 							
 							
 							<!--提取设置 -->
-							<template v-if="['5', '6'].indexOf(menuIndex) > -1">
+							<div v-show="['5', '6'].indexOf(menuIndex) > -1">
 								<el-divider content-position="left">
 									<i class="el-icon-s-goods" style="margin-right: 3px;"></i>提取内容
 									<el-popover placement="bottom" popper-class="popper-open" trigger="hover" content="勾选内容将与文件名一起提取">
@@ -509,10 +509,10 @@
 									    <i class="el-icon-folder-opened" slot="reference" style="width: 18px;cursor: pointer; font-size: 22px; vertical-align: middle;" @click="openFolder('extractData')"></i>
 									</el-popover>
 								</div>
-							</template>
+							</div>
 							
 							<!--时间属性 -->
-							<template v-if="['3', '4'].indexOf(menuIndex) > -1">
+							<div v-show="['3', '4'].indexOf(menuIndex) > -1">
 								<el-divider content-position="left"><i class="el-icon-s-flag" style="margin-right: 3px;"></i>时间属性</el-divider>
 								<div class="handle-item">
 									<label class="handle-label">创建时间:</label>
@@ -522,14 +522,14 @@
 									<label class="handle-label">修改时间:</label>
 									<el-date-picker type="datetime" v-model="handleData.mtime" placeholder="文件修改时间" style="width:170px;" size="small"></el-date-picker>
 								</div>
-								<el-popover placement="bottom" popper-class="popper-open" trigger="hover">
-									<img src="../assets/image/t-tips.jpg" style="width: 360px;"/>
-									<div slot="reference" style="margin-top: 20px; text-decoration: underline;cursor: pointer;color: #777; text-align: center;">如何查看时间属性是否修改成功?</div>
-								</el-popover>	
-							</template>
+								<el-popover placement="left" popper-class="popper-open" trigger="hover" content="内容">
+									<img src="../assets/image/t-tips.jpg" style="width: 300px;"/>
+									<div slot="reference" class="i-tips">如何查看时间属性是否修改成功?</div>
+								</el-popover>
+							</div>
 							
 							<!-- 重命名设置 -->
-							<template v-if="['1', '2'].indexOf(menuIndex) > -1">
+							<div v-show="['1', '2'].indexOf(menuIndex) > -1">
 								<div class="handle-item">
 									<label class="handle-label">命名方式:</label>
 									<el-select v-model="handleData.fileMethod" style="width:150px;" size="small" @change="setChange">
@@ -554,7 +554,7 @@
 									<label class="handle-label">新文件名:</label>
 									<el-input v-model="handleData.fileName" placeholder="请输入内容" style="width:150px;" size="small" @input="inputChange('handleData', 'fileName', 'visible')"></el-input>
 								</div>
-									
+								
 								<!--2、替换 -->
 								<template v-if="handleData.fileMethod == '2'">
 									<div class="handle-item" >
@@ -566,7 +566,7 @@
 										<el-input v-model="handleData.fileReplace" placeholder="请输入替换内容" style="width:150px;" size="small" @input="inputChange('handleData', 'fileReplace', 'visible')"></el-input>
 									</div>
 								</template>
-									
+								
 								<!--3、插入 -->
 								<div class="handle-item" v-if="handleData.fileMethod == '3'">
 									<div class="handle-item">
@@ -627,7 +627,7 @@
 										
 										<el-popover placement="bottom" popper-class="popper-open" trigger="hover">
 											<img src="../assets/image/a-tips.jpg" style="width: 260px;"/>
-											<div slot="reference" style="margin-top: 20px; text-decoration: underline;cursor: pointer;color: #777; text-align: center;">查看表格名称示例</div>
+											<div slot="reference" class="i-tips">查看表格名称示例</div>
 										</el-popover>								
 									</div>
 								</template>
@@ -705,7 +705,7 @@
 								<!--  扩展名  -->
 								<div v-if="menuIndex == '1' && handleData.fileMethod != '6'">
 									<el-divider content-position="left" style="font-weight: 800;"><i class="el-icon-wind-power" style="margin-right: 3px;"></i>扩展名</el-divider>
-									<el-popover popper-class="popper-open" placement="left" width="200" trigger="manual" v-model="visible2" content='文件名不能包含下列任何字符: \ / : * ? " < > |'>
+									<el-popover popper-class="popper-open" placement="left" trigger="manual" v-model="visible2" content='文件名不能包含下列任何字符: \ / : * ? " < > |'>
 										<i slot="reference"></i>
 									</el-popover>
 									<div class="handle-item">
@@ -745,7 +745,7 @@
 									<el-button type="info" style="margin: 10px auto;" @click="reset()">重置设置</el-button>
 								</div>
 							
-							</template>
+							</div>
 						</div>
 					</div>
 				</template>
@@ -793,6 +793,7 @@ export default {
 			visible2: false,
 			visible3: false,
 			visible4: false,
+			visible5: false,
 			tipsModal: true,
 			tipsDesc: '非会员不支持修改时间属性,如需完整功能请开通会员',
 			imgUrl: this.$api.imgUrl,
@@ -1957,13 +1958,13 @@ export default {
 					this.visible3 = true;
 					setTimeout(() => {
 						this.visible3 = false;
-					}, 1500)
+					}, 2000)
 				}
 			}
 			row.newName = row.modifyName + row.suffix;
 		},
 		// 是否包含特殊字符
-		containsAnyChar(str, charsArray) {  
+		containsAnyChar(str, charsArray) {
 		    for (let i = 0; i < charsArray.length; i++) {  
 		        if (str.includes(charsArray[i])) {  
 		            return true;
@@ -1979,7 +1980,7 @@ export default {
 					this[popName] = true;
 					setTimeout(() => {
 						this[popName] = false;
-					}, 1500)
+					}, 2000)
 				}
 			}
 			
@@ -2554,4 +2555,12 @@ export default {
 		color: #888;
 		margin-left: 5px;
 	}
+	
+	.i-tips{
+		margin-top: 10px; 
+		text-decoration: underline;
+		cursor: pointer;
+		color: #777; 
+		text-align: center;
+	}
 </style>