From 9dc189169d75836cd1fcbf982293fd55b39d7c8d Mon Sep 17 00:00:00 2001 From: "luoJunYong.123" Date: Wed, 29 Dec 2021 18:26:06 +0800 Subject: [PATCH] =?UTF-8?q?CSS=E7=9A=84=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/case/index.vue | 22 ++++-- src/main.js | 2 +- src/pages/counter/list/index.vue | 79 ++++++++++++++++++- src/pages/manage/index/index.vue | 62 +++++++++++++-- .../manage/list/acceptanceDraft/invoice.vue | 22 +++--- src/pages/manage/list/business/deposit.vue | 22 +++--- .../manage/list/business/openAccount.vue | 22 +++--- src/pages/manage/list/business/transfer.vue | 22 +++--- src/pages/manage/list/business/withdrawal.vue | 22 +++--- .../manage/list/client/corporateClient.vue | 25 +++--- .../currentAccount/accountCancellation.vue | 22 +++--- .../list/personal/currentAccount/deposit.vue | 22 +++--- .../list/personal/currentAccount/index.vue | 22 +++--- .../personal/currentAccount/openAccount.vue | 22 +++--- .../list/personal/currentAccount/settle.vue | 22 +++--- .../currentAccount/transferAccounts.vue | 22 +++--- .../personal/currentAccount/withdrawal.vue | 22 +++--- .../personal/usefulPhrases/accountClosed.vue | 2 +- src/styles/system.scss | 6 +- test.txt | 14 ---- 20 files changed, 303 insertions(+), 173 deletions(-) diff --git a/src/components/case/index.vue b/src/components/case/index.vue index ab90f34..ccfea29 100644 --- a/src/components/case/index.vue +++ b/src/components/case/index.vue @@ -602,11 +602,23 @@ export default { this.minutes = `${m > 9 ? m : `0${m}`}`; this.seconds = `${s > 9 ? s : `0${s}`}`; } else { - this.$alert('考试已结束,已自动为您提交。', '提示', { - confirmButtonText: '确定', - type: 'warning', - center: true - }); + this.$confirm('此操作将视为结束考试, 是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.sureSubmit(true) + }).catch(() => { + // this.$message({ + // type: "info", + // message: "已取消提交" + // }); + }); + // this.$alert('考试已结束,已自动为您提交。', '提示', { + // confirmButtonText: '确定', + // type: 'warning', + // center: true + // }); this.sss = 0 this.sureSubmit(true) this.day = '00'; diff --git a/src/main.js b/src/main.js index aecbd88..584953f 100644 --- a/src/main.js +++ b/src/main.js @@ -45,7 +45,7 @@ Vue.use(plugins); Vue.use(VueLazyload, { preLoad: 1.3, - // loading: require('@/assets/img/loading.gif'), + loading: require('@/assets/img/loading.gif'), attempt: 2 }) diff --git a/src/pages/counter/list/index.vue b/src/pages/counter/list/index.vue index 5d73783..e704387 100644 --- a/src/pages/counter/list/index.vue +++ b/src/pages/counter/list/index.vue @@ -111,7 +111,7 @@
{{ popText }}
-
+ ko

- 请从以下物品中选取所需材料 -

- 请从物品栏选中或拖拽所需材料 -

@@ -141,9 +141,9 @@ -
+
-
+

{{item.name}}

@@ -759,6 +759,77 @@ export default { if(newVal === false) { this.changeShowGoods(false) } + }, + showPop(newVal) { + if(newVal) { + this.$nextTick(() => { + const importanceArrClassArr = document.getElementsByClassName('importanceArrClass') + new Sortable(this.$refs.popUpImportanceArr, { + animation: 150, + group: { + name:'shared', + pull:'clone',// 是否可以被移出或克隆 + put:true + }, + sort: false,// 禁止排序 + // 结束拖拽 + onAdd: evt => { + if(!importanceArrClassArr.length) return that.$message.warning('非可拖拽的交互!') + console.log('what the fuck') + console.log(this.goodsShelfTotalData) + }, + }); + + // popUpImportanceArr + for(let i=0;i { // 结束拖拽 + console.log('???') + // 判断拖拽的地址 + if(!this.$refs.popUpImportanceArr) return this.$message.warning('非可拖拽的交互!') + let targetDom = this.$refs.popUpImportanceArr.getBoundingClientRect() + if(evt.originalEvent.pageXtargetDom.left){ + if(evt.originalEvent.pageYtargetDom.top){ + /* oldindex识别是拖拽了哪个文件 */ + console.log(this.goodsShelfTotalData[evt.oldIndex].name,'执行拖拽2'); + this.checkList.push(this.goodsShelfTotalData[evt.oldIndex].name) + let ifElse = 0; + for(var i=0;i 0){ + + }else{ + this.receptionList.push(this.popArr[i]) + } + }else{ + this.receptionList.push(this.popArr[i]) + } + } + } + } + } + }, + }); + } + }) + + } } }, created() { @@ -768,6 +839,7 @@ export default { } else { this.manageVisible = false; } + console.log('what?') }, mounted(){ let that = this @@ -815,6 +887,7 @@ export default { } }, }); + // (item, index) in importanceArr" :ref="'importanceArr'+index // 拖拽-弹框 new Sortable(this.$refs.popUp, { animation: 150, diff --git a/src/pages/manage/index/index.vue b/src/pages/manage/index/index.vue index 24937a8..692246f 100644 --- a/src/pages/manage/index/index.vue +++ b/src/pages/manage/index/index.vue @@ -66,6 +66,34 @@ export default { diff --git a/src/pages/manage/list/business/deposit.vue b/src/pages/manage/list/business/deposit.vue index 29d2542..d08fe17 100644 --- a/src/pages/manage/list/business/deposit.vue +++ b/src/pages/manage/list/business/deposit.vue @@ -263,17 +263,17 @@ export default { } } } - .submitBtn{ - position: relative; - width: 300px; - font-size: 18px; - height: 68px; - margin-top: 50px; - border-radius: 10px; - bottom: 10px; - left: 50%; - transform: translate(-50%,-0%); - } + // .submitBtn{ + // position: relative; + // width: 300px; + // font-size: 18px; + // height: 68px; + // margin-top: 50px; + // border-radius: 10px; + // bottom: 10px; + // left: 50%; + // transform: translate(-50%,-0%); + // } .popBody{ min-height: 200px; display: flex; diff --git a/src/pages/manage/list/business/openAccount.vue b/src/pages/manage/list/business/openAccount.vue index 2c7fb70..dc76549 100644 --- a/src/pages/manage/list/business/openAccount.vue +++ b/src/pages/manage/list/business/openAccount.vue @@ -381,17 +381,17 @@ export default { } } } - .submitBtn{ - position: relative; - width: 300px; - font-size: 18px; - height: 68px; - margin-top: 50px; - border-radius: 10px; - bottom: 10px; - left: 50%; - transform: translate(-50%,-50%); - } + // .submitBtn{ + // position: relative; + // width: 300px; + // font-size: 18px; + // height: 68px; + // margin-top: 50px; + // border-radius: 10px; + // bottom: 10px; + // left: 50%; + // transform: translate(-50%,-50%); + // } .popBody{ min-height: 200px; display: flex; diff --git a/src/pages/manage/list/business/transfer.vue b/src/pages/manage/list/business/transfer.vue index 86ba9d4..4049da3 100644 --- a/src/pages/manage/list/business/transfer.vue +++ b/src/pages/manage/list/business/transfer.vue @@ -313,17 +313,17 @@ export default { } } } - .submitBtn{ - position: relative; - width: 300px; - font-size: 18px; - height: 68px; - margin-top: 50px; - border-radius: 10px; - bottom: 10px; - left: 50%; - transform: translate(-50%,-50%); - } + // .submitBtn{ + // position: relative; + // width: 300px; + // font-size: 18px; + // height: 68px; + // margin-top: 50px; + // border-radius: 10px; + // bottom: 10px; + // left: 50%; + // transform: translate(-50%,-50%); + // } .popBody{ min-height: 200px; display: flex; diff --git a/src/pages/manage/list/business/withdrawal.vue b/src/pages/manage/list/business/withdrawal.vue index 10bcf0a..b597fdc 100644 --- a/src/pages/manage/list/business/withdrawal.vue +++ b/src/pages/manage/list/business/withdrawal.vue @@ -345,17 +345,17 @@ export default { } } } - .submitBtn{ - position: relative; - width: 300px; - font-size: 18px; - height: 68px; - margin-top: 50px; - border-radius: 10px; - bottom: 10px; - left: 50%; - transform: translate(-50%,-50%); - } + // .submitBtn{ + // position: relative; + // width: 300px; + // font-size: 18px; + // height: 68px; + // margin-top: 50px; + // border-radius: 10px; + // bottom: 10px; + // left: 50%; + // transform: translate(-50%,-50%); + // } .popBody{ min-height: 200px; display: flex; diff --git a/src/pages/manage/list/client/corporateClient.vue b/src/pages/manage/list/client/corporateClient.vue index 43e8d6f..b01b24a 100644 --- a/src/pages/manage/list/client/corporateClient.vue +++ b/src/pages/manage/list/client/corporateClient.vue @@ -241,8 +241,10 @@ export default { \ No newline at end of file diff --git a/src/pages/manage/list/personal/currentAccount/accountCancellation.vue b/src/pages/manage/list/personal/currentAccount/accountCancellation.vue index 94d31ee..1dff5ea 100644 --- a/src/pages/manage/list/personal/currentAccount/accountCancellation.vue +++ b/src/pages/manage/list/personal/currentAccount/accountCancellation.vue @@ -139,16 +139,16 @@ export default{ color: #6191FF; cursor: pointer; } - .submitBtn{ - position: relative; - width: 300px; - font-size: 18px; - height: 68px; - margin-top: 50px; - border-radius: 10px; - bottom: 10px; - left: 50%; - transform: translate(-50%,-20%); - } + // .submitBtn{ + // position: relative; + // width: 300px; + // font-size: 18px; + // height: 68px; + // margin-top: 50px; + // border-radius: 10px; + // bottom: 10px; + // left: 50%; + // transform: translate(-50%,-20%); + // } } \ No newline at end of file diff --git a/src/pages/manage/list/personal/currentAccount/deposit.vue b/src/pages/manage/list/personal/currentAccount/deposit.vue index 7269688..822fe2b 100644 --- a/src/pages/manage/list/personal/currentAccount/deposit.vue +++ b/src/pages/manage/list/personal/currentAccount/deposit.vue @@ -178,16 +178,16 @@ export default{ color: #6191FF; cursor: pointer; } - .submitBtn{ - position: relative; - width: 300px; - font-size: 18px; - height: 68px; - margin-top: 50px; - border-radius: 10px; - bottom: 10px; - left: 50%; - transform: translate(-50%,-50%); - } + // .submitBtn{ + // position: relative; + // width: 300px; + // font-size: 18px; + // height: 68px; + // margin-top: 50px; + // border-radius: 10px; + // bottom: 10px; + // left: 50%; + // transform: translate(-50%,-50%); + // } } \ No newline at end of file diff --git a/src/pages/manage/list/personal/currentAccount/index.vue b/src/pages/manage/list/personal/currentAccount/index.vue index 87e77ed..f1789ef 100644 --- a/src/pages/manage/list/personal/currentAccount/index.vue +++ b/src/pages/manage/list/personal/currentAccount/index.vue @@ -184,17 +184,17 @@ export default { } } } - .submitBtn{ - position: relative; - width: 300px; - font-size: 18px; - height: 68px; - margin-top: 50px; - border-radius: 10px; - bottom: 10px; - left: 50%; - transform: translate(-50%,-50%); - } + // .submitBtn{ + // position: relative; + // width: 300px; + // font-size: 18px; + // height: 68px; + // margin-top: 50px; + // border-radius: 10px; + // bottom: 10px; + // left: 50%; + // transform: translate(-50%,-50%); + // } .popBody{ min-height: 200px; display: flex; diff --git a/src/pages/manage/list/personal/currentAccount/openAccount.vue b/src/pages/manage/list/personal/currentAccount/openAccount.vue index 29c3a5b..a7fd855 100644 --- a/src/pages/manage/list/personal/currentAccount/openAccount.vue +++ b/src/pages/manage/list/personal/currentAccount/openAccount.vue @@ -574,17 +574,17 @@ export default { } } } -.submitBtn{ - position: relative; - width: 300px; - font-size: 18px; - height: 68px; - margin-top: 50px; - border-radius: 10px; - bottom: 10px; - left: 50%; - transform: translate(-50%,-50%); -} +// .submitBtn{ +// position: relative; +// width: 300px; +// font-size: 18px; +// height: 68px; +// margin-top: 50px; +// border-radius: 10px; +// bottom: 10px; +// left: 50%; +// transform: translate(-50%,-50%); +// } .popBody{ min-height: 200px; display: flex; diff --git a/src/pages/manage/list/personal/currentAccount/settle.vue b/src/pages/manage/list/personal/currentAccount/settle.vue index 295bff1..444263a 100644 --- a/src/pages/manage/list/personal/currentAccount/settle.vue +++ b/src/pages/manage/list/personal/currentAccount/settle.vue @@ -186,16 +186,16 @@ export default{ color: #6191FF; cursor: pointer; } - .submitBtn{ - position: relative; - width: 300px; - font-size: 18px; - height: 68px; - margin-top: 50px; - border-radius: 10px; - bottom: 10px; - left: 50%; - transform: translate(-50%,-20%); - } + // .submitBtn{ + // position: relative; + // width: 300px; + // font-size: 18px; + // height: 68px; + // margin-top: 50px; + // border-radius: 10px; + // bottom: 10px; + // left: 50%; + // transform: translate(-50%,-20%); + // } } \ No newline at end of file diff --git a/src/pages/manage/list/personal/currentAccount/transferAccounts.vue b/src/pages/manage/list/personal/currentAccount/transferAccounts.vue index 9270c76..07284a9 100644 --- a/src/pages/manage/list/personal/currentAccount/transferAccounts.vue +++ b/src/pages/manage/list/personal/currentAccount/transferAccounts.vue @@ -194,16 +194,16 @@ export default{ color: #6191FF; cursor: pointer; } - .submitBtn{ - position: relative; - width: 300px; - font-size: 18px; - height: 68px; - margin-top: 50px; - border-radius: 10px; - bottom: 10px; - left: 50%; - transform: translate(-50%,-50%); - } + // .submitBtn{ + // position: relative; + // width: 300px; + // font-size: 18px; + // height: 68px; + // margin-top: 50px; + // border-radius: 10px; + // bottom: 10px; + // left: 50%; + // transform: translate(-50%,-50%); + // } } \ No newline at end of file diff --git a/src/pages/manage/list/personal/currentAccount/withdrawal.vue b/src/pages/manage/list/personal/currentAccount/withdrawal.vue index 8fa4071..98ed600 100644 --- a/src/pages/manage/list/personal/currentAccount/withdrawal.vue +++ b/src/pages/manage/list/personal/currentAccount/withdrawal.vue @@ -193,16 +193,16 @@ export default{ color: #6191FF; cursor: pointer; } - .submitBtn{ - position: relative; - width: 300px; - font-size: 18px; - height: 68px; - margin-top: 50px; - border-radius: 10px; - bottom: 10px; - left: 50%; - transform: translate(-50%,-50%); - } + // .submitBtn{ + // position: relative; + // width: 300px; + // font-size: 18px; + // height: 68px; + // margin-top: 50px; + // border-radius: 10px; + // bottom: 10px; + // left: 50%; + // transform: translate(-50%,-50%); + // } } \ No newline at end of file diff --git a/src/pages/manage/list/personal/usefulPhrases/accountClosed.vue b/src/pages/manage/list/personal/usefulPhrases/accountClosed.vue index 125c39a..856982c 100644 --- a/src/pages/manage/list/personal/usefulPhrases/accountClosed.vue +++ b/src/pages/manage/list/personal/usefulPhrases/accountClosed.vue @@ -10,7 +10,7 @@ -
+

请刷银行卡

diff --git a/src/styles/system.scss b/src/styles/system.scss index 6a3ce6c..62c0a0a 100644 --- a/src/styles/system.scss +++ b/src/styles/system.scss @@ -1,12 +1,12 @@ .submitBtn{ - position: absolute; - width: 300px; + position: relative; + width: 10vw; font-size: 18px; height: 68px; border-radius: 10px; bottom: 10px; left: 50%; - transform: translate(-50%,-50%); + transform: translate(-50%,0); } .popBody{ min-height: 200px; diff --git a/test.txt b/test.txt index e3fe3bc..e69de29 100644 --- a/test.txt +++ b/test.txt @@ -1,14 +0,0 @@ -作用域链是从当前作用域逐层查找的,一直查找到window,那么这样一个查找是要花费时间的,如果我们让他马上查到这个变量。 -我们是不是就节省了这个时间。所以我们可以把我们要使用的变量,作为参数传入方法,或者再方法里进行缓存,来提升速度。 -晚上我们会具体的和大家讲到这个点 - -Vue3的架构方案是函数式编程,这种编程方式再早期的时候,就是lodash和underscore这样工具的方案,而vue2的方案是一种建造者模式。 -好处在于 -1, 更有利于tree-shaking。这也是vue3为什么要改成函数式编程的最大原因。 -2, 函数式编程可扩张性更好。 - -设计模式分为 -1, 创建型设计模式,用来指导对象的创建,用在我们设计需求的架构时。 -2, 结构型,用来指导功能模块的结构,就像我们设计公司的组织结构一样。 -3, 行为型设计模式,用来解决模块间行为的问题,设计模块间如何沟通 -4, 技巧型设计模式,一些优化代码的技巧 \ No newline at end of file