接受其他app传递的参数
This commit is contained in:
24
App.vue
24
App.vue
@@ -17,11 +17,11 @@
|
|||||||
import updata from '@/uni_modules/uni-upgrade-center-app/utils/check-update'
|
import updata from '@/uni_modules/uni-upgrade-center-app/utils/check-update'
|
||||||
// #endif
|
// #endif
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data(){
|
data() {
|
||||||
return{
|
return {
|
||||||
platform:null, // 系统
|
platform: null, // 系统
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLaunch: function(e) {
|
onLaunch: function(e) {
|
||||||
@@ -144,10 +144,10 @@
|
|||||||
}
|
}
|
||||||
// APPUpdate();
|
// APPUpdate();
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow: function(e) {
|
onShow: function(e) {
|
||||||
|
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
//获取二维码携带的参数
|
//获取二维码携带的参数
|
||||||
let scene = decodeURIComponent(e.query.scene);
|
let scene = decodeURIComponent(e.query.scene);
|
||||||
@@ -192,6 +192,13 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
var args = plus.runtime.arguments;
|
||||||
|
if (args) {
|
||||||
|
// 处理args参数,如直达到某新页面等
|
||||||
|
console.log(args)
|
||||||
|
}
|
||||||
|
// #endif
|
||||||
},
|
},
|
||||||
onHide: function() {},
|
onHide: function() {},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
@@ -200,8 +207,7 @@
|
|||||||
})
|
})
|
||||||
console.log('页面销毁')
|
console.log('页面销毁')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
"prompt" : "template",
|
"prompt" : "template",
|
||||||
"template" : {
|
"template" : {
|
||||||
"title" : "用户协议和隐私政策",
|
"title" : "用户协议和隐私政策",
|
||||||
"message" : "请你务必审慎阅读、充分理解“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/> 你可阅读<a href='https://main.nuttyreading.com/agreement.html'>《用户协议》</a>和<a href='https://main.nuttyreading.com/privacy.html'>《隐私协议》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
|
"message" : "请你务必审慎阅读、充分理解“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/> 你可阅读<a href='https://www.nuttyreading.com/agreement.html'>《用户协议》</a>和<a href='https://www.nuttyreading.com/privacy.html'>《隐私协议》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
|
||||||
"buttonAccept" : "同意",
|
"buttonAccept" : "同意",
|
||||||
"buttonRefuse" : "暂不同意"
|
"buttonRefuse" : "暂不同意"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,7 +58,8 @@
|
|||||||
<view class="nav_list" @click="switchTab('../bookShop/orderList')">
|
<view class="nav_list" @click="switchTab('../bookShop/orderList')">
|
||||||
<text>我的订单</text>
|
<text>我的订单</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="nav_list" @click="appJump()" v-if="this.osName !== null">
|
|
||||||
|
<view class="nav_list" @click="appJump()" v-if="this.osName != ''">
|
||||||
<text>打开一路健康</text>
|
<text>打开一路健康</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -140,7 +141,7 @@
|
|||||||
playData: {},
|
playData: {},
|
||||||
isAndorid: true,
|
isAndorid: true,
|
||||||
platform: null, // 设备系统
|
platform: null, // 设备系统
|
||||||
osName: null, // 系统名称
|
osName: '', // 系统名称
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
//第一次加载
|
//第一次加载
|
||||||
|
|||||||
Reference in New Issue
Block a user