|
@@ -309,7 +309,7 @@
|
|
onShow() {
|
|
onShow() {
|
|
|
|
|
|
console.log("点击发布")
|
|
console.log("点击发布")
|
|
- if (!_this.hasLogin) {
|
|
|
|
|
|
+ if (!this.hasLogin) {
|
|
uni.$u.route('/pages/public/login');
|
|
uni.$u.route('/pages/public/login');
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -330,9 +330,9 @@
|
|
this.getSFList()
|
|
this.getSFList()
|
|
},
|
|
},
|
|
async onLoad() {
|
|
async onLoad() {
|
|
- that = this
|
|
|
|
|
|
+ _this = this
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
- let _status = await that.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
|
|
|
|
|
|
+ let _status = await this.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
|
|
phone: this.userInfo.phone,
|
|
phone: this.userInfo.phone,
|
|
}).then(res => {
|
|
}).then(res => {
|
|
return res.data.authenticationStatus
|
|
return res.data.authenticationStatus
|
|
@@ -386,16 +386,12 @@
|
|
this.dataObj.taskValidity = '长期'
|
|
this.dataObj.taskValidity = '长期'
|
|
|
|
|
|
|
|
|
|
- },
|
|
|
|
- onLoad(options) {
|
|
|
|
-
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- getSFList() {
|
|
|
|
|
|
+ getSFList() {debugger
|
|
this.dataObj.commonId = this.userInfo.id
|
|
this.dataObj.commonId = this.userInfo.id
|
|
this.$request.baseRequest('get', '/cargoOwnerCompInfo/cargoOwnerList', {
|
|
this.$request.baseRequest('get', '/cargoOwnerCompInfo/cargoOwnerList', {
|
|
commonId: this.userInfo.id
|
|
commonId: this.userInfo.id
|
|
@@ -409,6 +405,7 @@
|
|
let _self = res.data.companyInfoList
|
|
let _self = res.data.companyInfoList
|
|
//代理货主
|
|
//代理货主
|
|
let _dlhz = res.data.cargoOwnerCompInfoList
|
|
let _dlhz = res.data.cargoOwnerCompInfoList
|
|
|
|
+ if(!_dlhz) _dlhz=[]
|
|
for (let i = 0; i < _self.length; i++) {
|
|
for (let i = 0; i < _self.length; i++) {
|
|
if (_self[i].status == '已认证') {
|
|
if (_self[i].status == '已认证') {
|
|
this.qyList.push(_self[i])
|
|
this.qyList.push(_self[i])
|
|
@@ -579,7 +576,7 @@
|
|
},
|
|
},
|
|
confirmClick() {
|
|
confirmClick() {
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
- if (this.alertTitle = '账号审核中') {
|
|
|
|
|
|
+ if (this.alertTitle == '账号审核中') {
|
|
if (uni.getSystemInfoSync().platform == 'ios') {
|
|
if (uni.getSystemInfoSync().platform == 'ios') {
|
|
plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
|
|
plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
|
|
} else if (uni.getSystemInfoSync().platform == 'android') {
|
|
} else if (uni.getSystemInfoSync().platform == 'android') {
|