From 61f3dd875501779e3da0ddc1d7c32be2bfdeabbe Mon Sep 17 00:00:00 2001 From: zhangdongxue Date: Thu, 18 Aug 2022 10:00:28 +0800 Subject: [PATCH] =?UTF-8?q?vip=E6=8D=A2=E8=B4=AD=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=8F=8A=E9=83=A8=E5=88=86=E6=8B=BC=E5=9B=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E8=9E=8D=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/index.js | 2 +- apis/interfaces/pay.js | 14 + apis/interfaces/store.js | 36 +- pages.json | 94 +-- pages/group-book/success/success.vue | 142 +++- pages/pay/pay.vue | 121 +++- pages/store/buy.vue | 216 ++++-- pages/store/goods.vue | 296 +++++--- pages/store/index.vue | 62 +- pages/store/list.vue | 23 +- pages/store/vip-list/vip-list.vue | 62 +- .../dist/dev/app-plus/app-config-service.js | 2 +- unpackage/dist/dev/app-plus/app-service.js | 684 ++++++++++++------ unpackage/dist/dev/app-plus/app-view.js | 668 +++++++++++------ 14 files changed, 1629 insertions(+), 793 deletions(-) diff --git a/apis/index.js b/apis/index.js index b324613..b45c9bc 100644 --- a/apis/index.js +++ b/apis/index.js @@ -46,7 +46,7 @@ const request = (parameter, hideLoding = true) => { data: parameter.data || {}, method: parameter.method || 'GET', success: res => { - // console.log(res) + console.log(res) if (res.header.Authorization) { updateToken('token', res.header.Authorization) } diff --git a/apis/interfaces/pay.js b/apis/interfaces/pay.js index 1c36234..e6716a9 100644 --- a/apis/interfaces/pay.js +++ b/apis/interfaces/pay.js @@ -44,9 +44,23 @@ const dtPAY = (orderNo,password) => { } +const collagePAY = (orderNo,password) => { + return request({ + url: 'mall/pay/' + orderNo + '/collage/account', + method:'post', + data: { + type: 'app', + transfer_password:password + } + }) +} + + + export { wxPAY, alPAY, dtPAY, payIndex, + collagePAY, } diff --git a/apis/interfaces/store.js b/apis/interfaces/store.js index fb2a959..4c349ca 100644 --- a/apis/interfaces/store.js +++ b/apis/interfaces/store.js @@ -62,6 +62,21 @@ const buy = data => { data }) } +// 拼团商品确认页面 +const buyPin = data => { + return request({ + url: 'mall/buy/collages', + data + }) +} +// 拼团商品确认下单 +const collages = data => { + return request({ + url: 'mall/buy/collages', + method: 'POST', + data + }) +} // 商品下单 const verify = data => { @@ -79,6 +94,21 @@ const classify = id => { }) } + +// 拼团成功后展示页面 +const repages = id => { + return request({ + url: 'mall/collages/' + id + '/repages' + }) +} + +// 商城所有分类 +const categories = id => { + return request({ + url: 'mall/categories/lists' + }) +} + export { mall, goods, @@ -87,6 +117,10 @@ export { shopsGoods, lists, buy, + buyPin, verify, - classify + collages, + repages, + classify, + categories } diff --git a/pages.json b/pages.json index 3ce26a9..7e1dd74 100644 --- a/pages.json +++ b/pages.json @@ -154,9 +154,21 @@ "path": "pages/store/list", "name": "StoreList", "style": { - "navigationBarTitleText": "商品", + "navigationBarTitleText": "更多商品", "navigationBarBackgroundColor": "#FFFFFF", - "enablePullDownRefresh": true + "enablePullDownRefresh": true, + "app-plus": { + "titleNView": { + "backgroundColor": "#fff", + "buttons": [{ + "float": "right", + "text": "\ue603", + "fontSrc": "/static/iconfont.ttf", + "color": "#000", + "fontSize": "20px" + }] + } + } } }, { @@ -447,7 +459,7 @@ "color": "#696969", "type": "none", "fontSrc": "/static/fonts/iconfont1.ttf", - "text": "\ue608" //小相机 + "text": "\ue608" }] } } @@ -520,16 +532,16 @@ "style": { "navigationBarTitleText": "公告详情", "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#FFFFFF", - "app-plus": { - "titleNView": { - "buttons": [{ - "text": "分享", - "fontSize": "14", - "width": "60px", - "color": "#333" - }] - } + "navigationBarBackgroundColor": "#FFFFFF", + "app-plus": { + "titleNView": { + "buttons": [{ + "text": "分享", + "fontSize": "14", + "width": "60px", + "color": "#333" + }] + } } } }, { @@ -543,40 +555,40 @@ } ,{ "path" : "pages/store/vip/index/index", - "style" : - { - "navigationBarTitleText": "***店铺会员", - "enablePullDownRefresh": false - } + "style" : + { + "navigationBarTitleText": "***店铺会员", + "enablePullDownRefresh": false + } } ,{ - "path" : "pages/user/my-card/my-card", + "path" : "pages/user/my-card/my-card", "name": "MyCard", - "style" : - { - "navigationBarTitleText": "我的卡券", - "enablePullDownRefresh": false - } + "style" : + { + "navigationBarTitleText": "我的卡券", + "enablePullDownRefresh": false + } } ,{ "path" : "pages/group-book/success/success", - "style" : - { - "navigationBarTitleText": "拼单更多", - "enablePullDownRefresh": false - } + "style" : + { + "navigationBarTitleText": "拼单更多", + "enablePullDownRefresh": false + } } ,{ - "path" : "pages/store/vip-list/vip-list", + "path" : "pages/store/vip-list/vip-list", "name": "VipList", - "style" : - { - "navigationBarTitleText": "VIP换购中心", - "enablePullDownRefresh": false - } + "style" : + { + "navigationBarTitleText": "VIP换购中心", + "enablePullDownRefresh": false + } } ], "tabBar": { @@ -617,14 +629,14 @@ "easycom": { "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" }, - "condition" : { //模式配置,仅开发期间生效 - "current": 0, //当前激活的模式(list 的索引项) + "condition" : { + "current": 0, "list": [ { - "name": "", //模式名称 - "path": "", //启动页面,必选 - "query": "" //启动参数,在页面的onLoad函数里面得到 + "name": "", + "path": "", + "query": "" } ] } -} +} diff --git a/pages/group-book/success/success.vue b/pages/group-book/success/success.vue index 44cc62a..5624616 100644 --- a/pages/group-book/success/success.vue +++ b/pages/group-book/success/success.vue @@ -1,41 +1,95 @@