This commit is contained in:
2025-03-12 10:55:40 +08:00
parent ef66c81ca7
commit b8a44a2716
14 changed files with 5483 additions and 4698 deletions

View File

@@ -1,90 +1,88 @@
<template><page-meta
<template>
<page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<view class=" commonPage commonPageBox bg" @click="navigateTo">
<view class="">{{ content }}</view>
<public-module></public-module>
<!-- <z-nav-bar title="设置" bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar> -->
<view class="commonPage commonPageBox bg" @click="navigateTo">
<view class="">{{ content }}</view>
<public-module></public-module>
<!-- <z-nav-bar title="设置" bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar> -->
<view class="contentBox commonPageContentBox"></view>
<!-- 右上角跳过按钮 -->
<!-- <view class="passbtn" @click.stop="launchApp">跳过</view> -->
</view>
<view class="contentBox commonPageContentBox"></view>
<!-- 右上角跳过按钮 -->
<!-- <view class="passbtn" @click.stop="launchApp">跳过</view> -->
</view>
</template>
<script>
export default {
data() {
return {
content: '',
totalTime: 10,
clock: null
};
},
onLoad() {
this.getData()
},
onHide() {
clearInterval(this.clock);
},
methods: {
navigateTo() {
// clearInterval(this.clock);
},
getData() {
this.clock = setInterval(() => {
this.totalTime--;
this.content = this.totalTime + 's后跳转';
// if (this.totalTime == 0) {
// this.launchApp()
// }
}, 1000);
console.log(this.clock);
},
launchApp() {
//跳过引导页,储存本地值,下次进入直接跳过
// clearInterval(this.clock);
// this.$mRouter.push('/pages/index/index')
uni.switchTab({
url: "/pages/homePage/index/index",
success: function() {
let page = getCurrentPages()[0];
console.log(page);
page.$vm.requestAll();
},
});
}
}
}
export default {
data() {
return {
content: "",
totalTime: 10,
clock: null,
};
},
onLoad() {
this.getData();
},
onHide() {
clearInterval(this.clock);
},
methods: {
navigateTo() {
// clearInterval(this.clock);
},
getData() {
this.clock = setInterval(() => {
this.totalTime--;
this.content = this.totalTime + "s后跳转";
// if (this.totalTime == 0) {
// this.launchApp()
// }
}, 1000);
console.log(this.clock);
},
launchApp() {
//跳过引导页,储存本地值,下次进入直接跳过
// clearInterval(this.clock);
// this.$mRouter.push('/pages/index/index')
uni.switchTab({
url: "/pages/homePage/index/index",
success: function () {
let page = getCurrentPages()[0];
console.log(page);
page.$vm.requestAll();
},
});
},
},
};
</script>
<style scoped lang="scss">
@import "@/static/customicons.css";
@import "@/style/common.scss";
@import "@/static/customicons.css";
@import "@/style/common.scss";
.bg {
}
.bg {}
// .passbtn {
// width: 130rpx;
// height: 60rpx;
// line-height: 60rpx;
// position: fixed;
// z-index: 999;
// bottom: 50rpx;
// right: 50rpx;
// color: #838892;
// text-align: center;
// border-width: 1rpx;
// border-color: rgba(0, 0, 0, 0.5);
// border-style: solid;
// border-radius: 30rpx;
// font-size: 28rpx;
// padding-left: 25rpx;
// padding-right: 25rpx;
// }
</style>
// .passbtn {
// width: 130rpx;
// height: 60rpx;
// line-height: 60rpx;
// position: fixed;
// z-index: 999;
// bottom: 50rpx;
// right: 50rpx;
// color: #838892;
// text-align: center;
// border-width: 1rpx;
// border-color: rgba(0, 0, 0, 0.5);
// border-style: solid;
// border-radius: 30rpx;
// font-size: 28rpx;
// padding-left: 25rpx;
// padding-right: 25rpx;
// }
</style>

View File

