Commit fb15f2b0 by 高淑倩

购物车数量

parent c9332842
...@@ -25,7 +25,6 @@ Component({ ...@@ -25,7 +25,6 @@ Component({
baseImgUrl: app.globalData.imageUrl baseImgUrl: app.globalData.imageUrl
}) })
const { imageData } = this.data const { imageData } = this.data
console.log('imageData', imageData)
let currentTab = imageData let currentTab = imageData
currentTab.forEach(item => { currentTab.forEach(item => {
// 存在 row 处理数据 8 商品 9 分类 // 存在 row 处理数据 8 商品 9 分类
......
...@@ -99,7 +99,6 @@ wxService.page({ ...@@ -99,7 +99,6 @@ wxService.page({
let cartList = this.data.cartList let cartList = this.data.cartList
// let proNum = cartList[e.currentTarget.dataset.index].count // let proNum = cartList[e.currentTarget.dataset.index].count
let proNum = cartList[e].count let proNum = cartList[e].count
console.log('减少数量', proNum)
if (proNum > 1) { if (proNum > 1) {
proNum-- proNum--
} else { } else {
...@@ -115,7 +114,9 @@ wxService.page({ ...@@ -115,7 +114,9 @@ wxService.page({
cartList: cartList cartList: cartList
}, function () { }, function () {
this.setTotalFee() this.setTotalFee()
this.editOk(cartList[e]) //调用完成 console.log('减少', cartList[e])
this.inputProNumber(cartList[e]) // update
// this.editOk(cartList[e]) //调用完成
}) })
}, },
addNumChange(e) { addNumChange(e) {
...@@ -125,7 +126,6 @@ wxService.page({ ...@@ -125,7 +126,6 @@ wxService.page({
var cartList = this.data.cartList var cartList = this.data.cartList
// var proNum = cartList[e.currentTarget.dataset.index].count // var proNum = cartList[e.currentTarget.dataset.index].count
var proNum = cartList[e].count var proNum = cartList[e].count
console.log('增加数量',proNum)
// 判断库存 // 判断库存
if (proNum < 100) { if (proNum < 100) {
proNum++ proNum++
...@@ -142,7 +142,10 @@ wxService.page({ ...@@ -142,7 +142,10 @@ wxService.page({
cartList: cartList cartList: cartList
}, function () { }, function () {
this.setTotalFee() this.setTotalFee()
this.editOk(cartList[e]) //调用完成
console.log('add', cartList[e])
this.inputProNumber(cartList[e]) // update
// this.editOk(cartList[e]) // add调用完成
}) })
}, },
blurNumChange(e) { blurNumChange(e) {
...@@ -161,6 +164,7 @@ wxService.page({ ...@@ -161,6 +164,7 @@ wxService.page({
cartList: cartList cartList: cartList
}, function () { }, function () {
this.setTotalFee() this.setTotalFee()
console.log('blur', cartList[e.index])
this.inputProNumber(cartList[e.index]) //调用完成 this.inputProNumber(cartList[e.index]) //调用完成
}) })
...@@ -183,6 +187,7 @@ wxService.page({ ...@@ -183,6 +187,7 @@ wxService.page({
cartList: cartList cartList: cartList
}, function () { }, function () {
this.setTotalFee() this.setTotalFee()
console.log('input', cartList[e.index])
this.inputProNumber(cartList[e.index]) //调用完成 this.inputProNumber(cartList[e.index]) //调用完成
}) })
} }
...@@ -251,8 +256,6 @@ wxService.page({ ...@@ -251,8 +256,6 @@ wxService.page({
.router('/pages/confirmOrder/confirmOrder') .router('/pages/confirmOrder/confirmOrder')
.search(parmas) .search(parmas)
// let tradeDto = { // let tradeDto = {
// couponId: '', // couponId: '',
// trolleySku2Buy:JSON.stringify(trolleySku2Buy) // trolleySku2Buy:JSON.stringify(trolleySku2Buy)
......
...@@ -90,11 +90,11 @@ ...@@ -90,11 +90,11 @@
<view class="vip-left"> <view class="vip-left">
<view class="left-top"> <view class="left-top">
<image class="top-image" src="/assets/imgs/7_1_0/plus-icon.png" /> <image class="top-image" src="/assets/imgs/7_1_0/plus-icon.png" />
<text>现在勾选成为vip,立领200元礼包,文案文案 </text> <text>现在勾选成为vip,立领200元礼包</text>
</view> </view>
<view class="left-bottom"> <view class="left-bottom">
<text>vip可尊享N大权益</text> <text>vip可尊享9大权益</text>
<image class="bottom-image" src="/assets/imgs/7_1_0/explain.png" /> <!-- <image class="bottom-image" src="/assets/imgs/7_1_0/explain.png" /> -->
</view> </view>
</view> </view>
<view class="vip-right"> <view class="vip-right">
......
...@@ -17,10 +17,11 @@ ...@@ -17,10 +17,11 @@
<view class="btn-go-on" bindtap="goPayAgain" wx:if="{{status == 'F'}}">重新支付</view> <view class="btn-go-on" bindtap="goPayAgain" wx:if="{{status == 'F'}}">重新支付</view>
</view> </view>
</view> </view>
<view class="status-look df"> <view class="status-look df">
<view class="look-store">关注店铺公众号(自定义页面)</view> <official-account style="width:100%;height:168rpx;"></official-account>
<view class="look-btn">关注</view>
</view> </view>
<view class="status-vip df"> <view class="status-vip df">
<view class="vip-tips"> <view class="vip-tips">
<view class="tips-desc"> <view class="tips-desc">
...@@ -32,9 +33,9 @@ ...@@ -32,9 +33,9 @@
binderror="" binderror=""
bindload="" bindload=""
/> />
现在勾选成为vip,立领200元礼包,文案文案 现在勾选成为vip,立领200元礼包
</view> </view>
<view class="tips-notice">vip 可尊享n大权益</view> <view class="tips-notice">vip 可尊享9大权益</view>
</view> </view>
<view class="vip-go-to">去开卡</view> <view class="vip-go-to">去开卡</view>
</view> </view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment