|
|
|
|
@ -80,8 +80,6 @@
|
|
|
|
|
|
|
|
|
|
<u-toast ref="uToast" />
|
|
|
|
|
|
|
|
|
|
<!-- 首次进入app 隐私协议弹框 -->
|
|
|
|
|
<privacyAgreement ref="privacyPop"></privacyAgreement>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
@ -93,15 +91,13 @@
|
|
|
|
|
import top from "../components/top.vue";
|
|
|
|
|
import service from "../components/service.vue";
|
|
|
|
|
import selShop from "../components/selShop.vue";
|
|
|
|
|
import privacyAgreement from "../../components/privacy-agreement.vue";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
openlogin,
|
|
|
|
|
top,
|
|
|
|
|
service,
|
|
|
|
|
selShop,
|
|
|
|
|
privacyAgreement
|
|
|
|
|
selShop
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
@ -203,8 +199,7 @@
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
onLoad() {
|
|
|
|
|
|
|
|
|
|
onLoad() {
|
|
|
|
|
var shop=myCache('shop');
|
|
|
|
|
var banner=shop&&shop.banner?shop.banner:"";
|
|
|
|
|
banner=banner.split(',');
|
|
|
|
|
@ -322,20 +317,21 @@
|
|
|
|
|
//调用子组件方法
|
|
|
|
|
this.$refs.topId.topData(e.scrollTop);
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
uni.setStorageSync("firstLaunchFlag", false)
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
|
|
let firstLaunchFlag = uni.getStorageSync("firstLaunchFlag");
|
|
|
|
|
// #ifdef APP-PLUS | H5
|
|
|
|
|
console.log("firstLaunchFlag", firstLaunchFlag);
|
|
|
|
|
uni.setStorageSync("firstLaunchFlag", false)
|
|
|
|
|
// 隐私政策判定start------------------------------
|
|
|
|
|
// #ifdef APP-PLUS
|
|
|
|
|
if (firstLaunchFlag) {
|
|
|
|
|
return
|
|
|
|
|
}else{
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
mask: true
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages/user/privacy`
|
|
|
|
|
});
|
|
|
|
|
this.$refs.privacyPop.open();
|
|
|
|
|
}
|
|
|
|
|
// #endif
|
|
|
|
|
// 隐私政策判定end--------------
|
|
|
|
|
|
|
|
|
|
if(firstLaunchFlag){
|
|
|
|
|
if(this.userid==""||this.userid=="0"){
|
|
|
|
|
|