20240605
This commit is contained in:
+16
-8
@@ -29,16 +29,23 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
var obj = wx.getEnterOptionsSync()
|
||||
if (obj.query.key) {
|
||||
var obj = wx.getLaunchOptionsSync()
|
||||
let query = null;
|
||||
if (options.scene || obj.query.scene) {
|
||||
query = options ? decodeURIComponent(options.scene) : decodeURIComponent(obj.query.scene);
|
||||
this.setData({
|
||||
qkey: obj.query.key
|
||||
qkey: query
|
||||
})
|
||||
this.getappUserConf({
|
||||
'key': this.data.qkey
|
||||
})
|
||||
this.isBindMobile()
|
||||
} else {
|
||||
wx.navigateTo({
|
||||
url: '/pages/signup/status?type=fail&msg=请扫车管家二维码进行签到!',
|
||||
})
|
||||
}
|
||||
this.getappUserConf({
|
||||
'key': this.data.qkey
|
||||
})
|
||||
this.isBindMobile()
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -137,7 +144,6 @@ Page({
|
||||
* 授权地理位置
|
||||
*/
|
||||
getUserLocation() {
|
||||
console.log("333")
|
||||
let that = this
|
||||
return new Promise(function (resolve, reject) {
|
||||
if (app.getStorageByKey('u_lat') && app.getStorageByKey('u_lng')) {
|
||||
@@ -174,6 +180,8 @@ Page({
|
||||
'lng': this.data.lng.toFixed(11),
|
||||
'lat': this.data.lat.toFixed(11)
|
||||
}
|
||||
console.log(this.data.lng)
|
||||
console.log(this.data.lat)
|
||||
_.apiQuery.postAppSign(params).then(res => {
|
||||
let arr = [];
|
||||
for (const key in res.data) {
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
{
|
||||
"name": "pages/signup/index",
|
||||
"pathName": "pages/signup/index",
|
||||
"query": "key=2juXoYIdOE1HZ4s6lMUtJ",
|
||||
"query": "scene=fwef5165we",
|
||||
"launchMode": "default",
|
||||
"scene": null
|
||||
"scene": 1047
|
||||
},
|
||||
{
|
||||
"name": "待跟进客户",
|
||||
|
||||
Reference in New Issue
Block a user