166 lines
6.0 KiB
Plaintext
166 lines
6.0 KiB
Plaintext
<!--packageH/turmaroundTime/turmaroundMy/turmaroundMy.wxml-->
|
|
|
|
<wxs module="m2">
|
|
var slice = function(str) {
|
|
var fix = str.slice(0,10);
|
|
return fix
|
|
}
|
|
module.exports.slice = slice;
|
|
</wxs>
|
|
<wxs module="m1">
|
|
var Fixed = function(sec){
|
|
if(sec >= 60000){
|
|
var minute = Math.floor((sec /1000)/60);
|
|
var second = Math.floor((sec/1000) % 60);
|
|
var msec = (sec/1000) % 60;
|
|
var msec = msec.toString().split('.')[1]
|
|
var msec = '0.' + msec;
|
|
msec = msec*1000;
|
|
msec = msec.toFixed(0);
|
|
return minute+':'+second+'.'+msec
|
|
}else{
|
|
return (sec /1000).toFixed(3)
|
|
}
|
|
}
|
|
module.exports.Fixed = Fixed;
|
|
</wxs>
|
|
|
|
<view class="myGradeBox">
|
|
<view class="gradeBoxBj">
|
|
<view class="userMsg">
|
|
<view class="userTop">
|
|
<view class="userimg">
|
|
<image src="{{memberInfo.avatar_image}}"></image>
|
|
<view class="userimg_pos">
|
|
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/turmaroundTimeNan.png" wx:if="{{memberInfo.gender == '1'}}">
|
|
</image>
|
|
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/turmaroundTimeNv.png" wx:if="{{memberInfo.gender == '2'}}">
|
|
</image>
|
|
</view>
|
|
</view>
|
|
<view class="nickName">{{memberInfo.nickname}}</view>
|
|
</view>
|
|
<view class="userBottom">
|
|
<view class="io_like">
|
|
<view catchtap="tapLikeIo">
|
|
<view class="linkBox">
|
|
<van-icon name='like-o' size="25" color="#fd65a8"></van-icon>
|
|
<text>{{memberInfo.kart_likes_count}}</text>
|
|
</view>
|
|
{{uid ? (memberInfo.is_give_like == '2'?'点赞':'取消点赞'):'获赞'}}
|
|
</view>
|
|
<view>
|
|
<view class="linkBox">
|
|
<text>{{memberInfo.kart_accepts_count || 0}}</text>
|
|
</view>
|
|
打赏金额
|
|
</view>
|
|
</view>
|
|
<view class="btn" wx:if="{{id}}">
|
|
<view class="btnBox" style="margin-right:50rpx;" catchtap="showReward">打赏</view>
|
|
<view class="btnBox" catchtap="getPoster">分享给好友
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="history" wx:if="{{!uid}}">
|
|
<view class="historyHead" catchtap="showHistory">
|
|
<view style="font-size: 32rpx;">历史成绩</view>
|
|
<van-icon name="arrow" wx:if="{{!showIn}}" />
|
|
<van-icon name="arrow-down" wx:if="{{showIn}}" />
|
|
</view>
|
|
<view class="historyShow" wx:for="{{history}}" wx:key="index" wx:if="{{showIn}}" catchtap="goStore"
|
|
data-id="{{item.store_id}}">
|
|
<view style="font-size: 30rpx;">{{m2.slice(item.created_at)}}</view>
|
|
<view class="historyShow_two">
|
|
<text style="font-size: 16px;">{{item.store_name}}</text>
|
|
</view>
|
|
<view class="historyShow_two">
|
|
<text style="font-size: 30rpx;color: #ffad37;">{{m1.Fixed(item.fine)}}</text>
|
|
<text style="font-size: 30rpx;">{{item.type_name}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="history" wx:if="{{uid}}">
|
|
<view class="historyHead" catchtap="showHistory">
|
|
<view style="font-size: 32rpx;">历史成绩</view>
|
|
<van-icon name="arrow" wx:if="{{!showIn}}" />
|
|
<van-icon name="arrow-down" wx:if="{{showIn}}" />
|
|
</view>
|
|
<view class="historyShow" wx:for="{{history}}" wx:key="index" wx:if="{{showIn}}" catchtap="goStore"
|
|
data-id="{{item.store_id}}">
|
|
<!-- <view style="font-size: 30rpx;">{{m2.slice(item.created_at)}}</view> -->
|
|
<view class="historyShow_two">
|
|
<text style="font-size: 16px;">{{item.date}}</text>
|
|
</view>
|
|
<view class="historyShow_two">
|
|
<text style="font-size: 30rpx;color: #ffad37;">{{m1.Fixed(item.fine)}}</text>
|
|
<text style="font-size: 30rpx;">{{item.name}}</text>
|
|
</view>
|
|
<view class="historyShow_two">
|
|
<text style="font-size: 30rpx;color: #ffad37;">{{m3.filtrate(item.type)}}榜</text>
|
|
<text style="font-size: 30rpx;">第{{item.ranking}}名</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{reward}}" class="rewardBox">
|
|
<view class="rewardTop">
|
|
选择打赏金额
|
|
<icon class="iconfont icon-guanbi" catchtap="close"></icon>
|
|
</view>
|
|
<view class="moneyBox">
|
|
<view class="fixation" wx:for="{{arr}}" wx:key="index" catchtap="selectMoney" data-str="{{item}}">{{item}}</view>
|
|
</view>
|
|
<view class="moneyInp">
|
|
其他金额
|
|
<view class="inp">
|
|
<input type="number" placeholder="请输入金额" value="{{amount}}" bindinput="tapinp"></input>
|
|
</view>
|
|
</view>
|
|
<view class="confirmBtn" catchtap="Accepts">确认打赏</view>
|
|
</view>
|
|
<van-popup show="{{showShare}}" bind:close='closePoster'>
|
|
<view class="swiperBox">
|
|
<van-icon name="arrow-left" color="#fff" size="30" style="margin-right:30rpx;" catchtap="leftNext"
|
|
data-ind='{{poster}}' />
|
|
<view>
|
|
<swiper current="{{swiperInd}}" indicator-dots="{{true}}" indicator-color="#cbc4b8"
|
|
indicator-active-color="#ffffff">
|
|
<block wx:for="{{poster}}" wx:key="index">
|
|
<swiper-item>
|
|
<image src="{{item}}" catchtap="preview"></image>
|
|
</swiper-item>
|
|
</block>
|
|
</swiper>
|
|
</view>
|
|
|
|
<van-icon name="arrow" color="#fff" size="30" style="margin-left:30rpx;" catchtap="rightNext"
|
|
data-ind='{{poster}}' />
|
|
</view>
|
|
<view class="btnBoxBottom">
|
|
<!-- <view class="leftBox" catchtap="saveImage">保存图片</view>
|
|
<view class="rightBox" catchtap="shareBoxPos">发送给好友 -->
|
|
<!-- <button open-type="share" class="shareBoxPos"></button> -->
|
|
<!-- </view> -->
|
|
<text style="color:#fff;">点击图片长按保存或转发给朋友~</text>
|
|
</view>
|
|
</van-popup>
|
|
<wxs module="m3">
|
|
var filtrate = function(num) {
|
|
if(num == '1'){
|
|
return '日'
|
|
}else if(num == '2'){
|
|
return '周'
|
|
}else if(num == '3'){
|
|
return '月'
|
|
}else if(num == '4'){
|
|
return '年'
|
|
}else if(num == '5'){
|
|
return '总'
|
|
}
|
|
|
|
}
|
|
module.exports.filtrate = filtrate;
|
|
</wxs> |