From 137d6c3ecf4f422d2c71bd4192da67cc6b4fbbbe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=96=BB=E9=B9=8F?= <1242402566@qq.com>
Date: Tue, 26 May 2020 20:54:28 +0800
Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E5=85=89=E5=A1=AB=E5=85=85=E9=80=BB?=
=?UTF-8?q?=E8=BE=91=E8=A1=A5=E5=85=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/purchaseLenses/purchaseLenses.vue | 235 ++--------------------------
1 file changed, 9 insertions(+), 226 deletions(-)
diff --git a/src/pages/purchaseLenses/purchaseLenses.vue b/src/pages/purchaseLenses/purchaseLenses.vue
index 178e4e5..81dd6d5 100644
--- a/src/pages/purchaseLenses/purchaseLenses.vue
+++ b/src/pages/purchaseLenses/purchaseLenses.vue
@@ -169,181 +169,6 @@
确认以上输入信息来源于我的验光数据!
-
-
{
- if (confirm) {
+ success: (res) => {
+ if (res.confirm) {
this.kinds=2
console.log('args===>',index)
// const mpList=Object.assign({},this.$store.state.mympList.mpList)
@@ -683,7 +508,9 @@ export default {
}
// this.checkedData = mpList[index]
// console.log('checkedData', this.checkedData)
- }
+ } else if(res.cancel){
+ this.kinds=2
+ }
}
})
}
@@ -746,51 +573,6 @@ export default {
this.pickerInfoChioce.time.day=this.pickerInfoList[3].nameArray3[e.target.value]
},
- // 是否填充人员数据
- // fillData(e) {
- // this.isDataName = false
- // console.log('e---->', e)
- // const mpList = this.mpList
-
-// <<<<<<< HEAD
- // for (let index = 0; index < mpList.length; index++) {
- // if (e.detail.value === mpList[index].name) {
- // this.isDataName = true
- // uni.showModal({
- // title: '提示',
- // content: `是否填充已有的${e.detail.value}的数据`,
- // success: ({ confirm }) => {
- // if (confirm) {
- // this.checkedData = mpList[index]
- // console.log('checkedData', this.checkedData)
- // }
- // }
- // })
- // }
- // }
- // },
-// =======
- // for (let index = 0; index < mpList.length; index++) {
- // if (e.detail.value === mpList[index].name) {
- // this.isDataName = true
- // uni.showModal({
- // title: '提示',
- // content: `是否自动填充已保存的${e.detail.value}的数据`,
- // success: ({ confirm }) => {
- // if (confirm) {
- // this.checkedData = mpList[index]
- // console.log('checkedData', this.checkedData)
- // }
- // }
- // })
- // }
- // }
- // },
- // // 确认验光数据
- // changeConfirm() {
-
- // },
-// >>>>>>> 3a0878cc773855146d390a935b133980a5c0ee88
change(num) {
this.show[num] = !this.show[num]
this.$forceUpdate()
@@ -876,9 +658,6 @@ export default {
// time: this.pickerInfoChioce.time,
// img_url2: "http://localhost:8087/images/shop_1/1/",
});
- store.dispatch('myLoveList/getLoveList', {
- uid: this.$store.state.user.userInfo.uid,
- });
flag=1
} else{
uni.showToast({
@@ -973,6 +752,10 @@ export default {
}
if(flag!=0){
+ // 如果数据验证无误,那么更新验光单的数据
+ store.dispatch('myLoveList/getLoveList', {
+ uid: this.$store.state.user.userInfo.uid,
+ });
let i = 0
// 判断出是哪一个sku被选中
for (let index = 0; index < this.current.length; index++) {
--
2.0.0