Rorschach 3 lat temu
rodzic
commit
8b88472351

+ 2 - 1
app.json

@@ -26,7 +26,8 @@
     "pages/grade/grade",
     "pages/activity/index/index",
     "pages/activity/rule/rule",
-    "pages/activity/strategy/strategy"
+    "pages/activity/strategy/strategy",
+    "pages/activity/priceList/priceList"
   ],
   "window": {
     "backgroundTextStyle": "light",

+ 5 - 0
pages/activity/index/index.js

@@ -380,6 +380,11 @@ Page({
       url: `../strategy/strategy`
     });
   },
+  getPrice(){
+    wx.navigateTo({
+      url: `../priceList/priceList`
+    });
+  },
   /**
    * 点击头像
    */

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

@@ -7,6 +7,9 @@
   <view class="strategy" bindtap="strategy">
     <image src="../../../static/activity/strategy-img.png"></image>
   </view>
+  <view class="strategy" bindtap="getPrice">
+    <image src="../../../static/activity/get_price.png"></image>
+  </view>
   <view class="activity-works">
     <image class="swiper-bg" src="http://reader-wx.ai160.com/images/reader/activity/swiper-bg.png" mode="scaleToFill"></image>
     <text class="gradeText">{{grades}}朗读范文素材</text>

+ 18 - 0
pages/activity/priceList/priceList.js

@@ -0,0 +1,18 @@
+// pages/activity/strategy/strategy.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+  
+    },
+  
+    copyWx: function () {
+      wx.setClipboardData({
+        data: "xiaoqiangtongxue101",
+        success: function (res) {
+        }
+      })
+    }
+  })

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

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

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

@@ -1,4 +1,4 @@
 <view class="price-list-main">
-    <image class="price-list-bg" src="http://reader-wx.ai160.com/images/reader/activity/activity_strategy.jpg" />
+    <image class="price-list-bg" src="http://reader-wx.ai160.com/images/reader/activity/price_list.jpg" />
     <view class="copy-btn" bindtap="copyWx">复制</view>
 </view>

+ 6 - 7
pages/activity/priceList/priceList.wxss

@@ -1,20 +1,19 @@
 /* pages/activity/strategy/strategy.wxss */
-.strategy-main {
+.price-list-main{
   width: 100%;
-  height: 1791rpx;
-  background: #FD423B;
+  height: 4456rpx;
   overflow-y: scroll;
   position: relative;
 }
-.strategy-bg {
+.price-list-bg {
   position: absolute;
   left: 0;
   top: 0;
   width: 100%;
-  height: 1791rpx;
+  height: 4456rpx;
 }
 .copy-btn{
-  width: 168rpx;
+  width: 149rpx;
   height: 59rpx;
   background: #ff9743;
   border-radius: 30rpx;
@@ -23,6 +22,6 @@
   color: #fff;
   font-size: 34rpx;
   position: absolute;
-  bottom: 128rpx;
+  bottom: 83rpx;
   right: 48rpx;
 }

+ 2 - 2
pages/index/index.wxml

@@ -49,8 +49,8 @@
   <!-- <view hidden="{{0 != myIndex}}" class="activity-img" bindtap="goToActivity">
     <image src="http://reader-wx.ai160.com/images/reader/activity/banner.jpg"></image>
   </view> -->
-  <view hidden="{{0 != myIndex}}" class="activity-img" bindtap="goToActivityPrice">
-    <image src="http://reader-wx.ai160.com/images/reader/activity/banner.jpg"></image>
+  <view hidden="{{0 != myIndex}}" class="activity-img" bindtap="goToActivity">
+    <image src="http://reader-wx.ai160.com/images/reader/activity/price_list_banner.jpg"></image>
   </view>
   <!-- 调用组件 -->
   <template is="{{templates}}" wx:if="{{myIndex === 3 || myIndex === 2}}" data="{{myData: myData,coursesData:coursesData,noMoreWork:noMoreWork}}"></template>

BIN
static/activity/get_price.png