|
@@ -119,15 +119,19 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
- if (typeof(options.from) != 'undefined' && options.from == 3 && typeof(options.wxminicode) != 'undefined' &&
|
|
|
|
|
- typeof(options.wxminicode) != '') {
|
|
|
|
|
|
|
+ // console.log(options);
|
|
|
|
|
+ if (typeof(options) != 'undefined' && typeof(options) != '' && JSON.stringify(options) == '{}') {
|
|
|
|
|
+ // 获取基本信息
|
|
|
|
|
+ this.get_base_info(options, 'onLoad')
|
|
|
|
|
+ } else if (typeof(options.from) != 'undefined' && options.from != 0) {
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: '../index/index?from=' + options.from
|
|
|
|
|
+ })
|
|
|
|
|
+ } else {
|
|
|
// wxminicode=KB580002652
|
|
// wxminicode=KB580002652
|
|
|
- this.start_code = options.wxminicode
|
|
|
|
|
|
|
+ this.start_code = decodeURIComponent(options.q).split('=')[1]
|
|
|
// 初始化蓝牙
|
|
// 初始化蓝牙
|
|
|
this.openBluetoothAdapter()
|
|
this.openBluetoothAdapter()
|
|
|
- } else {
|
|
|
|
|
- // 获取基本信息
|
|
|
|
|
- this.get_base_info(options, 'onLoad')
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|