Commit e2af65e1 by 李伟康

提交代码

1 parent 74a1a286
...@@ -114,4 +114,13 @@ module.exports = { ...@@ -114,4 +114,13 @@ module.exports = {
...data ...data
}) })
}, },
/** 小程序端根据优惠券id查询可使用商品列表(分页) */
getCouponGoodsPage(data) {
data.pageSize = 8
return api.post({
method: 'scrm.app.shopmall.coupon.goods.page',
...data
})
},
} }
\ No newline at end of file \ No newline at end of file
// packageMall/pages/pay/pay.js // packageMall/pages/pay/pay.js
let timer
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
...@@ -322,19 +321,17 @@ Page({ ...@@ -322,19 +321,17 @@ Page({
} }
} }
} }
// 添加推荐人 // // 添加推荐人
const staff = wx.p.storage.get('shareStaff') // const staff = wx.p.storage.get('shareStaff')
if (staff) { // if (staff) {
let tem = JSON.parse(staff) // let tem = JSON.parse(staff)
orderParams.shareStaffUuid = tem.shareStaffUuid // orderParams.shareStaffUuid = tem.shareStaffUuid
orderParams.shareStaffName = tem.shareStaffName // orderParams.shareStaffName = tem.shareStaffName
} // }
clearTimeout(timer) wx.p.wxApi.showLoading()
timer = setTimeout(() => { wx.p.api.shopmallApi.createOrder(orderParams).then(data => {
wx.p.api.shopmallApi.createOrder(orderParams).then(data => { this.pay(data.orderCode)
this.pay(data.orderCode) })
})
}, 500)
} }
} catch (error) { } catch (error) {
wx.hideLoading() wx.hideLoading()
......
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
<!-- 支付成功 --> <!-- 支付成功 -->
<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">
<image webp src="{{IMGURL}}equity/return_success.png?v={{img_version}}" class="icon"></image> <glsx-image webp src="equity/return_success.png" class="icon"></glsx-image>
<view class="text">支付成功</view> <view class="text">支付成功</view>
<view class="btn flex_ccc" catch:tap="closeSuccessModal">我知道了</view> <view class="btn flex_ccc" catch:tap="closeSuccessModal">我知道了</view>
</view> </view>
......
...@@ -121,7 +121,7 @@ Page({ ...@@ -121,7 +121,7 @@ Page({
*/ */
onReachBottom: function () { onReachBottom: function () {
let { pageNum, total } = this.data let { pageNum, total } = this.data
wx.p.wxApi.onReachBottom( wx.p.util.onReachBottom(
{ {
pageNum, pageNum,
total total
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!