bayi 1 год назад
Родитель
Сommit
e8ef846389
2 измененных файлов с 11 добавлено и 2 удалено
  1. 7 1
      pages/my/index.wxml
  2. 4 1
      pages/reading/index.js

+ 7 - 1
pages/my/index.wxml

@@ -28,7 +28,9 @@
     <!-- 安卓 -->
     <view class="scrollViewBox" wx:if="{{vipTime!='1'&&!isIos}}">
         <scroll-view class="goodsList" scroll-x="true" enhanced show-scrollbar="{{false}}">
-            <view wx:for="{{products}}" wx:key="id" class="payBox {{item.payType=='LIFELONG'?'pbbg2':item.payType=='YEAR'?'pbbg1':'pbbg3'}}" bindtap="toBuy" data-id="{{item.id}}">
+            <view wx:for="{{products}}" wx:key="id"
+                class="payBox {{item.payType=='LIFELONG'?'pbbg2':item.payType=='YEAR'?'pbbg1':'pbbg3'}}" bindtap="toBuy"
+                data-id="{{item.id}}">
                 <view class="pay">
                     {{isPreferential?'立即续费':'立即开通'}}
                 </view>
@@ -48,12 +50,14 @@
             </view>
             <image class='black' src='/static/black.png'></image>
         </view>
+        <!-- #if MP -->
         <view class="activation" bindtap="toGzh">
             <view class="tips">
                 <image src="/static/care.png" class="tipsImg" />关注公众号不迷路,更多福利等您!
             </view>
             <image class='black' src='/static/black.png'></image>
         </view>
+        <!-- #endif -->
         <view class="activation" bindtap="jump" data-url="/salesperson/pages/sale/index"
             wx:if="{{!userInfo.user.saleUserId}}">
             <view class="tips">
@@ -74,12 +78,14 @@
             </view>
             <image class='black' src='/static/black.png'></image>
         </view>
+        <!-- #if MP -->
         <button class="resetBtn activation" open-type="contact" plain="true">
             <view class="tips">
                 <image src="/static/contact.png" class="tipsImg" />联系我们
             </view>
             <image class='black' src='/static/black.png'></image>
         </button>
+        <!-- #endif -->
         <!--     <view class="activation" bindtap="jump" data-url="/pages/orderRecord/index">
             <view class="tips">
                 <image src="/static/care.png" class="tipsImg" />购买记录

+ 4 - 1
pages/reading/index.js

@@ -45,7 +45,7 @@ let wsEngine = aiengine.createWsEngine({});
 /*微信录音*/
 let recorderManager = wx.getRecorderManager();
 Page({
-    behaviors: [event,share],
+    behaviors: [event, share],
     data: {
         videoInfo: {},
         videoPath: '',
@@ -735,8 +735,11 @@ Page({
         }, 300)
     },
     onHide() {
+        console.log('onhide');
+        // #if MP
         wsEngine.reset()
         this.resetReading()
+        // #endif
     },
     onUnload() {
         wsEngine.reset()