Bladeren bron

我的比赛排名等bug

begmoon 2 jaren geleden
bovenliggende
commit
d409ce221a
5 gewijzigde bestanden met toevoegingen van 99 en 71 verwijderingen
  1. 9 10
      pages/follow/follow.wxml
  2. 29 0
      pages/follow/follow.wxss
  3. 2 2
      pages/homepage/homepage.wxml
  4. 1 1
      pages/matchdetail/matchdetail.wxml
  5. 58 58
      project.config.json

+ 9 - 10
pages/follow/follow.wxml

@@ -1,16 +1,15 @@
 <scroll-view  scroll-y='{{true}}' bindscrolltolower='next'>
   <navigator hover-class="none" class="follow" wx:for='{{list}}' url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
-    <view class="name">{{item.username}}  <text>选手</text> 
-    <!-- <view>TOP <text>{{item.group_rank}}</text></view> -->
-    </view> 
-    <view class="info">
-      资产:  <view><label>{{item.today_fund}}w</label>(今日收益 
-      <text  class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>
-      <text style="color:#F5F5F5;">  |  </text>
-      总收益 
-      <text  class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>
-      )</view>
+    <view class="per_top">
+      <image src="{{item.avatar}}" ></image>
+      <view class="name">{{item.username}}  <text>选手</text> 
+      </view> 
+      <view class="info" wx:if='{{item.style.length>0}}'>风格:
+                <label class="tag" wx:for='{{item.style}}' wx:for-item='i'>{{i}}</label>
+      </view>
     </view>
+    
+
   </navigator>
   <block wx:if='{{total >= 20}}'>
     <view class='loading' wx:if='{{list.length < total}}'>上拉加载更多...</view>

+ 29 - 0
pages/follow/follow.wxss

@@ -46,6 +46,35 @@ page{
   width: 85%;
   vertical-align: top;
 }
+.info label{
+  font-weight: 500;
+  color: #333;
+}
+.info .tag{
+  font-size: 28rpx;
+  color: #CE994F;
+  border: 1px solid #CE994F;
+  border-radius: 8rpx;
+  margin-right: 8rpx;
+  font-weight: 400;
+  padding: 0 8rpx;
+}
+
+.per_top{
+  height: 138rpx;
+  position: relative;
+  padding:24rpx;
+  background: #D94B24;
+}
+.per_top>image{
+  width: 90rpx;
+  height: 90rpx;
+  position: absolute;
+  left: 24rpx;
+  top: 24rpx;
+  border-radius: 100%;
+}
+
 scroll-view{
   height: 100vh;
 }

+ 2 - 2
pages/homepage/homepage.wxml

@@ -32,7 +32,7 @@
       <label class="match_name">{{item.match_info.name}}</label>
       <label class="match_group">{{item.match_group_info.name}}</label>
     </view>
-    <view wx:if="{{item.match_info.match_status == 2}}">
+    <view wx:if="{{item.match_info.match_status == 1}}">
       <view class="match_date">
         <label>比赛日期:{{item.match_info.start_time}} 至 {{item.match_info.end_time}} (未开始) </label>
       </view>
@@ -50,7 +50,7 @@
       <view class="match_ratio">
         总收益<label class="{{item.today_record.total_income[0]=='-' ?'down':'up'}}">{{item.today_record.total_income}}</label>
         胜率<label class="{{item.today_record.total_income[0]=='-' ?'down':'up'}}">{{item.today_record.win_rate}}</label>
-        排名<label class="{{item.today_record.total_income[0]=='-' ?'down':'up'}}">{{item.today_record.rank}}</label>
+        排名<label class="{{item.today_record.total_income[0]=='-' ?'down':'up'}}">{{item.today_record.group_rank}}</label>
       </view>
     </view>
     

+ 1 - 1
pages/matchdetail/matchdetail.wxml

@@ -18,7 +18,7 @@
   <view class="match_ratio">
     总收益<label class="{{datas.today_record.total_income[0]=='-' ?'down':'up'}}">{{datas.today_record.total_income}}</label>
     胜率<label class="{{datas.today_record.total_income[0]=='-' ?'down':'up'}}">{{datas.today_record.win_rate}}</label>
