bayi 1 year ago
parent
commit
eb5e77b179

+ 1 - 2
pages/index/index.wxml

@@ -5,8 +5,7 @@
     <view class="firstClassify">
         <view class="classifyBox" wx:for="{{categoryList}}" wx:key="id" data-item='{{item}}'
             bindtap="jumpChildClassify">
-            <image class="icon" src="/static/icon(1)/{{index+1}}.png" />
-            <!-- <image class="icon" src="{{item.icon}}" /> -->
+            <image class="icon" src="{{item.icon}}" />
         </view>
         <view class="classifyBox">
             <image bindtap="showTips" class="icon" src="/static/future.png" />

BIN
static/icon(1)/1.png


BIN
static/icon(1)/2.png


BIN
static/icon(1)/3.png


BIN
static/icon(1)/4.png


BIN
static/icon(1)/5.png


BIN
static/icon(1)/6.png


BIN
static/icon(1)/7.png


+ 5 - 4
utils/request.js

@@ -6,18 +6,19 @@ const {
         envVersion
     }
 } = wx.getAccountInfoSync();
-/* if (envVersion == 'develop') {
+if (envVersion == 'develop') {
     baseUrl = 'https://reader-api.efunbox.cn/wx'
     oldUrl = 'https://reader-api.efunbox.cn'
-} else { */
+} else {
     baseUrl = 'https://reader-api.ai160.com/wx'
     oldUrl = 'https://reader-api.ai160.com'
-// }
+}
 
 function request(url, method, data, oldBaseUrl = false, intercept = true) {
+
     let header = {
         'uid': wx.getStorageSync('uid') || '',
-        'channelCode': '3001'
+        'channelCode': wx.getStorageSync('user').channel == '4001' ? '4001' : '3001'
     }
     return new Promise((reslove, reject) => {
         wx.request({