@@ -1,12 +1,13 @@
<template><page-meta
<template>
<page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<view class="container">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar title="说明" bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar>
<!-- <view
<view class="container">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar title="说明" bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar>
<!-- <view
class="contentBox"
v-if="prescriptDetail.content && prescriptDetail.type == 0"
>
@@ -18,128 +19,121 @@
</view>
</view> -->
<view class="fullscreen-webview">
<web-view :src="urlPath"> </web-view>
</view>
</view>
<view class="fullscreen-webview">
<web-view :src="urlPath"> </web-view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
playData: {},
urlPath: '',
title: '',
id: null,
indicatorDots: true,
autoplay: true,
interval: 5000,
duration: 500,
};
},
onLoad(options) {
if (options.type == 1) {
this.urlPath = 'https://zmzm.taihumed.com/agreement.html'
this.title = '用户协议'
} else if (options.type == 2) {
this.urlPath = 'https://zmzm.taihumed.com/privacy.html'
this.title = '隐私策略'
}
},
onShow() {
},
methods: {
// 放大图片
previewImage(url) {
console.log(url);
uni.previewImage({
urls: [url],
longPressActions: {
itemList: ["很抱歉,暂不支持保存图片到本地"],
success: function(res) {
// console.log(res,'+++++')
},
},
});
},
// 方剂详情
},
};
export default {
data() {
return {
playData: {},
urlPath: "",
title: "",
id: null,
indicatorDots: true,
autoplay: true,
interval: 5000,
duration: 500,
};
},
onLoad(options) {
if (options.type == 1) {
this.urlPath = "https://zmzm.taihumed.com/agreement.html";
this.title = "用户协议";
} else if (options.type == 2) {
this.urlPath = "https://zmzm.taihumed.com/privacy.html";
this.title = "隐私策略";
}
},
onShow() {},
methods: {
// 放大图片
previewImage(url) {
console.log(url);
uni.previewImage({
urls: [url],
longPressActions: {
itemList: ["很抱歉,暂不支持保存图片到本地"],
success: function (res) {
// console.log(res,'+++++')
},
},
});
},
// 方剂详情
},
};
</script>
<style lang="scss" scoped>
.contentBox {
padding-bottom: 20rpx;
}
.contentBox {
padding-bottom: 20rpx;
}
.contentBoxwebwiew {
height: 100%;
// .webwiew{
// height: 100%;
// }
}
.contentBoxwebwiew {
height: 100%;
// .webwiew{
// height: 100%;
// }
}
.fullscreen-webview {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.fullscreen-webview {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.mb-10 {
margin-bottom: 10px;
}
.mb-10 {
margin-bottom: 10px;
}
.content {
font-size: 28rpx;
}
.content {
font-size: 28rpx;
}
.swiper-item {
image {
margin: 0 auto;
height: 250rpx;
}
}
.swiper-item {
image {
margin: 0 auto;
height: 250rpx;
}
}
.uni-margin-wrap {
margin-bottom: 20rpx;
padding-top: 20rpx;
background-color: #fff;
}
.uni-margin-wrap {
margin-bottom: 20rpx;
padding-top: 20rpx;
background-color: #fff;
}
.container {
padding: 10rpx;
.container {
padding: 10rpx;
// background-color: #fff;
.item {
// color: #666;
padding: 10rpx 20rpx;
padding-bottom: 20rpx;
line-height: 46rpx;
}
// background-color: #fff;
.item {
// color: #666;
padding: 10rpx 20rpx;
padding-bottom: 20rpx;
line-height: 46rpx;
}
.title-center {
text-align: center;
font-size: 32rpx;
font-weight: 700 !important;
}
}
.title-center {
text-align: center;
font-size: 32rpx;
font-weight: 700 !important;
}
}
.flexbox {
display: flex;
}
.flexbox {
display: flex;
}
/deep/ .uni-section-header__decoration.line {
background-color: #18bc37;
}
</style>
/deep/ .uni-section-header__decoration.line {
background-color: #18bc37;
}
</style>

View File

@@ -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;