-    排名<label class="{{datas.today_record.total_income[0]=='-' ?'down':'up'}}">{{datas.today_record.rank}}</label>
+    排名<label class="{{datas.today_record.total_income[0]=='-' ?'down':'up'}}">{{datas.today_record.group_rank}}</label>
   </view>
 </view>
 <view wx:if='{{datas.records.length>1}}'>

+ 58 - 58
project.config.json

@@ -1,60 +1,60 @@
 {
-	"description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
-	"packOptions": {
-		"ignore": [],
-		"include": []
-	},
-	"setting": {
-		"urlCheck": true,
-		"es6": true,
-		"enhance": true,
-		"postcss": true,
-		"preloadBackgroundData": false,
-		"minified": true,
-		"newFeature": true,
-		"coverView": true,
-		"nodeModules": false,
-		"autoAudits": false,
-		"showShadowRootInWxmlPanel": true,
-		"scopeDataCheck": false,
-		"uglifyFileName": false,
-		"checkInvalidKey": true,
-		"checkSiteMap": true,
-		"uploadWithSourceMap": true,
-		"babelSetting": {
-			"ignore": [],
-			"disablePlugins": [],
-			"outputPath": ""
-		},
-		"useCompilerModule": false,
-		"userConfirmedUseCompilerModuleSwitch": false,
-		"compileHotReLoad": false,
-		"lazyloadPlaceholderEnable": false,
-		"useMultiFrameRuntime": true,
-		"useApiHook": true,
-		"useApiHostProcess": true,
-		"enableEngineNative": false,
-		"useIsolateContext": false,
-		"userConfirmedBundleSwitch": false,
-		"packNpmManually": false,
-		"packNpmRelationList": [],
-		"minifyWXSS": true,
-		"disableUseStrict": false,
-		"minifyWXML": true,
-		"showES6CompileOption": false,
-		"useCompilerPlugins": false,
-		"useStaticServer": true,
-		"ignoreUploadUnusedFiles": true
-	},
-	"compileType": "miniprogram",
-	"libVersion": "2.15.0",
-	"appid": "wxb299e10e65157301",
-	"projectname": "newwzb_xcx",
-	"simulatorType": "wechat",
-	"simulatorPluginLibVersion": {},
-	"editorSetting": {
-		"tabIndent": "insertSpaces",
-		"tabSize": 2
-	},
-	"condition": {}
+  "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+  "packOptions": {
+    "ignore": [],
+    "include": []
+  },
+  "setting": {
+    "urlCheck": true,
+    "es6": true,
+    "enhance": true,
+    "postcss": true,
+    "preloadBackgroundData": false,
+    "minified": true,
+    "newFeature": true,
+    "coverView": true,
+    "nodeModules": false,
+    "autoAudits": false,
+    "showShadowRootInWxmlPanel": true,
+    "scopeDataCheck": false,
+    "uglifyFileName": false,
+    "checkInvalidKey": true,
+    "checkSiteMap": true,
+    "uploadWithSourceMap": true,
+    "babelSetting": {
+      "ignore": [],
+      "disablePlugins": [],
+      "outputPath": ""
+    },
+    "useCompilerModule": false,
+    "userConfirmedUseCompilerModuleSwitch": false,
+    "compileHotReLoad": false,
+    "lazyloadPlaceholderEnable": false,
+    "useMultiFrameRuntime": true,
+    "useApiHook": true,
+    "useApiHostProcess": true,
+    "enableEngineNative": false,
+    "useIsolateContext": false,
+    "userConfirmedBundleSwitch": false,
+    "packNpmManually": false,
+    "packNpmRelationList": [],
+    "minifyWXSS": true,
+    "disableUseStrict": false,
+    "minifyWXML": true,
+    "showES6CompileOption": false,
+    "useCompilerPlugins": false,
+    "useStaticServer": true,
+    "ignoreUploadUnusedFiles": true
+  },
+  "compileType": "miniprogram",
+  "libVersion": "2.15.0",
+  "appid": "wxb299e10e65157301",
+  "projectname": "newwzb_xcx",
+  "simulatorType": "wechat",
+  "simulatorPluginLibVersion": {},
+  "editorSetting": {
+    "tabIndent": "insertSpaces",
+    "tabSize": 2
+  },
+  "condition": {}
 }