|
@@ -125,7 +125,7 @@
|
|
|
</view>
|
|
|
<view class="normal" @click.stop="stop(good)" v-if="good.cargoOwnerStatus=='未装车'">终止</view>
|
|
|
<!-- <view class="stop active" @click.stop="stop(good)">终止</view> -->
|
|
|
-
|
|
|
+
|
|
|
<!-- confirmLoading(good,3) -->
|
|
|
<view class="start normal" @click.stop="toDetail(good.id)"
|
|
|
v-if="good.cargoOwnerStatus=='待确认装车'">确认装车</view>
|
|
@@ -166,8 +166,8 @@
|
|
|
</view>
|
|
|
</view> -->
|
|
|
<u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :confirmText='confirmText'
|
|
|
- :closeOnClickOverlay='true' :showCancelButton='true' @confirm="confirmClick" @close="cancelClick"
|
|
|
- @cancel="cancelClick" class="modal">
|
|
|
+ :closeOnClickOverlay='true' :showCancelButton='showCancelButton' @confirm="confirmClick"
|
|
|
+ @close="cancelClick" @cancel="cancelClick" class="modal">
|
|
|
<u-radio-group v-model="radiovalue1" placement="" v-if='isShowTerminationReason' class='row'>
|
|
|
<u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
|
|
|
:label="item.name" :name="item.name" @change="radioChange">
|
|
@@ -195,6 +195,8 @@
|
|
|
mixins: [MescrollMixin], // 使用mixin
|
|
|
data() {
|
|
|
return {
|
|
|
+ confirmText: '',
|
|
|
+ showCancelButton: true,
|
|
|
type: null,
|
|
|
objData: {},
|
|
|
showMenu: false,
|
|
@@ -292,10 +294,24 @@
|
|
|
// this.getLngLat();
|
|
|
//#endif
|
|
|
},
|
|
|
- onLoad() {
|
|
|
- // let _isHave = this.$utils.getRoles('aaa')
|
|
|
- // console.log(_isHave)
|
|
|
+ async onLoad() {
|
|
|
that = this
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ let _status = await that.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
|
|
|
+ phone: this.userInfo.phone,
|
|
|
+ }).then(res => {
|
|
|
+ return res.data.authenticationStatus
|
|
|
+ })
|
|
|
+ if (_status == '已禁用') {
|
|
|
+ this.isShowAlert = true
|
|
|
+ this.alertTitle = '账号审核中'
|
|
|
+ this.confirmText = '退出APP'
|
|
|
+ this.showCancelButton = false
|
|
|
+ } else {
|
|
|
+ console.log(1231233212332312312213)
|
|
|
+ }
|
|
|
+ // #endif
|
|
|
+
|
|
|
},
|
|
|
onShow() {
|
|
|
this.upCallback({
|
|
@@ -401,7 +417,7 @@
|
|
|
} else if (type == 4) {
|
|
|
this.alertTitle = '确认卸车?'
|
|
|
this.confirmText = '确定'
|
|
|
- }
|
|
|
+ }
|
|
|
this.isShowAlert = true
|
|
|
// uni.$u.route('/pages/order/confirmLoading', item);
|
|
|
},
|
|
@@ -435,6 +451,16 @@
|
|
|
this.isShowAlert = true
|
|
|
},
|
|
|
confirmClick() {
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ if (this.alertTitle = '账号审核中') {
|
|
|
+ if (uni.getSystemInfoSync().platform == 'ios') {
|
|
|
+ plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
|
|
|
+ } else if (uni.getSystemInfoSync().platform == 'android') {
|
|
|
+ plus.runtime.quit();
|
|
|
+ }
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // #endif
|
|
|
that.isShowAlert = false
|
|
|
if (this.type == 1 || this.type == 2) {
|
|
|
let _title = ''
|
|
@@ -473,14 +499,14 @@
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|
|
|
});
|
|
|
- }else if (this.type == 3 || this.type == 4){
|
|
|
- let _flag=''
|
|
|
- if (this.type==3) _flag=1
|
|
|
- if (this.type==4) _flag=2
|
|
|
+ } else if (this.type == 3 || this.type == 4) {
|
|
|
+ let _flag = ''
|
|
|
+ if (this.type == 3) _flag = 1
|
|
|
+ if (this.type == 4) _flag = 2
|
|
|
this.$request.baseRequest('post', '/carrierInfo/cargoOwnerLoadingAdd', {
|
|
|
id: this.objData.id,
|
|
|
loadingFlag: _flag,
|
|
|
- flag:1
|
|
|
+ flag: 1
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$refs.uToast.show({
|
|
@@ -493,14 +519,13 @@
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|
|
|
});
|
|
|
- }
|
|
|
- else {
|
|
|
+ } else {
|
|
|
this.$request.baseRequest('post', '/orderInfo/api/end', {
|
|
|
id: this.id,
|
|
|
terminator: 2,
|
|
@@ -876,7 +901,7 @@
|
|
|
|
|
|
.tab-content {
|
|
|
position: relative;
|
|
|
- padding-right: 100rpx;
|
|
|
+ padding-right: 100rpx;
|
|
|
}
|
|
|
|
|
|
.right-btn {
|
|
@@ -899,7 +924,7 @@
|
|
|
.tabs {
|
|
|
// background: red;
|
|
|
margin-top: 20rpx;
|
|
|
- overflow-x:scroll ;
|
|
|
+ overflow-x: scroll;
|
|
|
}
|
|
|
|
|
|
/deep/.u-transition {
|
|
@@ -942,8 +967,9 @@
|
|
|
z-index: 99;
|
|
|
top: 260rpx;
|
|
|
}
|
|
|
- .look-map{
|
|
|
- background:#2772FB;
|
|
|
+
|
|
|
+ .look-map {
|
|
|
+ background: #2772FB;
|
|
|
color: white;
|
|
|
}
|
|
|
</style>
|