|
|
@@ -27,7 +27,7 @@
|
|
|
</view>
|
|
|
<view style="padding:0 0upx 0 20upx;" >
|
|
|
<button class="admin-button-com middle blue" v-if="ghsInfo.presell && ghsInfo.presell == 1" style="background-color:#09C567;border:1upx solid #09C567;" @click="aheadCg(ghsInfo)">预订花材</button>
|
|
|
- <!-- <button class="admin-button-com middle blue" @click="delMemory()" v-else>清空已选</button> -->
|
|
|
+ <button class="admin-button-com middle blue" v-else @click="delMemory()" style="background-color: red;border:1upx solid red;">清空购物车</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -136,7 +136,7 @@
|
|
|
<view style="position: fixed;bottom: 108upx;width:100vw;background-color:white;" @click.stop="">
|
|
|
<view class="commodity-view">
|
|
|
<view class="summary-bar">
|
|
|
- <button class="admin-button-com blue middle" @click.stop="delMemory()">清空花材</button>
|
|
|
+ <button class="admin-button-com blue middle" @click.stop="delMemory()" style="background-color: red;border:1upx solid red;">清空购物车</button>
|
|
|
</view>
|
|
|
<view class="commodity-list">
|
|
|
<view class="commodity-item" v-for="(item, index) in selectList" :key="index">
|
|
|
@@ -432,8 +432,10 @@ export default {
|
|
|
this.pageTo({url: '/pagesPurchase/bookProduct?id='+id,type:2})
|
|
|
},
|
|
|
delMemory(){
|
|
|
- this.cartItemShow = false
|
|
|
- this.removeMemory(this.option.id)
|
|
|
+ this.$util.confirmModal({content:'确认要清空购物车?'},() => {
|
|
|
+ this.cartItemShow = false
|
|
|
+ this.removeMemory(this.option.id)
|
|
|
+ })
|
|
|
},
|
|
|
delItem(item) {
|
|
|
if(item.variety == 0){
|