|
@@ -52,7 +52,15 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <official-account></official-account>
|
|
|
+ <view class="care" :style="careVisible ? '' : 'display:none'">
|
|
|
+ <view class="dialog">
|
|
|
+ <official-account></official-account>
|
|
|
+ <view @click="()=>{
|
|
|
+ careVisible=false
|
|
|
+ }" class="confirm"> 关闭</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
<view class="wxad">
|
|
|
<ad
|
|
|
ad-type="video"
|
|
@@ -69,6 +77,7 @@ import api from "@/api";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ careVisible: false,
|
|
|
bottom_arrrow,
|
|
|
query: {},
|
|
|
kemu: ["一", "二", "三", "四"],
|
|
@@ -76,6 +85,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
goPath(url) {
|
|
|
+ let that = this;
|
|
|
let userInfo = uni.getStorageSync("userInfo");
|
|
|
let gzhOpenid = userInfo.gzhOpenid;
|
|
|
console.log(userInfo);
|
|
@@ -84,32 +94,83 @@ export default {
|
|
|
url,
|
|
|
});
|
|
|
} else {
|
|
|
- uni.showModal({
|
|
|
- title: "请关注公众号",
|
|
|
- content: "关注后回到这里观看相关视频",
|
|
|
- success(res) {
|
|
|
- if (res.confirm) {
|
|
|
- uni.navigateTo({ url: "/otherPages/careGzh/index" });
|
|
|
- } else if (res.cancel) {
|
|
|
- }
|
|
|
- },
|
|
|
- });
|
|
|
+ let hotStartupOption = uni.getStorageSync("hot_startup_option");
|
|
|
+ let coldStartupOption = uni.getStorageSync("cold_startup_option");
|
|
|
+ console.log(hotStartupOption.scene);
|
|
|
+ console.log(coldStartupOption.scene);
|
|
|
+ switch (coldStartupOption.scene) {
|
|
|
+ case 1011:
|
|
|
+ case 1017:
|
|
|
+ case 1038:
|
|
|
+ case 1047:
|
|
|
+ case 1124:
|
|
|
+ that.careVisible = true;
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ uni.showModal({
|
|
|
+ title: "请关注公众号",
|
|
|
+ content: "关注后回到这里观看相关视频",
|
|
|
+ success(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ uni.navigateTo({ url: "/otherPages/careGzh/index" });
|
|
|
+ } else if (res.cancel) {
|
|
|
+ }
|
|
|
+ },
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ // switch (){
|
|
|
+ // case :
|
|
|
+ // break;
|
|
|
+
|
|
|
+ // }
|
|
|
}
|
|
|
},
|
|
|
onLoad(query) {
|
|
|
+
|
|
|
this.query = query;
|
|
|
},
|
|
|
},
|
|
|
onShow() {
|
|
|
- // api.user.getInfo().then((res) => {
|
|
|
- // uni.setStorageSync("userInfo", res.data);
|
|
|
- // this.$store.commit("SET_USERINFO", res.data);
|
|
|
- // });
|
|
|
+ api.user.getInfo().then((res) => {
|
|
|
+ uni.setStorageSync("userInfo", res.data);
|
|
|
+ this.$store.commit("SET_USERINFO", res.data);
|
|
|
+ });
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+.care {
|
|
|
+ width: 100vw;
|
|
|
+ height: 100vh;
|
|
|
+ background-color: rgba(0, 0, 0, 0.35);
|
|
|
+ position: fixed;
|
|
|
+ z-index: 10;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ align-content: center;
|
|
|
+ .dialog {
|
|
|
+ width: 300px;
|
|
|
+ height: calc(84px + 72rpx);
|
|
|
+ background: #fff;
|
|
|
+ border-radius: 16rpx;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ .confirm {
|
|
|
+ width: 100%;
|
|
|
+ height: 72rpx;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 40rpx;
|
|
|
+ line-height: 72rpx;
|
|
|
+ color: #ee0a24;
|
|
|
+ background: #fff;
|
|
|
+ letter-spacing:15px;
|
|
|
+ }
|
|
|
+}
|
|
|
.road {
|
|
|
width: 690rpx;
|
|
|
margin: 0 auto;
|