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 d7a0067d
authored
Jul 18, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复
1 parent
4dddff07
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
41 additions
and
32 deletions
api/module/shopmall.js
packageEquity/pages/open/open.js
packageMall/pages/pay/pay.js
packageMall/pages/shoppingCart/shoppingCart.js
packageMall/pages/shoppingCart/shoppingCart.scss
packageMall/pages/shoppingCart/shoppingCart.wxml
packageMine/pages/address/detail/detail.js
packageMine/pages/coupon/usedDetail/usedDetail.js
packageMine/pages/order/detail/detail.js
pages/Login/Login.wxss
api/module/shopmall.js
View file @
d7a0067
...
@@ -123,4 +123,11 @@ module.exports = {
...
@@ -123,4 +123,11 @@ module.exports = {
...
data
...
data
})
})
},
},
//取消付款
cancelPay
(
orderCode
)
{
return
api
.
fetch
(
'scrm.api.shopmall.weapp.order.cancelPay'
,{
orderCode
})
},
}
}
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/open/open.js
View file @
d7a0067
...
@@ -70,13 +70,13 @@ Page({
...
@@ -70,13 +70,13 @@ Page({
orderCode
:
memberInfo
.
orderCode
,
orderCode
:
memberInfo
.
orderCode
,
orderSource
:
3
orderSource
:
3
}
}
wx
.
$Track
.
setTrack
(
//
wx.$Track.setTrack(
{
//
{
...
para
,
//
...para,
type
:
'购买权益卡'
//
type: '购买权益卡'
},
//
},
7
//
7
)
//
)
wx
.
p
.
api
.
equityApi
.
buyMemberCard
(
para
).
then
(
res
=>
{
wx
.
p
.
api
.
equityApi
.
buyMemberCard
(
para
).
then
(
res
=>
{
wx
.
hideLoading
()
wx
.
hideLoading
()
this
.
handlePay
(
res
)
this
.
handlePay
(
res
)
...
...
packageMall/pages/pay/pay.js
View file @
d7a0067
...
@@ -138,7 +138,7 @@ Page({
...
@@ -138,7 +138,7 @@ Page({
sum
:
sum
,
sum
:
sum
,
expressFee
,
expressFee
,
goodsNumber
,
goodsNumber
,
money
money
:
money
<
0
?
0
:
money
})
})
},
},
//获取最大优惠券
//获取最大优惠券
...
@@ -363,11 +363,11 @@ Page({
...
@@ -363,11 +363,11 @@ Page({
payParams
payParams
})
=>
{
})
=>
{
wx
.
hideLoading
()
wx
.
hideLoading
()
wx
.
$Track
.
setTrack
({
//
wx.$Track.setTrack({
goodsList
//
goodsList
},
//
},
7
//
7
)
//
)
if
(
needPay
)
{
if
(
needPay
)
{
let
params
=
{
let
params
=
{
nonceStr
:
payParams
.
nonceStr
,
nonceStr
:
payParams
.
nonceStr
,
...
...
packageMall/pages/shoppingCart/shoppingCart.js
View file @
d7a0067
...
@@ -171,12 +171,12 @@ Page({
...
@@ -171,12 +171,12 @@ Page({
}
}
wx
.
p
.
api
.
shopmallApi
.
delShoppingcart
(
para
).
then
(
res
=>
{
wx
.
p
.
api
.
shopmallApi
.
delShoppingcart
(
para
).
then
(
res
=>
{
wx
.
p
.
wxApi
.
showToast
(
'删除成功'
)
wx
.
p
.
wxApi
.
showToast
(
'删除成功'
)
wx
.
$Track
.
setTrack
({
//
wx.$Track.setTrack({
id
,
//
id,
type
:
'购物车移除商品'
//
type: '购物车移除商品'
},
//
},
7
//
7
)
//
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
getShoppingcartList
()
this
.
getShoppingcartList
()
},
1.5
*
1000
)
},
1.5
*
1000
)
...
...
packageMall/pages/shoppingCart/shoppingCart.scss
View file @
d7a0067
...
@@ -164,6 +164,15 @@
...
@@ -164,6 +164,15 @@
background
:
var
(
--
btnColor
);
background
:
var
(
--
btnColor
);
border-radius
:
var
(
--
borderRadius
);
border-radius
:
var
(
--
borderRadius
);
font-weight
:
500
;
font-weight
:
500
;
padding
:
0
!
important
;
margin
:
0
!
important
;
font-size
:
28rpx
;
&
[
disabled
]
:not
([
type
])
{
background
:
#CCCED1
!
important
;
border-color
:
#CCCED1
!
important
;
color
:
#fff
!
important
;
box-shadow
:
none
;
}
}
}
.goods-action
.total
{
.goods-action
.total
{
...
...
packageMall/pages/shoppingCart/shoppingCart.wxml
View file @
d7a0067
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
<text class="unit">¥</text>{{sum||0}}
<text class="unit">¥</text>{{sum||0}}
</view>
</view>
</view>
</view>
<
view class="btn text-center" bindtap="checkOut">结算({{count||0}})</view
>
<
button class="btn text-center" bindtap="checkOut" disabled="{{count<1}}">结算({{count||0}})</button
>
</view>
</view>
</goods-action>
</goods-action>
</block>
</block>
\ No newline at end of file
\ No newline at end of file
packageMine/pages/address/detail/detail.js
View file @
d7a0067
...
@@ -16,6 +16,7 @@ Page({
...
@@ -16,6 +16,7 @@ Page({
}
}
},
},
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
console
.
log
(
options
,
'=========='
)
if
(
options
.
id
)
{
if
(
options
.
id
)
{
wx
.
setNavigationBarTitle
({
wx
.
setNavigationBarTitle
({
title
:
'编辑收货地址'
title
:
'编辑收货地址'
...
@@ -49,10 +50,6 @@ Page({
...
@@ -49,10 +50,6 @@ Page({
'userObj.areaId'
:
ad_info
.
adcode
'userObj.areaId'
:
ad_info
.
adcode
})
})
},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
},
/**获取当前位置 */
/**获取当前位置 */
getLocation
()
{
getLocation
()
{
let
{
currentAddress
}
=
this
.
data
let
{
currentAddress
}
=
this
.
data
...
...
packageMine/pages/coupon/usedDetail/usedDetail.js
View file @
d7a0067
...
@@ -18,7 +18,9 @@ Page({
...
@@ -18,7 +18,9 @@ Page({
let
url
=
'/packageMine/pages/order/detail/detail'
let
url
=
'/packageMine/pages/order/detail/detail'
// if (orderStatus > 5 && orderStatus != 14 && orderStatus != 13&&orderStatus != 15) url = 'afterSaleDetail'
// if (orderStatus > 5 && orderStatus != 14 && orderStatus != 13&&orderStatus != 15) url = 'afterSaleDetail'
wx
.
p
.
router
.
go
(
url
,
item
)
wx
.
p
.
router
.
go
(
url
,
{
orderCode
:
item
})
// wx.navigateTo({
// wx.navigateTo({
// url: '/packageMine/pages/order/detail/detail?orderCode=S2112081509592138'
// url: '/packageMine/pages/order/detail/detail?orderCode=S2112081509592138'
// })
// })
...
...
packageMine/pages/order/detail/detail.js
View file @
d7a0067
...
@@ -34,16 +34,11 @@ Page({
...
@@ -34,16 +34,11 @@ Page({
3
:
"已收货"
,
3
:
"已收货"
,
},
},
},
},
onRoute
(
orderCode
)
{
if
(
Object
.
keys
(
orderCode
).
length
!==
0
)
{
console
.
log
(
orderCode
);
this
.
getOrderDetail
(
orderCode
);
}
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
console
.
log
(
options
,
'======='
)
if
(
options
&&
options
.
orderCode
)
{
if
(
options
&&
options
.
orderCode
)
{
let
orderCode
=
options
.
orderCode
;
let
orderCode
=
options
.
orderCode
;
this
.
getOrderDetail
(
orderCode
);
this
.
getOrderDetail
(
orderCode
);
...
...
pages/Login/Login.wxss
View file @
d7a0067
...
@@ -107,7 +107,6 @@ page {}
...
@@ -107,7 +107,6 @@ page {}
border-color: #CCCED1 !important;
border-color: #CCCED1 !important;
color: #fff !important;
color: #fff !important;
box-shadow: none;
box-shadow: none;
}
}
.wx-auth-button[disabled]:not([type])::after {
.wx-auth-button[disabled]:not([type])::after {
...
...
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