JXDS18FUJT 1 жил өмнө
parent
commit
16e3486723

+ 8 - 1
src/otherPages/donation/index.vue

@@ -3,7 +3,9 @@
         <div style="width: 50vw;margin: 15rpx auto;">
             <button @click="friendlyDonation()" type="primary">友情捐赠</button>
         </div>
-
+        <div style="width: 50vw;margin: 15rpx auto;">
+            <button @click="goVideoGroup()" type="primary">视频号</button>
+        </div>
     </div>
 </template>
 
@@ -55,6 +57,11 @@ export default {
                     });
                 })
 
+        },
+        goVideoGroup(){
+            wx.openChannelsUserProfile({
+                finderUserName:"sphQVbhe9O04tqB",
+            })
         }
     },
 

+ 23 - 0
src/pages/teacherVideo/index.vue

@@ -66,6 +66,11 @@ import bottom_arrrow from "@/assets/img/bottom_arrrow.png";
 import api from "@/api";
 import { mapState } from 'vuex'
 export default {
+  onLoad(query){
+
+  
+
+  },
   data() {
     return {
       careVisible: false,
@@ -135,6 +140,24 @@ export default {
 
   },
   onShow() {
+    if( uni.getStorageSync("wx_video_account")!='1'){
+      wx.showModal({
+        title:' 关注财仝视频号查询更多教学',
+      
+      }).then(res=>{
+        console.log(res)
+        res.confirm&&wx.openChannelsUserProfile({
+                finderUserName:"sphQVbhe9O04tqB",
+                success(result){
+                  console.log(result)
+                  uni.setStorageSync("wx_video_account","1")
+                }
+            })
+      })
+
+    }
+
+
     if (typeof this.$mp.page.getTabBar === 'function' &&
       this.$mp.page.getTabBar()) {
       this.$mp.page.getTabBar().init()