接受其他app传递的参数
This commit is contained in:
16
App.vue
16
App.vue
@@ -19,9 +19,9 @@
|
||||
import Vue from 'vue'
|
||||
|
||||
export default {
|
||||
data(){
|
||||
return{
|
||||
platform:null, // 系统
|
||||
data() {
|
||||
return {
|
||||
platform: null, // 系统
|
||||
}
|
||||
},
|
||||
onLaunch: function(e) {
|
||||
@@ -192,6 +192,13 @@
|
||||
});
|
||||
}
|
||||
// #endif
|
||||
// #ifdef APP-PLUS
|
||||
var args = plus.runtime.arguments;
|
||||
if (args) {
|
||||
// 处理args参数,如直达到某新页面等
|
||||
console.log(args)
|
||||
}
|
||||
// #endif
|
||||
},
|
||||
onHide: function() {},
|
||||
destroyed() {
|
||||
@@ -200,8 +207,7 @@
|
||||
})
|
||||
console.log('页面销毁')
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
methods: {}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"prompt" : "template",
|
||||
"template" : {
|
||||
"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" : "同意",
|
||||
"buttonRefuse" : "暂不同意"
|
||||
}
|
||||
|
||||
@@ -58,7 +58,8 @@
|
||||
<view class="nav_list" @click="switchTab('../bookShop/orderList')">
|
||||
<text>我的订单</text>
|
||||
</view>
|
||||
<view class="nav_list" @click="appJump()" v-if="this.osName !== null">
|
||||
|
||||
<view class="nav_list" @click="appJump()" v-if="this.osName != ''">
|
||||
<text>打开一路健康</text>
|
||||
</view>
|
||||
|
||||
@@ -140,7 +141,7 @@
|
||||
playData: {},
|
||||
isAndorid: true,
|
||||
platform: null, // 设备系统
|
||||
osName: null, // 系统名称
|
||||
osName: '', // 系统名称
|
||||
};
|
||||
},
|
||||
//第一次加载
|
||||
|
||||
Reference in New Issue
Block a user