From 607bc3a4d6e98e95f8bc2f4adf328cf1331ae013 Mon Sep 17 00:00:00 2001
From: BigBoss <2280520255@qq.com>
Date: Mon, 1 Jun 2020 16:20:02 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E7=9B=B4=E6=8E=A5?=
=?UTF-8?q?=E8=B4=AD=E4=B9=B0=E7=9A=84=E6=B5=81=E7=A8=8B=EF=BC=8C=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E5=BC=B9=E7=AA=97=EF=BC=8C=E9=80=89=E6=8B=A9=E4=BF=A1?=
=?UTF-8?q?=E6=81=AF=E7=9A=84=E5=90=88=E5=B9=B6=E7=AD=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/common/data.js | 133 ---
src/pages/confirmOrder/confirmOrder.vue | 32 +-
src/pages/frameDetail/components/BottomSheet.vue | 1260 ++++++++++++++++++++++
src/pages/frameDetail/frameDetail.vue | 40 +-
src/pages/myOrder/components/OrderCard.vue | 8 +-
src/pages/myOrder/myOrder.vue | 2 +-
src/pages/myOrderPaying/myOrderPaying.vue | 20 +-
src/store/modules/cart.js | 12 +-
src/store/modules/orderRead.js | 3 +-
9 files changed, 1333 insertions(+), 177 deletions(-)
delete mode 100644 src/common/data.js
create mode 100644 src/pages/frameDetail/components/BottomSheet.vue
diff --git a/src/common/data.js b/src/common/data.js
deleted file mode 100644
index 198bc0b..0000000
--- a/src/common/data.js
+++ /dev/null
@@ -1,133 +0,0 @@
-// 数据格式,数据中只需要包含以下字段和数据格式,可以添加字段,比如id等等,不影响组件显示,
-// 组件的返回结果是有菜单数组下标形式返回,
-// 如果传入数据中有value,也会返回value,开发者可根据返回的下标获取所选中的菜单
-/*
-[
- {
- "name":"", //字符串类型 选填项 菜单名称,如不填,则取第一个子菜单的name值,filter和radio类型则将设置为"筛选"
- "type":"" //字符串类型 必填项 可取值 hierarchy/filter/radio hierarchy单/多层级菜单(最多三级); filter筛选多选菜单; radio筛选单选菜单
- "submenu":[ //对象数组类型 必填项 子菜单数据
- {
- "name":"", //字符串类型 必填项 菜单名称
- "value":"", //字符串类型 选填项 自定义内容,比如id等等,如果填写了,confirm返回的结果中将返回对应选中的value,若菜单无value字段则返回null,filter类型此字段无效果
- "submenu":[ //对象数组类型 必填项 子菜单数据
- {
- "name":"", //字符串类型 必填项 菜单名称
- "value":"", //字符串类型 选填项 自定义内容,比如id等等,如果填写了,confirm返回的结果中将返回对应选中的value,若菜单无value字段则返回null
- "submenu":[ //对象数组类型 必填项 子菜单数据 filter类型无效
- {
- "name":"", //字符串类型 必填项 菜单名称 hierarchy类型层级最多到此
- "value":"", //字符串类型 选填项 自定义内容,比如id等等,如果填写了,confirm返回的结果中将返回对应选中的value,若菜单无value字段则返回null
- }
- ]
- }
- ]
- }
- ]
- }
-]
-*/
-
-//0.0.4版本起 返回结果将有两部分组成:
-/*
-{
- index:[], //旧版本的下标数组形式
- value:[] //菜单中的valve,结构和下标结果数组一样,只是把下标替换成了value而已
-}
-*/
-// 以下演示数据中,我故意把value设置成跟name一样,只是为了方便演示,使示例更加易懂,实际使用时候value应该是一个标识,给后台识别所用的.
-// 数据较长,请仔细查看。
-
-
-export default [
- {
- "name":'综合',
- "type": 'filter',
- "submenu": [{
- "submenu": [
-
- ]
- },
- ],
- },
- {
- "name":'品牌',
- "type": 'filter',
- "submenu": [{
- // "name": '品牌',
- // "value": "品牌",
- "submenu": [{
- "name": "帕森",
- "value": "帕森",
- },
- {
- "name": "海伦凯勒",
- "value": "海伦凯勒",
- },
- ]
- },
- ]
- },
- {
- "name":'功能',
- "type": 'filter',
- "submenu": [{
- "submenu": [{
- "name": "满减活动",
- "value": "满减活动"
- },
- {
- "name": "打折优惠",
- "value": "打折优惠"
- },
- {
- "name": "会员专享",
- "value": "会员专享"
- }
- ]
- }
- ]
- },
- {
- "name":'材质',
- "type": 'filter',
- "submenu": [{
- "submenu": [{
- "name": "满减活动",
- "value": "满减活动"
- },
- {
- "name": "打折优惠",
- "value": "打折优惠"
- },
- {
- "name": "会员专享",
- "value": "会员专享"
- }
- ]
- }
- ]
- },
- {
- "name":'折扣',
- "type": 'filter',
- "submenu": [{
- "name": "折扣(多选)",
- "submenu": [{
- "name": "满减活动",
- "value": "满减活动"
- },
- {
- "name": "打折优惠",
- "value": "打折优惠"
- },
- {
- "name": "会员专享",
- "value": "会员专享"
- }
- ]
- }
- ]
- }
-]
-
diff --git a/src/pages/confirmOrder/confirmOrder.vue b/src/pages/confirmOrder/confirmOrder.vue
index 1e69284..f4467bc 100644
--- a/src/pages/confirmOrder/confirmOrder.vue
+++ b/src/pages/confirmOrder/confirmOrder.vue
@@ -34,7 +34,7 @@
- {{addressInfo.address.replace(/[-]/g,' ')}}\n{{addressInfo.add_detail}}
+ {{addressInfo.address}}\n{{addressInfo.add_detail}}
- 商品名称商品名称商品名称名称名称
+ {{goodInfo.p_name}}
¥{{Number(skuInfo.real_price) * count}}
@@ -91,6 +91,9 @@
>{{attrList[index].attr[item].name}}/
+ 使用人
+ {{name}}
+
配送方式 快递
买家留言
状态 待收货
uni.reLaunch({
- url: `../myOrderPaying/myOrderPaying?payId=${payId}&state=1&ispay=1`,
+ url: `../myOrderPaying/myOrderPaying?payId=${payId}&state=1&isPay=1`,
})
},
fail: (res) => {
@@ -331,7 +338,7 @@ export default {
})
// 跳转订单详情页->状态 待付款
uni.reLaunch({
- url: `../myOrderPaying/myOrderPaying?payId=${payId}&state=0&ispay=1`,
+ url: `../myOrderPaying/myOrderPaying?payId=${payId}&state=0&isPay=1`,
})
},
complete: () => {
@@ -399,7 +406,7 @@ export default {
box-sizing: border-box;
.orderInfo {
width: 670rpx;
- height: 488rpx;
+ min-height: 488rpx;
background-color: #ffffff;
border-radius: 20rpx;
box-sizing: border-box;
@@ -629,7 +636,8 @@ export default {
height: 108rpx;
width: 100%;
align-items: center;
- margin-left: 126rpx;
+ padding-left: 126rpx;
+ box-sizing: border-box;
.name {
display: flex;
justify-content: space-between;
diff --git a/src/pages/frameDetail/components/BottomSheet.vue b/src/pages/frameDetail/components/BottomSheet.vue
new file mode 100644
index 0000000..c0c844f
--- /dev/null
+++ b/src/pages/frameDetail/components/BottomSheet.vue
@@ -0,0 +1,1260 @@
+
+
+
+
+
+
+
+
+
+
+ {{goodInfo.p_name}}
+
+
+ ¥{{goodInfo.priceArea.Min_Price || '暂无'}}
+ (限购{{maxCount}}副)
+
+ -
+ {{count}}
+ +
+
+
+
+
+
+ 选择使用人
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+ 填写验光数据
+
+ 没有验光数据?请到线下眼镜店验光哦~
+
+
+
+ 验光单取名:
+
+
+
+
+
+
+
+ {{pickerInfoList[0].nameC}}
+ {{pickerInfoList[0].nameE}}
+
+ 左 (OD)
+
+
+
+ {{pickerInfoList[0].nameArray1[pickerInfoList[0].nameIndex1]}}
+
+
+
+
+ 右 (OS)
+
+
+
+ {{pickerInfoList[0].nameArray2[pickerInfoList[0].nameIndex2]}}
+
+
+
+
+
+
+
+
+
+ {{pickerInfoList[1].nameC}}
+ {{pickerInfoList[1].nameE}}
+
+ 左 (OD)
+
+
+
+ {{pickerInfoList[1].nameArray1[pickerInfoList[1].nameIndex1]}}
+
+
+
+
+ 右 (OS)
+
+
+
+ {{pickerInfoList[1].nameArray2[pickerInfoList[1].nameIndex2]}}
+
+
+
+
+
+
+
+
+
+ {{pickerInfoList[2].nameC}}
+ {{pickerInfoList[2].nameE}}
+
+ 左 (OD)
+
+
+ {{pickerInfoList[2].nameArray1[pickerInfoList[2].nameIndex1]}}
+
+
+
+ 右 (OS)
+
+
+
+ {{pickerInfoList[2].nameArray2[pickerInfoList[2].nameIndex2]}}
+
+
+
+
+
+
+
+
+
+ 瞳距:
+
+
+
+
+
+
+
+ {{pickerInfoList[3].nameC}}
+
+ 年 (Y)
+
+
+ {{pickerInfoList[3].nameArray1[pickerInfoList[3].nameIndex1]}}
+
+
+
+ 月 (M)
+
+
+ {{pickerInfoList[3].nameArray2[pickerInfoList[3].nameIndex2]}}
+
+
+
+ 日 (D)
+
+
+ {{pickerInfoList[3].nameArray3[pickerInfoList[3].nameIndex3]}}
+
+
+
+
+
+
+
+ 确认以上输入信息来源于我的验光数据!
+
+
+
+
+
+
+ {{item.nameC}}
+ {{item.nameArray1[item.nameIndex1]}}年
+ {{item.nameArray2[item.nameIndex2]}}月
+ {{item.nameArray3[item.nameIndex2]}}日
+
+
+
+ *
+
+
+ {{item.nameC}}
+ 左 {{item.nameArray1[item.nameIndex1]}}
+ 右 {{item.nameArray2[item.nameIndex2]}}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{one.name}}
+
+
+
+
+ * {{attrList[index].attr[current[index]].name}}
+
+
+
+
+ 立即结算
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/frameDetail/frameDetail.vue b/src/pages/frameDetail/frameDetail.vue
index 58162d7..6fdb076 100644
--- a/src/pages/frameDetail/frameDetail.vue
+++ b/src/pages/frameDetail/frameDetail.vue
@@ -321,18 +321,25 @@
>加入购物车
立即购买
-
+
+