|
@@ -333,36 +333,49 @@
|
|
this.goToRecord()
|
|
this.goToRecord()
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
|
|
+ _this = this
|
|
|
|
+ // #ifdef APP-PLUS
|
|
|
|
+ // let _status = this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
|
|
|
|
+ // phone: this.userInfo.phone
|
|
|
|
+ // }).then(res => {
|
|
|
|
+ // uni.setStorageSync("firstAuthentication",res.data)
|
|
|
|
+ // return res.data.authenticationStatus
|
|
|
|
+ // })
|
|
|
|
+ // if (_status == '已禁用') {
|
|
|
|
+ // this.isShowAlert = true
|
|
|
|
+ // this.alertTitle = '账号审核中'
|
|
|
|
+ // this.confirmText = '退出APP'
|
|
|
|
+ // this.showCancelButton = false
|
|
|
|
+ // return
|
|
|
|
+ // } else {
|
|
|
|
+ // }
|
|
|
|
+ // #endif
|
|
if (!this.hasLogin) {
|
|
if (!this.hasLogin) {
|
|
uni.$u.route('/pages/public/login');
|
|
uni.$u.route('/pages/public/login');
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (uni.getStorageSync('firstAuthentication').authenticationStatus == '已认证') {
|
|
|
|
- uni.$u.route('/pages/components/empty/index');
|
|
|
|
- } else if (uni.getStorageSync('firstAuthentication').authenticationStatus == '审核中') {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '身份信息审核中'
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- this.alertTitle = '身份信息未认证,去认证?'
|
|
|
|
- this.showCancelButton = false
|
|
|
|
- this.isShowAlert = true
|
|
|
|
- // uni.showLoading({
|
|
|
|
- // title: '请重新提交身份信息',
|
|
|
|
- // complete() {
|
|
|
|
- // uni.switchTab({
|
|
|
|
- // url:'/pages/mine/index'
|
|
|
|
-
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- }
|
|
|
|
|
|
+ this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
|
|
|
|
+ phone: this.userInfo.phone
|
|
|
|
+ }).then(res => {
|
|
|
|
+ uni.setStorageSync("firstAuthentication", res.data)
|
|
|
|
+ let _obj = res.data
|
|
|
|
+ if (_obj.authenticationStatus == '已认证') {
|
|
|
|
+ uni.$u.route('/pages/components/empty/index');
|
|
|
|
+ } else if (_obj.authenticationStatus == '审核中') {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '身份信息审核中'
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ this.alertTitle = '身份信息未认证,去认证?'
|
|
|
|
+ this.showCancelButton = false
|
|
|
|
+ this.isShowAlert = true
|
|
|
|
+ }
|
|
|
|
+ })
|
|
this.validityPeriod = this.$helper.makeValidityPeriod(0, '随时')
|
|
this.validityPeriod = this.$helper.makeValidityPeriod(0, '随时')
|
|
this.validityPeriodcq = this.$helper.makeValidityPeriod(0, '长期')
|
|
this.validityPeriodcq = this.$helper.makeValidityPeriod(0, '长期')
|
|
let _faddress = uni.getStorageSync('storage_faddress');
|
|
let _faddress = uni.getStorageSync('storage_faddress');
|
|
let _saddress = uni.getStorageSync('storage_saddress');
|
|
let _saddress = uni.getStorageSync('storage_saddress');
|
|
if (_faddress) {
|
|
if (_faddress) {
|
|
-
|
|
|
|
this.dataObj.sendCity = _faddress.city
|
|
this.dataObj.sendCity = _faddress.city
|
|
this.dataObj.sendArea = _faddress.area
|
|
this.dataObj.sendArea = _faddress.area
|
|
this.dataObj.sendPrivate = _faddress.province
|
|
this.dataObj.sendPrivate = _faddress.province
|
|
@@ -398,21 +411,7 @@
|
|
this.getSFList()
|
|
this.getSFList()
|
|
},
|
|
},
|
|
async onLoad() {
|
|
async onLoad() {
|
|
- _this = this
|
|
|
|
- // #ifdef APP-PLUS
|
|
|
|
- let _status = await this.$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
|
|
|
|
- return
|
|
|
|
- } else {}
|
|
|
|
- // #endif
|
|
|
|
|
|
+
|
|
|
|
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -746,7 +745,7 @@
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
cancelClick() {
|
|
cancelClick() {
|
|
this.isShowAlert = false
|
|
this.isShowAlert = false
|