From 103db27cd0ca6b3305e95170dc297380f97fcc70 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期四, 25 四月 2024 17:05:47 +0800 Subject: [PATCH] bug3 --- pages/cart/paymentPage/index.js | 34 ++++++++++++++++++++++++++++------ 1 files changed, 28 insertions(+), 6 deletions(-) diff --git a/pages/cart/paymentPage/index.js b/pages/cart/paymentPage/index.js index 1e853ee..645549c 100644 --- a/pages/cart/paymentPage/index.js +++ b/pages/cart/paymentPage/index.js @@ -5,7 +5,7 @@ import { getPublicImage } from '../../../assets/js/middleGround/tool'; -import drawQrcode from './js/weapp.qrcode' + Page({ /** @@ -26,13 +26,20 @@ isPaySuccess: false, isPayComplete: false, type: '', - onNorderSaleMethod: '' + onNorderSaleMethod: '', + ImmediatelyReceive: '' }, /** * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 */ onLoad(options) { + + wx.setNavigationBarTitle({ + title: '鎻愪氦璁㈠崟' + }); + + const systInfo = wx.getSystemInfoSync(); const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅 const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴� @@ -108,8 +115,6 @@ fields: { content: [], subtitle: [], - - } } app.MG.store.getOrderByOrderNum(query).then(res => { @@ -121,10 +126,12 @@ console.log(res.payPrice); this.setData({ - payPrice: res.payPrice.toFixed(2) + payPrice: res.payPrice.toFixed(2), + ImmediatelyReceive: res.payPrice }) + console.log(this.data.ImmediatelyReceive); res.saleMethodLinks.forEach(item => { - console.log(item.type, 'item.type'); + // console.log(item.type, 'item.type'); const type = item.orderSaleMethod.type == 'createProductItemSaleMethod' ? 'item' : 'product'; item.type = type; // 灏唗ype璁剧疆涓篿tem瀵硅薄鐨勫睘鎬э紝鑰屼笉鏄娇鐢╯etData @@ -241,4 +248,19 @@ // 杩斿洖 wx.navigateBack() }, + onReceive() { + let query = { + orderNum: this.data.orderGoods + } + app.MG.store.confirmOrder(query).then(res => { + Toast({ + context: this, + selector: '#t-toast', + message: '棰嗗彇鎴愬姛', + theme: 'success', + direction: 'column', + }); + wx.navigateBack() + }) + } }) \ No newline at end of file -- Gitblit v1.9.1