|
|
@@ -1,4 +1,4 @@
|
|
|
-<view class="bg" wx:if='{{userinfo.id}}'>
|
|
|
+<view class="bg" wx:if='{{status == 3}}'>
|
|
|
<view class="info">
|
|
|
<view class='avatar'>
|
|
|
<image style="width:100%;height:100%;" src="{{userinfo.avatar}}"></image>
|
|
|
@@ -7,13 +7,13 @@
|
|
|
<view>{{userinfo.username}}</view>
|
|
|
<text wx:if='{{userinfo.id}}'>代码:{{usercode}}</text>
|
|
|
</view>
|
|
|
- <navigator url="../today/today?id={{todayinfo.match_id}}&record_id={{todayinfo.id}}&player_id={{todayinfo.player_id}}" class="mine">我的主页</navigator>
|
|
|
+ <navigator url="../homepage/homepage?id={{todayinfo.match_id}}&record_id={{todayinfo.id}}&player_id={{todayinfo.player_id}}&type=1" class="mine">我的主页</navigator>
|
|
|
</view>
|
|
|
<view class="today">
|
|
|
<navigator hover-class="none" url="../change/change">
|
|
|
|
|
|
<view class="money">
|
|
|
- <text class="{{todayMoney[0]=='-' ?'down':'up'}}">¥{{todayMoney}} </text>
|
|
|
+ <text class="{{todayMoney[0]=='-' ?'down':'up'}}">{{todayMoney}} </text>
|
|
|
<text class="{{todayinfo.today_income[0]=='-' ?'todaydown':'todayup'}}">{{todayinfo.today_income}}</text>
|
|
|
<text class="today_text">今日收益</text>
|
|
|
</view>
|
|
|
@@ -27,8 +27,8 @@
|
|
|
</view>
|
|
|
</navigator>
|
|
|
<view class="msg">
|
|
|
- <view><image mode="widthFix" src="../../images/msg.png"></image>3355</view>
|
|
|
- <view><image mode="widthFix" src="../../images/zan.png"></image>3355</view>
|
|
|
+ <view><image mode="widthFix" src="../../images/msg.png"></image>{{todayinfo.comments_count}}</view>
|
|
|
+ <view><image mode="widthFix" src="../../images/zan.png"></image>{{todayinfo.zan_count}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="list" style="padding:0 30rpx;background:#fff;">
|
|
|
@@ -54,15 +54,42 @@
|
|
|
|
|
|
</view>
|
|
|
<!-- 未登录 -->
|
|
|
-<view class="no_login" wx:else>
|
|
|
+<view class="no_login" wx:if='{{status == 0}}'>
|
|
|
<view class="title">欢迎来到湖南顽主杯实盘大赛</view>
|
|
|
<view class='avatar'>
|
|
|
<open-data type="userAvatarUrl">
|
|
|
</open-data>
|
|
|
</view>
|
|
|
<view class="login">
|
|
|
- <input bindinput='inputchange' placeholder="请输入您的代码" value="{{usercode}}"></input>
|
|
|
+ <!-- <input bindinput='inputchange' placeholder="请输入您的代码" value="{{usercode}}"></input> -->
|
|
|
<button bindtap="login">登录</button>
|
|
|
</view>
|
|
|
<!-- <button class="contactus" open-type="contact">咨询</button> -->
|
|
|
+</view>
|
|
|
+<view class="no_login" wx:if='{{status == 1}}'>
|
|
|
+ <view class="title">欢迎来到湖南顽主杯实盘大赛</view>
|
|
|
+ <view class='avatar'>
|
|
|
+ <image src="../../images/logo.png"></image>
|
|
|
+ </view>
|
|
|
+ <view class="login">
|
|
|
+ <view><input type="number" placeholder-style="color:#999" bindinput='inputchange' placeholder="请输入手机号"></input></view>
|
|
|
+ <view class="yzm">
|
|
|
+ <input type="number" placeholder-style="color:#999" bindinput='codechange' placeholder="请输入验证码"></input>
|
|
|
+ <view bindtap="getcode" wx:if="{{text=='获取验证码'}}">{{text}}</view>
|
|
|
+ <view class="disabled" wx:else>{{text}}</view>
|
|
|
+ </view>
|
|
|
+ <button bindtap="login1">登录</button>
|
|
|
+ </view>
|
|
|
+</view>
|
|
|
+<view class="no_login" wx:if='{{status == 2}}'>
|
|
|
+ <view class="title" style="margin-bottom: 50rpx;">为了账号安全,请先绑定手机号</view>
|
|
|
+ <view class="login">
|
|
|
+ <view><input type="number" placeholder-style="color:#999" bindinput='inputchange' placeholder="请输入手机号"></input></view>
|
|
|
+ <view class="yzm">
|
|
|
+ <input type="number" placeholder-style="color:#999" bindinput='codechange' placeholder="请输入验证码"></input>
|
|
|
+ <view bindtap="getcode" wx:if="{{text=='获取验证码'}}">{{text}}</view>
|
|
|
+ <view class="disabled" wx:else>{{text}}</view>
|
|
|
+ </view>
|
|
|
+ <button bindtap="login2">绑定</button>
|
|
|
+ </view>
|
|
|
</view>
|