|
@@ -121,9 +121,14 @@
|
|
|
<div class="add-file" :class="{'add-file-left':(fileList.length > 0)}">
|
|
|
{{ fileList.length > 0 ? '添加文件' : '' }}
|
|
|
</div>
|
|
|
+ <!-- 未登录时 -->
|
|
|
+ <input id="fileinput-explorer" ref="file" name="file" accept=".pdf" title="上传文件" type="file" multiple=""
|
|
|
+ class="absolute top-0 right-0 p-0 m-0 min-w-[100%] h-[100%] w-90px text-right opacity-0 bg-none bg-repeat bg-scroll block outline-none border-0 cursor-not-allowed"
|
|
|
+ :disabled='true' v-if = " showInputDisable "/>
|
|
|
+ <!-- 登录 -->
|
|
|
<input id="fileinput-explorer" ref="file" name="file" accept=".pdf" title="上传文件" type="file" multiple=""
|
|
|
class="absolute top-0 right-0 p-0 m-0 min-w-[100%] h-[100%] w-90px text-right opacity-0 bg-none bg-repeat bg-scroll block outline-none border-0 cursor-pointer"
|
|
|
- @change="addFile($event)" @click="handlSubmit($event, '')"/>
|
|
|
+ @change="addFile($event)" @click="handlSubmit($event, '')" v-if = " !showInputDisable "/>
|
|
|
</div>
|
|
|
<div v-show="fileList.length > 0 && changeFileFlag" class="inline-block ml-30px bg-white border border-[#ff4f4f] boder-solid text-16px py-7px px-18px rounded-4px mt-4px cursor-pointer text-[#ff4f4f] leading-normal hover:bg-[#ff4f4f] hover:text-white"
|
|
|
@click="deleteAllFile">清空</div>
|
|
@@ -298,7 +303,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<client-only>
|
|
|
- <el-dialog :visible.sync="visiable" :close-on-click-modal="true" :close-on-press-escape="false" width="480px" append-to-body center>
|
|
|
+ <el-dialog :visible.sync="visiable" :close-on-click-modal="true" :close-on-press-escape="false" width="480px" append-to-body center top="25vh">
|
|
|
<div class="changepwd-tittle">
|
|
|
<p class="text-20px text-center text-$btn-color-primary">提示</p>
|
|
|
</div>
|
|
@@ -338,7 +343,8 @@ export default {
|
|
|
changeSucesssNumTotal: 0,
|
|
|
changeSucesssFileList: [],
|
|
|
visiable: false,
|
|
|
- noMia:false
|
|
|
+ noMia:false,
|
|
|
+ showInputDisable:false
|
|
|
};
|
|
|
},
|
|
|
middleware: "user",
|
|
@@ -359,6 +365,7 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState([
|
|
|
+ 'token',
|
|
|
"userInfo"
|
|
|
]),
|
|
|
// 所需券数
|
|
@@ -397,6 +404,7 @@ export default {
|
|
|
if (!this.$store.state.token) {
|
|
|
event.preventDefault();
|
|
|
this.visiable = true;
|
|
|
+ this.showInputDisable = true
|
|
|
return;
|
|
|
}
|
|
|
if (type === "buy") {
|
|
@@ -410,11 +418,13 @@ export default {
|
|
|
},
|
|
|
login() {
|
|
|
this.visiable = false;
|
|
|
+ this.showInputDisable = false;
|
|
|
this.$store.commit("OPEN_LOGIN", true);
|
|
|
this.$store.commit("SET_INTERFACE", "login");
|
|
|
},
|
|
|
register() {
|
|
|
this.visiable = false;
|
|
|
+ this.showInputDisable = false;
|
|
|
this.$store.commit("OPEN_LOGIN", true);
|
|
|
this.$store.commit("SET_INTERFACE", "register");
|
|
|
},
|
|
@@ -772,6 +782,13 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ token(newValue){
|
|
|
+ if(newValue){
|
|
|
+ this.showInputDisable = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|
|
@@ -779,6 +796,10 @@ export default {
|
|
|
::v-deep body {
|
|
|
min-width: 1200px !important;
|
|
|
}
|
|
|
+::v-deep .el-dialog {
|
|
|
+ border-radius: 10px;
|
|
|
+ box-shadow: 0 5px 15px rgb(0, 0 ,0 ,.5)
|
|
|
+}
|
|
|
.page-converter {
|
|
|
.date-tips {
|
|
|
background: linear-gradient(0deg, #fff2f6, #fff2f6),
|