Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
points-mall
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 082b7cba
authored
Sep 06, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
第一轮bug修复
1 parent
7bed1351
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
51 additions
and
21 deletions
components/GoodsAction/GoodsAction.js
components/GoodsAction/GoodsAction.wxml
components/Sku/index.js
components/Stepper/Stepper.wxml
components/Stepper/Stepper.wxss
packageIndex/pages/exchangeSuccess/index.js
packageIndex/pages/exchangeSuccess/index.scss
packageIndex/pages/exchangeSuccess/index.wxml
packageIndex/pages/goodsDetail/index.js
pages/Login/Login.js
pages/chooseMerchant/index.js
pages/tab/cart/index.scss
pages/tab/cart/index.wxml
pages/tab/index/index.js
pages/tab/mine/index.scss
components/GoodsAction/GoodsAction.js
View file @
082b7cb
...
...
@@ -48,7 +48,9 @@ Component({
cartApi
.
getCartList
(
para
).
then
(
res
=>
{
let
cartNum
=
0
res
?.
goodsList
?.
forEach
(
el
=>
{
cartNum
=
NP
.
plus
(
cartNum
,
el
.
sellQty
||
0
)
if
(
!
el
.
flag
)
{
cartNum
=
NP
.
plus
(
cartNum
,
el
.
sellQty
||
0
)
}
})
this
.
setData
({
cartNum
...
...
components/GoodsAction/GoodsAction.wxml
View file @
082b7cb
...
...
@@ -6,7 +6,9 @@
<view class="goods-action">
<view class="navigation-box">
<view class="item" wx:if="{{!hideShop}}" bindtap="jump">
<view v-if="{{true}}" class="goods-num">{{cartNum}}</view>
<view v-if="{{true}}" class="goods-num">
<text>{{cartNum}}</text>
</view>
<view class="sprite-icon" >
<glsx-image src="/index/goods-cart.png"></glsx-image>
</view>
...
...
components/Sku/index.js
View file @
082b7cb
...
...
@@ -47,7 +47,7 @@ Component({
}
let
defaultGoods
=
specificationDetailList
?.
specificationData
.
split
(
'&'
)
detailInfo
.
platformGlGoodsSpecificationList
?.
map
(
e
=>
{
defaultGoods
.
map
(
i
=>
{
defaultGoods
?
.
map
(
i
=>
{
let
[
key
,
value
]
=
i
.
split
(
'-'
)
if
(
key
==
e
.
specificationName
)
{
e
.
platformSpecificationValueList
.
map
(
c
=>
{
...
...
components/Stepper/Stepper.wxml
View file @
082b7cb
<view class="stepper-box">
<view class="minus count-box text-center {{count == min?'opacity':''}}" catchtap="change"></view>
<input class="num
count-box
text-center" type="number" catchinput="input" value="{{count}}" catchblur="blur" catchtap="tap" />
<input class="num text-center" type="number" catchinput="input" value="{{count}}" catchblur="blur" catchtap="tap" />
<view class="add count-box text-center {{count == max?'opacity':''}}" catchtap="change" data-add>
</view>
...
...
components/Stepper/Stepper.wxss
View file @
082b7cb
...
...
@@ -29,8 +29,14 @@
}
.stepper-box .num {
width: 59rpx;
width: 72rpx;
box-sizing: border-box;
padding: 0 4rpx;
border-radius: 8rpx;
font-size: 26rpx;
height: 48rpx;
background: #F0F0F0;
text-align: center;
}
.stepper-box .add {
...
...
packageIndex/pages/exchangeSuccess/index.js
View file @
082b7cb
...
...
@@ -30,7 +30,7 @@ Page({
let
{
count
}
=
this
.
data
if
(
count
==
0
)
{
clearInterval
(
this
.
timer
)
wx
.
p
.
router
.
reLaunch
(
'/packageMine/pages/order/index/index'
)
//
wx.p.router.reLaunch('/packageMine/pages/order/index/index')
return
}
this
.
setData
({
...
...
@@ -41,7 +41,7 @@ Page({
viewOrderDetail
()
{
clearInterval
(
this
.
timer
)
wx
.
p
.
router
.
reLaunch
(
'/packageMine/pages/order/index/index'
)
//
wx.p.router.reLaunch('/packageMine/pages/order/index/index')
},
/**
...
...
packageIndex/pages/exchangeSuccess/index.scss
View file @
082b7cb
...
...
@@ -12,7 +12,7 @@
.icon
{
width
:
136rpx
;
height
:
136rpx
;
margin
:
168rpx
0
48rpx
;
margin
:
0
0
48rpx
;
}
.title
{
font-size
:
40rpx
;
...
...
packageIndex/pages/exchangeSuccess/index.wxml
View file @
082b7cb
...
...
@@ -7,7 +7,7 @@
</view>
</view>
</navigation-bar>
<view class="icon">
<view class="icon"
style="margin-top: calc({{navHeight}}px + 168rpx);"
>
<glsx-image src="/status/success.png"></glsx-image>
</view>
<view class="title">兑换成功</view>
...
...
packageIndex/pages/goodsDetail/index.js
View file @
082b7cb
...
...
@@ -22,7 +22,8 @@ Page({
detailInfo
:
{},
eventFlag
:
false
,
addressList
:
[],
defaultAddress
:
{}
defaultAddress
:
{},
bannerIndex
:
0
},
appHide
()
{
wx
.
offAppHide
()
...
...
@@ -43,6 +44,11 @@ Page({
urls
})
},
changeBanner
(
e
)
{
this
.
setData
({
bannerIndex
:
e
.
detail
.
current
})
},
navbarReady
(
e
)
{
navBarHeight
=
e
.
detail
.
height
},
...
...
pages/Login/Login.js
View file @
082b7cb
...
...
@@ -259,7 +259,7 @@ Page({
if
(
!
loginData
.
phone
||
!
source
)
{
wx
.
p
.
sentry
.
reportParamError
(
'获取门店列表异常:staffPhone, channelSource'
,
{
...
loginData
,
channelSource
:
source
}
{
staffPhone
:
loginData
.
phone
,
channelSource
:
source
}
)
}
commonApi
.
getMerchantData
({
staffPhone
:
loginData
?.
phone
,
channelSource
:
source
}).
then
(
res
=>
{
...
...
@@ -275,7 +275,7 @@ Page({
if
(
!
source
||
!
merchantId
||
!
loginData
.
phone
)
{
wx
.
p
.
sentry
.
reportParamError
(
'门店选择异常:staffPhone, channelSource'
,
{
...
loginData
,
channelSource
:
source
,
merchantId
,
merchantName
}
{
channelSource
:
source
,
merchantId
,
merchantName
}
)
}
wx
.
p
.
storage
.
set
(
'userInfo'
,
{
...
...
pages/chooseMerchant/index.js
View file @
082b7cb
...
...
@@ -37,10 +37,10 @@ Page({
return
}
wx
.
p
.
isLogin
=
true
if
(
!
paramsData
.
phone
||
!
paramsData
.
channelSource
)
{
if
(
!
paramsData
.
loginData
?.
phone
||
!
paramsData
.
loginData
?
.
channelSource
)
{
wx
.
p
.
sentry
.
reportParamError
(
'门店选择异常:phone, channelSource'
,
paramsData
{
phone
:
paramsData
.
loginData
?.
phone
,
channelSource
:
paramsData
.
loginData
?.
channelSource
}
)
}
wx
.
p
.
storage
.
set
(
'userInfo'
,
{
...
paramsData
.
loginData
,
merchantId
:
obj
?.
merchantId
,
merchantName
:
obj
?.
merchantName
})
...
...
pages/tab/cart/index.scss
View file @
082b7cb
...
...
@@ -34,10 +34,11 @@ page {
margin-bottom
:
24rpx
;
background
:
#FFFFFF
;
border-radius
:
24rpx
;
padding-left
:
24
rpx
;
padding-left
:
32
rpx
;
}
.item-box.disabled
{
opacity
:
.7
;
padding-left
:
16rpx
;
}
.box
.item
{
width
:
100%
;
...
...
@@ -63,7 +64,7 @@ page {
}
.box
.item
.content
.icon
,
.box
.item
.content
.goods-info
.preview
{
margin-right
:
2
4
rpx
;
margin-right
:
2
0
rpx
;
}
.box
.item
.content
.goods-info
{
width
:
calc
(
100%
-
60rpx
);
...
...
@@ -100,6 +101,7 @@ page {
font-size
:
20rpx
;
text-align
:
center
;
line-height
:
32rpx
;
margin-right
:
12rpx
;
}
.box
.item
.content
.goods-info
.text
.price-box
.price
{
color
:
#FC5B32
;
...
...
@@ -166,10 +168,17 @@ page {
}
.goods-action
.total
.price
{
color
:
#FC5B32
;
font-size
:
40rpx
;
display
:
flex
;
max-width
:
220rpx
;
align-items
:
baseline
;
font-weight
:
700
;
.num
{
font-size
:
40rpx
;
font-weight
:
700
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
width
:
calc
(
100%
-
50rpx
);
}
}
.goods-action
.total
.price
text
{
font-size
:
24rpx
;
...
...
pages/tab/cart/index.wxml
View file @
082b7cb
...
...
@@ -63,10 +63,10 @@
</view>
<view class="total">合计:
<view class="price">
<text>积分</text>
{{sum||0}}
<text>积分</text>
<text class="num">{{sum||0}}</text>
</view>
</view>
<button class="btn text-center" bindtap="checkOut" disabled="{{count<1}}">结算({{count
||
0}})</button>
<button class="btn text-center" bindtap="checkOut" disabled="{{count<1}}">结算({{count
||
0}})</button>
</view>
</goods-action>
</block>
\ No newline at end of file
pages/tab/index/index.js
View file @
082b7cb
...
...
@@ -31,7 +31,7 @@ Page({
label
:
'200-300积分'
}],
subTab
:
[],
activeTab
:
''
,
activeTab
:
1
,
frontendCategoryId
:
''
,
goodsList
:
[],
count
:
1
...
...
pages/tab/mine/index.scss
View file @
082b7cb
...
...
@@ -133,6 +133,9 @@ page {
font-weight
:
500
;
font-size
:
32rpx
;
color
:
#0A0D14
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
flex-start
;
}
.user-info
.nickName
{
...
...
@@ -185,6 +188,8 @@ page {
padding
:
0
24rpx
;
display
:
flex
;
align-items
:
center
;
flex
:
0
1
auto
;
min-width
:
0
;
.name
{
max-width
:
280rpx
;
overflow
:
hidden
;
...
...
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