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 117f19c7
authored
Aug 11, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
77abbaa2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 additions
and
25 deletions
packageEquity/pages/commodity/chargeDetail/chargeDetail.js
packageEquity/pages/commodity/detail/detail.js
packageEquity/pages/success/success.js
packageMall/pages/pay/pay.js
packageEquity/pages/commodity/chargeDetail/chargeDetail.js
View file @
117f19c
...
@@ -278,7 +278,6 @@ Page({
...
@@ -278,7 +278,6 @@ Page({
})
})
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
// const query = options ? JSON.parse(decodeURIComponent(options.param)) : this.data.query
const
query
=
options
.
param
const
query
=
options
.
param
this
.
getChargeDetail
(
query
,
options
)
this
.
getChargeDetail
(
query
,
options
)
this
.
setNaviTitle
(
query
.
brandName
)
this
.
setNaviTitle
(
query
.
brandName
)
...
...
packageEquity/pages/commodity/detail/detail.js
View file @
117f19c
...
@@ -22,8 +22,6 @@ Page({
...
@@ -22,8 +22,6 @@ Page({
this
.
toCheckMember
()
this
.
toCheckMember
()
},
},
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
// options = JSON.stringify(options) === '{}' ? this.options : options
// const query = options ? JSON.parse(decodeURIComponent(options.param)) : this.data.query
const
query
=
options
.
param
const
query
=
options
.
param
this
.
setNaviTitle
(
query
.
brandName
)
this
.
setNaviTitle
(
query
.
brandName
)
if
(
!
query
.
lat
)
{
if
(
!
query
.
lat
)
{
...
...
packageEquity/pages/success/success.js
View file @
117f19c
...
@@ -10,11 +10,8 @@ Page({
...
@@ -10,11 +10,8 @@ Page({
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
console
.
log
(
options
)
console
.
log
(
options
)
// let aaa = '{"orderCode":"GL467176510294597632","name":"全车精品套餐","price":"0.01"}'
let
temp
=
JSON
.
parse
(
options
.
order
)
// let temp = JSON.parse(aaa)
this
.
setData
({
this
.
setData
({
order
:
temp
order
:
options
.
order
})
})
},
},
toMyCoupons
()
{
toMyCoupons
()
{
...
...
packageMall/pages/pay/pay.js
View file @
117f19c
...
@@ -321,13 +321,6 @@ Page({
...
@@ -321,13 +321,6 @@ Page({
}
}
}
}
}
}
// // 添加推荐人
// 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
.
wxApi
.
showLoading
()
wx
.
p
.
api
.
shopmallApi
.
createOrder
(
orderParams
).
then
(
data
=>
{
wx
.
p
.
api
.
shopmallApi
.
createOrder
(
orderParams
).
then
(
data
=>
{
this
.
pay
(
data
.
orderCode
)
this
.
pay
(
data
.
orderCode
)
...
@@ -380,17 +373,6 @@ Page({
...
@@ -380,17 +373,6 @@ Page({
...
params
,
...
params
,
success
(
res
)
{
success
(
res
)
{
_this
.
requestSubscribeMessage
()
_this
.
requestSubscribeMessage
()
// const staffTrack = wx.p.storage.get('shareStaffTracker')
// if (staffTrack) {
// let tem = JSON.parse(staffTrack)
// tem.item_type = tem.isActivity ? 3 : 1
// tem.action_type = 3
// tem.item_id = tem.id
// tem.order_id = orderCode
// // wx.$util.reportData(tem, false, false, true)
// wx.p.storage.rm('shareStaffTracker')
// }
// wx.p.storage.rm('shareStaff')
},
},
fail
(
res
)
{
fail
(
res
)
{
if
(
res
.
errMsg
==
'requestPayment:fail cancel'
)
{
if
(
res
.
errMsg
==
'requestPayment:fail cancel'
)
{
...
...
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