Commit 082b7cba by zhangxw

第一轮bug修复

1 parent 7bed1351
......@@ -48,7 +48,9 @@ Component({
cartApi.getCartList(para).then(res => {
let cartNum = 0
res?.goodsList?.forEach(el => {
if (!el.flag) {
cartNum = NP.plus(cartNum, el.sellQty || 0)
}
})
this.setData({
cartNum
......
......@@ -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>
......
......@@ -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 => {
......
<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>
......
......@@ -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 {
......
......@@ -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')
},
/**
......
......@@ -12,7 +12,7 @@
.icon {
width: 136rpx;
height: 136rpx;
margin: 168rpx 0 48rpx;
margin: 0 0 48rpx;
}
.title {
font-size: 40rpx;
......
......@@ -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>
......
......@@ -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
},
......
......@@ -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', {
......
......@@ -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 })
......
......@@ -34,10 +34,11 @@ page {
margin-bottom: 24rpx;
background: #FFFFFF;
border-radius: 24rpx;
padding-left: 24rpx;
padding-left: 32rpx;
}
.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: 24rpx;
margin-right: 20rpx;
}
.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;
.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;
......
......@@ -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
......@@ -31,7 +31,7 @@ Page({
label: '200-300积分'
}],
subTab: [],
activeTab: '',
activeTab: 1,
frontendCategoryId: '',
goodsList: [],
count: 1
......
......@@ -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;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!