Browse Source

更新banner

sunzhilei 1 year ago
parent
commit
fdeebba7a6
3 changed files with 16 additions and 13 deletions
  1. 1 1
      pages/activity/goodList/goodList.wxml
  2. 10 11
      pages/index/index.js
  3. 5 1
      pages/index/index.wxml

+ 1 - 1
pages/activity/goodList/goodList.wxml

@@ -1,3 +1,3 @@
 <view class="good_list">
-  <image src="http://reader-wx.ai160.com/images/reader/activity/goodList.jpg" mode="widthFix"></image>
+  <image src="http://reader-wx.ai160.com/images/reader/activity/ad-detail.jpg" mode="widthFix"></image>
 </view>

+ 10 - 11
pages/index/index.js

@@ -1078,17 +1078,16 @@ Page({
      * 跳转到活动页
      */
     goToActivity() {
-        // 暂不跳转
-        // httpRequestApi.postActEvent('BANNER').success(res => {
-        //         console.log('活动banner', res)
-        //     })
-        //     // wx.navigateTo({
-        //     //   url: `../activity/index/index`
-        //     //   // url: `../activity/rule/rule`
-        //     // });
-        // wx.navigateTo({
-        //     url: `../activity/goodList/goodList`
-        // });
+        httpRequestApi.postActEvent('BANNER').success(res => {
+                console.log('活动banner', res)
+            })
+            // wx.navigateTo({
+            //   url: `../activity/index/index`
+            //   // url: `../activity/rule/rule`
+            // });
+        wx.navigateTo({
+            url: `../activity/goodList/goodList`
+        });
     },
     /**
      * banner点击

+ 5 - 1
pages/index/index.wxml

@@ -49,7 +49,11 @@
   <swiper class="activity-img" autoplay circular indicator-dots indicator-active-color="#FFFFFF"
     hidden="{{0 != myIndex}}">
     <swiper-item>
-      <image src=" http://reader-wx.ai160.com/images/reader/activity/banner.jpg" bindtap="goToActivity">
+      <image src=" http://reader-wx.ai160.com/images/reader/activity/ad.jpg" bindtap="goToActivity">
+      </image>
+    </swiper-item>
+    <swiper-item>
+      <image src=" http://reader-wx.ai160.com/images/reader/activity/banner.jpg">
       </image>
     </swiper-item>
     <swiper-item>