Commit 082b7cba by zhangxw

第一轮bug修复

1 parent 7bed1351
...@@ -48,7 +48,9 @@ Component({ ...@@ -48,7 +48,9 @@ Component({
cartApi.getCartList(para).then(res => { cartApi.getCartList(para).then(res => {
let cartNum = 0 let cartNum = 0
res?.goodsList?.forEach(el => { res?.goodsList?.forEach(el => {
cartNum = NP.plus(cartNum, el.sellQty || 0) if (!el.flag) {
cartNum = NP.plus(cartNum, el.sellQty || 0)
}
}) })
this.setData({ this.setData({
cartNum cartNum
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
<view class="goods-action"> <view class="goods-action">
<view class="navigation-box"> <view class="navigation-box">
<view class="item" wx:if="{{!hideShop}}" bindtap="jump"> <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" > <view class="sprite-icon" >
<glsx-image src="/index/goods-cart.png"></glsx-image> <glsx-image src="/index/goods-cart.png"></glsx-image>
</view> </view>
......
...@@ -47,7 +47,7 @@ Component({ ...@@ -47,7 +47,7 @@ Component({
} }
let defaultGoods = specificationDetailList?.specificationData.split('&') let defaultGoods = specificationDetailList?.specificationData.split('&')
detailInfo.platformGlGoodsSpecificationList?.map(e => { detailInfo.platformGlGoodsSpecificationList?.map(e => {
defaultGoods.map(i => { defaultGoods?.map(i => {
let [key, value] = i.split('-') let [key, value] = i.split('-')
if (key == e.specificationName) { if (key == e.specificationName) {
e.platformSpecificationValueList.map(c => { e.platformSpecificationValueList.map(c => {
......
<view class="stepper-box"> <view class="stepper-box">
<view class="minus count-box text-center {{count == min?'opacity':''}}" catchtap="change"></view> <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 class="add count-box text-center {{count == max?'opacity':''}}" catchtap="change" data-add>
</view> </view>
......
...@@ -29,8 +29,14 @@ ...@@ -29,8 +29,14 @@
} }
.stepper-box .num { .stepper-box .num {
width: 59rpx; width: 72rpx;
box-sizing: border-box;
padding: 0 4rpx;
border-radius: 8rpx; border-radius: 8rpx;
font-size: 26rpx;
height: 48rpx;
background: #F0F0F0;
text-align: center;
} }
.stepper-box .add { .stepper-box .add {
......
...@@ -30,7 +30,7 @@ Page({ ...@@ -30,7 +30,7 @@ Page({
let { count } = this.data let { count } = this.data
if (count == 0) { if (count == 0) {
clearInterval(this.timer) clearInterval(this.timer)
wx.p.router.reLaunch('/packageMine/pages/order/index/index') // wx.p.router.reLaunch('/packageMine/pages/order/index/index')
return return
} }
this.setData({ this.setData({
...@@ -41,7 +41,7 @@ Page({ ...@@ -41,7 +41,7 @@ Page({
viewOrderDetail() { viewOrderDetail() {
clearInterval(this.timer) 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 @@ ...@@ -12,7 +12,7 @@
.icon { .icon {
width: 136rpx; width: 136rpx;
height: 136rpx; height: 136rpx;
margin: 168rpx 0 48rpx; margin: 0 0 48rpx;
} }
.title { .title {
font-size: 40rpx; font-size: 40rpx;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</view> </view>
</view> </view>
</navigation-bar> </navigation-bar>
<view class="icon"> <view class="icon" style="margin-top: calc({{navHeight}}px + 168rpx);">
<glsx-image src="/status/success.png"></glsx-image> <glsx-image src="/status/success.png"></glsx-image>
</view> </view>
<view class="title">兑换成功</view> <view class="title">兑换成功</view>
......
...@@ -22,7 +22,8 @@ Page({ ...@@ -22,7 +22,8 @@ Page({
detailInfo: {}, detailInfo: {},
eventFlag: false, eventFlag: false,
addressList: [], addressList: [],
defaultAddress: {} defaultAddress: {},
bannerIndex: 0
}, },
appHide() { appHide() {
wx.offAppHide() wx.offAppHide()
...@@ -43,6 +44,11 @@ Page({ ...@@ -43,6 +44,11 @@ Page({
urls urls
}) })
}, },
changeBanner(e) {
this.setData({
bannerIndex: e.detail.current
})
},
navbarReady(e) { navbarReady(e) {
navBarHeight = e.detail.height navBarHeight = e.detail.height
}, },
......
...@@ -259,7 +259,7 @@ Page({ ...@@ -259,7 +259,7 @@ Page({
if (!loginData.phone || !source) { if (!loginData.phone || !source) {
wx.p.sentry.reportParamError( wx.p.sentry.reportParamError(
'获取门店列表异常:staffPhone, channelSource', '获取门店列表异常:staffPhone, channelSource',
{...loginData, channelSource: source} {staffPhone: loginData.phone, channelSource: source}
) )
} }
commonApi.getMerchantData({staffPhone: loginData?.phone, channelSource: source}).then(res => { commonApi.getMerchantData({staffPhone: loginData?.phone, channelSource: source}).then(res => {
...@@ -275,7 +275,7 @@ Page({ ...@@ -275,7 +275,7 @@ Page({
if (!source || !merchantId || !loginData.phone) { if (!source || !merchantId || !loginData.phone) {
wx.p.sentry.reportParamError( wx.p.sentry.reportParamError(
'门店选择异常:staffPhone, channelSource', '门店选择异常:staffPhone, channelSource',
{...loginData, channelSource: source, merchantId, merchantName} {channelSource: source, merchantId, merchantName}
) )
} }
wx.p.storage.set('userInfo', { wx.p.storage.set('userInfo', {
......
...@@ -37,10 +37,10 @@ Page({ ...@@ -37,10 +37,10 @@ Page({
return return
} }
wx.p.isLogin = true wx.p.isLogin = true
if (!paramsData.phone || !paramsData.channelSource) { if (!paramsData.loginData?.phone || !paramsData.loginData?.channelSource) {
wx.p.sentry.reportParamError( wx.p.sentry.reportParamError(
'门店选择异常:phone, channelSource', '门店选择异常:phone, channelSource',
paramsData {phone: paramsData.loginData?.phone, channelSource: paramsData.loginData?.channelSource}
) )
} }
wx.p.storage.set('userInfo', { ...paramsData.loginData, merchantId: obj?.merchantId, merchantName: obj?.merchantName }) wx.p.storage.set('userInfo', { ...paramsData.loginData, merchantId: obj?.merchantId, merchantName: obj?.merchantName })
......
...@@ -34,10 +34,11 @@ page { ...@@ -34,10 +34,11 @@ page {
margin-bottom: 24rpx; margin-bottom: 24rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 24rpx; border-radius: 24rpx;
padding-left: 24rpx; padding-left: 32rpx;
} }
.item-box.disabled { .item-box.disabled {
opacity: .7; opacity: .7;
padding-left: 16rpx;
} }
.box .item { .box .item {
width: 100%; width: 100%;
...@@ -63,7 +64,7 @@ page { ...@@ -63,7 +64,7 @@ page {
} }
.box .item .content .icon, .box .item .content .icon,
.box .item .content .goods-info .preview { .box .item .content .goods-info .preview {
margin-right: 24rpx; margin-right: 20rpx;
} }
.box .item .content .goods-info { .box .item .content .goods-info {
width: calc(100% - 60rpx); width: calc(100% - 60rpx);
...@@ -100,6 +101,7 @@ page { ...@@ -100,6 +101,7 @@ page {
font-size: 20rpx; font-size: 20rpx;
text-align: center; text-align: center;
line-height: 32rpx; line-height: 32rpx;
margin-right: 12rpx;
} }
.box .item .content .goods-info .text .price-box .price { .box .item .content .goods-info .text .price-box .price {
color: #FC5B32; color: #FC5B32;
...@@ -166,10 +168,17 @@ page { ...@@ -166,10 +168,17 @@ page {
} }
.goods-action .total .price { .goods-action .total .price {
color: #FC5B32; color: #FC5B32;
font-size: 40rpx;
display: flex; display: flex;
max-width: 220rpx;
align-items: baseline; 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 { .goods-action .total .price text {
font-size: 24rpx; font-size: 24rpx;
......
...@@ -63,10 +63,10 @@ ...@@ -63,10 +63,10 @@
</view> </view>
<view class="total">合计: <view class="total">合计:
<view class="price"> <view class="price">
<text>积分</text>{{sum||0}} <text>积分</text><text class="num">{{sum||0}}</text>
</view> </view>
</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> </view>
</goods-action> </goods-action>
</block> </block>
\ No newline at end of file \ No newline at end of file
...@@ -31,7 +31,7 @@ Page({ ...@@ -31,7 +31,7 @@ Page({
label: '200-300积分' label: '200-300积分'
}], }],
subTab: [], subTab: [],
activeTab: '', activeTab: 1,
frontendCategoryId: '', frontendCategoryId: '',
goodsList: [], goodsList: [],
count: 1 count: 1
......
...@@ -133,6 +133,9 @@ page { ...@@ -133,6 +133,9 @@ page {
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;
color: #0A0D14; color: #0A0D14;
display: flex;
flex-direction: column;
align-items: flex-start;
} }
.user-info .nickName { .user-info .nickName {
...@@ -185,6 +188,8 @@ page { ...@@ -185,6 +188,8 @@ page {
padding: 0 24rpx; padding: 0 24rpx;
display: flex; display: flex;
align-items: center; align-items: center;
flex: 0 1 auto;
min-width: 0;
.name { .name {
max-width: 280rpx; max-width: 280rpx;
overflow: hidden; overflow: hidden;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!