Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
hmd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e2af65e1
authored
Jul 17, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
74a1a286
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
16 deletions
api/module/shopmall.js
packageMall/pages/pay/pay.js
packageMall/pages/pay/pay.wxml
packageMine/pages/coupon/recommend/recommend.js
api/module/shopmall.js
View file @
e2af65e
...
...
@@ -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
View file @
e2af65e
// 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
()
...
...
packageMall/pages/pay/pay.wxml
View file @
e2af65e
...
...
@@ -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>
...
...
packageMine/pages/coupon/recommend/recommend.js
View file @
e2af65e
...
...
@@ -121,7 +121,7 @@ Page({
*/
onReachBottom
:
function
()
{
let
{
pageNum
,
total
}
=
this
.
data
wx
.
p
.
wxApi
.
onReachBottom
(
wx
.
p
.
util
.
onReachBottom
(
{
pageNum
,
total
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment