|
@@ -114,14 +114,17 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
onLoad: function (options) {
|
|
|
+ console.log(options, '--------------------------')
|
|
|
let that = this
|
|
|
- if (options.query) {
|
|
|
- console.log('扫码加载')
|
|
|
- var code1 = decodeURIComponent(options.query.qrCode)
|
|
|
- var index = code1.lastIndexOf("\=");
|
|
|
- let code = code1.substring(index + 1, code1.length);
|
|
|
+
|
|
|
+ if (app.globalData.scanCode) {
|
|
|
+ // console.log('扫码加载')
|
|
|
+ // var code1 = decodeURIComponent(options.query.qrCode)
|
|
|
+ // var index = code1.lastIndexOf("\=");
|
|
|
+ // let code = code1.substring(index + 1, code1.length);
|
|
|
that.setData({
|
|
|
- code: code
|
|
|
+ code: app.globalData.scanCode
|
|
|
+ // code: '410100100'
|
|
|
})
|
|
|
} else if (options.order != undefined) {
|
|
|
that.setData({
|
|
@@ -656,18 +659,17 @@ Page({
|
|
|
let that = this
|
|
|
var userStatus = my.getStorageSync({ 'key': 'userState' }).data;
|
|
|
var setting = my.getStorageSync({ 'key': 'setting' }).data;
|
|
|
- if (userStatus.is_card_certified == 0 && setting.is_card == 1) {
|
|
|
- if (userStatus.is_bind_mobile == 0) {
|
|
|
- wx.navigateTo({
|
|
|
- url: '/pages/authorization/authorization',
|
|
|
- })
|
|
|
- //未实名认证
|
|
|
- } else
|
|
|
- my.navigateTo({
|
|
|
- url: '/pages/real_name/real_name',
|
|
|
- })
|
|
|
- }//是否缴纳押金
|
|
|
- else if (userStatus.is_deposit == 0 && setting.is_deposit != 0 && userStatus.is_coupon_deposit_free == false) {
|
|
|
+ //未绑定手机号
|
|
|
+ if (userStatus.is_bind_mobile == 0) {
|
|
|
+ my.navigateTo({
|
|
|
+ url: '/pages/authorization/authorization',
|
|
|
+ })
|
|
|
+ //未实名认证
|
|
|
+ } else if (userStatus.is_card_certified == 0 && setting.is_card == 1) {
|
|
|
+ my.navigateTo({
|
|
|
+ url: '/pages/real_name/real_name',
|
|
|
+ })
|
|
|
+ } else if (userStatus.is_deposit == 0 && setting.is_deposit != 0 && userStatus.is_coupon_deposit_free == false) {
|
|
|
my.navigateTo({
|
|
|
url: '/pages/ride_zige/ride_zige',
|
|
|
})
|