roose 4 năm trước cách đây
mục cha
commit
d3065daaaa

+ 1 - 1
pages/index/index.js

@@ -78,6 +78,7 @@ Page({
   },
   depts() {
     console.log(wx.getStorageSync('openId'), "openid的问题");
+
     wx.request({
       url: app.globalData.publicUrl + '/applet/homeStatistics',
       method: "GET",
@@ -97,7 +98,6 @@ Page({
     this.depts();
   },
   onShow() {
-    console.log("进来儿了啊");
     this.depts();
   }
 })

+ 2 - 1
pages/paiming/paiming.js

@@ -33,7 +33,8 @@ Page({
       success: (res) => {
         console.log(res, "000");
         this.setData({
-          list: res.data.data
+          list: res.data.data,
+          number: res.data.data.userTotalValue.toString(),
         })
       }
     })

+ 8 - 2
pages/paiming/paiming.wxml

@@ -1,12 +1,18 @@
 	<wxs module="time" src="../../utils/time.wxs"></wxs>
+	<wxs module="numbers" src="../../utils/number.wxs"></wxs>
 	<view>
 		<image src="/images/paimingbj.png" style="width: 100%; height: 550rpx;"> </image>
 		<view class="flex-box">
-			<view class="jifen">{{list.userTotalValue}}</view>
+			<!-- <view class="jifen">{{list.userTotalValue}}</view> -->
+			<view class="jifen">
+				<view wx:for='{{number.length}}' style="position: relative;">
+					<image src="/images/rili.png" style="width:130rpx;height:130rpx; display: inline-block;"></image>
+					<view class="fen">{{numbers.number(number,index)}}</view>
+				</view>
+			</view>
 			<view class="wenzi">累计积分</view>
 			<view class="btn">当前排名<text class="shuzi">{{list.order}}</text>名</view>
 		</view>
-
 		<view class="white-box">
 			<van-tabs active="{{ active }}" bind:change="onChange" color="#2087F7">
 				<van-tab title="采集记录">

+ 8 - 0
pages/paiming/paiming.wxss

@@ -21,6 +21,14 @@ page {
   color: white;
   height: 100rpx;
   font-size: 38rpx;
+  display: flex;
+}
+.fen {
+ position: absolute;
+ top: 10rpx;
+ left: 40rpx;
+ color: #2188f7;
+ font-size: 70rpx;
 }
 
 .wenzi {

+ 3 - 0
pages/visitandinfo/visitandinfo.js

@@ -224,6 +224,9 @@ Page({
             list: res.data.data
           })
         }
+      },
+      complete: () => {
+        wx.hideLoading();
       }
     })
   },