修改了选择

This commit is contained in:
luyuan 2020-09-11 19:46:19 +08:00
parent 6d3d176cd8
commit 391fda5abc
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -87,7 +87,7 @@
<view :class="{ active: cur == 1 }" @click="pushstyleB">骑手</view> <view :class="{ active: cur == 1 }" @click="pushstyleB">骑手</view>
<view :class="{ active: cur == 2 }" @click="pushstyleC">自提</view> <view :class="{ active: cur == 2 }" @click="pushstyleC">自提</view>
</view> </view>
<view v-if="cur != 2 && (pushid || selctcar)"> <view v-if="pushstyleBshow && (pushid || selctcar)" >
<view class="title">{{cur == 0 ? '快递单号':'骑手信息'}}</view> <view class="title">{{cur == 0 ? '快递单号':'骑手信息'}}</view>
<view class="value">{{ cur == 0 ? pushid ? companyidA.express_name + ": " + pushid : '' : selctcar ? selctcar.label : '' }}</view> <view class="value">{{ cur == 0 ? pushid ? companyidA.express_name + ": " + pushid : '' : selctcar ? selctcar.label : '' }}</view>
</view> </view>
@ -269,6 +269,7 @@ export default {
takeawayer_info: {}, // takeawayer_info: {}, //
mineBy_img: "", // mineBy_img: "", //
mineBy_text: "", // mineBy_text: "", //
pushstyleBshow: false
}; };
}, },
onLoad(option) { onLoad(option) {
@ -331,17 +332,25 @@ export default {
}, },
// //
pushstyleA() { pushstyleA() {
this.cur = 0;
if(this.cur != 0){
return ;
}
this.showcompany = true; this.showcompany = true;
}, },
// //
pushstyleB() { pushstyleB() {
this.cur = 1; if(this.cur != 1){
return ;
}
this.show = true; this.show = true;
}, },
// //
pushstyleC() { pushstyleC() {
this.cur = 2; if(this.cur != 2){
return ;
}
this.pushstyleBshow = true
}, },
// //
getcompanyinfo() { getcompanyinfo() {
@ -782,7 +791,7 @@ export default {
justify-content: space-around; justify-content: space-around;
> view { > view {
font-size: 30rpx; font-size: 30rpx;
color: rgba(0, 0, 51, 1); color: #999;
width: 30%; width: 30%;
height: 80rpx; height: 80rpx;
border: 1rpx solid rgba(236, 236, 236, 1); border: 1rpx solid rgba(236, 236, 236, 1);