Bladeren bron

取消五一活动

limengbo 3 jaren geleden
bovenliggende
commit
61fac17444

+ 2 - 1
app.json

@@ -29,7 +29,8 @@
     "pages/activity/strategy/strategy",
     "pages/activity/priceList/priceList",
     "pages/vipActivity/vipActivity",
-    "pages/product/product"
+    "pages/product/product",
+    "pages/activity/goodList/goodList"
   ],
   "window": {
     "backgroundTextStyle": "light",

+ 66 - 0
pages/activity/goodList/goodList.js

@@ -0,0 +1,66 @@
+// pages/activity/goodList/goodList.js
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad: function (options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload: function () {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh: function () {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom: function () {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage: function () {
+
+  }
+})

+ 3 - 0
pages/activity/goodList/goodList.json

@@ -0,0 +1,3 @@
+{
+  "usingComponents": {}
+}

+ 3 - 0
pages/activity/goodList/goodList.wxml

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

+ 11 - 0
pages/activity/goodList/goodList.wxss

@@ -0,0 +1,11 @@
+/* pages/activity/goodList/goodList.wxss */
+.good_list {
+  width: 100%;
+  height: 100%;
+  overflow-y: scroll;
+}
+.good_list image {
+  width: 100%;
+  height: 2863rpx;
+  display: block;
+}

+ 5 - 5
pages/index/index.js

@@ -81,7 +81,7 @@ Page({
     },
     grade: wx.getStorageSync('grade'),
     noMoreWork: false, // 没有更多作品 已经到底了
-    upgradeHide: false,
+    upgradeHide: true,
     gradeActivity: '',
     helpPayHide: true,
     tipsType: '',
@@ -1115,11 +1115,11 @@ Page({
    * 跳转到活动页
    */
   goToActivity() {
-    httpRequestApi.postActEvent('BANNER').success(res => {
-      console.log('活动banner', res)
-    })
+    // httpRequestApi.postActEvent('BANNER').success(res => {
+    //   console.log('活动banner', res)
+    // })
     wx.navigateTo({
-      url: `../activity/index/index`
+      url: `../activity/goodList/goodList`
     });
   },
   /**

+ 3 - 2
pages/index/index.wxml

@@ -45,10 +45,11 @@
       <text>资源</text>
     </view>
   </view>
+  <!--
   <view hidden="{{gradeActivity === 'PRIMARY_SENIOR_GRADE' || gradeActivity === 'PRESCHOOL' || 0 != myIndex}}" class="activity-img" bindtap="goToActivity">
-  <!-- <view hidden="{{0 != myIndex}}" class="activity-img" bindtap="goToActivity"> -->
-    <image src="http://reader-wx.ai160.com/images/reader/activity/banner.jpg"></image>
+    <image src="http://reader-wx.ai160.com/images/reader/activity/banner1.jpg"></image>
   </view>
+  -->
   <!-- <view hidden="{{(!isIos && isVip) || 0 != myIndex }}" class="activity-img" bindtap="bannerTap">
     <image src="http://reader-wx.ai160.com/images/reader/pay/{{isIos ? 'ios_banner' : 'android_banner'}}.jpg"></image>
   </view>

+ 1 - 3
project.config.json

@@ -17,9 +17,8 @@
     "checkInvalidKey": true,
     "checkSiteMap": true,
     "uploadWithSourceMap": true,
-    "useMultiFrameRuntime": true,
+    "useMultiFrameRuntime": false,
     "useApiHook": true,
-    "useApiHostProcess": true,
     "babelSetting": {
       "ignore": [],
       "disablePlugins": [],
@@ -29,7 +28,6 @@
     "useIsolateContext": true,
     "useCompilerModule": false,
     "userConfirmedUseCompilerModuleSwitch": false,
-    "userConfirmedBundleSwitch": false,
     "packNpmManually": false,
     "packNpmRelationList": [],
     "minifyWXSS": true