bayi 9 місяців тому
батько
коміт
6a93185a49

+ 7 - 5
components/buyVip/index.less

@@ -23,22 +23,24 @@
             font-size: 50rpx;
         }
     }
-    .tips{
+
+    .tips {
         margin-top: 24rpx;
         font-size: 22rpx;
     }
-    .goodList {
+
+    .goodsList {
         margin-top: 82rpx;
         width: 100%;
-        display: flex;
-        align-items: center;
-        justify-content: space-between;
         box-sizing: border-box;
         padding: 0 40rpx;
+        white-space: nowrap;
+
         .payBox {
             position: relative;
             width: 318rpx;
             height: 318rpx;
+            margin-right: 30rpx;
             background-size: cover;
             text-align: center;
             display: inline-block;

+ 10 - 2
components/buyVip/index.wxml

@@ -9,13 +9,21 @@
         <view class="tips">
             购买VIP会员,即可畅读全部资源
         </view>
-        <view class="goodList">
+        <!-- <view class="goodList">
             <view wx:for="{{products}}" wx:key="id" class="payBox {{item.payType=='YEAR'?'year':'month'}}"
                 bindtap="openDonutBuy" data-product="{{item}}">
                 <view class="name">{{item.title}}</view>
                 <view class="price">{{item.price/100}}元</view>
                 <view class="originPrice">原价:330元</view>
             </view>
-        </view>
+        </view> -->
+        <scroll-view class="goodsList" scroll-x="true" enhanced show-scrollbar="{{false}}">
+            <view wx:for="{{products}}" wx:key="id" class="payBox {{item.payType=='YEAR'?'year':'month'}}"
+                bindtap="openDonutBuy" data-product="{{item}}">
+                <view class="name">{{item.title}}</view>
+                <view class="price">{{item.price/100}}元</view>
+                <view class="originPrice">原价:{{item.originPrice/100}}元</view>
+            </view>
+        </scroll-view>
     </view>
 </popUp>

+ 9 - 10
components/buyVip/index.wxss

@@ -26,44 +26,43 @@
   margin-top: 24rpx;
   font-size: 22rpx;
 }
-.box .goodList {
+.box .goodsList {
   margin-top: 82rpx;
   width: 100%;
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
   box-sizing: border-box;
   padding: 0 40rpx;
+  white-space: nowrap;
 }
-.box .goodList .payBox {
+.box .goodsList .payBox {
   position: relative;
   width: 318rpx;
   height: 318rpx;
+  margin-right: 30rpx;
   background-size: cover;
   text-align: center;
   display: inline-block;
   border-radius: 20rpx;
 }
-.box .goodList .payBox .name {
+.box .goodsList .payBox .name {
   margin-top: 42rpx;
   font-weight: 500;
   font-size: 40rpx;
 }
-.box .goodList .payBox .price {
+.box .goodsList .payBox .price {
   margin-top: 22rpx;
   font-weight: 500;
   font-size: 56rpx;
 }
-.box .goodList .payBox .originPrice {
+.box .goodsList .payBox .originPrice {
   margin-top: 28rpx;
   font-size: 24rpx;
   text-decoration: line-through;
 }
-.box .goodList .year {
+.box .goodsList .year {
   background-image: url(https://reader-wx.ai160.com/images/reader/pay/yuedao365.webp);
   color: #FEF4B5;
 }
-.box .goodList .month {
+.box .goodsList .month {
   background-image: url(http://reader-wx.ai160.com/images/reader/pay/yuedao90.webp);
   color: #7D320A;
 }

+ 1 - 0
miniapp-privacy.json

@@ -13,6 +13,7 @@
             "url": "https://m-xyyf-web.ai160.com/res/protocol/private-ldxkx.htm"
         }
     },
+    
     "styles": {
         "title": {
             "color": "#000000"

+ 4 - 3
project.miniapp.json

@@ -14,7 +14,8 @@
       "bluetooth": false,
       "network": true,
       "scanner": false,
-      "xweb": true
+      "xweb": false,
+      "xwebEmbed": true
     },
     "icons": {
       "hdpi": "static/appIcon.jpg",
@@ -27,7 +28,7 @@
       "xhdpi": "static/firing.jpg",
       "xxhdpi": "static/firing.jpg"
     },
-    "enableVConsole": "open",
+    "enableVConsole": "close",
     "privacy": {
       "enable": true,
       "template": "miniapp-privacy.json"
@@ -73,7 +74,7 @@
       "NSPhotoLibraryAddUsageDescription": "用于保存图片"
     }
   },
-  "versionCode": 100,
+  "versionCode": 1,
   "mini-plugin": {
     "android": [
       {