Browse Source

Merge pull request 'version_v1_2024_11_04' (#5) from version_v1_2024_11_04 into master

Reviewed-on: kuaileadmin/acupuncture_register_system_uniapp#5
master
超级管理员 6 months ago
parent
commit
19a5b3a1ed
  1. 17
      App.vue
  2. 2
      manifest.json

17
App.vue

@ -6,7 +6,17 @@
},
onLaunch: function(option) {
console.log(option,'option====');
if(!(option.query && option.query.did)){
var did = false
try {
const pathParts = location.pathname.split('/');
const paramIndex = pathParts.indexOf('did');
if(paramIndex !== -1 && paramIndex + 1 < pathParts.length) {
did = pathParts[paramIndex + 1]
}
} catch (e) {
}
if(!did){
var doctor_id = uni.getStorageSync(this.globalData.doctoridStorageKey)
if(doctor_id){
this.globalData.doctorId = doctor_id
@ -17,8 +27,11 @@
},500)
}
}else{
this.globalData.doctorId = option.query.did
this.globalData.doctorId = did
uni.setStorageSync(this.globalData.doctoridStorageKey, this.globalData.doctorId)
uni.navigateTo({
url:'/'
})
}
},
onShow: function() {},

2
manifest.json

@ -82,7 +82,7 @@
"disableHostCheck" : true,
"proxy" : {
"/api" : {
"target" : "http://api.yizherenxin.cn",
"target" : "http://jasonyizherenxin.checkcopy.com",
"changeOrigin" : true,
"secure" : false
}

Loading…
Cancel
Save