|
@@ -45,10 +45,12 @@
|
|
|
<view class="title">请先关注公众号</view>
|
|
|
<official-account></official-account>
|
|
|
<view @click="() => {
|
|
|
- careVisible = false;
|
|
|
- }
|
|
|
+ careVisible = false;
|
|
|
+ }
|
|
|
" class="confirm">
|
|
|
关闭</view>
|
|
|
+
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -62,6 +64,7 @@
|
|
|
<script>
|
|
|
import bottom_arrrow from "@/assets/img/bottom_arrrow.png";
|
|
|
import api from "@/api";
|
|
|
+import { mapState } from 'vuex'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -76,12 +79,15 @@ export default {
|
|
|
let that = this;
|
|
|
let userInfo = uni.getStorageSync("userInfo");
|
|
|
let gzhOpenid = userInfo.gzhOpenid;
|
|
|
- console.log(userInfo);
|
|
|
- if (gzhOpenid) {
|
|
|
+
|
|
|
+ if (gzhOpenid || that.gzhGuanZhu == '0') {
|
|
|
+ console.log('有关注或者无需强制',that.gzhGuanZhu)
|
|
|
uni.navigateTo({
|
|
|
url,
|
|
|
});
|
|
|
+ return
|
|
|
} else {
|
|
|
+ console.log('无关注',that.gzhGuanZhu)
|
|
|
let hotStartupOption = uni.getStorageSync("hot_startup_option");
|
|
|
let coldStartupOption = uni.getStorageSync("cold_startup_option");
|
|
|
console.log(hotStartupOption.scene);
|
|
@@ -107,6 +113,7 @@ export default {
|
|
|
});
|
|
|
break;
|
|
|
}
|
|
|
+ return
|
|
|
// switch (){
|
|
|
// case :
|
|
|
// break;
|
|
@@ -117,6 +124,15 @@ export default {
|
|
|
onLoad(query) {
|
|
|
this.query = query;
|
|
|
},
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+
|
|
|
+ gzhGuanZhu() {
|
|
|
+ //二者暂时同时使用一个
|
|
|
+ return this.$store.state.user.baZiIsPay
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
onShow() {
|
|
|
if (typeof this.$mp.page.getTabBar === 'function' &&
|
|
@@ -133,10 +149,11 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.teacherVideo{
|
|
|
- // padding-bottom: constant(safe-area-inset-bottom);//兼容 IOS<11.2
|
|
|
-//padding-bottom: env(safe-area-inset-bottom);//兼容 IOS>11.2
|
|
|
+.teacherVideo {
|
|
|
+ // padding-bottom: constant(safe-area-inset-bottom);//兼容 IOS<11.2
|
|
|
+ //padding-bottom: env(safe-area-inset-bottom);//兼容 IOS>11.2
|
|
|
}
|
|
|
+
|
|
|
.care {
|
|
|
width: 100vw;
|
|
|
height: 100vh;
|