|
@@ -136,7 +136,6 @@
|
|
|
this.isShowAlert = false
|
|
|
},
|
|
|
confirmClick(){
|
|
|
-
|
|
|
if (uni.getSystemInfoSync().platform == 'ios'){
|
|
|
plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
|
|
|
} else if (uni.getSystemInfoSync().platform == 'android'){
|
|
@@ -145,14 +144,24 @@
|
|
|
},
|
|
|
passlogin(e) {
|
|
|
var that = this
|
|
|
+ that.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
|
|
|
+ phone: this.phone,
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.authenticationStatus == '已禁用') {
|
|
|
+ that.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "账号审核中!"
|
|
|
+ })
|
|
|
+
|
|
|
+ } else {
|
|
|
uni.showLoading({
|
|
|
title: '登录中',
|
|
|
mask: true
|
|
|
})
|
|
|
console.log("clinetId", this.clientId)
|
|
|
that.$request.baseRequest('get', '/commonUser/login', {
|
|
|
- phone: this.phone,
|
|
|
- password: this.password,
|
|
|
+ phone: that.phone,
|
|
|
+ password: that.password,
|
|
|
loginFlag: 2,
|
|
|
identification: 1
|
|
|
}).then(res => {
|
|
@@ -160,7 +169,7 @@
|
|
|
console.log("userInfo", res.data)
|
|
|
uni.setStorageSync('userInfo', res.data)
|
|
|
that.$request.baseRequest('get', '/newsInfo/unreadMessage', {
|
|
|
- reCommonId: this.userInfo.id,
|
|
|
+ reCommonId: that.userInfo.id,
|
|
|
}).then(res3 => {
|
|
|
if (res3.data) {
|
|
|
let name = 'myTip';
|
|
@@ -201,19 +210,19 @@
|
|
|
city: res.city,
|
|
|
area: res.district
|
|
|
}
|
|
|
- this.$helper.gjList.push(_data)
|
|
|
- uni.setStorageSync('mapGJ', this.$helper.gjList);
|
|
|
+ that.$helper.gjList.push(_data)
|
|
|
+ uni.setStorageSync('mapGJ', that.$helper.gjList);
|
|
|
// console.log('this.$helper.gjList')
|
|
|
// console.log(this.$helper.gjList)
|
|
|
// console.log("条数", uni.getStorageSync('mapGJ').length)
|
|
|
if (uni.getStorageSync('mapGJ').length > 100) {
|
|
|
console.log(JSON.stringify(uni.getStorageSync('mapGJ')) )
|
|
|
- this.$request.baseRequest('post', '/hyOrderTravelPath/api/addInfo', {
|
|
|
+ that.$request.baseRequest('post', '/hyOrderTravelPath/api/addInfo', {
|
|
|
orderId:"cdae6ec34c2349768c490a9fefa03fb3",
|
|
|
longitudeLatitude:JSON.stringify(uni.getStorageSync('mapGJ'))
|
|
|
}).then(res => {
|
|
|
uni.removeStorageSync('mapGJ');
|
|
|
- this.$helper.gjList = []
|
|
|
+ that.$helper.gjList = []
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|
|
@@ -270,6 +279,8 @@
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|
|
|
});
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
gocode() {
|
|
|
uni.navigateTo({
|