优化小程序和app登录的逻辑,优化部分页面样式错乱的问题,优化跳转页面后部分页面无法接受url参数的问题,优化app端的兼容问题
This commit is contained in:
35
main.js
35
main.js
@ -33,8 +33,6 @@ Vue.prototype.$validator = function(rule) {
|
||||
return new schema(rule);
|
||||
};
|
||||
|
||||
Vue.prototype.$dialog = dialog;
|
||||
|
||||
const CACHE_KEY = "clear_0.0.1";
|
||||
|
||||
if (!cookie.has(CACHE_KEY)) {
|
||||
@ -54,6 +52,7 @@ Vue.mixin({
|
||||
const {
|
||||
$mp
|
||||
} = this.$root
|
||||
console.log($mp)
|
||||
this._route = parseRoute($mp)
|
||||
// this.$VUE_APP_RESOURCES_URL = VUE_APP_RESOURCES_URL;
|
||||
this._data.$VUE_APP_RESOURCES_URL = VUE_APP_RESOURCES_URL;
|
||||
@ -78,25 +77,29 @@ Object.defineProperty(Vue.prototype, '$yroute', {
|
||||
|
||||
Vue.prototype.$VUE_APP_RESOURCES_URL = VUE_APP_RESOURCES_URL
|
||||
Vue.prototype.$VUE_APP_API_URL = VUE_APP_API_URL
|
||||
|
||||
// #ifdef APP-PLUS
|
||||
// App平台编译的代码
|
||||
Vue.prototype.$deviceType = 'App'
|
||||
Vue.prototype.$platform = uni.getSystemInfoSync().platform
|
||||
|
||||
|
||||
|
||||
// #ifdef H5
|
||||
// H5编译的代码
|
||||
Vue.prototype.$deviceType = 'H5'
|
||||
// #endif
|
||||
|
||||
// #ifndef H5
|
||||
// H5编译的代码
|
||||
Vue.prototype.$deviceType = 'H5'
|
||||
// #ifdef APP-PLUS
|
||||
// App平台编译的代码
|
||||
Vue.prototype.$deviceType = 'App'
|
||||
Vue.prototype.$platform = uni.getSystemInfoSync().platform
|
||||
// #endif
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
// 微信小程序编译的代码
|
||||
Vue.prototype.$deviceType = 'Weixin'
|
||||
// #endif
|
||||
|
||||
if(wx){
|
||||
Vue.prototype.$deviceType = 'Weixin'
|
||||
}
|
||||
// #endif
|
||||
|
||||
app.$mount()
|
||||
console.log(wx,121212)
|
||||
console.log(Vue.prototype.$deviceType)
|
||||
// if(wx){
|
||||
// Vue.prototype.$deviceType = 'Weixin'
|
||||
// }
|
||||
|
||||
app.$mount()
|
||||
|
Reference in New Issue
Block a user