|
@@ -15,9 +15,9 @@
|
|
<view class="tm-cartCellListFood-r fulled ">
|
|
<view class="tm-cartCellListFood-r fulled ">
|
|
<view class="pl-15">
|
|
<view class="pl-15">
|
|
<view class="title text-size-s text-weight-b text-overflow-2" style="line-height: 32rpx;"
|
|
<view class="title text-size-s text-weight-b text-overflow-2" style="line-height: 32rpx;"
|
|
- :class="[black_tmeme ? 'bk' : '',]" >
|
|
|
|
|
|
+ :class="[black_tmeme ? 'bk' : '',]">
|
|
{{mdata[keyMap['title']]}}
|
|
{{mdata[keyMap['title']]}}
|
|
- <image v-if="typeclick==4" class="shanchu" src="/static/img/94.png" @click="shanchu(mdata)" ></image>
|
|
|
|
|
|
+ <image v-if="typeclick==4" class="shanchu" src="/static/img/94.png" @click="shanchu(mdata)"></image>
|
|
</view>
|
|
</view>
|
|
<view style="min-height: 64rpx;">
|
|
<view style="min-height: 64rpx;">
|
|
<view v-if="!dense&&mdata[keyMap['label']]"
|
|
<view v-if="!dense&&mdata[keyMap['label']]"
|
|
@@ -34,7 +34,8 @@
|
|
</view>
|
|
</view>
|
|
<view class="tm-cartCellListFood-price flex-between">
|
|
<view class="tm-cartCellListFood-price flex-between">
|
|
<view>
|
|
<view>
|
|
- <text class="text-size-xs text-red" v-if="typeclick!=7 && typeclick!=6 && typeclick!=8">¥</text>
|
|
|
|
|
|
+ <text class="text-size-xs text-red"
|
|
|
|
+ v-if="typeclick!=7 && typeclick!=6 && typeclick!=8">¥</text>
|
|
<text v-if="typeclick!=7 && typeclick!=6 && typeclick!=8"
|
|
<text v-if="typeclick!=7 && typeclick!=6 && typeclick!=8"
|
|
class="text-size-n text-red text-weight-b px-5">{{mdata[keyMap['price']]}}</text>
|
|
class="text-size-n text-red text-weight-b px-5">{{mdata[keyMap['price']]}}</text>
|
|
<text v-if="mdata[keyMap['unit']]"
|
|
<text v-if="mdata[keyMap['unit']]"
|
|
@@ -46,11 +47,11 @@
|
|
<image class="" src="/static/img/86.png"></image>
|
|
<image class="" src="/static/img/86.png"></image>
|
|
</view>
|
|
</view>
|
|
<view class="flex" v-if="typeclick==2">
|
|
<view class="flex" v-if="typeclick==2">
|
|
- <block v-if="cNum>0">
|
|
|
|
- <view :style="{
|
|
|
|
|
|
+ <block>
|
|
|
|
+ <view v-if="cNum>1" :style="{
|
|
width:`${actionSize}rpx`,
|
|
width:`${actionSize}rpx`,
|
|
height:`${actionSize}rpx`,
|
|
height:`${actionSize}rpx`,
|
|
- }" :class="[color,black_tmeme ? 'bk' : '',]" @click="jian"
|
|
|
|
|
|
+ }" :class="[color,black_tmeme ? 'bk' : '',]" @click.stop="jian"
|
|
class="tm-cartCellListFood-actions rounded flex-center outlined">
|
|
class="tm-cartCellListFood-actions rounded flex-center outlined">
|
|
<text class="iconfont icon-minus text-size-xxs"></text>
|
|
<text class="iconfont icon-minus text-size-xxs"></text>
|
|
</view>
|
|
</view>
|
|
@@ -59,7 +60,7 @@
|
|
<view :style="{
|
|
<view :style="{
|
|
width:`${actionSize}rpx`,
|
|
width:`${actionSize}rpx`,
|
|
height:`${actionSize}rpx`,
|
|
height:`${actionSize}rpx`,
|
|
- }" :class="[color,`border-${color}-a-1`,black_tmeme ? 'bk' : '',]" @click="jia"
|
|
|
|
|
|
+ }" :class="[color,`border-${color}-a-1`,black_tmeme ? 'bk' : '',]" @click.stop="jia"
|
|
class="tm-cartCellListFood-actions rounded flex-center ">
|
|
class="tm-cartCellListFood-actions rounded flex-center ">
|
|
<text class="iconfont icon-plus text-size-xs"></text>
|
|
<text class="iconfont icon-plus text-size-xs"></text>
|
|
</view>
|
|
</view>
|
|
@@ -72,8 +73,9 @@
|
|
<view class="fukuan" @click="goPay(mdata,0)">去付款</view>
|
|
<view class="fukuan" @click="goPay(mdata,0)">去付款</view>
|
|
</view>
|
|
</view>
|
|
<view class="flex" v-if="mdata[keyMap['orderStatus']]==1 ||mdata[keyMap['orderStatus']]==2">
|
|
<view class="flex" v-if="mdata[keyMap['orderStatus']]==1 ||mdata[keyMap['orderStatus']]==2">
|
|
- <view class="fukuan mr-10" @click="goBuy(mdata,1)">再次购买</view>
|
|
|
|
- <view class="fukuan" @click="goSure(mdata,1)" v-if="mdata[keyMap['orderStatus']]==1">确认收货</view>
|
|
|
|
|
|
+ <view class="fukuan mr-10" @click="goBuy(mdata,1)">再次购买</view>
|
|
|
|
+ <view class="fukuan" @click="goSure(mdata,1)" v-if="mdata[keyMap['orderStatus']]==1">确认收货
|
|
|
|
+ </view>
|
|
<view class="fukuan" @click="goEval(mdata,2)"
|
|
<view class="fukuan" @click="goEval(mdata,2)"
|
|
v-if="mdata[keyMap['orderStatus']]==2 && mdata[keyMap['isEval']]== 0 ">去评价</view>
|
|
v-if="mdata[keyMap['orderStatus']]==2 && mdata[keyMap['isEval']]== 0 ">去评价</view>
|
|
<!-- <view class="fukuan" @click="goEvalList(mdata,2)"
|
|
<!-- <view class="fukuan" @click="goEvalList(mdata,2)"
|
|
@@ -91,7 +93,7 @@
|
|
<view style="position: absolute;right: 20px;" v-if="typeclick==7">
|
|
<view style="position: absolute;right: 20px;" v-if="typeclick==7">
|
|
<view class="genghuan mr-10" @click="genghuan(mdata,1)">更换</view>
|
|
<view class="genghuan mr-10" @click="genghuan(mdata,1)">更换</view>
|
|
</view>
|
|
</view>
|
|
- <view style="position: absolute;right: 20px;" v-if="typeclick==8">
|
|
|
|
|
|
+ <view style="position: absolute;right: 20px;" v-if="typeclick==8">
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -156,7 +158,7 @@
|
|
buy: 'buy',
|
|
buy: 'buy',
|
|
size: 'size',
|
|
size: 'size',
|
|
orderStatus: 'orderStatus',
|
|
orderStatus: 'orderStatus',
|
|
- isEval:'isEval'
|
|
|
|
|
|
+ isEval: 'isEval'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -234,7 +236,7 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- cNum: 0,
|
|
|
|
|
|
+ cNum: 1,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -242,46 +244,46 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 点击详情
|
|
// 点击详情
|
|
- goXiangQing(data){
|
|
|
|
- console.log(data,'详情数据');
|
|
|
|
|
|
+ goXiangQing(data) {
|
|
|
|
+ console.log(data, '详情数据');
|
|
this.$emit('goXiangQing', {
|
|
this.$emit('goXiangQing', {
|
|
data: data
|
|
data: data
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 删除订单
|
|
// 删除订单
|
|
- shanchu(data){
|
|
|
|
- console.log(data,'3');
|
|
|
|
|
|
+ shanchu(data) {
|
|
|
|
+ console.log(data, '3');
|
|
this.$emit('shanchu', {
|
|
this.$emit('shanchu', {
|
|
data: data
|
|
data: data
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 付款
|
|
// 付款
|
|
- goPay(data,type){
|
|
|
|
|
|
+ goPay(data, type) {
|
|
console.log(data);
|
|
console.log(data);
|
|
},
|
|
},
|
|
// 评价
|
|
// 评价
|
|
- goEval(data,type){
|
|
|
|
- console.log(data,type);
|
|
|
|
|
|
+ goEval(data, type) {
|
|
|
|
+ console.log(data, type);
|
|
this.$emit('Eval', {
|
|
this.$emit('Eval', {
|
|
data: data,
|
|
data: data,
|
|
type: 2
|
|
type: 2
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- goEvalList(data,type){},
|
|
|
|
|
|
+ goEvalList(data, type) {},
|
|
// 确认收货
|
|
// 确认收货
|
|
- goSure(data,type){
|
|
|
|
|
|
+ goSure(data, type) {
|
|
console.log(data);
|
|
console.log(data);
|
|
this.$emit('sure', {
|
|
this.$emit('sure', {
|
|
data: data,
|
|
data: data,
|
|
type: 1
|
|
type: 1
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
//购买
|
|
//购买
|
|
- goBuy(data,type){
|
|
|
|
|
|
+ goBuy(data, type) {
|
|
console.log(data);
|
|
console.log(data);
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
jiaru(data) {
|
|
jiaru(data) {
|
|
this.$emit('jiaruFun', {
|
|
this.$emit('jiaruFun', {
|
|
data: data,
|
|
data: data,
|
|
@@ -307,18 +309,27 @@
|
|
type: 1
|
|
type: 1
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- jian() {
|
|
|
|
|
|
+ jian(data) {
|
|
const buyNum = this.cNum;
|
|
const buyNum = this.cNum;
|
|
if (buyNum <= 0) {
|
|
if (buyNum <= 0) {
|
|
- this.cart_num = 0;
|
|
|
|
|
|
+ this.cart_num = 1;
|
|
return
|
|
return
|
|
|
|
+ } else {
|
|
|
|
+ this.cart_num = buyNum - 1
|
|
}
|
|
}
|
|
- this.cart_num = buyNum - 1
|
|
|
|
|
|
+ this.$emit('jian', {
|
|
|
|
+ data: data,
|
|
|
|
+ type: 2
|
|
|
|
+ });
|
|
},
|
|
},
|
|
- jia() {
|
|
|
|
|
|
+ jia(data) {
|
|
|
|
+ this.$emit('jian', {
|
|
|
|
+ data: data,
|
|
|
|
+ type: 2
|
|
|
|
+ });
|
|
const buyNum = this.cNum;
|
|
const buyNum = this.cNum;
|
|
this.cart_num = parseInt(buyNum) + 1
|
|
this.cart_num = parseInt(buyNum) + 1
|
|
- },
|
|
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|