From 31dea37dac820ba4df6c0d427911262561714861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=BB=E9=B9=8F?= <1242402566@qq.com> Date: Sun, 24 May 2020 17:26:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=AA=8C=E5=85=89=E5=8D=95?= =?UTF-8?q?=E5=92=8C=E4=BF=AE=E6=94=B9=E9=AA=8C=E5=85=89=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/addOpticsData/addOpticsData.vue | 25 ++- src/pages/newOpticsData/newOpticsData.vue | 299 ++++++++++++++++++++++++++---- src/pages/user/user.vue | 85 ++++++++- src/store/modules/myLoveList.js | 38 +++- src/store/url.js | 3 +- 5 files changed, 401 insertions(+), 49 deletions(-) diff --git a/src/pages/addOpticsData/addOpticsData.vue b/src/pages/addOpticsData/addOpticsData.vue index e3e6f6f..6098740 100644 --- a/src/pages/addOpticsData/addOpticsData.vue +++ b/src/pages/addOpticsData/addOpticsData.vue @@ -26,9 +26,9 @@ - + - + 度数(SPH):左:{{loveItem.leftSph}}右:{{loveItem.rightSph}} @@ -47,7 +47,7 @@ - + @@ -67,7 +67,7 @@ onLoad: function(option) { //获取关心的人列表 store.dispatch('myLoveList/getLoveList', { - uid: "1", + uid: this.$store.state.user.userInfo.uid, }); }, computed:{ @@ -99,9 +99,21 @@ getFirstName(name){ return name.substring(0,1) }, - toNewData(){ + toNewData(item,index){ + // const args={ + // name:loveItem.name, + // pd:loveItem.pd, + // leftSph:loveItem.leftSph, + // rightSph:loveItem.rightSph, + // leftCyl:loveItem.leftCyl, + // rightCyl:loveItem.rightCyl, + // leftAxi:loveItem.leftAxi, + // rightAxi:loveItem.rightAxi + // } uni.navigateTo({ - url:'../newOpticsData/newOpticsData' + // kinds 参数为 1 表示添加新的验光单, 2 表示更新验光单 + // name 表示修改的人名儿,pd瞳距 + url:'../newOpticsData/newOpticsData?kinds='+item+'&index='+index }) } } @@ -145,6 +157,7 @@ box-shadow: 0 0 4px 0 rgba(133,107,107,0.10); width: 100%; background-color: #FFFFFF; + margin-bottom: 120rpx; .item{ padding: 0 40rpx; .loveDataInfo{ diff --git a/src/pages/newOpticsData/newOpticsData.vue b/src/pages/newOpticsData/newOpticsData.vue index a710c86..97e373d 100644 --- a/src/pages/newOpticsData/newOpticsData.vue +++ b/src/pages/newOpticsData/newOpticsData.vue @@ -8,6 +8,16 @@ 填写验光数据 没有验光数据?请到线下眼镜店验光哦~ + + 验光单取名: + + + + 瞳距: + + @@ -62,7 +72,7 @@ - + - {{pickerInfoList[4].nameC}} + {{pickerInfoList[3].nameC}} 年   (Y) - {{pickerInfoList[4].nameArray1[pickerInfoList[4].nameIndex1]}} - + {{pickerInfoList[3].nameArray1[pickerInfoList[3].nameIndex1]}} + 月   (M) - {{pickerInfoList[4].nameArray2[pickerInfoList[4].nameIndex2]}} - + {{pickerInfoList[3].nameArray2[pickerInfoList[3].nameIndex2]}} + 日   (D) - {{pickerInfoList[4].nameArray3[pickerInfoList[4].nameIndex3]}} - + {{pickerInfoList[3].nameArray3[pickerInfoList[3].nameIndex3]}} + - + 确认以上输入信息来源于我的验光数据! @@ -112,72 +122,261 @@ - + -