地址修改 购物车修改
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
<template>
|
||||
<view>
|
||||
<z-nav-bar backState="2000" title="购物车">
|
||||
<view class="curseSet" slot="right" @click="manaCart = !manaCart" style="margin-right: 10px;">
|
||||
<!-- <view class="curseSet" slot="right" @click="manaCart = !manaCart" style="margin-right: 10px;">
|
||||
<text v-show="!manaCart">管理</text>
|
||||
<text v-show="manaCart">完成</text>
|
||||
</view>
|
||||
</view> -->
|
||||
</z-nav-bar>
|
||||
</z-nav-bar>
|
||||
<view class="shopCarContent">
|
||||
<scroll-view scroll-y="true">
|
||||
<view class="cartItem" v-for="(item,index) in cartList" :key="index">
|
||||
<view class="select" v-show="manaCart">
|
||||
<view class="select" >
|
||||
<checkbox :checked="item.checked" @click="checkboxGroupChange(index,item)"
|
||||
class="round checkedItem" />
|
||||
</view>
|
||||
@@ -22,7 +22,7 @@
|
||||
<text>{{item.productName}}</text>
|
||||
</view>
|
||||
<view class="itemPrice">
|
||||
<text v-if="item.activityPrice && item.activityPrice > 0">¥{{item.activityPrice*item.productAmount}}</text>
|
||||
<text v-if="item.activityPrice && item.activityPrice > 0">¥-{{item.activityPrice*item.productAmount}}</text>
|
||||
<text v-else>¥{{item.price*item.productAmount}}</text>
|
||||
<u-number-box v-model="item.productAmount" @change="valChange($event,item)" :input-width="50"
|
||||
:input-height="20" :min="1" :max="item.productStock" integer @overlimit='overlimit'></u-number-box>
|
||||
@@ -125,7 +125,7 @@
|
||||
// }
|
||||
this.isCartDelShow = this.all
|
||||
this.total()
|
||||
this.manaCart = this.all
|
||||
// this.manaCart = this.all
|
||||
} else {
|
||||
this.all = false
|
||||
|
||||
@@ -230,7 +230,7 @@
|
||||
this.totalPrice = 0
|
||||
this.getCartList()
|
||||
uni.hideLoading()
|
||||
this.manaCart = false
|
||||
// this.manaCart = false
|
||||
})
|
||||
} else {
|
||||
console.log('cancel') //点击取消之后执行的代码
|
||||
|
||||
Reference in New Issue
Block a user