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 @@ >加入购物车 立即购买 - + +