|
@@ -21,24 +21,35 @@
|
|
<view>熟记考场</view>
|
|
<view>熟记考场</view>
|
|
<view>考试不用慌</view>
|
|
<view>考试不用慌</view>
|
|
<navigator url=""></navigator>
|
|
<navigator url=""></navigator>
|
|
- <view @click="goPath('/otherPages/examRoadVideo/index')" class="look">去看考场</view>
|
|
|
|
|
|
+ <view @click="goPath('/otherPages/examRoadVideo/index')" class="look"
|
|
|
|
+ >去看考场</view
|
|
|
|
+ >
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="subject">
|
|
<view class="subject">
|
|
<view v-for="(item, index) in kemu" :key="index" class="list">
|
|
<view v-for="(item, index) in kemu" :key="index" class="list">
|
|
- <navigator :url="'/otherPages/videoSubjectList/index?subject='+(index+1)">
|
|
|
|
|
|
+ <view
|
|
|
|
+ @click="
|
|
|
|
+ goPath('/otherPages/videoSubjectList/index?subject=' + (index + 1))
|
|
|
|
+ "
|
|
|
|
+ >
|
|
<image
|
|
<image
|
|
mode="widthFix"
|
|
mode="widthFix"
|
|
class="subject-bg"
|
|
class="subject-bg"
|
|
- :src="'https://ndata.zzxcx.net/ctjk/mp-wx/teacherVideo/kemubg'+(index+1)+'.png'"
|
|
|
|
|
|
+ :src="
|
|
|
|
+ 'https://ndata.zzxcx.net/ctjk/mp-wx/teacherVideo/kemubg' +
|
|
|
|
+ (index + 1) +
|
|
|
|
+ '.png'
|
|
|
|
+ "
|
|
></image>
|
|
></image>
|
|
|
|
|
|
<view class="text1"> 科目{{ item }} </view>
|
|
<view class="text1"> 科目{{ item }} </view>
|
|
<view class="text2"> 《视频讲解》 </view>
|
|
<view class="text2"> 《视频讲解》 </view>
|
|
- </navigator>
|
|
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <official-account></official-account>
|
|
<view class="wxad">
|
|
<view class="wxad">
|
|
<ad
|
|
<ad
|
|
ad-type="video"
|
|
ad-type="video"
|
|
@@ -51,6 +62,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import bottom_arrrow from "@/assets/img/bottom_arrrow.png";
|
|
import bottom_arrrow from "@/assets/img/bottom_arrrow.png";
|
|
|
|
+import api from "@/api";
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -61,14 +73,36 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
goPath(url) {
|
|
goPath(url) {
|
|
- uni.navigateTo({
|
|
|
|
- url,
|
|
|
|
- });
|
|
|
|
|
|
+ let userInfo = uni.getStorageSync("userInfo");
|
|
|
|
+ let gzhOpenid = userInfo.gzhOpenid;
|
|
|
|
+ console.log(userInfo)
|
|
|
|
+ if (gzhOpenid) {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url,
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: "请关注公众号",
|
|
|
|
+ content: "关注后回到这里观看相关视频",
|
|
|
|
+ success(res) {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ uni.navigateTo({ url: "/otherPages/careGzh/index" });
|
|
|
|
+ } else if (res.cancel) {
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
onLoad(query) {
|
|
onLoad(query) {
|
|
this.query = query;
|
|
this.query = query;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ onShow() {
|
|
|
|
+ // api.user.getInfo().then((res) => {
|
|
|
|
+ // uni.setStorageSync("userInfo", res.data);
|
|
|
|
+ // this.$store.commit("SET_USERINFO", res.data);
|
|
|
|
+ // });
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|