begmoon 1 rok temu
rodzic
commit
7e74a77add
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 3 3
      pages/index/index.wxml
  2. 1 1
      utils/api.js

+ 3 - 3
pages/index/index.wxml

@@ -89,7 +89,7 @@
   </view>
   <scroll-view style="height: 200rpx;" scroll-x='{{true}}' wx:if='{{groups}}'>
     <view class="group_list">
-      <view wx:for='{{groups.group_win_lose_list}}' class="g_list"  data-index='{{index}}'>
+      <view wx:for='{{groups.group_win_lose_list}}' class="g_list"  data-index='{{index}}' bind:tap="tapGroup">
         <image mode="widthFix" wx:if="{{item.today_income_avg[0]=='-'}}" src="../../images/indexlose@2x.png"></image>
         <image mode="widthFix" wx:else src="../../images/indexwin@2x.png"></image>
         <view>{{item.name}}</view>
@@ -104,8 +104,8 @@
   <view class="today">
     今日盈亏人数比 <text class="up" style="font-weight: 500;">{{groups.win_cnt}}</text> : <text class="down" style="font-weight: 500;">{{groups.lose_cnt}} </text>
     今日人均收益(算数平均)  
-    <text class="{{groups.today_win_lose_avg[0]=='-' ?'down':'up'}}" style="font-weight: 500;">{{groups.today_win_lose_avg}}</text>
-    <!-- <text class="{{groups.today_win_lose_avg[0]=='-' ?'down':'up'}}" style="font-weight: 500;text-decoration: underline;" bind:tap="tapAvg">{{groups.today_win_lose_avg}}</text> -->
+    <!-- <text class="{{groups.today_win_lose_avg[0]=='-' ?'down':'up'}}" style="font-weight: 500;">{{groups.today_win_lose_avg}}</text> -->
+    <text class="{{groups.today_win_lose_avg[0]=='-' ?'down':'up'}}" style="font-weight: 500;text-decoration: underline;" bind:tap="tapAvg">{{groups.today_win_lose_avg}}</text>
   </view>
 
   <view class="tab">

+ 1 - 1
utils/api.js

@@ -175,7 +175,7 @@ const API = {
   updateRecord: (data) => request(POST, `/api/wx/player/record`, data),
   getRecord: (data) => request(GET, `/api/wx/player/record`, data),
   getCurrecord: (data) => request(GET, `/api/wx/player/currecord`, data),
-  getArticle: (data) => request(GET, `/api/wx/article`, data),
+  getArticle: (data) => request(GET, `/api/wx/v3/article/detail`, data),
   getStock: (data) => request(GET, `/api/wx/v3/stock`, data),
   getStockPlayer: (data) => request(GET, `/api/wx/v3/stock/players/list`, data),
   searchStock: (data) => request(GET, `/api/wx/stock/search`, data),