测试反馈修改-0115

master
Lee 2023-01-15 15:31:11 +08:00
parent 16b6a7779d
commit a2935d7134
109 changed files with 29135 additions and 121 deletions

View File

@ -2,6 +2,10 @@
// launchtypelocalremote, localremote
"version": "0.0",
"configurations": [{
"app-plus" :
{
"launchtype" : "local"
},
"default" :
{
"launchtype" : "local"

View File

@ -739,6 +739,7 @@ page{
.information-from .item .picker-msg{
position: relative;
overflow: hidden;
height: 40rpx;
}
.information-from .item .picker-msg>picker{
width: 100%;

View File

@ -131,10 +131,18 @@
}else{
uni.setStorageSync('casual_worksite_id',uni.getStorageSync('worker_role')!==0?uni.getStorageSync('worksite_id'):0)
}
let params = {
date:`${this.curYear}-${this.curMonth<10?'0'+this.curMonth:this.curMonth}`,
worksite_id:uni.getStorageSync('casual_worksite_id')
};
let params = {};
if(uni.getStorageSync('worksite_id')){
params = {
date:`${this.curYear}-${this.curMonth<10?'0'+this.curMonth:this.curMonth}`,
worksite_id:uni.getStorageSync('casual_worksite_id')
};
}else{
params = {
date:`${this.curYear}-${this.curMonth<10?'0'+this.curMonth:this.curMonth}`
};
}
this.$requst.get('/api/v1/user/month-sign-log',params).then(res=>{
if(res.code==0){
console.log(res,'月度打卡信息');

View File

@ -81,11 +81,15 @@ const tools = {
handleImg(url) {
let imgUrl = '';
if(url!==''){
if(url.indexOf('https://')!==-1 || url.indexOf('http://')!==-1){
let baseUrl = url.substring(url.indexOf('//')+2, url.length);
imgUrl = `${getApp().globalData.hostapi}`+baseUrl.substring(baseUrl.indexOf('/'), baseUrl.length);
if(url.indexOf('jpg')!==-1 || url.indexOf('jpge')!==-1 || url.indexOf('png')!==-1 || url.indexOf('gif')!==-1){
if(url.indexOf('https://')!==-1 || url.indexOf('http://')!==-1){
let baseUrl = url.substring(url.indexOf('//')+2, url.length);
imgUrl = `${getApp().globalData.hostapi}`+baseUrl.substring(baseUrl.indexOf('/'), baseUrl.length);
}else{
imgUrl = `${getApp().globalData.hostapi}`+url;
}
}else{
imgUrl = `${getApp().globalData.hostapi}`+url;
imgUrl = url;
}
}
return imgUrl;

View File

@ -98,7 +98,7 @@
startDate: getDate('start'),
endDate: getDate('end'),
showDate:'', //
cateList:['全部','已发','待发'], //
cateList:['全部','待发放','全部发放','部分发放'], //
cateIndex:0, //
page:1,
size:10,
@ -149,7 +149,7 @@
let params = {
page:this.page,
size:this.size,
data:this.showDate,
date:this.showDate,
status:this.cateIndex-1
}
if(this.page==1) this.payList = [];

View File

@ -127,7 +127,7 @@
this.$toolAll.tools.showToast('提交成功');
setTimeout(()=>{
uni.reLaunch({
url:'/pages/worker/sign/sign'
url:'/pages/worker/sign/sign?userType=worker'
})
},1000)
}else{

View File

@ -457,6 +457,10 @@
this.siteInfo = res.data;
this.registerObj.worksite_id = res.data.id;
this.isLoding = true;
//
this.getSignList();
//
this.$refs.signCalendar.getStatusObj();
}
})
},
@ -696,7 +700,13 @@
//
getSignList(){
this.$requst.get('/api/v1/user/sign-today',{worksite_id:uni.getStorageSync('worksite_id')?uni.getStorageSync('worksite_id'):''}).then(res=>{
let params = {};
if(uni.getStorageSync('worksite_id')){
params = {
worksite_id:uni.getStorageSync('worker_role')!==0?uni.getStorageSync('worksite_id'):0
}
}
this.$requst.get('/api/v1/user/sign-today',params).then(res=>{
if(res.code == 0){
console.log(res,'打卡记录');
//
@ -710,11 +720,15 @@
//
showRadioEv(){
if(this.userInfo.role!==0){
if(this.siteInfo.name){
this.showRadio = true;
this.radioIndex = 0;
if(this.signList.length<4){
if(this.siteInfo.name){
this.showRadio = true;
this.radioIndex = 0;
}else{
this.$toolAll.tools.showToast('不在打卡范围内');
}
}else{
this.$toolAll.tools.showToast('不在打卡范围内');
this.$toolAll.tools.showToast('今日打卡已完成');
}
}else{
this.showRadio = true;

View File

@ -9,8 +9,8 @@
<view class="information-from font24">
<view class="item">
<view class="title">头像</view>
<view class="cover">
<image :src="userInfo.headimgurl" mode="aspectFit"></image>
<view class="cover" @tap="changeImg('cover')">
<image :src="userInfo.headimgurl" mode="aspectFill"></image>
</view>
</view>
<view class="item" @tap="editEv(0,'nickname')">
@ -22,7 +22,7 @@
<view class="title">技术岗位</view>
<view class="msg picker-msg font24">
{{userInfo.position_name}}
<text class="director-arrow" v-if="userInfo.check_info.status!==1 && userInfo.position_name!==userInfo.check_info.position_name">{{userInfo.check_info.position_name}}</text>
<text class="director-arrow" v-if="userInfo.check_info.status==0 && userInfo.position_name!==userInfo.check_info.position_name">{{userInfo.check_info.position_name}}</text>
<picker mode="selector" :range="positionList" @change="bindPositionChange" :value="positionIndex" :range-key="'name'">
<view class="name">
<text class="font26">{{positionList[positionIndex].name}}</text>
@ -39,29 +39,29 @@
</view>
<view class="item" @tap="editEv(2,'pay')" v-if="userInfo.role==1">
<view class="title">工资</view>
<view class="msg font24">{{userInfo.pay}}<text class="director-arrow" v-if="userInfo.check_info.status!==1 && userInfo.pay!==userInfo.check_info.pay">{{userInfo.check_info.pay}}</text></view>
<view class="msg font24">{{userInfo.pay}}<text class="director-arrow" v-if="userInfo.check_info.status==0 && userInfo.pay!==userInfo.check_info.pay">{{userInfo.check_info.pay}}</text></view>
<image src="/static/icon/icon-arrow-03.png" mode="aspectFit"></image>
</view>
<view class="item" @tap="editEv(3,'real_name')" v-if="userInfo.role==1">
<view class="title">姓名</view>
<view class="msg font24">{{userInfo.real_name}}<text class="director-arrow" v-if="userInfo.check_info.status!==1 && userInfo.real_name!==userInfo.check_info.real_name">{{userInfo.check_info.real_name}}</text></view>
<view class="msg font24">{{userInfo.real_name}}<text class="director-arrow" v-if="userInfo.check_info.status==0 && userInfo.real_name!==userInfo.check_info.real_name">{{userInfo.check_info.real_name}}</text></view>
<image src="/static/icon/icon-arrow-03.png" mode="aspectFit"></image>
</view>
<view class="item" @tap="editEv(4,'mobile')" v-if="userInfo.role==1">
<view class="title">电话号码</view>
<view class="msg font24">{{userInfo.mobile}}<text class="director-arrow" v-if="userInfo.check_info.status!==1 && userInfo.mobile!==userInfo.check_info.mobile">{{userInfo.check_info.mobile}}</text></view>
<view class="msg font24">{{userInfo.mobile}}<text class="director-arrow" v-if="userInfo.check_info.status==0 && userInfo.mobile!==userInfo.check_info.mobile">{{userInfo.check_info.mobile}}</text></view>
<image src="/static/icon/icon-arrow-03.png" mode="aspectFit"></image>
</view>
<view class="item" @tap="editEv(10,'card_number')" v-if="userInfo.role==1">
<view class="title">身份证号</view>
<view class="msg font24">{{userInfo.card_number}}<text class="director-arrow" v-if="userInfo.check_info.status!==1 && userInfo.card_number!==userInfo.check_info.card_number">{{userInfo.check_info.card_number}}</text></view>
<view class="msg font24">{{userInfo.card_number}}<text class="director-arrow" v-if="userInfo.check_info.status==0 && userInfo.card_number!==userInfo.check_info.card_number">{{userInfo.check_info.card_number}}</text></view>
<image src="/static/icon/icon-arrow-03.png" mode="aspectFit"></image>
</view>
<view class="item" v-if="userInfo.role==1">
<view class="title">身份证正面</view>
<view class="msg font24" @tap="changeImg('positive')">
<image :src="userInfo.id_front" mode="widthFix"></image>
<view class="director-arrow" v-if="userInfo.check_info.status!==1 && userInfo.id_front!==userInfo.check_info.id_front">
<view class="director-arrow" v-if="userInfo.check_info.status==0 && userInfo.id_front!==userInfo.check_info.id_front">
<image :src="userInfo.check_info.id_front" mode="widthFix"></image>
</view>
</view>
@ -71,7 +71,7 @@
<view class="title">身份证反面</view>
<view class="msg font24" @tap="changeImg('back')">
<image :src="userInfo.id_back" mode="widthFix"></image>
<text class="director-arrow" v-if="userInfo.check_info.status!==1 && userInfo.id_back!==userInfo.check_info.id_back">
<text class="director-arrow" v-if="userInfo.check_info.status==0 && userInfo.id_back!==userInfo.check_info.id_back">
<image :src="userInfo.check_info.id_back" mode="widthFix"></image>
</text>
</view>
@ -79,34 +79,34 @@
</view>
<view class="item" @tap="editEv(5,'emergency_contact')" v-if="userInfo.role==1">
<view class="title">紧急联系人</view>
<view class="msg font24">{{userInfo.emergency_contact}}<text class="director-arrow" v-if="userInfo.check_info.status!==1 && userInfo.emergency_contact!==userInfo.check_info.emergency_contact">{{userInfo.check_info.emergency_contact}}</text></view>
<view class="msg font24">{{userInfo.emergency_contact}}<text class="director-arrow" v-if="userInfo.check_info.status==0 && userInfo.emergency_contact!==userInfo.check_info.emergency_contact">{{userInfo.check_info.emergency_contact}}</text></view>
<image src="/static/icon/icon-arrow-03.png" mode="aspectFit"></image>
</view>
<view class="item" @tap="editEv(6,'emergency_phone')" v-if="userInfo.role==1">
<view class="title">联系人电话</view>
<view class="msg font24">{{userInfo.emergency_phone}}<text class="director-arrow" v-if="userInfo.check_info.status!==1 && userInfo.emergency_phone!==userInfo.check_info.emergency_phone">{{userInfo.check_info.emergency_phone}}</text></view>
<view class="msg font24">{{userInfo.emergency_phone}}<text class="director-arrow" v-if="userInfo.check_info.status==0 && userInfo.emergency_phone!==userInfo.check_info.emergency_phone">{{userInfo.check_info.emergency_phone}}</text></view>
<image src="/static/icon/icon-arrow-03.png" mode="aspectFit"></image>
</view>
<view class="item" @tap="editEv(7,'bank_card_name')" v-if="userInfo.role==1">
<view class="title">银行卡姓名</view>
<view class="msg font24">{{userInfo.bank_card_name}}<text class="director-arrow" v-if="userInfo.check_info.status!==1 && userInfo.bank_card_name!==userInfo.check_info.bank_card_name">{{userInfo.check_info.bank_card_name}}</text></view>
<view class="msg font24">{{userInfo.bank_card_name}}<text class="director-arrow" v-if="userInfo.check_info.status==0 && userInfo.bank_card_name!==userInfo.check_info.bank_card_name">{{userInfo.check_info.bank_card_name}}</text></view>
<image src="/static/icon/icon-arrow-03.png" mode="aspectFit"></image>
</view>
<view class="item" @tap="editEv(8,'bank_card_number')" v-if="userInfo.role==1">
<view class="title">银行卡账号</view>
<view class="msg font24">{{userInfo.bank_card_number}}<text class="director-arrow" v-if="userInfo.check_info.status!==1 && userInfo.bank_card_number!==userInfo.check_info.bank_card_number">{{userInfo.check_info.bank_card_number}}</text></view>
<view class="msg font24">{{userInfo.bank_card_number}}<text class="director-arrow" v-if="userInfo.check_info.status==0 && userInfo.bank_card_number!==userInfo.check_info.bank_card_number">{{userInfo.check_info.bank_card_number}}</text></view>
<image src="/static/icon/icon-arrow-03.png" mode="aspectFit"></image>
</view>
<view class="item" @tap="editEv(9,'bank_name')" v-if="userInfo.role==1">
<view class="title">开户行</view>
<view class="msg font24">{{userInfo.bank_name}}<text class="director-arrow" v-if="userInfo.check_info.status!==1 && userInfo.bank_name!==userInfo.check_info.bank_name">{{userInfo.check_info.bank_name}}</text></view>
<view class="msg font24">{{userInfo.bank_name}}<text class="director-arrow" v-if="userInfo.check_info.status==0 && userInfo.bank_name!==userInfo.check_info.bank_name">{{userInfo.check_info.bank_name}}</text></view>
<image src="/static/icon/icon-arrow-03.png" mode="aspectFit"></image>
</view>
<view class="item" v-if="userInfo.role==1">
<view class="title">银行卡照片</view>
<view class="msg font24" @tap="changeImg('bank')">
<image :src="userInfo.bank_card_img" mode="widthFix"></image>
<view class="director-arrow" v-if="userInfo.check_info.status!==1 && userInfo.bank_card_img!==userInfo.check_info.bank_card_img">
<view class="director-arrow" v-if="userInfo.check_info.status==0 && userInfo.bank_card_img!==userInfo.check_info.bank_card_img">
<image :src="userInfo.check_info.bank_card_img" mode="widthFix"></image>
</view>
</view>
@ -121,6 +121,7 @@
<view class="title">现住地址</view>
<view class="msg picker-msg font24">
{{userInfo.province}}{{userInfo.city}}{{userInfo.area}}
<text style="opacity: 0;" v-if="userInfo.province==''&&userInfo.city==''&&userInfo.area==''"></text>
<picker mode="region" @change="changeAddress">
<view class="addr-input">
<view class="input-box">
@ -317,33 +318,30 @@
});
this.$requst.upload('/api/v1/file/upload/image',{path:this.stagingImg}).then(res=>{
if(res.code==0) {
if(type=='cover'){
this.userInfo.headimgurl = `${getApp().globalData.hostapi}`+res.data.src;
this.field = 'headimgurl';
this.editMsg = this.userInfo.headimgurl;
}
if(type=='positive'){
this.userInfo.id_front = `${getApp().globalData.hostapi}`+res.data.src;
this.field = 'id_front';
this.editMsg = this.userInfo.id_front;
setTimeout(()=>{
//
this.submitEv();
},200)
}
if(type=='back'){
this.userInfo.id_back = `${getApp().globalData.hostapi}`+res.data.src;
this.field = 'id_back';
this.editMsg = this.userInfo.id_back;
setTimeout(()=>{
//
this.submitEv();
},200)
}
if(type=='bank'){
this.userInfo.bank_card_img = `${getApp().globalData.hostapi}`+res.data.src;
this.field = 'bank_card_img';
this.editMsg = this.userInfo.bank_card_img;
setTimeout(()=>{
//
this.submitEv();
},200)
}
setTimeout(()=>{
//
this.submitEv();
},200)
}
uni.hideLoading();
})
@ -368,7 +366,6 @@
field:this.field,
value:this.editMsg!==""?this.editMsg:this.positionList[this.positionIndex].id
}
console.log(params,121212)
this.$requst.post('/api/v1/worker/update-info',params).then(res=>{
if(res.code==0){
this.$toolAll.tools.showToast('提交成功');

View File

@ -4,7 +4,7 @@
<status-nav navBarTitle="打卡记录"></status-nav>
<view class="content" :style="{'padding-top':statusHeight+50+'px'}">
<!-- 筛选 -->
<view class="screen-box screen-box-other">
<view class="screen-box screen-box-other" v-if="ifShow">
<view class="item" :class="userType=='director'?'width-all':''">
<picker class="font24" mode="selector" :range="worksiteList" @change="bindWorksiteChange" :value="worksiteIndex" :range-key="'name'">
<view class="name">
@ -13,7 +13,7 @@
</view>
</picker>
</view>
<view class="item font26 color-blue" @tap="showCard=true" v-if="userType!=='director'">
<view class="item font26 color-blue" @tap="showCard=true">
<view class="name" style="justify-content: center;">补卡操作</view>
</view>
</view>
@ -86,6 +86,7 @@
worksiteList:[], //
worksiteIndex:-1, //
showCard:false, //
ifShow:uni.getStorageSync('worker_role')==1?true:false,
}
},
onLoad(op) {
@ -179,9 +180,17 @@
//
getSignList(){
let params = {
day:this.curDate,
worksite_id:this.worksiteIndex!==-1?this.worksiteList[this.worksiteIndex].id:0
let params = {};
if(uni.getStorageSync('worker_role')==0){
params = {
day:this.curDate,
worksite_id:0
}
}else{
params = {
day:this.curDate,
worksite_id:this.worksiteIndex!==-1?this.worksiteList[this.worksiteIndex].id:0
}
}
this.$requst.get('/api/v1/user/sign-today',params).then(res=>{
if(res.code == 0){

View File

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

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

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<script>
var __UniViewStartTime__ = Date.now();
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title>View</title>
<link rel="stylesheet" href="view.css" />
</head>
<body>
<div id="app"></div>
<script src="__uniappes6.js"></script>
<script src="view.umd.min.js"></script>
<script src="app-view.js"></script>
</body>
</html>

View File

@ -0,0 +1,8 @@
var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/pagehome/pagehome","pages/worker/sign/sign","pages/worker/overtime/overtime","pages/worker/my/my","pages/director/sign/sign","pages/director/expenditure/expenditure","pages/director/enter/enter","pages/director/overtime/overtime","pages/login/login","pagesA/information/information","pagesA/signRecord/signRecord","pagesA/wagesRecord/wagesRecord","pagesA/overtimeRecord/overtimeRecord","pagesA/overtimeEdit/overtimeEdit","pagesA/singlePage/singlePage","pagesB/enterDetail/enterDetail","pagesB/worker/worker","pagesB/workerDetail/workerDetail","pagesB/evaluateRecord/evaluateRecord","pagesB/repair/repair","pagesB/quitApply/quitApply","pagesB/notick/notick"],"window":{"navigationBarTextStyle":"black","navigationBarBackgroundColor":"#ffffff","navigationStyle":"custom","backgroundColor":"#ffffff","backgroundTextStyle":"light","titleNView":false,"bounce":"none","scrollIndicator":"none"},"preloadRule":{"pages/worker/my/my":{"network":"all","packages":["pagesA"]}},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"weex","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":false,"autoclose":true},"appname":"工地打卡","compilerVersion":"3.6.17","entryPagePath":"pages/pagehome/pagehome","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/pagehome/pagehome","meta":{"isQuit":true},"window":{"navigationBarTitleText":"公共入口","enablePullDownRefresh":false}},{"path":"/pages/worker/sign/sign","meta":{},"window":{"navigationBarTitleText":"打卡","enablePullDownRefresh":false}},{"path":"/pages/worker/overtime/overtime","meta":{},"window":{"navigationBarTitleText":"加班","enablePullDownRefresh":false}},{"path":"/pages/worker/my/my","meta":{},"window":{"navigationBarTitleText":"我的","enablePullDownRefresh":false}},{"path":"/pages/director/sign/sign","meta":{},"window":{"navigationBarTitleText":"打卡","enablePullDownRefresh":true}},{"path":"/pages/director/expenditure/expenditure","meta":{},"window":{"navigationBarTitleText":"支出","enablePullDownRefresh":true}},{"path":"/pages/director/enter/enter","meta":{},"window":{"navigationBarTitleText":"录入","enablePullDownRefresh":true}},{"path":"/pages/director/overtime/overtime","meta":{},"window":{"navigationBarTitleText":"加班","enablePullDownRefresh":true}},{"path":"/pages/login/login","meta":{},"window":{"navigationBarTitleText":"登录","enablePullDownRefresh":false}},{"path":"/pagesA/information/information","meta":{},"window":{"navigationBarTitleText":"基本信息","enablePullDownRefresh":false}},{"path":"/pagesA/signRecord/signRecord","meta":{},"window":{"navigationBarTitleText":"打卡记录","enablePullDownRefresh":true}},{"path":"/pagesA/wagesRecord/wagesRecord","meta":{},"window":{"navigationBarTitleText":"工资记录","enablePullDownRefresh":true}},{"path":"/pagesA/overtimeRecord/overtimeRecord","meta":{},"window":{"navigationBarTitleText":"加班记录","enablePullDownRefresh":true}},{"path":"/pagesA/overtimeEdit/overtimeEdit","meta":{},"window":{"navigationBarTitleText":"编辑加班","enablePullDownRefresh":false}},{"path":"/pagesA/singlePage/singlePage","meta":{},"window":{"navigationBarTitleText":"单页","enablePullDownRefresh":false}},{"path":"/pagesB/enterDetail/enterDetail","meta":{},"window":{"navigationBarTitleText":"录入详情","enablePullDownRefresh":false}},{"path":"/pagesB/worker/worker","meta":{},"window":{"navigationBarTitleText":"工人列表","enablePullDownRefresh":true}},{"path":"/pagesB/workerDetail/workerDetail","meta":{},"window":{"navigationBarTitleText":"工人详情","enablePullDownRefresh":false}},{"path":"/pagesB/evaluateRecord/evaluateRecord","meta":{},"window":{"navigationBarTitleText":"评定记录","enablePullDownRefresh":false}},{"path":"/pagesB/repair/repair","meta":{},"window":{"navigationBarTitleText":"补卡确认","enablePullDownRefresh":true}},{"path":"/pagesB/quitApply/quitApply","meta":{},"window":{"navigationBarTitleText":"离职审核","enablePullDownRefresh":true}},{"path":"/pagesB/notick/notick","meta":{},"window":{"navigationBarTitleText":"公告管理","enablePullDownRefresh":false}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});

View File

@ -0,0 +1,154 @@
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/ var executeModules = data[2];
/******/
/******/ // add "moreModules" to the modules object,
/******/ // then flag all "chunkIds" as loaded and fire callback
/******/ var moduleId, chunkId, i = 0, resolves = [];
/******/ for(;i < chunkIds.length; i++) {
/******/ chunkId = chunkIds[i];
/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ resolves.push(installedChunks[chunkId][0]);
/******/ }
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ for(moduleId in moreModules) {
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
/******/ modules[moduleId] = moreModules[moduleId];
/******/ }
/******/ }
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
/******/
/******/ while(resolves.length) {
/******/ resolves.shift()();
/******/ }
/******/
/******/ // add entry modules from loaded chunk to deferred list
/******/ deferredModules.push.apply(deferredModules, executeModules || []);
/******/
/******/ // run deferred modules when all chunks ready
/******/ return checkDeferredModules();
/******/ };
/******/ function checkDeferredModules() {
/******/ var result;
/******/ for(var i = 0; i < deferredModules.length; i++) {
/******/ var deferredModule = deferredModules[i];
/******/ var fulfilled = true;
/******/ for(var j = 1; j < deferredModule.length; j++) {
/******/ var depId = deferredModule[j];
/******/ if(installedChunks[depId] !== 0) fulfilled = false;
/******/ }
/******/ if(fulfilled) {
/******/ deferredModules.splice(i--, 1);
/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
/******/ }
/******/ }
/******/
/******/ return result;
/******/ }
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
/******/ // Promise = chunk loading, 0 = chunk loaded
/******/ var installedChunks = {
/******/ "app-config": 0
/******/ };
/******/
/******/ var deferredModules = [];
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "/";
/******/
/******/ var jsonpArray = this["webpackJsonp"] = this["webpackJsonp"] || [];
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
/******/ jsonpArray.push = webpackJsonpCallback;
/******/ jsonpArray = jsonpArray.slice();
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
/******/ var parentJsonpFunction = oldJsonpFunction;
/******/
/******/
/******/ // run deferred modules from other chunks
/******/ checkDeferredModules();
/******/ })
/************************************************************************/
/******/ ([]);

15492
unpackage/dist/dev/app-plus/app-service.js vendored Normal file

File diff suppressed because one or more lines are too long

13246
unpackage/dist/dev/app-plus/app-view.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__BED4CBE","name":"工地打卡","version":{"name":"1.0.0","code":"100"},"description":"工地打卡","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"Payment":{},"Share":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"autoclose":false,"waiting":false},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#ffffff"},"usingComponents":true,"compilerVersion":3,"distribute":{"google":{"permissions":["<uses-feature android:name=\"android.hardware.camera\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"maps":{},"payment":{"weixin":{"__platform__":["ios","android"],"appid":"wx2654bc27c419ada6","UniversalLinks":""}},"push":{},"geolocation":{},"share":{"weixin":{"appid":"wx2654bc27c419ada6","UniversalLinks":""}},"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"arguments":"{\"name\":\"\",\"path\":\"\",\"query\":\"\",\"id\":0}","allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.6.17","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html"}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1012 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1008 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

1
unpackage/dist/dev/app-plus/view.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -874,7 +874,8 @@ page{
}
.information-from .item .picker-msg{
position: relative;
overflow: hidden;
overflow: hidden;
height: 40rpx;
}
.information-from .item .picker-msg>picker{
width: 100%;

View File

@ -1524,7 +1524,7 @@ function initData(vueOptions, context) {
try {
data = data.call(context); // 支持 Vue.prototype 上挂的数据
} catch (e) {
if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
}
}
@ -8878,7 +8878,7 @@ function type(obj) {
function flushCallbacks$1(vm) {
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
var mpInstance = vm.$scope;
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
@ -8899,14 +8899,14 @@ function nextTick$1(vm, cb) {
//1.nextTick 之前 已 setData 且 setData 还未回调完成
//2.nextTick 之前存在 render watcher
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
var mpInstance = vm.$scope;
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
']:nextVueTick');
}
return nextTick(cb, vm)
}else{
if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
var mpInstance$1 = vm.$scope;
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
']:nextMPTick');
@ -9002,7 +9002,7 @@ var patch = function(oldVnode, vnode) {
});
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
if (Object.keys(diffData).length) {
if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
']差量更新',
JSON.stringify(diffData));
@ -11207,11 +11207,15 @@ var tools = {
handleImg: function handleImg(url) {
var imgUrl = '';
if (url !== '') {
if (url.indexOf('https://') !== -1 || url.indexOf('http://') !== -1) {
var baseUrl = url.substring(url.indexOf('//') + 2, url.length);
imgUrl = "".concat(getApp().globalData.hostapi) + baseUrl.substring(baseUrl.indexOf('/'), baseUrl.length);
if (url.indexOf('jpg') !== -1 || url.indexOf('jpge') !== -1 || url.indexOf('png') !== -1 || url.indexOf('gif') !== -1) {
if (url.indexOf('https://') !== -1 || url.indexOf('http://') !== -1) {
var baseUrl = url.substring(url.indexOf('//') + 2, url.length);
imgUrl = "".concat(getApp().globalData.hostapi) + baseUrl.substring(baseUrl.indexOf('/'), baseUrl.length);
} else {
imgUrl = "".concat(getApp().globalData.hostapi) + url;
}
} else {
imgUrl = "".concat(getApp().globalData.hostapi) + url;
imgUrl = url;
}
}
return imgUrl;

Some files were not shown because too many files have changed in this diff Show More