提交
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
<template><page-meta
|
||||
:page-font-size="$baseFontSize() + 'px'"
|
||||
:root-font-size="$baseFontSize() + 'px'"
|
||||
></page-meta>
|
||||
<template>
|
||||
<page-meta
|
||||
:page-font-size="$baseFontSize() + 'px'"
|
||||
:root-font-size="$baseFontSize() + 'px'"
|
||||
></page-meta>
|
||||
<view v-if="show">
|
||||
<swiper
|
||||
class="guide_pages_swiper"
|
||||
@@ -131,86 +132,81 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
mapState,
|
||||
mapMutations
|
||||
} from "vuex";
|
||||
import { mapState, mapMutations } from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title:"融儒、医、美、文为一体",
|
||||
data() {
|
||||
return {
|
||||
title: "融儒、医、美、文为一体",
|
||||
// title:"融儒、释、道、医、美、文为一体",
|
||||
screenHeight: 667,
|
||||
show: false,
|
||||
protocolShow: false,
|
||||
DisagreeProtocolShow: false,
|
||||
};
|
||||
},
|
||||
onReady() {
|
||||
// this.show = false;
|
||||
screenHeight: 667,
|
||||
show: false,
|
||||
protocolShow: false,
|
||||
DisagreeProtocolShow: false,
|
||||
};
|
||||
},
|
||||
onReady() {
|
||||
// this.show = false;
|
||||
|
||||
if (uni.getStorageSync("guidePages") != 2) {
|
||||
let systemInfo = uni.getSystemInfoSync();
|
||||
this.screenHeight = systemInfo.screenHeight;
|
||||
this.show = true;
|
||||
// this.protocolShow = true;
|
||||
}
|
||||
|
||||
if (uni.getStorageSync("guidePages") != 2) {
|
||||
let systemInfo = uni.getSystemInfoSync();
|
||||
this.screenHeight = systemInfo.screenHeight;
|
||||
this.show = true;
|
||||
// this.protocolShow = true;
|
||||
}
|
||||
|
||||
|
||||
// else {
|
||||
// uni.switchTab({
|
||||
// // url: "/pages/advertisement/index/index",
|
||||
// url: "/pages/homePage/index/index",
|
||||
// success: function() {
|
||||
// let page = getCurrentPages()[0];
|
||||
// console.log(page);
|
||||
// page.$vm.requestAll();
|
||||
// },
|
||||
// });
|
||||
// }
|
||||
},
|
||||
methods: {
|
||||
openDetail(type) {
|
||||
console.log('type at line 152:', type)
|
||||
uni.navigateTo({
|
||||
url: "/pages/advertisement/index/detail?type=" + type,
|
||||
});
|
||||
},
|
||||
quit() {
|
||||
if (uni.getSystemInfoSync().platform === "ios") {
|
||||
plus.runtime.launchApplication({
|
||||
action: "QUIT"
|
||||
});
|
||||
} else {
|
||||
plus.runtime.quit();
|
||||
}
|
||||
},
|
||||
onSee() {
|
||||
this.protocolShow = true;
|
||||
this.DisagreeProtocolShow = false;
|
||||
},
|
||||
onDisagree() {
|
||||
this.protocolShow = false;
|
||||
this.DisagreeProtocolShow = true;
|
||||
},
|
||||
close() {
|
||||
this.protocolShow = false;
|
||||
},
|
||||
onClose() {
|
||||
uni.setStorageSync("guidePages", 2);
|
||||
this.show = false;
|
||||
this.protocolShow = false;
|
||||
uni.redirectTo({
|
||||
url: "/pages/user/login/login",
|
||||
});
|
||||
},
|
||||
},
|
||||
// else {
|
||||
// uni.switchTab({
|
||||
// // url: "/pages/advertisement/index/index",
|
||||
// url: "/pages/homePage/index/index",
|
||||
// success: function() {
|
||||
// let page = getCurrentPages()[0];
|
||||
// console.log(page);
|
||||
// page.$vm.requestAll();
|
||||
// },
|
||||
// });
|
||||
// }
|
||||
},
|
||||
methods: {
|
||||
openDetail(type) {
|
||||
console.log("type at line 152:", type);
|
||||
uni.navigateTo({
|
||||
url: "/pages/advertisement/index/detail?type=" + type,
|
||||
});
|
||||
},
|
||||
quit() {
|
||||
if (uni.getSystemInfoSync().platform === "ios") {
|
||||
plus.runtime.launchApplication({
|
||||
action: "QUIT",
|
||||
});
|
||||
} else {
|
||||
plus.runtime.quit();
|
||||
}
|
||||
},
|
||||
onSee() {
|
||||
this.protocolShow = true;
|
||||
this.DisagreeProtocolShow = false;
|
||||
},
|
||||
onDisagree() {
|
||||
this.protocolShow = false;
|
||||
this.DisagreeProtocolShow = true;
|
||||
},
|
||||
close() {
|
||||
this.protocolShow = false;
|
||||
},
|
||||
onClose() {
|
||||
uni.setStorageSync("guidePages", 2);
|
||||
this.show = false;
|
||||
this.protocolShow = false;
|
||||
uni.redirectTo({
|
||||
url: "/pages/user/login/login",
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import '@/style/mixin.scss';
|
||||
@import "@/style/mixin.scss";
|
||||
.guide_pages_swiper {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
|
||||
Reference in New Issue
Block a user