You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
732 B
40 lines
732 B
<template>
|
|
<view></view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
onShow() {
|
|
// 从第三方小程序返回后
|
|
const oTherMiniprogramIsBack = uni.getStorageSync('oTherMiniprogramIsBack')
|
|
if(oTherMiniprogramIsBack) {
|
|
uni.showModal({
|
|
title: '是否返回盐都小程序',
|
|
success: () => {
|
|
uni.removeStorageSync('oTherMiniprogramIsBack')
|
|
uni.navigateBack();
|
|
}
|
|
})
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
let data = JSON.parse(option.data)
|
|
if(data && data.type == 'xcx') {
|
|
uni.navigateToMiniProgram({
|
|
shortLink: data.url,
|
|
success(res) {
|
|
uni.setStorageSync('oTherMiniprogramIsBack', 1)
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|