bayi před 2 roky
rodič
revize
3d20979818
2 změnil soubory, kde provedl 11 přidání a 11 odebrání
  1. 4 4
      components/authority/index.wxml
  2. 7 7
      utils/request.js

+ 4 - 4
components/authority/index.wxml

@@ -8,13 +8,14 @@
       <view class="work" wx:for="{{item.userReadList}}" wx:for-item='work' wx:key="index" bindtap="jumpReading"
         data-id='{{work.userRead.id}}'>
         <view class="content">
-          <image src="{{work.userRead.coverImg}}" class="cover" wx:if="{{work.userReadExtend.resourcesType==0}}" />
+          <image src="{{work.userRead.coverImg}}" class="cover" lazy-load
+            wx:if="{{work.userReadExtend.resourcesType==0}}" />
           <view class="audioBox" wx:else>
-            <image src="{{work.userReadExtend.backgroundVirtualImg}}" class="cover" />
+            <image src="{{work.userReadExtend.backgroundVirtualImg}}" lazy-load class="cover" />
             <view class="audioPlay">
               <image src="/static/audioBg.png" class="audioPlayBg" />
               <image src="/static/zhen.png" class="audioPlayZhen" />
-              <image src="{{work.userRead.coverImg}}" class="cover" />
+              <image src="{{work.userRead.coverImg}}" lazy-load class="cover" />
             </view>
           </view>
           <view class="mask">
@@ -22,7 +23,6 @@
             <view class="fb-num">{{filters.numFilter(work.userRead.playAmount)}}</view>
           </view>
         </view>
-        <!-- 图片 -->
         <view class="textOver title">{{work.userRead.title}}</view>
       </view>
     </view>

+ 7 - 7
utils/request.js

@@ -6,13 +6,13 @@ const {
     envVersion
   }
 } = wx.getAccountInfoSync();
-// if (envVersion == 'develop') {
-baseUrl = 'https://reader-api.efunbox.cn/wx'
-oldUrl = 'https://reader-api.efunbox.cn'
-// } else {
-//   baseUrl = 'https://reader-api.ai160.com/wx'
-//   oldUrl = 'https://reader-api.ai160.com'
-// }
+if (envVersion == 'develop') {
+  baseUrl = 'https://reader-api.efunbox.cn/wx'
+  oldUrl = 'https://reader-api.efunbox.cn'
+} else {
+  baseUrl = 'https://reader-api.ai160.com/wx'
+  oldUrl = 'https://reader-api.ai160.com'
+}
 
 function request(url, method, data, oldBaseUrl = false) {
   let header = {