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}} 支持7天无理由退货 顺丰发货 ¥{{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 @@ + + + + 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 @@ >加入购物车 立即购买 - + +