Commit bfd13e08 authored by lvtz's avatar lvtz

fix

parent fc1be571
......@@ -13,7 +13,8 @@ Page({
data: {
namePublishing: false,
nickname: '',
id: 0
id: 0,
nameMaxLength: 20
},
/**
......@@ -48,10 +49,10 @@ Page({
})
return;
}
if (nickname.length > 10) {
if (nickname.length > this.data.nameMaxLength) {
wx.showModal({
title: '提示',
content: '昵称不能超过十个字',
content: `昵称不能超过${this.data.nameMaxLength}个字`,
showCancel: false
})
return;
......
<view class="container">
<view class="item">
<input type="text" placeholder-class="placeholderclass" class="iteminput" maxlength="10" value="{{nickname}}" bindinput="nicknameInput" placeholder="输入昵称"></input>
<text class="length-rate">{{nickname.length}}/10</text>
<input type="text" placeholder-class="placeholderclass" class="iteminput" maxlength="{{nameMaxLength}}" value="{{nickname}}" bindinput="nicknameInput" placeholder="输入昵称"></input>
<text class="length-rate">{{nickname.length}}/{{nameMaxLength}}</text>
</view>
<view class="btn-nicknameSave" bindtap="nicknameSave">保存</view>
......
......@@ -316,7 +316,7 @@
<view class="scorestarbox" wx:if="{{clock.review[1].score / 10 >= 3}}">
<image class="{{starresolve.getStarClass(clock.review[1].score / 10, 4)}}" src="{{imageRoot}}common/{{starresolve.getStar(clock.review[1].score / 10, 4, 1)}}?{{imageVersion}}" ></image>
</view>
<view class="scorestarbox" class="scorestarbox" wx:if="{{clock.review[1].score / 10 >= 4}}">
<view class="scorestarbox" wx:if="{{clock.review[1].score / 10 >= 4}}">
<image class="{{starresolve.getStarClass(clock.review[1].score / 10, 5)}}" src="{{imageRoot}}common/{{starresolve.getStar(clock.review[1].score / 10, 5, 1)}}?{{imageVersion}}" ></image>
</view>
<view class="scoreshow">{{clock.review[1].score / 5}}</view>
......@@ -355,7 +355,7 @@
<view class="scorestarbox" wx:if="{{clock.review[1].score / 10 >= 3}}">
<image class="{{starresolve.getStarClass(clock.review[1].score / 10, 4)}}" src="{{imageRoot}}common/{{starresolve.getStar(clock.review[1].score / 10, 4, 1)}}?{{imageVersion}}" ></image>
</view>
<view class="scorestarbox" class="scorestarbox" wx:if="{{clock.review[1].score / 10 >= 4}}">
<view class="scorestarbox" wx:if="{{clock.review[1].score / 10 >= 4}}">
<image class="{{starresolve.getStarClass(clock.review[1].score / 10, 5)}}" src="{{imageRoot}}common/{{starresolve.getStar(clock.review[1].score / 10, 5, 1)}}?{{imageVersion}}" ></image>
</view>
<view class="scoreshow">{{clock.review[1].score / 5}}</view>
......
......@@ -1416,7 +1416,7 @@
height: 24rpx;
display: block;
}
.totalscorebox .scorestarbox .star-icon-half, .score-temp-list-box .score-temp-item .star-icon-half {
.totalscorebox .scorestarbox .star-icon-half, .score-temp-list-box .score-temp-item .star-icon-half, .scorestarbox image {
width: 13rpx;
height: 24rpx;
display: block;
......
......@@ -401,9 +401,9 @@ defaultClockList: [[{"id":119722,"school_id":424,"school_student_id":8465,"class
this.setData({
clockGetting: true
})
wx.showLoading({
title: '数据加载中'
})
// wx.showLoading({
// title: '数据加载中'
// })
clockList({
page: that.data.clockPage,
perPage: that.data.perPage,
......@@ -533,7 +533,7 @@ defaultClockList: [[{"id":119722,"school_id":424,"school_student_id":8465,"class
})
}
})
wx.hideLoading();
// wx.hideLoading();
}
}).catch((e) => {
this.setData({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment