Commit e2af65e1 by 李伟康

提交代码

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