代码完成
parent
52bf66a648
commit
ab54159785
|
@ -14,7 +14,7 @@
|
|||
<view class="user-info-box bg-white">
|
||||
<view class="info">
|
||||
<view class="cover">
|
||||
<image :src="userInfo.avatarUrl || imgSrc" mode="aspectFit"></image>
|
||||
<image :src="imgSrc" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="name color-99 font24">{{appletName}}</view>
|
||||
<view class="tips">
|
||||
|
|
|
@ -24,11 +24,14 @@
|
|||
uni.reLaunch({
|
||||
url:'/pages/worker/sign/sign'
|
||||
})
|
||||
}
|
||||
if(res.data.role==2){
|
||||
}else if(res.data.role==2){
|
||||
uni.reLaunch({
|
||||
url:'/pages/director/sign/sign'
|
||||
})
|
||||
}else{
|
||||
uni.reLaunch({
|
||||
url:'/pages/worker/sign/sign'
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
</view>
|
||||
<view class="my-txt">
|
||||
<view class="font28">{{userInfo.nickname}}</view>
|
||||
<view class="font24">{{userInfo.real_name}}</view>
|
||||
<view class="font24">{{userInfo.real_name!==''?userInfo.real_name:'审核中'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -333,29 +333,20 @@
|
|||
let second = parseInt(nowArr[2]);
|
||||
if(second<59){
|
||||
second++;
|
||||
if(second<10){
|
||||
second = '0'+second;
|
||||
}
|
||||
}else{
|
||||
second = '00';
|
||||
second = 0;
|
||||
if(minute<59){
|
||||
minute++;
|
||||
if(minute<10){
|
||||
minute = '0'+minute;
|
||||
}
|
||||
}else{
|
||||
minute = '00';
|
||||
minute = 0;
|
||||
if(hour<23){
|
||||
hour++;
|
||||
if(hour<10){
|
||||
hour = '0'+hour;
|
||||
}
|
||||
}else{
|
||||
hour = '00';
|
||||
hour = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.currenTime = `${hour}:${minute}:${second}`;
|
||||
this.currenTime = `${hour<10?'0'+hour:hour}:${minute<10?'0'+minute:minute}:${second<10?'0'+second:second}`;
|
||||
},1000)
|
||||
// 获取打卡记录列表
|
||||
this.signList = res.data.list;
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
<view class="data-v-b237504c"><view class="login-header data-v-b237504c"><image class="infoImg data-v-b237504c" mode="aspectFill" src="{{userInfo.avatarUrl||imgSrc}}"></image><view class="logo-name font34 color-00 data-v-b237504c">{{appletName}}</view></view><view class="login-footer data-v-b237504c"><block wx:if="{{!isActive}}"><view class="login-btn color-white font34 bg-blue data-v-b237504c" type="primary" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e">微信授权</view></block><block wx:else><view class="login-btn color-white font34 bg-blue data-v-b237504c" type="primary" data-event-opts="{{[['tap',[['getUserProfileEv',['$event']]]]]}}" bindtap="__e">微信授权</view></block><view class="agreement-box color-33 font28 data-v-b237504c">点击授权登录,表示您已阅读<text data-event-opts="{{[['tap',[['toAgreement',['$event']]]]]}}" class="agreement color-blue data-v-b237504c" bindtap="__e">《免责声明》</text></view></view><block wx:if="{{empowerShow}}"><view class="pop-up-bg data-v-b237504c"><view class="user-info-box bg-white data-v-b237504c"><view class="info data-v-b237504c"><view class="cover data-v-b237504c"><image src="{{userInfo.avatarUrl||imgSrc}}" mode="aspectFit" class="data-v-b237504c"></image></view><view class="name color-99 font24 data-v-b237504c">{{appletName}}</view><view class="tips data-v-b237504c"><view class="font26 data-v-b237504c">邀请您补全个人信息</view><view class="font24 color-blue data-v-b237504c">(昵称、头像)</view></view></view><view class="msg data-v-b237504c"><view class="item font26 data-v-b237504c"><text class="data-v-b237504c">头像</text><button class="avatar data-v-b237504c" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['chooseAvatar',['$event']]]]]}}" bindchooseavatar="__e"><image src="{{userInfo.avatarUrl||logoAvatar}}" mode="aspectFit" class="data-v-b237504c"></image></button></view><view class="item font26 data-v-b237504c"><text class="data-v-b237504c">昵称</text><input class="nick-name data-v-b237504c" type="nickname" placeholder="请输入昵称" placeholder-style="color:#999" data-event-opts="{{[['blur',[['nickNameInput',['$event']]]],['input',[['__set_model',['$0','nickName','$event',[]],['userInfo']]]]]}}" value="{{userInfo.nickName}}" bindblur="__e" bindinput="__e"/></view></view><view class="empower-btns font30 data-v-b237504c"><view data-event-opts="{{[['tap',[['refuseEv',['$event']]]]]}}" class="btn color-99 data-v-b237504c" bindtap="__e">拒绝</view><view data-event-opts="{{[['tap',[['getUserProfileEv',['$event']]]]]}}" class="btn color-blue data-v-b237504c" bindtap="__e">允许</view></view></view></view></block></view>
|
||||
<view class="data-v-b237504c"><view class="login-header data-v-b237504c"><image class="infoImg data-v-b237504c" mode="aspectFill" src="{{userInfo.avatarUrl||imgSrc}}"></image><view class="logo-name font34 color-00 data-v-b237504c">{{appletName}}</view></view><view class="login-footer data-v-b237504c"><block wx:if="{{!isActive}}"><view class="login-btn color-white font34 bg-blue data-v-b237504c" type="primary" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e">微信授权</view></block><block wx:else><view class="login-btn color-white font34 bg-blue data-v-b237504c" type="primary" data-event-opts="{{[['tap',[['getUserProfileEv',['$event']]]]]}}" bindtap="__e">微信授权</view></block><view class="agreement-box color-33 font28 data-v-b237504c">点击授权登录,表示您已阅读<text data-event-opts="{{[['tap',[['toAgreement',['$event']]]]]}}" class="agreement color-blue data-v-b237504c" bindtap="__e">《免责声明》</text></view></view><block wx:if="{{empowerShow}}"><view class="pop-up-bg data-v-b237504c"><view class="user-info-box bg-white data-v-b237504c"><view class="info data-v-b237504c"><view class="cover data-v-b237504c"><image src="{{imgSrc}}" mode="aspectFit" class="data-v-b237504c"></image></view><view class="name color-99 font24 data-v-b237504c">{{appletName}}</view><view class="tips data-v-b237504c"><view class="font26 data-v-b237504c">邀请您补全个人信息</view><view class="font24 color-blue data-v-b237504c">(昵称、头像)</view></view></view><view class="msg data-v-b237504c"><view class="item font26 data-v-b237504c"><text class="data-v-b237504c">头像</text><button class="avatar data-v-b237504c" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['chooseAvatar',['$event']]]]]}}" bindchooseavatar="__e"><image src="{{userInfo.avatarUrl||logoAvatar}}" mode="aspectFit" class="data-v-b237504c"></image></button></view><view class="item font26 data-v-b237504c"><text class="data-v-b237504c">昵称</text><input class="nick-name data-v-b237504c" type="nickname" placeholder="请输入昵称" placeholder-style="color:#999" data-event-opts="{{[['blur',[['nickNameInput',['$event']]]],['input',[['__set_model',['$0','nickName','$event',[]],['userInfo']]]]]}}" value="{{userInfo.nickName}}" bindblur="__e" bindinput="__e"/></view></view><view class="empower-btns font30 data-v-b237504c"><view data-event-opts="{{[['tap',[['refuseEv',['$event']]]]]}}" class="btn color-99 data-v-b237504c" bindtap="__e">拒绝</view><view data-event-opts="{{[['tap',[['getUserProfileEv',['$event']]]]]}}" class="btn color-blue data-v-b237504c" bindtap="__e">允许</view></view></view></view></block></view>
|
|
@ -156,11 +156,14 @@ var _default =
|
|||
uni.reLaunch({
|
||||
url: '/pages/worker/sign/sign' });
|
||||
|
||||
}
|
||||
if (res.data.role == 2) {
|
||||
} else if (res.data.role == 2) {
|
||||
uni.reLaunch({
|
||||
url: '/pages/director/sign/sign' });
|
||||
|
||||
} else {
|
||||
uni.reLaunch({
|
||||
url: '/pages/worker/sign/sign' });
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1 +1 @@
|
|||
<view class="pad-x120 data-v-21031917"><status-nav vue-id="013eea62-1" ifReturn="{{false}}" navBarTitle="个人中心" titleColor="{{titleColor}}" backgroudColor="{{backgroudColor}}" class="data-v-21031917" bind:__l="__l"></status-nav><block wx:if="{{isLoding}}"><view class="content data-v-21031917"><view class="sign-top my-top font24 color-white data-v-21031917" style="{{'padding-top:'+(statusHeight+50+'px')+';'}}"><image src="/static/my-bg.jpg" mode="aspectFill" class="data-v-21031917"></image><view class="my-info data-v-21031917"><view class="my-cover data-v-21031917"><image src="{{userInfo.headimgurl}}" mode="aspectFill" class="data-v-21031917"></image></view><view class="my-txt data-v-21031917"><view class="font28 data-v-21031917">{{userInfo.nickname}}</view><view class="font24 data-v-21031917">{{userInfo.real_name}}</view></view></view></view><view class="sign-record my-more data-v-21031917"><block wx:for="{{myMoreList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toMore',['$0'],[[['myMoreList','',index,'url']]]]]]]}}" class="item bg-white data-v-21031917" bindtap="__e"><view class="img data-v-21031917"><image style="{{'width:'+(iconWidth[index]+'rpx')+';'+('height:'+(iconHeight[index]+'rpx')+';')}}" src="{{'/static/icon/icon-my-0'+(index+1)+'.png'}}" mode="aspectFit" class="data-v-21031917"></image></view><view class="txt font28 data-v-21031917">{{item.title}}</view><image src="/static/icon/icon-arrow-03.png" mode="aspectFit" class="data-v-21031917"></image></view></block></view></view></block><tabbar vue-id="013eea62-2" userType="{{userType}}" current="2" class="data-v-21031917" bind:__l="__l"></tabbar></view>
|
||||
<view class="pad-x120 data-v-21031917"><status-nav vue-id="013eea62-1" ifReturn="{{false}}" navBarTitle="个人中心" titleColor="{{titleColor}}" backgroudColor="{{backgroudColor}}" class="data-v-21031917" bind:__l="__l"></status-nav><block wx:if="{{isLoding}}"><view class="content data-v-21031917"><view class="sign-top my-top font24 color-white data-v-21031917" style="{{'padding-top:'+(statusHeight+50+'px')+';'}}"><image src="/static/my-bg.jpg" mode="aspectFill" class="data-v-21031917"></image><view class="my-info data-v-21031917"><view class="my-cover data-v-21031917"><image src="{{userInfo.headimgurl}}" mode="aspectFill" class="data-v-21031917"></image></view><view class="my-txt data-v-21031917"><view class="font28 data-v-21031917">{{userInfo.nickname}}</view><view class="font24 data-v-21031917">{{userInfo.real_name!==''?userInfo.real_name:'审核中'}}</view></view></view></view><view class="sign-record my-more data-v-21031917"><block wx:for="{{myMoreList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toMore',['$0'],[[['myMoreList','',index,'url']]]]]]]}}" class="item bg-white data-v-21031917" bindtap="__e"><view class="img data-v-21031917"><image style="{{'width:'+(iconWidth[index]+'rpx')+';'+('height:'+(iconHeight[index]+'rpx')+';')}}" src="{{'/static/icon/icon-my-0'+(index+1)+'.png'}}" mode="aspectFit" class="data-v-21031917"></image></view><view class="txt font28 data-v-21031917">{{item.title}}</view><image src="/static/icon/icon-arrow-03.png" mode="aspectFit" class="data-v-21031917"></image></view></block></view></view></block><tabbar vue-id="013eea62-2" userType="{{userType}}" current="2" class="data-v-21031917" bind:__l="__l"></tabbar></view>
|
|
@ -509,29 +509,20 @@ __webpack_require__.r(__webpack_exports__);
|
|||
var second = parseInt(nowArr[2]);
|
||||
if (second < 59) {
|
||||
second++;
|
||||
if (second < 10) {
|
||||
second = '0' + second;
|
||||
}
|
||||
} else {
|
||||
second = '00';
|
||||
second = 0;
|
||||
if (minute < 59) {
|
||||
minute++;
|
||||
if (minute < 10) {
|
||||
minute = '0' + minute;
|
||||
}
|
||||
} else {
|
||||
minute = '00';
|
||||
minute = 0;
|
||||
if (hour < 23) {
|
||||
hour++;
|
||||
if (hour < 10) {
|
||||
hour = '0' + hour;
|
||||
}
|
||||
} else {
|
||||
hour = '00';
|
||||
hour = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
_this7.currenTime = "".concat(hour, ":").concat(minute, ":").concat(second);
|
||||
_this7.currenTime = "".concat(hour < 10 ? '0' + hour : hour, ":").concat(minute < 10 ? '0' + minute : minute, ":").concat(second < 10 ? '0' + second : second);
|
||||
}, 1000);
|
||||
// 获取打卡记录列表
|
||||
_this7.signList = res.data.list;
|
||||
|
|
Loading…
Reference in New Issue