瀏覽代碼

'五一节朗读比赛活动'

Rorschach 3 年之前
父節點
當前提交
3cb80a7942
共有 4 個文件被更改,包括 35 次插入12 次删除
  1. 1 1
      pages/index/index.js
  2. 3 3
      pages/index/index.wxml
  3. 29 6
      pages/index/index.wxss
  4. 2 2
      utils/const.js

+ 1 - 1
pages/index/index.js

@@ -81,7 +81,7 @@ Page({
     },
     grade: wx.getStorageSync('grade'),
     noMoreWork: false, // 没有更多作品 已经到底了
-    upgradeHide: true,
+    upgradeHide: false,
     gradeActivity: '',
     helpPayHide: true,
     tipsType: '',

+ 3 - 3
pages/index/index.wxml

@@ -92,10 +92,10 @@
   <Dialog bindmyevent="jurisdiction" />
 </view>
 <!-- <view class="upgrade" hidden="{{gradeActivity === 'PRIMARY_SENIOR_GRADE' || gradeActivity === 'PRESCHOOL' || upgradeHide}}"> -->
-<view class="upgrade" hidden="{{upgradeHide}}">
+<view class="upgrade" hidden="{{upgradeHide}}"  bindtap="hideUpgrade">
   <view class="upgrade-main">
-    <image class="upgrade-icon" src="http://reader-wx.ai160.com/images/reader/activity/activity_dialog.png" bindtap="goToActivity"></image>
-    <image class="close" bindtap="hideUpgrade" src="../../static/image/close.png"></image>
+    <image class="upgrade-icon" src="http://reader-wx.ai160.com/images/reader/activity/activity_dialog.png" catchtap="goToActivity"></image>
+    <image class="close" catchtap="hideUpgrade" src="../../static/image/close.png"></image>
   </view>
 </view>
 <shareDialog id="share-dialog" shareType='works' bindaddShareAmount="addShareAmount" bindShareDialogClose="shareDialogClose" shareId="{{id}}" />

+ 29 - 6
pages/index/index.wxss

@@ -41,14 +41,17 @@
   padding: 0 48rpx 0 48rpx;
 
 }
+
 .activity-img {
   width: 100%;
   height: 321rpx;
 }
+
 .activity-img image {
   width: 100%;
   height: 100%;
 }
+
 .activity-buy {
   position: fixed;
   right: 17rpx;
@@ -57,10 +60,12 @@
   height: 149rpx;
   z-index: 999;
 }
+
 .activity-buy image {
   width: 100%;
   height: 100%;
 }
+
 .no_follow {
   display: flex;
   width: 100%;
@@ -416,9 +421,10 @@
   color: #fff;
 }
 
-.change_grade .change_brage_wrapper .change_item_blank{
+.change_grade .change_brage_wrapper .change_item_blank {
   background: #ffffff !important;
 }
+
 .upgrade,
 .help-pay {
   position: fixed;
@@ -427,8 +433,9 @@
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, .75);
-  z-index:9999;
+  z-index: 9999;
 }
+
 .help-pay-main,
 .upgrade-main {
   position: absolute;
@@ -436,18 +443,32 @@
   top: 14%;
   transform: translate(-50%, 0);
 }
+
 .upgrade-icon {
-  width: 562rpx;
-  height: 789rpx;
+  width: 629rpx;
+  height: 692rpx;
+}
+
+.upgrade-main .close {
+  width: 50rpx;
+  height: 50rpx;
+  position: absolute;
+  left: 0;
+  right: 0;
+  margin: 0 auto;
+  top: 103%;
 }
+
 .help-pay-icon {
   width: 570rpx;
   height: 747rpx;
 }
+
 .tips-icon {
   width: 570rpx;
   height: 390rpx;
 }
+
 .help-close {
   position: absolute;
   left: 50%;
@@ -456,6 +477,7 @@
   width: 65rpx;
   height: 65rpx;
 }
+
 .pay-price {
   position: absolute;
   bottom: 65rpx;
@@ -463,6 +485,7 @@
   color: #FFFFFF;
   font-size: 49rpx;
 }
-.pay-price  text {
+
+.pay-price text {
   font-size: 30rpx;
-}
+}

+ 2 - 2
utils/const.js

@@ -5,6 +5,6 @@ module.exports = {
   productApi:  'https://reader-test.efunbox.cn/readerProduct/',
   // baseApi: 'https://reader.lingjiao.cn/readerBase/'
   // baseApi: 'https://readertest.lingjiao.cn:442/readerBase/'
-  // baseApi: 'https://reader-api.ai160.com/'
-  baseApi: 'https://reader-api.efunbox.cn/'
+  baseApi: 'https://reader-api.ai160.com/'
+  // baseApi: 'https://reader-api.efunbox.cn/'
 }