Commit 9b8b107d by 李伟康

提交

1 parent cc47e974
...@@ -147,4 +147,8 @@ module.exports = { ...@@ -147,4 +147,8 @@ module.exports = {
...data ...data
}) })
}, },
requestSubscribeMessage() {
return api.fetch('scrm.api.shopmall.weapp.order.listSubscribeMsgTemplateIds')
},
} }
\ No newline at end of file \ No newline at end of file
...@@ -411,6 +411,10 @@ Page({ ...@@ -411,6 +411,10 @@ Page({
}) })
}, },
requestSubscribeMessage() { requestSubscribeMessage() {
wx.p.router.reLaunch('/packageMine/pages/order/complete/complete', {
success: true
})
return
let systemInfo = wx.p.storage.get('system_info') let systemInfo = wx.p.storage.get('system_info')
if (systemInfo && systemInfo.environment != 'wxwork') { if (systemInfo && systemInfo.environment != 'wxwork') {
wx.p.router.reLaunch('/packageShopmall/packageMine/pages/order/complete/complete', { wx.p.router.reLaunch('/packageShopmall/packageMine/pages/order/complete/complete', {
...@@ -472,41 +476,6 @@ Page({ ...@@ -472,41 +476,6 @@ Page({
showSuccessModal: false showSuccessModal: false
}) })
}, },
toPayOrder(orderCode) {
wx.p.api.shopmallApi.platformGoodsPayOrder({
orderCode,
paymentSource: 1
}).then(res => {
wx.hideLoading();
if (res) {
const {
timeStamp,
nonceStr,
packages,
signType,
paySign
} = res.payParams
wx.requestPayment({
timeStamp: timeStamp,
nonceStr: nonceStr,
package: packages,
signType: signType,
paySign: paySign,
success() {
wx.p.router.reLaunch('/packageMine/pages/order/complete/complete', {
success: true
})
},
fail(res) {
if (res.errMsg == 'requestPayment:fail cancel') {
wx.p.wxApi.showToast('取消支付')
}
}
})
}
})
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
......
<view class="layout" style="padding-bottom:{{padding_bottom }}px"> <view class="layout" style="padding-bottom:{{padding_bottom }}px">
<view class="box"> <view class="box">
<block wx:if="{{addressFlag}}"> <block wx:if="{{addressFlag}}">
<block wx:if="{{shopFlag && shopCartFlag}}"> <block wx:if="{{shopFlag && shopCartFlag}}">
<view class="address-box" bindtap="jump"> <view class="address-box" bindtap="jump">
<block wx:if="{{contactInfo.contactAddress}}"> <block wx:if="{{contactInfo.contactAddress}}">
<view class="left"> <view class="left">
<view class="top"> <view class="top">
<view class="name text-hide">{{contactInfo.contactName}}</view> <view class="name text-hide">{{contactInfo.contactName}}</view>
<block wx:if="{{isDefault}}"> <block wx:if="{{isDefault}}">
<view class="default text-center">默认地址</view> <view class="default text-center">默认地址</view>
</block> </block>
<view class="phone">{{contactInfo.contactPhone}}</view> <view class="phone">{{contactInfo.contactPhone}}</view>
</view>
<view class="bottom text-hide">{{contactInfo.contactAddress}}</view>
</view>
</block>
<block wx:else>
选择收货地址
</block>
<view class="right text-center">
<view class="icon">
<glsx-image src="mine/mine-arrow.png"></glsx-image>
</view> </view>
<view class="bottom text-hide">{{contactInfo.contactAddress}}</view>
</view>
</block>
<block wx:else>
选择收货地址
</block>
<view class="right text-center">
<view class="icon">
<glsx-image src="mine/mine-arrow.png"></glsx-image>
</view> </view>
</view> </view>
</view> </block>
</block>
</block> </block>
<view class="content-box"> <view class="content-box">
<view class="merchantName text-hide"> <view class="merchantName text-hide">
...@@ -105,8 +105,10 @@ ...@@ -105,8 +105,10 @@
<!-- 支付成功 --> <!-- 支付成功 -->
<view wx:if="{{showSuccessModal}}" class="modal-container flex_ccc"> <view wx:if="{{showSuccessModal}}" class="modal-container flex_ccc">
<view class="modal-body"> <view class="modal-body">
<glsx-image webp src="equity/return_success.png" class="icon"></glsx-image> <view class="icon">
<view class="text">支付成功</view> <glsx-image webp src="equity/return_success.png"></glsx-image>
<view class="btn flex_ccc" catch:tap="closeSuccessModal">我知道了</view> </view>
<view class="text">支付成功</view>
<view class="btn flex_ccc" catch:tap="closeSuccessModal">我知道了</view>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!