xjc 3 anni fa
parent
commit
4a9d74eb72
2 ha cambiato i file con 5 aggiunte e 6 eliminazioni
  1. 1 1
      pages/apply/apply.wxml
  2. 4 5
      pages/homepage/homepage.wxml

+ 1 - 1
pages/apply/apply.wxml

@@ -66,6 +66,6 @@
 <view class="title title1">4、声明</view>
 <view class="date">比赛只做学习交流,不做任何投资建议,比赛系统内的选手操作与言论,仅代表选手个人意见,与比赛举办方无关,请勿跟风模仿,盈亏自负。如您发现比赛系统内有人发表不当言论,有任何割韭菜的嫌疑,请及时跟比赛方反应。\n\n\n</view>
 </scroll-view>
-<button bindtap="post" class="apply" wx:if="{{authinfo.match_id==info.id}}" disabled>已报名</button>
+<button bindtap="post" class="apply" wx:if="{{info.signup_done}}" disabled>已报名</button>
 <button bindtap="post" class="apply" wx:elif="{{type==2&&info.signup_status==0}}" disabled>立即报名(选手报名已结束)</button>
 <button bindtap="post" class="apply" wx:else >立即报名</button>

+ 4 - 5
pages/homepage/homepage.wxml

@@ -106,15 +106,14 @@
         <view class="date">{{item.stock_date}}(今日收益 <text  class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>)</view>
       </view>
       <view class="info">
-        <view>资产<label>{{item.today_fund}}w</label> (总收益 <text  class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)</view>
+        <view>资产:  <label>{{item.today_fund}}w</label> (总收益 <text  class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)</view>
       </view>
       
       <view class="info">
-                  持仓: 
-                    <view wx:if='{{item.is_markt}}'>开超市</view>
-                    <view wx:elif='{{item.today_stock.length>0}}'>
+                  持仓:<label wx:if='{{item.is_markt}}'>开超市</label>
+                    <label wx:elif='{{item.today_stock.length>0}}'>
                         <block wx:for="{{item.today_stock}}" wx:for-item='i'> {{i.name}}({{i.fund}}w) </block>
-                    </view>
+                    </label>
                     <view wx:else>空仓</view>
       </view>
       <view class="info" wx:if='{{item.experience}}'>