github-duan 4 роки тому
батько
коміт
1b143294ca

+ 44 - 7
pages/index/index.wxml

xqd
@@ -4,17 +4,54 @@
   <include src='/components/common/common'></include>
   <include src='/components/header/header'></include>
   <view class='body after-navber'>
-
-  <block>
-    <view class="integral">
-      您拥有的积分:
-    </view>
-  </block>
-  
     <template is='buy-data' data='{{buy:buy}}'></template>
     <block wx:if='{{template}}'>
       <view class='diy'>
         <block wx:for='{{template}}' wx:for-item='item' wx:for-index='index' wx:key='{{item.id}}'>
+          <block>
+            <block wx:if='{{item.type == "integralbase"}}'>
+              <view class='head'>
+                <image class='head-img' src='{{__wxapp_img.integral.head.url}}'></image>
+                <view class='w-100' style='position:relative;margin-bottom:36rpx;'>
+                  <view class='flex-row flex-x-center integral'>
+                    <view class='flex-grow-0'>我的积分</view>
+                    <view class='flex-grow-0'>
+                      <image bindtap='shuoming' src='{{__wxapp_img.store.shuoming.url}}' style='width:30rpx;height:30rpx;margin-left:20rpx;'></image>
+                    </view>
+                  </view>
+                  <view class='flex-row flex-x-center my-integral'>{{(item.param.user_integral?item.param.user_integral:0)}}</view>
+                </view>
+                <view class='flex-row my-exchange'>
+                  <view bindtap='exchange' class='flex-grow-1 flex-x-center'>
+                    <view class='flex-row'>
+                      <view class='flex-grow-0'>
+                        <image src='{{__wxapp_img.store.my_exchange.url}}'></image>
+                      </view>
+                      <view class='flex-grow-1'>我的兑换</view>
+                    </view>
+                  </view>
+                  <view bindtap='detail' class='flex-grow-1 flex-x-center'>
+                    <view class='flex-row'>
+                      <view class='flex-grow-0'>
+                        <image src='{{__wxapp_img.integral.detail.url}}'></image>
+                      </view>
+                      <view class='flex-grow-1'>积分明细</view>
+                    </view>
+                  </view>
+                </view>
+                
+                <view class='flex-row flex-x-center' style='position:relative'>
+                  <block wx:if='{{register_day == 1}}'>
+                    <image bindtap='register' src='{{__wxapp_img.register.is_register.url}}' style='width:376rpx;height:96rpx;margin-bottom:-48rpx;'></image>
+                  </block>
+                  <block wx:else>
+                    <image bindtap='register' src='{{__wxapp_img.register.register.url}}' style='width:376rpx;height:96rpx;margin-bottom:-48rpx;'></image>
+                  </block>
+                </view>
+              </view>
+            </block>
+          </block>
+
           <block wx:if='{{item.type == "goods"}}'>
             <view class='user-block flex-row' style='flex-wrap:wrap;'>
               <block wx:if='{{item.param.is_cat == 1}}'>

+ 9 - 2
pages/index/index.wxss

xqd xqd
@@ -1,4 +1,13 @@
 @import '/import/css0_15.wxss';@import '/import/css0_4.wxss';@import '/import/css0_21.wxss';.float-icon{ bottom: 170rpx !important; }
+.head { position: relative; z-index: 10; margin-bottom: 48rpx; }
+.head-img { height: 100%; width: 100%; position: absolute; z-index: 0; }
+.shuoming { position: absolute; width: 30rpx; height: 30rpx; left: 60%; top: 50rpx; }
+.shuoming wx-image { width: 30rpx; height: 30rpx; }
+.integral { color: #999; font-size: 9pt; padding: 28rpx 0rpx 20rpx 0rpx; }
+.my-integral { color: #ecb786; font-size: 18pt; line-height: 1; position: relative; }
+.my-exchange { color: #fff; margin-bottom: 20rpx; line-height: 1; position: relative; }
+.my-exchange wx-image { width: 34rpx; height: 34rpx; margin-right: 16rpx; }
+
 .banner { height: 360rpx; }
 .banner wx-navigator { font-size: 0; position: relative; height: 100%; }
 .banner .slide-image-1 { width: 100%; height: 360rpx; }
@@ -119,5 +128,3 @@
 .btn-car_num { height: 100%; float: right; font-size: 15px; display: flex; align-items: center; justify-content: center; margin-right: 32rpx; }
 .btn-car { height: 100%; width: 240rpx; float: right; font-size: 15px; display: flex; align-items: center; justify-content: center; margin-right: 32rpx; margin-bottom: 20rpx; border-radius: 8px; }
 .miaosha-header { padding: 0 20rpx; height: 80rpx; background: #fff; margin-bottom: 4rpx; }
-
-.integral{width: 100%;height: 55rpx;line-height: 55rpx;text-align: center;background: #fff;}

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
pages/integral-mall/index/index.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
pages/integral-mall/index/index.wxml


+ 15 - 1
project.config.json

xqd xqd
@@ -22,7 +22,7 @@
 			"disablePlugins": [],
 			"outputPath": ""
 		},
-		"useCompilerModule": false,
+		"useCompilerModule": true,
 		"userConfirmedUseCompilerModuleSwitch": false
 	},
 	"compileType": "miniprogram",
@@ -79,6 +79,20 @@
 					"pathName": "pages/test/index",
 					"query": "",
 					"scene": null
+				},
+				{
+					"id": -1,
+					"name": "pages/index/index",
+					"pathName": "pages/index/index",
+					"query": "page_id=7",
+					"scene": null
+				},
+				{
+					"id": 4,
+					"name": "pages/index/index",
+					"pathName": "pages/index/index",
+					"query": "page_id=8",
+					"scene": null
 				}
 			]
 		}

Деякі файли не було показано, через те що забагато файлів було змінено