新增打卡日历
parent
6b1789dcab
commit
403adbc481
|
@ -29,7 +29,7 @@
|
|||
.color-white{ color: #ffffff;}
|
||||
.color-blue{ color: #0788ff;}
|
||||
.color-yellow{ color: #ffde00;}
|
||||
.color-red{ color: #ff0000;}
|
||||
.color-red{ color: #ec0707;}
|
||||
.color-00{ color: #000000;}
|
||||
.color-33{ color: #333333;}
|
||||
.color-66{ color: #666666;}
|
||||
|
@ -40,10 +40,13 @@
|
|||
.bg-blue{ background-color: #0788ff;}
|
||||
.bg-yellow{ background-color: #ffde00;}
|
||||
.bg-white{ background-color: #ffffff;}
|
||||
.bg-red{ background-color: #ff0000;}
|
||||
.bg-red{ background-color: #ec0707;}
|
||||
.bg-orange{ background-color: #ec7807;}
|
||||
.bg-green{ background-color: #25a63b;}
|
||||
|
||||
|
||||
/* 内边距 */
|
||||
.pad-x100{ padding-bottom: 100rpx;}
|
||||
.pad-x120{ padding-bottom: 120rpx;}
|
||||
|
||||
|
||||
|
|
|
@ -159,6 +159,12 @@ page{
|
|||
.sign-record .state{
|
||||
width: 90rpx;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* 打卡日历 */
|
||||
.sign-calendar{
|
||||
background-color: #f7f7f7;
|
||||
padding: 32rpx 25rpx 0;
|
||||
}
|
||||
|
||||
/* 弹窗 */
|
||||
|
|
|
@ -0,0 +1,258 @@
|
|||
<template>
|
||||
<view class="calendar">
|
||||
<view class="data font28 color-white">
|
||||
<view class="btn btn-pro" @tap="proEv"></view>
|
||||
<view class="txt">{{curYear}}年{{curMonth<10?'0'+curMonth:curMonth}}月</view>
|
||||
<view class="btn btn-next" @tap="nextEv"></view>
|
||||
</view>
|
||||
<view class="week font24">
|
||||
<view class="item" v-for="(item,index) in weeks" :key="index">{{item}}</view>
|
||||
</view>
|
||||
<view class="days bg-white font26">
|
||||
<view class="item" v-for="(item,index) in days" :key="index">
|
||||
<view class="txt color-99" v-if="item.status==-2">{{item.date}}</view>
|
||||
<view class="txt color-white bg-green" v-if="statusObj.ok.indexOf(item.status)!==-1">{{item.date}}</view>
|
||||
<view class="txt color-white bg-orange" v-if="statusObj.add.indexOf(item.status)!==-1">{{item.date}}</view>
|
||||
<view class="txt color-white bg-red" v-if="statusObj.no.indexOf(item.status)!==-1">{{item.date}}</view>
|
||||
<view class="txt" v-if="statusObj.ok.indexOf(item.status)==-1&&statusObj.add.indexOf(item.status)==-1&&statusObj.no.indexOf(item.status)==-1&&item.status!==-2">{{item.date}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tips font22">
|
||||
<view class="item">正常打卡</view>
|
||||
<view class="item">补打卡</view>
|
||||
<view class="item">非正常打卡</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
mapState
|
||||
} from 'vuex'; //引入mapState
|
||||
export default {
|
||||
name: 'sign-calendar',
|
||||
data() {
|
||||
return {
|
||||
weeks: ['日', '一', '二', '三', '四', '五', '六'], //星期列表
|
||||
days:[], //天数
|
||||
curYear:new Date().getFullYear(), //当前年
|
||||
curMonth:new Date().getMonth() + 1, //当前月
|
||||
statusObj:{}, //状态列表
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
// 获取数组,绘制格子
|
||||
this.getDaysList();
|
||||
},
|
||||
methods: {
|
||||
// 获取数组,绘制格子
|
||||
getDaysList(){
|
||||
// 清空数组
|
||||
this.days = [];
|
||||
// 计算当月天数
|
||||
let curDays = new Date(this.curYear,this.curMonth, 0).getDate();
|
||||
// 计算当月第一天星期几
|
||||
let firstWeek = new Date(Date.UTC(this.curYear, this.curMonth-1, 1)).getDay();
|
||||
// 计算当月最后一天星期几
|
||||
let lastWeek = new Date(Date.UTC(this.curYear, this.curMonth-1,curDays)).getDay();
|
||||
|
||||
// 上月还有展示
|
||||
if(firstWeek!==0){
|
||||
// 绘制上月天数占的格子
|
||||
this.proMonthDays(firstWeek,curDays);
|
||||
}else{
|
||||
// 绘制当月天数占的格子
|
||||
this.curMonthDays(curDays);
|
||||
}
|
||||
// 下月还有展示
|
||||
if(lastWeek!==6){
|
||||
// 绘制下月天数占的格子
|
||||
this.nextMonthDays(lastWeek)
|
||||
}
|
||||
},
|
||||
|
||||
// 绘制上月天数占的格子
|
||||
proMonthDays(firstWeek,curDays){
|
||||
// 计算上月天数
|
||||
let proDays = 0;
|
||||
if(this.curMonth==1){
|
||||
proDays = new Date(this.curYear-1,12, 0).getDate();
|
||||
}else{
|
||||
proDays = new Date(this.curYear,this.curMonth-1, 0).getDate();
|
||||
}
|
||||
// 创建上月天数数组
|
||||
let proDaysArr=[];
|
||||
for (let i=proDays-firstWeek+1; i<=proDays;i++) {
|
||||
let proObj = {
|
||||
date: i,
|
||||
status: -2
|
||||
}
|
||||
proDaysArr.push(proObj);
|
||||
}
|
||||
this.days = proDaysArr;
|
||||
// 绘制当月天数占的格子
|
||||
this.curMonthDays(curDays);
|
||||
},
|
||||
|
||||
// 绘制当月天数占的格子
|
||||
curMonthDays(curDays) {
|
||||
// 创建当月天数数组
|
||||
let curDaysArr=[];
|
||||
for (let i=1; i<=curDays;i++) {
|
||||
let curObj = {
|
||||
date: i,
|
||||
status: i
|
||||
}
|
||||
curDaysArr.push(curObj);
|
||||
}
|
||||
this.days = this.days.concat(curDaysArr);
|
||||
// 获取状态列表
|
||||
this.getStatusObj();
|
||||
},
|
||||
|
||||
// 绘制下月天数占的格子
|
||||
nextMonthDays(lastWeek) {
|
||||
// 创建上月天数数组
|
||||
let nextDaysArr=[];
|
||||
for (let i=1; i<=6-lastWeek;i++) {
|
||||
let nextObj = {
|
||||
date: i,
|
||||
status: -2
|
||||
}
|
||||
nextDaysArr.push(nextObj);
|
||||
}
|
||||
this.days = this.days.concat(nextDaysArr);
|
||||
},
|
||||
|
||||
// 获取状态列表
|
||||
getStatusObj(){
|
||||
this.statusObj = {
|
||||
'ok':[2,5,6,8,12],
|
||||
'add':[4,7,11,22],
|
||||
'no':[19,28]
|
||||
}
|
||||
},
|
||||
|
||||
// 上一月
|
||||
proEv(){
|
||||
if(this.curMonth!==1){
|
||||
this.curMonth--;
|
||||
}else{
|
||||
this.curMonth = 12;
|
||||
this.curYear--;
|
||||
}
|
||||
// 获取数组,绘制格子
|
||||
this.getDaysList();
|
||||
},
|
||||
|
||||
// 下一月
|
||||
nextEv(){
|
||||
if(this.curMonth!==12){
|
||||
this.curMonth++
|
||||
}else{
|
||||
this.curMonth = 1;
|
||||
this.curYear++;
|
||||
}
|
||||
// 获取数组,绘制格子
|
||||
this.getDaysList();
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.calendar .data{
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 92rpx;
|
||||
padding: 0 22rpx;
|
||||
background-color: #0788ff;
|
||||
}
|
||||
|
||||
.calendar .btn{
|
||||
width: 42rpx;
|
||||
height: 42rpx;
|
||||
background-image: url(/static/icon/icon-calendar-btn.png);
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.calendar .btn-next{
|
||||
transform: rotateY(180deg);
|
||||
}
|
||||
|
||||
.calendar .week{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: #ececec;
|
||||
}
|
||||
|
||||
.calendar .week .item{
|
||||
width: calc(100%/7);
|
||||
line-height: 58rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.calendar .days{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.calendar .days .item{
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: calc(100%/7);
|
||||
height: 86rpx;
|
||||
border-top: 2rpx solid #ececec;
|
||||
border-right: 2rpx solid #ececec;
|
||||
}
|
||||
|
||||
.calendar .days .item:nth-of-type(7n){
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.calendar .days .item .txt{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 58rpx;
|
||||
height: 58rpx;
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
.calendar .tips{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 30rpx 0;
|
||||
}
|
||||
|
||||
.calendar .tips .item{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 30rpx;
|
||||
margin: 0 12rpx;
|
||||
}
|
||||
|
||||
.calendar .tips .item:before{
|
||||
content: '';
|
||||
display: block;
|
||||
width: 12rpx;
|
||||
height: 12rpx;
|
||||
background-color: #ec7807;
|
||||
border-radius: 100%;
|
||||
margin-right: 9rpx;
|
||||
}
|
||||
|
||||
.calendar .tips .item:first-child:before{
|
||||
background-color: #25a63b;
|
||||
}
|
||||
|
||||
.calendar .tips .item:last-child:before{
|
||||
background-color: #ec0707;
|
||||
}
|
||||
</style>
|
42
pages.json
42
pages.json
|
@ -35,6 +35,13 @@
|
|||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{ // 打卡审核
|
||||
"path": "pages/director/sign/examine",
|
||||
"style": {
|
||||
"navigationBarTitleText": "打卡",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{ // 支出
|
||||
"path": "pages/director/expenditure/expenditure",
|
||||
"style": {
|
||||
|
@ -64,7 +71,8 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"subPackages": [{ //A包
|
||||
"subPackages": [
|
||||
{ //A包
|
||||
"root": "pagesA",
|
||||
"pages": [
|
||||
{ //基本信息
|
||||
|
@ -108,16 +116,42 @@
|
|||
"navigationBarTitleText": "单页",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
}
|
||||
]
|
||||
},
|
||||
{ //B包
|
||||
"root": "pagesB",
|
||||
"pages": [
|
||||
{ //录入详情
|
||||
"path" : "enterDetail/enterDetail",
|
||||
"style" : {
|
||||
"navigationBarTitleText": "录入详情",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{ //工人列表
|
||||
"path" : "worker/worker",
|
||||
"style" : {
|
||||
"navigationBarTitleText": "工人列表",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{ //补卡确认
|
||||
"path" : "repair/repair",
|
||||
"style" : {
|
||||
"navigationBarTitleText": "补卡确认",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{ //公告管理
|
||||
"path" : "notick/notick",
|
||||
"style" : {
|
||||
"navigationBarTitleText": "公告管理",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"preloadRule": {
|
||||
"pages/worker/my/my": {
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
// 去确认&查看详情
|
||||
toDetail(id){
|
||||
uni.navigateTo({
|
||||
url:`/pagesA/enterDetail/enterDetail?id=${id}`,
|
||||
url:`/pagesB/enterDetail/enterDetail?id=${id}`,
|
||||
})
|
||||
},
|
||||
|
||||
|
|
|
@ -0,0 +1,122 @@
|
|||
<template>
|
||||
<view class="pad-x120">
|
||||
<!-- 头部 -->
|
||||
<status-nav :ifReturn="false" navBarTitle="个人中心" :titleColor="titleColor" :backgroudColor="backgroudColor"></status-nav>
|
||||
<view class="content" v-if="isLoding">
|
||||
<!-- 个人简介 -->
|
||||
<view class="sign-top my-top font24 color-white" :style="{'padding-top':statusHeight+50+'px'}">
|
||||
<image src="/static/my-bg.jpg" mode="aspectFill"></image>
|
||||
<view class="my-info">
|
||||
<view class="my-cover">
|
||||
<image :src="userInfo.headimgurl" mode="aspectFill"></image>
|
||||
</view>
|
||||
<view class="my-txt">
|
||||
<view class="font28">{{userInfo.nickname}}</view>
|
||||
<view class="font24">{{userInfo.real_name!==''?userInfo.real_name:'审核中'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 其他信息 -->
|
||||
<view class="sign-record my-more">
|
||||
<view class="item bg-white" @tap="toMore(item.url)" v-for="(item,index) in myMoreList" :key="index">
|
||||
<view class="img">
|
||||
<image :src="`/static/icon/icon-my-0${index+1}.png`" :style="{'width':iconWidth[index]+'rpx','height':iconHeight[index]+'rpx'}" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="txt font28">{{item.title}}</view>
|
||||
<image src="/static/icon/icon-arrow-03.png" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 尾部 -->
|
||||
<tabbar :userType="userType" current="2"></tabbar>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import tabbar from '@/components/tabbar/tabbar';
|
||||
export default {
|
||||
components:{
|
||||
tabbar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
statusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType:'worker', //账户类型 工人:worker 负责人:director
|
||||
frontColor:'#ffffff', //状态栏文字颜色
|
||||
backgroudColor:'none', //导航栏背景
|
||||
titleColor:'#ffffff', //导航栏颜色
|
||||
userInfo:{}, //用户信息
|
||||
myMoreList:[
|
||||
{title:'个人资料',url:'/pagesA/information/information'},
|
||||
{title:'打卡记录',url:'/pagesA/signRecord/signRecord'},
|
||||
{title:'工资记录',url:'/pagesA/wagesRecord/wagesRecord'},
|
||||
{title:'加班记录',url:'/pagesA/overtimeRecord/overtimeRecord'},
|
||||
{title:'员工手册',url:'/pagesA/singlePage/singlePage?type=manual'},
|
||||
{title:'安全告知',url:'/pagesA/singlePage/singlePage?type=security'},
|
||||
{title:'公告',url:'/pagesA/singlePage/singlePage?type=notice'}
|
||||
], //更多列表
|
||||
iconWidth:[32,30,30,32,31,28,28], //icon宽度
|
||||
iconHeight:[32,30,30,32,29,36,30], //icon高度
|
||||
isLoding:false, //是否加载完成
|
||||
}
|
||||
},
|
||||
onPageScroll(object){
|
||||
if(object.scrollTop >= 5){
|
||||
this.frontColor = '#000000';
|
||||
this.backgroudColor = '#ffffff';
|
||||
this.titleColor = '#3333333';
|
||||
// 改变状态栏
|
||||
this.changeStatusNav();
|
||||
}
|
||||
if(object.scrollTop <= 0){
|
||||
this.frontColor = '#ffffff';
|
||||
this.backgroudColor = 'none';
|
||||
this.titleColor = '#ffffff';
|
||||
// 改变状态栏
|
||||
this.changeStatusNav();
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
// 改变状态栏
|
||||
this.changeStatusNav();
|
||||
// 获取用户信息
|
||||
this.getUserInfo();
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
let shareObj = {
|
||||
title:'工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl:'/static/share-logo.jpg',
|
||||
}
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 改变状态栏
|
||||
changeStatusNav(){
|
||||
wx.setNavigationBarColor({
|
||||
frontColor: this.frontColor,
|
||||
backgroundColor: 'none',
|
||||
})
|
||||
},
|
||||
// 获取用户信息
|
||||
getUserInfo(){
|
||||
this.$requst.post('/api/v1/user/info').then(res=>{
|
||||
if(res.code==0){
|
||||
console.log(res,'用户信息');
|
||||
this.userInfo = res.data;
|
||||
this.isLoding = true;
|
||||
}
|
||||
})
|
||||
},
|
||||
//跳转页面
|
||||
toMore(url){
|
||||
uni.navigateTo({
|
||||
url:url
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
</style>
|
|
@ -0,0 +1,216 @@
|
|||
<template>
|
||||
<view class="pad-x120">
|
||||
<!-- 头部 -->
|
||||
<status-nav :ifReturn="false" navBarTitle="工地打卡"></status-nav>
|
||||
<view class="content" :style="{'padding-top':statusHeight+50+'px'}">
|
||||
<!-- 导航 -->
|
||||
<view class="pull-nav" :style="{'top':statusHeight+50+'px'}">
|
||||
<sub-nav @changeEv="changeEv"></sub-nav>
|
||||
</view>
|
||||
<!-- 全选 -->
|
||||
<view class="choose-all-bg">
|
||||
<view class="choose-all font26" v-if="status==0 && signList.length>0">
|
||||
<view class="radio" :class="isAll?'checked':''" @tap="chooseAll"></view>
|
||||
<view class="title">全选</view>
|
||||
<view class="choose-all-btns font24" v-if="ids!==''">
|
||||
<view class="btn color-blue" @tap="submitAll(1)">一键确认</view>
|
||||
<view class="btn color-99 btn-no" @tap="submitAll(0)">退回</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 打卡列表 -->
|
||||
<view class="sign-record sign-record-other bg-white">
|
||||
<view class="item font26" v-for="(item,index) in signList" :key="index">
|
||||
<view class="radio" :class="item.ifcheck?'checked':''" @tap="chooseEv(index)" v-if="status==0"></view>
|
||||
<view class="info" :class="status==0?'hide':''">
|
||||
<text>姓名:{{item.worker_name}}</text>
|
||||
<text>{{item.type_text}}打卡:{{item.created_at}}</text>
|
||||
<text>打卡工地:{{item.worksite_name}}</text>
|
||||
</view>
|
||||
<!-- 待确认 -->
|
||||
<view class="examine-btns font24" v-if="item.status==0">
|
||||
<view class="btn color-blue" @tap="submitEv(item.id,1)">确认</view>
|
||||
<view class="btn color-99" @tap="submitEv(item.id,0)">退回</view>
|
||||
</view>
|
||||
<!-- 已确认 -->
|
||||
<view class="state" :class="item.status==-1?'color-red':''" v-if="item.status==1 || item.status==-1">{{item.status_text}}</view>
|
||||
</view>
|
||||
<!-- 加载更多 -->
|
||||
<view class="more-tips font24">{{signList.length==total?'没有更多数据了':'下滑获取更多'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 尾部 -->
|
||||
<tabbar :userType="userType"></tabbar>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import subNav from '@/components/sub-nav/sub-nav.vue';
|
||||
import tabbar from '@/components/tabbar/tabbar';
|
||||
export default {
|
||||
components:{
|
||||
subNav,
|
||||
tabbar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
statusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType:'director', //账户类型 工人:worker 负责人:director
|
||||
signList:[], //打卡列表
|
||||
page:1,
|
||||
size:10,
|
||||
status:0,
|
||||
total:0,
|
||||
isAll:false, //是否全选
|
||||
ids:'', //选中的id
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
onShow() {
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
},
|
||||
onReachBottom() {
|
||||
if(this.signList.length<this.total){
|
||||
this.page++;
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.page = 1;
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
// 关闭下拉刷新
|
||||
uni.stopPullDownRefresh();
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
let shareObj = {
|
||||
title:'工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl:'/static/share-logo.jpg',
|
||||
}
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 选择栏目
|
||||
changeEv(index){
|
||||
this.status = index;
|
||||
this.page = 1;
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
},
|
||||
// 选中事件
|
||||
chooseEv(index) {
|
||||
this.signList[index].ifcheck = !this.signList[index].ifcheck;
|
||||
let exit = this.signList.filter(item=>item.ifcheck==false);
|
||||
if(exit.length>0){
|
||||
this.isAll = false;
|
||||
} else {
|
||||
this.isAll = true;
|
||||
}
|
||||
let idsTemparr = this.signList.filter(item=>{return item.ifcheck==true})
|
||||
let idsArr = [];
|
||||
idsTemparr.forEach(item=>{
|
||||
idsArr.push(item.id)
|
||||
})
|
||||
// 选中的id
|
||||
this.ids = idsArr.join(',');
|
||||
},
|
||||
|
||||
// 全选事件
|
||||
chooseAll(){
|
||||
let exit = this.signList.filter(item=>item.ifcheck==false);
|
||||
if(exit.length>0){
|
||||
this.isAll = true;
|
||||
this.signList.forEach(item=>item.ifcheck = true);
|
||||
} else {
|
||||
this.isAll = false;
|
||||
this.signList.forEach(item=>{item.ifcheck = false});
|
||||
}
|
||||
let idsTemparr = this.signList.filter(item=>{return item.ifcheck==true})
|
||||
let idsArr = [];
|
||||
idsTemparr.forEach(item=>{
|
||||
idsArr.push(item.id)
|
||||
})
|
||||
// 选中的id
|
||||
this.ids = idsArr.join(',');
|
||||
},
|
||||
|
||||
// 确认&退回事件
|
||||
submitEv(id,type){
|
||||
let params = {
|
||||
id:id,
|
||||
type:type
|
||||
}
|
||||
this.$requst.post('/api/v1/manager/check-clock',params).then(res=>{
|
||||
if(res.code==0){
|
||||
if(type==0){
|
||||
this.$toolAll.tools.showToast('已退回');
|
||||
}else{
|
||||
this.$toolAll.tools.showToast('已确认');
|
||||
}
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 批量确认&退回事件
|
||||
submitAll(type){
|
||||
let params = {
|
||||
id:this.ids,
|
||||
type:type
|
||||
}
|
||||
this.$requst.post('/api/v1/manager/check-clock',params).then(res=>{
|
||||
if(res.code==0){
|
||||
if(type==0){
|
||||
this.$toolAll.tools.showToast('已退回');
|
||||
}else{
|
||||
this.$toolAll.tools.showToast('已确认');
|
||||
}
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 获取打卡列表
|
||||
getSignList(){
|
||||
let params = {
|
||||
page:this.page,
|
||||
size:this.size,
|
||||
status:this.status
|
||||
}
|
||||
if(this.page==1) this.signList = [];
|
||||
this.$requst.post('/api/v1/manager/clock-list',params).then(res=>{
|
||||
if(res.code==0){
|
||||
console.log(res,'打卡列表');
|
||||
this.total = res.data.total;
|
||||
let signArr = [];
|
||||
res.data.list.forEach(item=>{
|
||||
let obj = {
|
||||
id: item.id,
|
||||
created_at:item.created_at,
|
||||
status:item.status,
|
||||
status_text:item.status_text,
|
||||
worksite_name: item.worksite_name,
|
||||
worker_name:item.worker_name,
|
||||
type_text: item.type_text,
|
||||
is_statistic: item.is_statistic,
|
||||
ifcheck:false,
|
||||
}
|
||||
signArr.push(obj);
|
||||
})
|
||||
this.signList = this.signList.concat(signArr);
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
</style>
|
|
@ -1,22 +1,22 @@
|
|||
<template>
|
||||
<view class="pad-x120">
|
||||
<view class="pad-x100">
|
||||
<!-- 头部 -->
|
||||
<status-nav :ifReturn="false" navBarTitle="打卡小程序" :titleColor="titleColor" :backgroudColor="backgroudColor"></status-nav>
|
||||
<view class="content">
|
||||
<!-- 打卡 -->
|
||||
<view class="sign-top font24 color-white" :style="{'padding-top':statusHeight+50+'px'}">
|
||||
<image src="/static/sign-bg.jpg" mode="aspectFill"></image>
|
||||
<view class="sign-time">
|
||||
<text>{{currentDate}}</text>
|
||||
<text>{{currentWeek}}</text>
|
||||
</view>
|
||||
<image src="/static/sign-bg.jpg" mode="aspectFill"></image>
|
||||
<view class="name font30" v-if="isLoding">{{siteInfo.name}}</view>
|
||||
<view class="sign-btn" :class="finish?'finish':''" @tap="showRadioEv">
|
||||
<text class="font56">{{finish?'已打卡':'打卡'}}</text>
|
||||
<text>{{currenTime}}</text>
|
||||
</view>
|
||||
<view class="sign-site" v-if="isLoding">
|
||||
<view class="name">{{siteInfo.name}}</view>
|
||||
<view class="position">
|
||||
<view class="sign-site">
|
||||
<view class="sign-time">
|
||||
<text>{{currentDate}}</text>
|
||||
<text>{{currentWeek}}</text>
|
||||
</view>
|
||||
<view class="position" v-if="isLoding">
|
||||
<view class="warning" v-if="!siteInfo.name">
|
||||
<image src="/static/icon/icon-warning.png" mode="aspectFit"></image>
|
||||
<text class="color-yellow">不在范围内</text>
|
||||
|
@ -42,6 +42,10 @@
|
|||
<view class="state" :class="item.state==1?'color-blue':''">{{item.status_text}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 打卡日历 -->
|
||||
<view class="sign-calendar">
|
||||
<sign-calendar></sign-calendar>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 打卡类型选择 -->
|
||||
|
@ -98,7 +102,7 @@
|
|||
</view>
|
||||
|
||||
<!-- 注册工人信息 -->
|
||||
<view class="pop-up-bg" v-if="userInfo.checking==0 && userInfo.role==0">
|
||||
<view class="pop-up-bg" v-if="userInfo.checking==0 && userInfo.role==0"> <!-- v-if="userInfo.checking==0 && userInfo.role==0" -->
|
||||
<view class="register-information font24 bg-white">
|
||||
<view class="item">
|
||||
<view class="title">姓名</view>
|
||||
|
@ -120,7 +124,7 @@
|
|||
</text>
|
||||
</view>
|
||||
<view class="upload-box">
|
||||
<view class="img" v-if="idImgList[0]!==''">
|
||||
<view class="img" v-if="idImgList[0]!==''" @tap="previewImage(idImgList[0])">
|
||||
<image :src="idImgList[0]" mode="widthFix"></image>
|
||||
<image class="del-btn" src="/static/icon/icon-del.png" mode="widthFix" @tap="delImg(index,'positive')"></image>
|
||||
</view>
|
||||
|
@ -128,7 +132,7 @@
|
|||
<image src="/static/icon/icon-release.png" mode="widthFix"></image>
|
||||
<text class="font22 color-99">身份证正面</text>
|
||||
</view>
|
||||
<view class="img" v-if="idImgList[1]!==''">
|
||||
<view class="img" v-if="idImgList[1]!==''" @tap="previewImage(idImgList[1])">
|
||||
<image :src="idImgList[1]" mode="widthFix"></image>
|
||||
<image class="del-btn" src="/static/icon/icon-del.png" mode="widthFix" @tap="delImg(index,'back')"></image>
|
||||
</view>
|
||||
|
@ -178,7 +182,7 @@
|
|||
<view class="item item-other">
|
||||
<view class="title">银行卡照片</view>
|
||||
<view class="upload-box">
|
||||
<view class="img" v-if="registerObj.bank_img!==''">
|
||||
<view class="img" v-if="registerObj.bank_img!==''" @tap="previewImage(registerObj.bank_img)">
|
||||
<image :src="registerObj.bank_img" mode="widthFix"></image>
|
||||
<image class="del-btn" src="/static/icon/icon-del.png" mode="widthFix" @tap="delImg(index,'bank')"></image>
|
||||
</view>
|
||||
|
@ -201,9 +205,11 @@
|
|||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import tabbar from '@/components/tabbar/tabbar';
|
||||
import signCalendar from '@/components/sign-calendar/sign-calendar';
|
||||
import tabbar from '@/components/tabbar/tabbar';
|
||||
export default {
|
||||
components:{
|
||||
signCalendar,
|
||||
tabbar
|
||||
},
|
||||
data() {
|
||||
|
@ -257,7 +263,7 @@
|
|||
isNotice:false, //是否显示通知
|
||||
notice:'', //公告
|
||||
ifNotice:false, //是否显示公告
|
||||
stagingImg:'', //暂存img
|
||||
stagingImg:'', //暂存img
|
||||
}
|
||||
},
|
||||
onPageScroll(object){
|
||||
|
@ -276,7 +282,7 @@
|
|||
this.changeStatusNav();
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
onLoad() {
|
||||
// 改变状态栏
|
||||
this.changeStatusNav();
|
||||
// 获取位置信息
|
||||
|
@ -323,7 +329,8 @@
|
|||
frontColor: this.frontColor,
|
||||
backgroundColor: 'none',
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
// 获取用户信息
|
||||
getUserInfo(){
|
||||
this.$requst.post('/api/v1/user/info').then(res=>{
|
||||
|
@ -700,6 +707,15 @@
|
|||
if(type=='bank'){
|
||||
this.registerObj.bank_img = '';
|
||||
}
|
||||
},
|
||||
|
||||
// 预览图片
|
||||
previewImage(url) {
|
||||
let urlArr = [url];
|
||||
uni.previewImage({
|
||||
current: 1, //预览图片的下标
|
||||
urls: urlArr //预览图片的地址,必须要数组形式,如果不是数组形式就转换成数组形式就可以
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,121 +4,121 @@
|
|||
<status-nav navBarTitle="工人信息"></status-nav>
|
||||
<view class="content" :style="{'padding-top':statusHeight+50+'px'}">
|
||||
<!-- 工人信息 -->
|
||||
<view class="enter-detail font26">
|
||||
<view class="enter-detail font26">
|
||||
<view class="item">
|
||||
<view class="title">姓名</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.real_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.real_name!==centerDetail.account.real_name">
|
||||
{{centerDetail.real_name}}
|
||||
</text>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.real_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.real_name!==centerDetail.account.real_name">
|
||||
{{centerDetail.real_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">电话</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.mobile}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.mobile!==centerDetail.account.mobile">
|
||||
{{centerDetail.mobile}}
|
||||
</text>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.mobile}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.mobile!==centerDetail.account.mobile">
|
||||
{{centerDetail.mobile}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">身份证</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.card_number}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.card_number!==centerDetail.account.card_number">
|
||||
{{centerDetail.card_number}}
|
||||
</text>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.card_number}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.card_number!==centerDetail.account.card_number">
|
||||
{{centerDetail.card_number}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">紧急联系人</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.emergency_contact}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.emergency_contact!==centerDetail.account.emergency_contact">
|
||||
{{centerDetail.emergency_contact}}
|
||||
</text>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.emergency_contact}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.emergency_contact!==centerDetail.account.emergency_contact">
|
||||
{{centerDetail.emergency_contact}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">联系人电话</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.emergency_phone}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.emergency_phone!==centerDetail.account.emergency_phone">
|
||||
{{centerDetail.emergency_phone}}
|
||||
</text>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.emergency_phone}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.emergency_phone!==centerDetail.account.emergency_phone">
|
||||
{{centerDetail.emergency_phone}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">银行卡户名</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_card_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_card_name!==centerDetail.account.bank_card_name">
|
||||
{{centerDetail.bank_card_name}}
|
||||
</text>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_card_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_card_name!==centerDetail.account.bank_card_name">
|
||||
{{centerDetail.bank_card_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">银行卡号</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_card_number}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_card_number!==centerDetail.account.bank_card_number">
|
||||
{{centerDetail.bank_card_number}}
|
||||
</text>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_card_number}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_card_number!==centerDetail.account.bank_card_number">
|
||||
{{centerDetail.bank_card_number}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">开户行</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_name!==centerDetail.account.bank_name">
|
||||
{{centerDetail.bank_name}}
|
||||
</text>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_name!==centerDetail.account.bank_name">
|
||||
{{centerDetail.bank_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">技术岗位</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.position_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.position_name!==centerDetail.account.position_name">
|
||||
{{centerDetail.position_name}}
|
||||
</text>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.position_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.position_name!==centerDetail.account.position_name">
|
||||
{{centerDetail.position_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">工资</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.pay}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.pay!==centerDetail.account.pay">
|
||||
{{centerDetail.pay}}
|
||||
</text>元
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.pay}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.pay!==centerDetail.account.pay">
|
||||
{{centerDetail.pay}}
|
||||
</text>元
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">加入时间</view>
|
||||
<view class="msg font24">{{centerDetail.created_at}}</view>
|
||||
</view>
|
||||
<view class="item" v-if="centerDetail.status==-1">
|
||||
<view class="title">审核状态</view>
|
||||
<view class="msg font24 color-red">已退回</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item" v-if="centerDetail.status==-1">
|
||||
<view class="title">审核状态</view>
|
||||
<view class="msg font24 color-red">已退回</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 审核按钮 -->
|
||||
<view class="enter-detail-btns color-white font30" v-if="centerDetail.status==0">
|
||||
<view class="btn" @tap="submitEv(1)">确认</view>
|
||||
<view class="btn" @tap="ifReason=true">退回</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 退回理由 -->
|
||||
<view class="pop-up-bg" v-if="ifReason">
|
||||
<view class="edit-box bg-white">
|
||||
<image class="close-btn" src="/static/icon/icon-close-btn.png" mode="aspectFit" @tap="closeReason"></image>
|
||||
<view class="title font36">退回理由</view>
|
||||
<!-- 其他显示 -->
|
||||
<input class="input font26" type="text" v-model="reasonMsg" placeholder="请输入退回理由" placeholder-style="color:rgba(51,51,51,.4)">
|
||||
<view class="submit-btn font30 color-white" @tap="submitEv(0)">确认</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 退回理由 -->
|
||||
<view class="pop-up-bg" v-if="ifReason">
|
||||
<view class="edit-box bg-white">
|
||||
<image class="close-btn" src="/static/icon/icon-close-btn.png" mode="aspectFit" @tap="closeReason"></image>
|
||||
<view class="title font36">退回理由</view>
|
||||
<!-- 其他显示 -->
|
||||
<input class="input font26" type="text" v-model="reasonMsg" placeholder="请输入退回理由" placeholder-style="color:rgba(51,51,51,.4)">
|
||||
<view class="submit-btn font30 color-white" @tap="submitEv(0)">确认</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 尾部 -->
|
||||
<tabbar :userType="userType" current="2"></tabbar>
|
||||
|
@ -134,8 +134,8 @@
|
|||
return {
|
||||
statusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType:'director', //账户类型 工人:worker 负责人:director
|
||||
centerDetail:{}, //工人信息
|
||||
reasonMsg:'', //退回理由
|
||||
centerDetail:{}, //工人信息
|
||||
reasonMsg:'', //退回理由
|
||||
ifReason:false, //是否退回
|
||||
id:0, //工人id
|
||||
}
|
||||
|
@ -148,15 +148,15 @@
|
|||
onShow() {
|
||||
// 获取工人信息
|
||||
this.getEnterDetail();
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
let shareObj = {
|
||||
title:'工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl:'/static/share-logo.jpg',
|
||||
}
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
let shareObj = {
|
||||
title:'工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl:'/static/share-logo.jpg',
|
||||
}
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 获取工人信息
|
||||
|
@ -170,48 +170,48 @@
|
|||
},
|
||||
|
||||
// 确认&退回
|
||||
submitEv(type){
|
||||
if(type==0){
|
||||
let params = {
|
||||
id:this.id,
|
||||
type:type,
|
||||
reason:this.reasonMsg
|
||||
}
|
||||
// 提交
|
||||
this.submitApi(params,type);
|
||||
}else{
|
||||
let params = {
|
||||
id:this.id,
|
||||
type:type
|
||||
}
|
||||
// 提交
|
||||
this.submitApi(params,type);
|
||||
}
|
||||
},
|
||||
|
||||
// 提交
|
||||
submitApi(params,type){
|
||||
console.log(params,type,123)
|
||||
this.$requst.post('/api/v1/manager/check-info',params).then(res=>{
|
||||
if(res.code == 0){
|
||||
if(type==0){
|
||||
this.$toolAll.tools.showToast('已退回');
|
||||
}else{
|
||||
this.$toolAll.tools.showToast('已确认');
|
||||
}
|
||||
uni.reLaunch({
|
||||
url:'/pages/director/enter/enter'
|
||||
})
|
||||
}else{
|
||||
this.$toolAll.tools.showToast(res.msg);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 关闭退回弹窗
|
||||
closeReason(){
|
||||
this.ifReason = false;
|
||||
this.reasonMsg = '';
|
||||
submitEv(type){
|
||||
if(type==0){
|
||||
let params = {
|
||||
id:this.id,
|
||||
type:type,
|
||||
reason:this.reasonMsg
|
||||
}
|
||||
// 提交
|
||||
this.submitApi(params,type);
|
||||
}else{
|
||||
let params = {
|
||||
id:this.id,
|
||||
type:type
|
||||
}
|
||||
// 提交
|
||||
this.submitApi(params,type);
|
||||
}
|
||||
},
|
||||
|
||||
// 提交
|
||||
submitApi(params,type){
|
||||
console.log(params,type,123)
|
||||
this.$requst.post('/api/v1/manager/check-info',params).then(res=>{
|
||||
if(res.code == 0){
|
||||
if(type==0){
|
||||
this.$toolAll.tools.showToast('已退回');
|
||||
}else{
|
||||
this.$toolAll.tools.showToast('已确认');
|
||||
}
|
||||
uni.reLaunch({
|
||||
url:'/pages/director/enter/enter'
|
||||
})
|
||||
}else{
|
||||
this.$toolAll.tools.showToast(res.msg);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 关闭退回弹窗
|
||||
closeReason(){
|
||||
this.ifReason = false;
|
||||
this.reasonMsg = '';
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,221 @@
|
|||
<template>
|
||||
<view class="pad-x120">
|
||||
<!-- 头部 -->
|
||||
<status-nav navBarTitle="工人信息"></status-nav>
|
||||
<view class="content" :style="{'padding-top':statusHeight+50+'px'}">
|
||||
<!-- 工人信息 -->
|
||||
<view class="enter-detail font26">
|
||||
<view class="item">
|
||||
<view class="title">姓名</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.real_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.real_name!==centerDetail.account.real_name">
|
||||
{{centerDetail.real_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">电话</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.mobile}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.mobile!==centerDetail.account.mobile">
|
||||
{{centerDetail.mobile}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">身份证</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.card_number}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.card_number!==centerDetail.account.card_number">
|
||||
{{centerDetail.card_number}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">紧急联系人</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.emergency_contact}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.emergency_contact!==centerDetail.account.emergency_contact">
|
||||
{{centerDetail.emergency_contact}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">联系人电话</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.emergency_phone}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.emergency_phone!==centerDetail.account.emergency_phone">
|
||||
{{centerDetail.emergency_phone}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">银行卡户名</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_card_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_card_name!==centerDetail.account.bank_card_name">
|
||||
{{centerDetail.bank_card_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">银行卡号</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_card_number}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_card_number!==centerDetail.account.bank_card_number">
|
||||
{{centerDetail.bank_card_number}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">开户行</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_name!==centerDetail.account.bank_name">
|
||||
{{centerDetail.bank_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">技术岗位</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.position_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.position_name!==centerDetail.account.position_name">
|
||||
{{centerDetail.position_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">工资</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.pay}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.pay!==centerDetail.account.pay">
|
||||
{{centerDetail.pay}}
|
||||
</text>元
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">加入时间</view>
|
||||
<view class="msg font24">{{centerDetail.created_at}}</view>
|
||||
</view>
|
||||
<view class="item" v-if="centerDetail.status==-1">
|
||||
<view class="title">审核状态</view>
|
||||
<view class="msg font24 color-red">已退回</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 审核按钮 -->
|
||||
<view class="enter-detail-btns color-white font30" v-if="centerDetail.status==0">
|
||||
<view class="btn" @tap="submitEv(1)">确认</view>
|
||||
<view class="btn" @tap="ifReason=true">退回</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 退回理由 -->
|
||||
<view class="pop-up-bg" v-if="ifReason">
|
||||
<view class="edit-box bg-white">
|
||||
<image class="close-btn" src="/static/icon/icon-close-btn.png" mode="aspectFit" @tap="closeReason"></image>
|
||||
<view class="title font36">退回理由</view>
|
||||
<!-- 其他显示 -->
|
||||
<input class="input font26" type="text" v-model="reasonMsg" placeholder="请输入退回理由" placeholder-style="color:rgba(51,51,51,.4)">
|
||||
<view class="submit-btn font30 color-white" @tap="submitEv(0)">确认</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 尾部 -->
|
||||
<tabbar :userType="userType" current="2"></tabbar>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import tabbar from '@/components/tabbar/tabbar';
|
||||
export default {
|
||||
components:{
|
||||
tabbar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
statusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType:'director', //账户类型 工人:worker 负责人:director
|
||||
centerDetail:{}, //工人信息
|
||||
reasonMsg:'', //退回理由
|
||||
ifReason:false, //是否退回
|
||||
id:0, //工人id
|
||||
}
|
||||
},
|
||||
onLoad(op) {
|
||||
if(op.id){
|
||||
this.id = op.id;
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
// 获取工人信息
|
||||
this.getEnterDetail();
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
let shareObj = {
|
||||
title:'工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl:'/static/share-logo.jpg',
|
||||
}
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 获取工人信息
|
||||
getEnterDetail(){
|
||||
this.$requst.post('/api/v1/manager/check-detail',{id:this.id}).then(res=>{
|
||||
if(res.code == 0){
|
||||
console.log(res,'工人信息');
|
||||
this.centerDetail = res.data;
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 确认&退回
|
||||
submitEv(type){
|
||||
if(type==0){
|
||||
let params = {
|
||||
id:this.id,
|
||||
type:type,
|
||||
reason:this.reasonMsg
|
||||
}
|
||||
// 提交
|
||||
this.submitApi(params,type);
|
||||
}else{
|
||||
let params = {
|
||||
id:this.id,
|
||||
type:type
|
||||
}
|
||||
// 提交
|
||||
this.submitApi(params,type);
|
||||
}
|
||||
},
|
||||
|
||||
// 提交
|
||||
submitApi(params,type){
|
||||
console.log(params,type,123)
|
||||
this.$requst.post('/api/v1/manager/check-info',params).then(res=>{
|
||||
if(res.code == 0){
|
||||
if(type==0){
|
||||
this.$toolAll.tools.showToast('已退回');
|
||||
}else{
|
||||
this.$toolAll.tools.showToast('已确认');
|
||||
}
|
||||
uni.reLaunch({
|
||||
url:'/pages/director/enter/enter'
|
||||
})
|
||||
}else{
|
||||
this.$toolAll.tools.showToast(res.msg);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 关闭退回弹窗
|
||||
closeReason(){
|
||||
this.ifReason = false;
|
||||
this.reasonMsg = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
</style>
|
|
@ -0,0 +1,221 @@
|
|||
<template>
|
||||
<view class="pad-x120">
|
||||
<!-- 头部 -->
|
||||
<status-nav navBarTitle="工人信息"></status-nav>
|
||||
<view class="content" :style="{'padding-top':statusHeight+50+'px'}">
|
||||
<!-- 工人信息 -->
|
||||
<view class="enter-detail font26">
|
||||
<view class="item">
|
||||
<view class="title">姓名</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.real_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.real_name!==centerDetail.account.real_name">
|
||||
{{centerDetail.real_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">电话</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.mobile}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.mobile!==centerDetail.account.mobile">
|
||||
{{centerDetail.mobile}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">身份证</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.card_number}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.card_number!==centerDetail.account.card_number">
|
||||
{{centerDetail.card_number}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">紧急联系人</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.emergency_contact}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.emergency_contact!==centerDetail.account.emergency_contact">
|
||||
{{centerDetail.emergency_contact}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">联系人电话</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.emergency_phone}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.emergency_phone!==centerDetail.account.emergency_phone">
|
||||
{{centerDetail.emergency_phone}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">银行卡户名</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_card_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_card_name!==centerDetail.account.bank_card_name">
|
||||
{{centerDetail.bank_card_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">银行卡号</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_card_number}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_card_number!==centerDetail.account.bank_card_number">
|
||||
{{centerDetail.bank_card_number}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">开户行</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_name!==centerDetail.account.bank_name">
|
||||
{{centerDetail.bank_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">技术岗位</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.position_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.position_name!==centerDetail.account.position_name">
|
||||
{{centerDetail.position_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">工资</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.pay}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.pay!==centerDetail.account.pay">
|
||||
{{centerDetail.pay}}
|
||||
</text>元
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">加入时间</view>
|
||||
<view class="msg font24">{{centerDetail.created_at}}</view>
|
||||
</view>
|
||||
<view class="item" v-if="centerDetail.status==-1">
|
||||
<view class="title">审核状态</view>
|
||||
<view class="msg font24 color-red">已退回</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 审核按钮 -->
|
||||
<view class="enter-detail-btns color-white font30" v-if="centerDetail.status==0">
|
||||
<view class="btn" @tap="submitEv(1)">确认</view>
|
||||
<view class="btn" @tap="ifReason=true">退回</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 退回理由 -->
|
||||
<view class="pop-up-bg" v-if="ifReason">
|
||||
<view class="edit-box bg-white">
|
||||
<image class="close-btn" src="/static/icon/icon-close-btn.png" mode="aspectFit" @tap="closeReason"></image>
|
||||
<view class="title font36">退回理由</view>
|
||||
<!-- 其他显示 -->
|
||||
<input class="input font26" type="text" v-model="reasonMsg" placeholder="请输入退回理由" placeholder-style="color:rgba(51,51,51,.4)">
|
||||
<view class="submit-btn font30 color-white" @tap="submitEv(0)">确认</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 尾部 -->
|
||||
<tabbar :userType="userType" current="2"></tabbar>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import tabbar from '@/components/tabbar/tabbar';
|
||||
export default {
|
||||
components:{
|
||||
tabbar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
statusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType:'director', //账户类型 工人:worker 负责人:director
|
||||
centerDetail:{}, //工人信息
|
||||
reasonMsg:'', //退回理由
|
||||
ifReason:false, //是否退回
|
||||
id:0, //工人id
|
||||
}
|
||||
},
|
||||
onLoad(op) {
|
||||
if(op.id){
|
||||
this.id = op.id;
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
// 获取工人信息
|
||||
this.getEnterDetail();
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
let shareObj = {
|
||||
title:'工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl:'/static/share-logo.jpg',
|
||||
}
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 获取工人信息
|
||||
getEnterDetail(){
|
||||
this.$requst.post('/api/v1/manager/check-detail',{id:this.id}).then(res=>{
|
||||
if(res.code == 0){
|
||||
console.log(res,'工人信息');
|
||||
this.centerDetail = res.data;
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 确认&退回
|
||||
submitEv(type){
|
||||
if(type==0){
|
||||
let params = {
|
||||
id:this.id,
|
||||
type:type,
|
||||
reason:this.reasonMsg
|
||||
}
|
||||
// 提交
|
||||
this.submitApi(params,type);
|
||||
}else{
|
||||
let params = {
|
||||
id:this.id,
|
||||
type:type
|
||||
}
|
||||
// 提交
|
||||
this.submitApi(params,type);
|
||||
}
|
||||
},
|
||||
|
||||
// 提交
|
||||
submitApi(params,type){
|
||||
console.log(params,type,123)
|
||||
this.$requst.post('/api/v1/manager/check-info',params).then(res=>{
|
||||
if(res.code == 0){
|
||||
if(type==0){
|
||||
this.$toolAll.tools.showToast('已退回');
|
||||
}else{
|
||||
this.$toolAll.tools.showToast('已确认');
|
||||
}
|
||||
uni.reLaunch({
|
||||
url:'/pages/director/enter/enter'
|
||||
})
|
||||
}else{
|
||||
this.$toolAll.tools.showToast(res.msg);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 关闭退回弹窗
|
||||
closeReason(){
|
||||
this.ifReason = false;
|
||||
this.reasonMsg = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
</style>
|
|
@ -0,0 +1,221 @@
|
|||
<template>
|
||||
<view class="pad-x120">
|
||||
<!-- 头部 -->
|
||||
<status-nav navBarTitle="工人信息"></status-nav>
|
||||
<view class="content" :style="{'padding-top':statusHeight+50+'px'}">
|
||||
<!-- 工人信息 -->
|
||||
<view class="enter-detail font26">
|
||||
<view class="item">
|
||||
<view class="title">姓名</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.real_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.real_name!==centerDetail.account.real_name">
|
||||
{{centerDetail.real_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">电话</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.mobile}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.mobile!==centerDetail.account.mobile">
|
||||
{{centerDetail.mobile}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">身份证</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.card_number}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.card_number!==centerDetail.account.card_number">
|
||||
{{centerDetail.card_number}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">紧急联系人</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.emergency_contact}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.emergency_contact!==centerDetail.account.emergency_contact">
|
||||
{{centerDetail.emergency_contact}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">联系人电话</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.emergency_phone}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.emergency_phone!==centerDetail.account.emergency_phone">
|
||||
{{centerDetail.emergency_phone}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">银行卡户名</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_card_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_card_name!==centerDetail.account.bank_card_name">
|
||||
{{centerDetail.bank_card_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">银行卡号</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_card_number}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_card_number!==centerDetail.account.bank_card_number">
|
||||
{{centerDetail.bank_card_number}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">开户行</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.bank_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.bank_name!==centerDetail.account.bank_name">
|
||||
{{centerDetail.bank_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">技术岗位</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.position_name}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.position_name!==centerDetail.account.position_name">
|
||||
{{centerDetail.position_name}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">工资</view>
|
||||
<view class="msg font24">
|
||||
{{centerDetail.account.pay}}
|
||||
<text class="director-arrow" v-if="centerDetail.status==0 && centerDetail.pay!==centerDetail.account.pay">
|
||||
{{centerDetail.pay}}
|
||||
</text>元
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">加入时间</view>
|
||||
<view class="msg font24">{{centerDetail.created_at}}</view>
|
||||
</view>
|
||||
<view class="item" v-if="centerDetail.status==-1">
|
||||
<view class="title">审核状态</view>
|
||||
<view class="msg font24 color-red">已退回</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 审核按钮 -->
|
||||
<view class="enter-detail-btns color-white font30" v-if="centerDetail.status==0">
|
||||
<view class="btn" @tap="submitEv(1)">确认</view>
|
||||
<view class="btn" @tap="ifReason=true">退回</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 退回理由 -->
|
||||
<view class="pop-up-bg" v-if="ifReason">
|
||||
<view class="edit-box bg-white">
|
||||
<image class="close-btn" src="/static/icon/icon-close-btn.png" mode="aspectFit" @tap="closeReason"></image>
|
||||
<view class="title font36">退回理由</view>
|
||||
<!-- 其他显示 -->
|
||||
<input class="input font26" type="text" v-model="reasonMsg" placeholder="请输入退回理由" placeholder-style="color:rgba(51,51,51,.4)">
|
||||
<view class="submit-btn font30 color-white" @tap="submitEv(0)">确认</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 尾部 -->
|
||||
<tabbar :userType="userType" current="2"></tabbar>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import tabbar from '@/components/tabbar/tabbar';
|
||||
export default {
|
||||
components:{
|
||||
tabbar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
statusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType:'director', //账户类型 工人:worker 负责人:director
|
||||
centerDetail:{}, //工人信息
|
||||
reasonMsg:'', //退回理由
|
||||
ifReason:false, //是否退回
|
||||
id:0, //工人id
|
||||
}
|
||||
},
|
||||
onLoad(op) {
|
||||
if(op.id){
|
||||
this.id = op.id;
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
// 获取工人信息
|
||||
this.getEnterDetail();
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
let shareObj = {
|
||||
title:'工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl:'/static/share-logo.jpg',
|
||||
}
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 获取工人信息
|
||||
getEnterDetail(){
|
||||
this.$requst.post('/api/v1/manager/check-detail',{id:this.id}).then(res=>{
|
||||
if(res.code == 0){
|
||||
console.log(res,'工人信息');
|
||||
this.centerDetail = res.data;
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 确认&退回
|
||||
submitEv(type){
|
||||
if(type==0){
|
||||
let params = {
|
||||
id:this.id,
|
||||
type:type,
|
||||
reason:this.reasonMsg
|
||||
}
|
||||
// 提交
|
||||
this.submitApi(params,type);
|
||||
}else{
|
||||
let params = {
|
||||
id:this.id,
|
||||
type:type
|
||||
}
|
||||
// 提交
|
||||
this.submitApi(params,type);
|
||||
}
|
||||
},
|
||||
|
||||
// 提交
|
||||
submitApi(params,type){
|
||||
console.log(params,type,123)
|
||||
this.$requst.post('/api/v1/manager/check-info',params).then(res=>{
|
||||
if(res.code == 0){
|
||||
if(type==0){
|
||||
this.$toolAll.tools.showToast('已退回');
|
||||
}else{
|
||||
this.$toolAll.tools.showToast('已确认');
|
||||
}
|
||||
uni.reLaunch({
|
||||
url:'/pages/director/enter/enter'
|
||||
})
|
||||
}else{
|
||||
this.$toolAll.tools.showToast(res.msg);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 关闭退回弹窗
|
||||
closeReason(){
|
||||
this.ifReason = false;
|
||||
this.reasonMsg = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Binary file not shown.
After Width: | Height: | Size: 1.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
1
unpackage/dist/dev/.sourcemap/mp-weixin/components/sign-calendar/sign-calendar.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/components/sign-calendar/sign-calendar.js.map
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
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
unpackage/dist/dev/.sourcemap/mp-weixin/pages/director/examine/examine.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/director/examine/examine.js.map
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["uni-app:///main.js"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,2N,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,gBAAD,CAAV,C","file":"pages/director/examine/examine.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/director/examine/examine.vue'\ncreatePage(Page)"],"sourceRoot":""}
|
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
unpackage/dist/dev/.sourcemap/mp-weixin/pagesB/enterDetail/enterDetail.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesB/enterDetail/enterDetail.js.map
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
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["uni-app:///main.js"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,uN,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,eAAD,CAAV,C","file":"pagesB/pagesB/notick/notick.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesB/pagesB/notick/notick.vue'\ncreatePage(Page)"],"sourceRoot":""}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -5,6 +5,7 @@
|
|||
"pages/worker/overtime/overtime",
|
||||
"pages/worker/my/my",
|
||||
"pages/director/sign/sign",
|
||||
"pages/director/sign/examine",
|
||||
"pages/director/expenditure/expenditure",
|
||||
"pages/director/enter/enter",
|
||||
"pages/director/overtime/overtime",
|
||||
|
@ -19,8 +20,16 @@
|
|||
"wagesRecord/wagesRecord",
|
||||
"overtimeRecord/overtimeRecord",
|
||||
"overtimeEdit/overtimeEdit",
|
||||
"singlePage/singlePage",
|
||||
"enterDetail/enterDetail"
|
||||
"singlePage/singlePage"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pagesB",
|
||||
"pages": [
|
||||
"enterDetail/enterDetail",
|
||||
"worker/worker",
|
||||
"repair/repair",
|
||||
"notick/notick"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
|
@ -160,7 +160,7 @@
|
|||
.color-white{ color: #ffffff;}
|
||||
.color-blue{ color: #0788ff;}
|
||||
.color-yellow{ color: #ffde00;}
|
||||
.color-red{ color: #ff0000;}
|
||||
.color-red{ color: #ec0707;}
|
||||
.color-00{ color: #000000;}
|
||||
.color-33{ color: #333333;}
|
||||
.color-66{ color: #666666;}
|
||||
|
@ -170,8 +170,11 @@
|
|||
.bg-blue{ background-color: #0788ff;}
|
||||
.bg-yellow{ background-color: #ffde00;}
|
||||
.bg-white{ background-color: #ffffff;}
|
||||
.bg-red{ background-color: #ff0000;}
|
||||
.bg-red{ background-color: #ec0707;}
|
||||
.bg-orange{ background-color: #ec7807;}
|
||||
.bg-green{ background-color: #25a63b;}
|
||||
/* 内边距 */
|
||||
.pad-x100{ padding-bottom: 100rpx;}
|
||||
.pad-x120{ padding-bottom: 120rpx;}
|
||||
/* 文字行数 */
|
||||
.clips1{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
|
||||
|
@ -351,6 +354,11 @@ page{
|
|||
width: 90rpx;
|
||||
text-align: right;
|
||||
}
|
||||
/* 打卡日历 */
|
||||
.sign-calendar{
|
||||
background-color: #f7f7f7;
|
||||
padding: 32rpx 25rpx 0;
|
||||
}
|
||||
/* 弹窗 */
|
||||
.pop-up-bg{
|
||||
display: flex;
|
||||
|
|
|
@ -105,11 +105,11 @@
|
|||
/******/
|
||||
/******/
|
||||
/******/ // mini-css-extract-plugin CSS loading
|
||||
/******/ var cssChunks = {"components/nothing/nothing-page":1,"components/status-nav/status-nav":1,"components/tabbar/tabbar":1,"components/sub-nav/sub-nav":1};
|
||||
/******/ var cssChunks = {"components/nothing/nothing-page":1,"components/status-nav/status-nav":1,"components/sign-calendar/sign-calendar":1,"components/tabbar/tabbar":1,"components/sub-nav/sub-nav":1};
|
||||
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
|
||||
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
|
||||
/******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {
|
||||
/******/ var href = "" + ({"components/nothing/nothing-page":"components/nothing/nothing-page","components/status-nav/status-nav":"components/status-nav/status-nav","components/tabbar/tabbar":"components/tabbar/tabbar","components/sub-nav/sub-nav":"components/sub-nav/sub-nav"}[chunkId]||chunkId) + ".wxss";
|
||||
/******/ var href = "" + ({"components/nothing/nothing-page":"components/nothing/nothing-page","components/status-nav/status-nav":"components/status-nav/status-nav","components/sign-calendar/sign-calendar":"components/sign-calendar/sign-calendar","components/tabbar/tabbar":"components/tabbar/tabbar","components/sub-nav/sub-nav":"components/sub-nav/sub-nav"}[chunkId]||chunkId) + ".wxss";
|
||||
/******/ var fullhref = __webpack_require__.p + href;
|
||||
/******/ var existingLinkTags = document.getElementsByTagName("link");
|
||||
/******/ for(var i = 0; i < existingLinkTags.length; i++) {
|
||||
|
|
|
@ -1464,7 +1464,7 @@ function initData(vueOptions, context) {
|
|||
try {
|
||||
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
||||
} catch (e) {
|
||||
if (Object({"VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||
if (Object({"NODE_ENV":"development","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
||||
}
|
||||
}
|
||||
|
@ -8558,7 +8558,7 @@ function type(obj) {
|
|||
|
||||
function flushCallbacks$1(vm) {
|
||||
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
||||
if (Object({"VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||
if (Object({"NODE_ENV":"development","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 + ']');
|
||||
|
@ -8579,14 +8579,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_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
||||
if(Object({"NODE_ENV":"development","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_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
||||
if(Object({"NODE_ENV":"development","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');
|
||||
|
@ -8672,7 +8672,7 @@ var patch = function(oldVnode, vnode) {
|
|||
});
|
||||
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
||||
if (Object.keys(diffData).length) {
|
||||
if (Object({"VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||
if (Object({"NODE_ENV":"development","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));
|
||||
|
|
|
@ -0,0 +1,344 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/sign-calendar/sign-calendar"],{
|
||||
|
||||
/***/ 171:
|
||||
/*!*******************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/components/sign-calendar/sign-calendar.vue ***!
|
||||
\*******************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _sign_calendar_vue_vue_type_template_id_c1c4e03c_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sign-calendar.vue?vue&type=template&id=c1c4e03c&scoped=true& */ 172);
|
||||
/* harmony import */ var _sign_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sign-calendar.vue?vue&type=script&lang=js& */ 174);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _sign_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _sign_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var _sign_calendar_vue_vue_type_style_index_0_id_c1c4e03c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sign-calendar.vue?vue&type=style&index=0&id=c1c4e03c&scoped=true&lang=css& */ 176);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
||||
|
||||
var renderjs
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
||||
_sign_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_sign_calendar_vue_vue_type_template_id_c1c4e03c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_sign_calendar_vue_vue_type_template_id_c1c4e03c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"c1c4e03c",
|
||||
null,
|
||||
false,
|
||||
_sign_calendar_vue_vue_type_template_id_c1c4e03c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||
renderjs
|
||||
)
|
||||
|
||||
component.options.__file = "components/sign-calendar/sign-calendar.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 172:
|
||||
/*!**************************************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/components/sign-calendar/sign-calendar.vue?vue&type=template&id=c1c4e03c&scoped=true& ***!
|
||||
\**************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_template_id_c1c4e03c_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./sign-calendar.vue?vue&type=template&id=c1c4e03c&scoped=true& */ 173);
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_template_id_c1c4e03c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_template_id_c1c4e03c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_template_id_c1c4e03c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_template_id_c1c4e03c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 173:
|
||||
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/components/sign-calendar/sign-calendar.vue?vue&type=template&id=c1c4e03c&scoped=true& ***!
|
||||
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||||
var components
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
var l0 = _vm.__map(_vm.days, function(item, index) {
|
||||
var $orig = _vm.__get_orig(item)
|
||||
|
||||
var g0 = _vm.statusObj.ok.indexOf(item.status)
|
||||
var g1 = _vm.statusObj.add.indexOf(item.status)
|
||||
var g2 = _vm.statusObj.no.indexOf(item.status)
|
||||
var g3 =
|
||||
_vm.statusObj.ok.indexOf(item.status) == -1 &&
|
||||
_vm.statusObj.add.indexOf(item.status) == -1 &&
|
||||
_vm.statusObj.no.indexOf(item.status) == -1 &&
|
||||
item.status !== -2
|
||||
return {
|
||||
$orig: $orig,
|
||||
g0: g0,
|
||||
g1: g1,
|
||||
g2: g2,
|
||||
g3: g3
|
||||
}
|
||||
})
|
||||
|
||||
_vm.$mp.data = Object.assign(
|
||||
{},
|
||||
{
|
||||
$root: {
|
||||
l0: l0
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 174:
|
||||
/*!********************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/components/sign-calendar/sign-calendar.vue?vue&type=script&lang=js& ***!
|
||||
\********************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./sign-calendar.vue?vue&type=script&lang=js& */ 175);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 175:
|
||||
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/components/sign-calendar/sign-calendar.vue?vue&type=script&lang=js& ***!
|
||||
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var _vuex = __webpack_require__(/*! vuex */ 13); //
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//引入mapState
|
||||
var _default = { name: 'sign-calendar', data: function data() {return { weeks: ['日', '一', '二', '三', '四', '五', '六'], //星期列表
|
||||
days: [], //天数
|
||||
curYear: new Date().getFullYear(), //当前年
|
||||
curMonth: new Date().getMonth() + 1, //当前月
|
||||
statusObj: {} //状态列表
|
||||
};}, mounted: function mounted() {// 获取数组,绘制格子
|
||||
this.getDaysList();}, methods: { // 获取数组,绘制格子
|
||||
getDaysList: function getDaysList() {// 清空数组
|
||||
this.days = []; // 计算当月天数
|
||||
var curDays = new Date(this.curYear, this.curMonth, 0).getDate(); // 计算当月第一天星期几
|
||||
var firstWeek = new Date(Date.UTC(this.curYear, this.curMonth - 1, 1)).getDay(); // 计算当月最后一天星期几
|
||||
var lastWeek = new Date(Date.UTC(this.curYear, this.curMonth - 1, curDays)).getDay(); // 上月还有展示
|
||||
if (firstWeek !== 0) {// 绘制上月天数占的格子
|
||||
this.proMonthDays(firstWeek, curDays);} else {// 绘制当月天数占的格子
|
||||
this.curMonthDays(curDays);} // 下月还有展示
|
||||
if (lastWeek !== 6) {// 绘制下月天数占的格子
|
||||
this.nextMonthDays(lastWeek);}},
|
||||
|
||||
// 绘制上月天数占的格子
|
||||
proMonthDays: function proMonthDays(firstWeek, curDays) {
|
||||
// 计算上月天数
|
||||
var proDays = 0;
|
||||
if (this.curMonth == 1) {
|
||||
proDays = new Date(this.curYear - 1, 12, 0).getDate();
|
||||
} else {
|
||||
proDays = new Date(this.curYear, this.curMonth - 1, 0).getDate();
|
||||
}
|
||||
// 创建上月天数数组
|
||||
var proDaysArr = [];
|
||||
for (var i = proDays - firstWeek + 1; i <= proDays; i++) {
|
||||
var proObj = {
|
||||
date: i,
|
||||
status: -2 };
|
||||
|
||||
proDaysArr.push(proObj);
|
||||
}
|
||||
this.days = proDaysArr;
|
||||
// 绘制当月天数占的格子
|
||||
this.curMonthDays(curDays);
|
||||
},
|
||||
|
||||
// 绘制当月天数占的格子
|
||||
curMonthDays: function curMonthDays(curDays) {
|
||||
// 创建当月天数数组
|
||||
var curDaysArr = [];
|
||||
for (var i = 1; i <= curDays; i++) {
|
||||
var curObj = {
|
||||
date: i,
|
||||
status: i };
|
||||
|
||||
curDaysArr.push(curObj);
|
||||
}
|
||||
this.days = this.days.concat(curDaysArr);
|
||||
// 获取状态列表
|
||||
this.getStatusObj();
|
||||
},
|
||||
|
||||
// 绘制下月天数占的格子
|
||||
nextMonthDays: function nextMonthDays(lastWeek) {
|
||||
// 创建上月天数数组
|
||||
var nextDaysArr = [];
|
||||
for (var i = 1; i <= 6 - lastWeek; i++) {
|
||||
var nextObj = {
|
||||
date: i,
|
||||
status: -2 };
|
||||
|
||||
nextDaysArr.push(nextObj);
|
||||
}
|
||||
this.days = this.days.concat(nextDaysArr);
|
||||
},
|
||||
|
||||
// 获取状态列表
|
||||
getStatusObj: function getStatusObj() {
|
||||
this.statusObj = {
|
||||
'ok': [2, 5, 6, 8, 12],
|
||||
'add': [4, 7, 11, 22],
|
||||
'no': [19, 28] };
|
||||
|
||||
},
|
||||
|
||||
// 上一月
|
||||
proEv: function proEv() {
|
||||
if (this.curMonth !== 1) {
|
||||
this.curMonth--;
|
||||
} else {
|
||||
this.curMonth = 12;
|
||||
this.curYear--;
|
||||
}
|
||||
// 获取数组,绘制格子
|
||||
this.getDaysList();
|
||||
},
|
||||
|
||||
// 下一月
|
||||
nextEv: function nextEv() {
|
||||
if (this.curMonth !== 12) {
|
||||
this.curMonth++;
|
||||
} else {
|
||||
this.curMonth = 1;
|
||||
this.curYear++;
|
||||
}
|
||||
// 获取数组,绘制格子
|
||||
this.getDaysList();
|
||||
} } };exports.default = _default;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 176:
|
||||
/*!****************************************************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/components/sign-calendar/sign-calendar.vue?vue&type=style&index=0&id=c1c4e03c&scoped=true&lang=css& ***!
|
||||
\****************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_style_index_0_id_c1c4e03c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./sign-calendar.vue?vue&type=style&index=0&id=c1c4e03c&scoped=true&lang=css& */ 177);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_style_index_0_id_c1c4e03c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_style_index_0_id_c1c4e03c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_style_index_0_id_c1c4e03c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_style_index_0_id_c1c4e03c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_calendar_vue_vue_type_style_index_0_id_c1c4e03c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 177:
|
||||
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/components/sign-calendar/sign-calendar.vue?vue&type=style&index=0&id=c1c4e03c&scoped=true&lang=css& ***!
|
||||
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// extracted by mini-css-extract-plugin
|
||||
if(false) { var cssReload; }
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/sign-calendar/sign-calendar.js.map
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/sign-calendar/sign-calendar-create-component',
|
||||
{
|
||||
'components/sign-calendar/sign-calendar-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('1')['createComponent'](__webpack_require__(171))
|
||||
})
|
||||
},
|
||||
[['components/sign-calendar/sign-calendar-create-component']]
|
||||
]);
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
<view class="calendar data-v-c1c4e03c"><view class="data font28 color-white data-v-c1c4e03c"><view data-event-opts="{{[['tap',[['proEv',['$event']]]]]}}" class="btn btn-pro data-v-c1c4e03c" bindtap="__e"></view><view class="txt data-v-c1c4e03c">{{curYear+"年"+(curMonth<10?'0'+curMonth:curMonth)+"月"}}</view><view data-event-opts="{{[['tap',[['nextEv',['$event']]]]]}}" class="btn btn-next data-v-c1c4e03c" bindtap="__e"></view></view><view class="week font24 data-v-c1c4e03c"><block wx:for="{{weeks}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item data-v-c1c4e03c">{{item}}</view></block></view><view class="days bg-white font26 data-v-c1c4e03c"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item data-v-c1c4e03c"><block wx:if="{{item.$orig.status==-2}}"><view class="txt color-99 data-v-c1c4e03c">{{item.$orig.date}}</view></block><block wx:if="{{item.g0!==-1}}"><view class="txt color-white bg-green data-v-c1c4e03c">{{item.$orig.date}}</view></block><block wx:if="{{item.g1!==-1}}"><view class="txt color-white bg-orange data-v-c1c4e03c">{{item.$orig.date}}</view></block><block wx:if="{{item.g2!==-1}}"><view class="txt color-white bg-red data-v-c1c4e03c">{{item.$orig.date}}</view></block><block wx:if="{{item.g3}}"><view class="txt data-v-c1c4e03c">{{item.$orig.date}}</view></block></view></block></view><view class="tips font22 data-v-c1c4e03c"><view class="item data-v-c1c4e03c">正常打卡</view><view class="item data-v-c1c4e03c">补打卡</view><view class="item data-v-c1c4e03c">非正常打卡</view></view></view>
|
|
@ -0,0 +1,85 @@
|
|||
|
||||
.calendar .data.data-v-c1c4e03c{
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 92rpx;
|
||||
padding: 0 22rpx;
|
||||
background-color: #0788ff;
|
||||
}
|
||||
.calendar .btn.data-v-c1c4e03c{
|
||||
width: 42rpx;
|
||||
height: 42rpx;
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjQzNTVEQkNGNzZDODExRURBREJDRTQ4QTVCN0I0NjgwIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjQzNTVEQkQwNzZDODExRURBREJDRTQ4QTVCN0I0NjgwIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDM1NURCQ0Q3NkM4MTFFREFEQkNFNDhBNUI3QjQ2ODAiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NDM1NURCQ0U3NkM4MTFFREFEQkNFNDhBNUI3QjQ2ODAiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HI42vAAADa0lEQVR42tyZW0gVURSG5wwWaWRkaibYRR9KC7rfKIiwkl7CgtCHLlBQRhRF9Bi9F11QrITKoh6EoMC3IJGowIoCCckCwy7WUStJOFBWnP4V/8h2mHPmzOw9PvTD9+A4s+c/+7LW3mtiyWTSCqnJoABsAItAHpgBCvn/AdAPvoFO0A4GQSLMy2IhjJaB9QoTM3xuBDxQ6InK6FKwFewA0yw9DYHboBW8MGW0BBwG2zjcJiXT4C5oAB90jK4A50GpFa3egmPgWaob7DQPbwbN42DS4jua+c5APboWXAL5hoz8BL+58Cakue8LOAgeZ9Kj8utOGzT5kAtwEzgH/qS5N5/vLvXr0angDig3ZPIpe+gz/17IlT7J57lXYDv4nqpHTxo0+RwcUEw677MzeLacXjyHfj6oNmhyHzOTI8lapwIkiGp6GmM0BmpBjqHh3ssU6qgYXANrArSTQ08x1WgJL+rqEYd7ULk2G1wBS0K0V0tvo0a3gFwDJo+4hnsOw9zikG3m0ts/o9kMHTrqAEdBXLk2FzRqmHQk3rKzOH+Wa87JQ67VLT15kds/XYm3YjFaGWAlpgpB7uG+ajDMibdKMVqhGYIGXFntBvesJlVhc2duIgTNA7ciMCnKE6NFBkKQjMp1DnsUKsriuSfI6q7jOUhNdzfBzAi3gQW2oYZsK2LZriH002pwmXlb3ensBh8j9Dlou4J0JloHmlxT5iXYAz5FZDRu80QYVCu5ySh09ezOiHp2yGZxIIyWMbCr06Ab7AK9ho122qxg/NAw2+Ra8a+ZCHoMmRRv7WK0z+swFXAaNHLPoE6DOh6DdSXe+myWWto1G5NocMGVPLp4Xnqn2bZ4G3Hi330wrNmgRIN615yVaLBfY4EN09tooJZySouBYTIdulqcUo9jNMmLCQNm04WuNwHrUi30Nib1dfPMbUKpQle9TwFCVSuf8czRZwzGQK/Q1ZFhKOyll5SbiTirav2GzMo0aOBedQqo4hktnfrpIZ5JkayKv8hU/WmYc03qq1k+RbIT4J5f7UmVVPTOglnW+Og9OJ4q+fgVcsu4rVsQsckuZrKesBteebCGZ6FEBAYTbLvGb2/wX31s8JoOG1kPWGWlryCr+gWegDamxcg+33jVhQpoWA540y3vD2JfmZnaeOwJtaf4K8AAa3DnDAcjBj4AAAAASUVORK5CYII=);
|
||||
background-size: cover;
|
||||
}
|
||||
.calendar .btn-next.data-v-c1c4e03c{
|
||||
-webkit-transform: rotateY(180deg);
|
||||
transform: rotateY(180deg);
|
||||
}
|
||||
.calendar .week.data-v-c1c4e03c{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: #ececec;
|
||||
}
|
||||
.calendar .week .item.data-v-c1c4e03c{
|
||||
width: calc(100%/7);
|
||||
line-height: 58rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.calendar .days.data-v-c1c4e03c{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
}
|
||||
.calendar .days .item.data-v-c1c4e03c{
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: calc(100%/7);
|
||||
height: 86rpx;
|
||||
border-top: 2rpx solid #ececec;
|
||||
border-right: 2rpx solid #ececec;
|
||||
}
|
||||
.calendar .days .item.data-v-c1c4e03c:nth-of-type(7n){
|
||||
border-right: 0;
|
||||
}
|
||||
.calendar .days .item .txt.data-v-c1c4e03c{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 58rpx;
|
||||
height: 58rpx;
|
||||
border-radius: 100%;
|
||||
}
|
||||
.calendar .tips.data-v-c1c4e03c{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 30rpx 0;
|
||||
}
|
||||
.calendar .tips .item.data-v-c1c4e03c{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 30rpx;
|
||||
margin: 0 12rpx;
|
||||
}
|
||||
.calendar .tips .item.data-v-c1c4e03c:before{
|
||||
content: '';
|
||||
display: block;
|
||||
width: 12rpx;
|
||||
height: 12rpx;
|
||||
background-color: #ec7807;
|
||||
border-radius: 100%;
|
||||
margin-right: 9rpx;
|
||||
}
|
||||
.calendar .tips .item.data-v-c1c4e03c:first-child:before{
|
||||
background-color: #25a63b;
|
||||
}
|
||||
.calendar .tips .item.data-v-c1c4e03c:last-child:before{
|
||||
background-color: #ec0707;
|
||||
}
|
||||
|
|
@ -256,7 +256,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
// 去确认&查看详情
|
||||
toDetail: function toDetail(id) {
|
||||
uni.navigateTo({
|
||||
url: "/pagesA/enterDetail/enterDetail?id=".concat(id) });
|
||||
url: "/pagesB/enterDetail/enterDetail?id=".concat(id) });
|
||||
|
||||
},
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Component({})
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"navigationBarTitleText": "打卡",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
|
@ -0,0 +1,377 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/director/sign/examine"],{
|
||||
|
||||
/***/ 108:
|
||||
/*!*****************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/main.js?{"page":"pages%2Fdirector%2Fsign%2Fexamine"} ***!
|
||||
\*****************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
|
||||
|
||||
|
||||
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
|
||||
var _examine = _interopRequireDefault(__webpack_require__(/*! ./pages/director/sign/examine.vue */ 109));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
|
||||
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_examine.default);
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 109:
|
||||
/*!********************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pages/director/sign/examine.vue ***!
|
||||
\********************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _examine_vue_vue_type_template_id_089fcb09_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./examine.vue?vue&type=template&id=089fcb09&scoped=true& */ 149);
|
||||
/* harmony import */ var _examine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./examine.vue?vue&type=script&lang=js& */ 151);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _examine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _examine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
||||
|
||||
var renderjs
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_examine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_examine_vue_vue_type_template_id_089fcb09_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_examine_vue_vue_type_template_id_089fcb09_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"089fcb09",
|
||||
null,
|
||||
false,
|
||||
_examine_vue_vue_type_template_id_089fcb09_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||
renderjs
|
||||
)
|
||||
|
||||
component.options.__file = "pages/director/sign/examine.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 149:
|
||||
/*!***************************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pages/director/sign/examine.vue?vue&type=template&id=089fcb09&scoped=true& ***!
|
||||
\***************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_examine_vue_vue_type_template_id_089fcb09_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./examine.vue?vue&type=template&id=089fcb09&scoped=true& */ 150);
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_examine_vue_vue_type_template_id_089fcb09_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_examine_vue_vue_type_template_id_089fcb09_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_examine_vue_vue_type_template_id_089fcb09_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_examine_vue_vue_type_template_id_089fcb09_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 150:
|
||||
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pages/director/sign/examine.vue?vue&type=template&id=089fcb09&scoped=true& ***!
|
||||
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||||
var components
|
||||
try {
|
||||
components = {
|
||||
statusNav: function() {
|
||||
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 121))
|
||||
},
|
||||
subNav: function() {
|
||||
return Promise.all(/*! import() | components/sub-nav/sub-nav */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/sub-nav/sub-nav")]).then(__webpack_require__.bind(null, /*! @/components/sub-nav/sub-nav.vue */ 135))
|
||||
},
|
||||
tabbar: function() {
|
||||
return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 128))
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (
|
||||
e.message.indexOf("Cannot find module") !== -1 &&
|
||||
e.message.indexOf(".vue") !== -1
|
||||
) {
|
||||
console.error(e.message)
|
||||
console.error("1. 排查组件名称拼写是否正确")
|
||||
console.error(
|
||||
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
||||
)
|
||||
console.error(
|
||||
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
||||
)
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 151:
|
||||
/*!*********************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pages/director/sign/examine.vue?vue&type=script&lang=js& ***!
|
||||
\*********************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_examine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./examine.vue?vue&type=script&lang=js& */ 152);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_examine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_examine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_examine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_examine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_examine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 152:
|
||||
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pages/director/sign/examine.vue?vue&type=script&lang=js& ***!
|
||||
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var subNav = function subNav() {Promise.all(/*! require.ensure | components/sub-nav/sub-nav */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/sub-nav/sub-nav")]).then((function () {return resolve(__webpack_require__(/*! @/components/sub-nav/sub-nav.vue */ 135));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 128));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
components: {
|
||||
subNav: subNav,
|
||||
tabbar: tabbar },
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType: 'director', //账户类型 工人:worker 负责人:director
|
||||
signList: [], //打卡列表
|
||||
page: 1,
|
||||
size: 10,
|
||||
status: 0,
|
||||
total: 0,
|
||||
isAll: false, //是否全选
|
||||
ids: '' //选中的id
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad() {
|
||||
|
||||
},
|
||||
onShow: function onShow() {
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
},
|
||||
onReachBottom: function onReachBottom() {
|
||||
if (this.signList.length < this.total) {
|
||||
this.page++;
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
}
|
||||
},
|
||||
onPullDownRefresh: function onPullDownRefresh() {
|
||||
this.page = 1;
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
// 关闭下拉刷新
|
||||
uni.stopPullDownRefresh();
|
||||
},
|
||||
onShareAppMessage: function onShareAppMessage(res) {
|
||||
var shareObj = {
|
||||
title: '工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl: '/static/share-logo.jpg' };
|
||||
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 选择栏目
|
||||
changeEv: function changeEv(index) {
|
||||
this.status = index;
|
||||
this.page = 1;
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
},
|
||||
// 选中事件
|
||||
chooseEv: function chooseEv(index) {
|
||||
this.signList[index].ifcheck = !this.signList[index].ifcheck;
|
||||
var exit = this.signList.filter(function (item) {return item.ifcheck == false;});
|
||||
if (exit.length > 0) {
|
||||
this.isAll = false;
|
||||
} else {
|
||||
this.isAll = true;
|
||||
}
|
||||
var idsTemparr = this.signList.filter(function (item) {return item.ifcheck == true;});
|
||||
var idsArr = [];
|
||||
idsTemparr.forEach(function (item) {
|
||||
idsArr.push(item.id);
|
||||
});
|
||||
// 选中的id
|
||||
this.ids = idsArr.join(',');
|
||||
},
|
||||
|
||||
// 全选事件
|
||||
chooseAll: function chooseAll() {
|
||||
var exit = this.signList.filter(function (item) {return item.ifcheck == false;});
|
||||
if (exit.length > 0) {
|
||||
this.isAll = true;
|
||||
this.signList.forEach(function (item) {return item.ifcheck = true;});
|
||||
} else {
|
||||
this.isAll = false;
|
||||
this.signList.forEach(function (item) {item.ifcheck = false;});
|
||||
}
|
||||
var idsTemparr = this.signList.filter(function (item) {return item.ifcheck == true;});
|
||||
var idsArr = [];
|
||||
idsTemparr.forEach(function (item) {
|
||||
idsArr.push(item.id);
|
||||
});
|
||||
// 选中的id
|
||||
this.ids = idsArr.join(',');
|
||||
},
|
||||
|
||||
// 确认&退回事件
|
||||
submitEv: function submitEv(id, type) {var _this = this;
|
||||
var params = {
|
||||
id: id,
|
||||
type: type };
|
||||
|
||||
this.$requst.post('/api/v1/manager/check-clock', params).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
if (type == 0) {
|
||||
_this.$toolAll.tools.showToast('已退回');
|
||||
} else {
|
||||
_this.$toolAll.tools.showToast('已确认');
|
||||
}
|
||||
// 获取打卡列表
|
||||
_this.getSignList();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 批量确认&退回事件
|
||||
submitAll: function submitAll(type) {var _this2 = this;
|
||||
var params = {
|
||||
id: this.ids,
|
||||
type: type };
|
||||
|
||||
this.$requst.post('/api/v1/manager/check-clock', params).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
if (type == 0) {
|
||||
_this2.$toolAll.tools.showToast('已退回');
|
||||
} else {
|
||||
_this2.$toolAll.tools.showToast('已确认');
|
||||
}
|
||||
// 获取打卡列表
|
||||
_this2.getSignList();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 获取打卡列表
|
||||
getSignList: function getSignList() {var _this3 = this;
|
||||
var params = {
|
||||
page: this.page,
|
||||
size: this.size,
|
||||
status: this.status };
|
||||
|
||||
if (this.page == 1) this.signList = [];
|
||||
this.$requst.post('/api/v1/manager/clock-list', params).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
console.log(res, '打卡列表');
|
||||
_this3.total = res.data.total;
|
||||
var signArr = [];
|
||||
res.data.list.forEach(function (item) {
|
||||
var obj = {
|
||||
id: item.id,
|
||||
created_at: item.created_at,
|
||||
status: item.status,
|
||||
status_text: item.status_text,
|
||||
worksite_name: item.worksite_name,
|
||||
worker_name: item.worker_name,
|
||||
type_text: item.type_text,
|
||||
is_statistic: item.is_statistic,
|
||||
ifcheck: false };
|
||||
|
||||
signArr.push(obj);
|
||||
});
|
||||
_this3.signList = _this3.signList.concat(signArr);
|
||||
}
|
||||
});
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[108,"common/runtime","common/vendor"]]]);
|
||||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/director/sign/examine.js.map
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"navigationBarTitleText": "打卡",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {
|
||||
"status-nav": "/components/status-nav/status-nav",
|
||||
"sub-nav": "/components/sub-nav/sub-nav",
|
||||
"tabbar": "/components/tabbar/tabbar"
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
<view class="pad-x120 data-v-089fcb09"><status-nav vue-id="0b5a171d-1" ifReturn="{{false}}" navBarTitle="工地打卡" class="data-v-089fcb09" bind:__l="__l"></status-nav><view class="content data-v-089fcb09" style="{{'padding-top:'+(statusHeight+50+'px')+';'}}"><view class="pull-nav data-v-089fcb09" style="{{'top:'+(statusHeight+50+'px')+';'}}"><sub-nav bind:changeEv="__e" vue-id="0b5a171d-2" data-event-opts="{{[['^changeEv',[['changeEv']]]]}}" class="data-v-089fcb09" bind:__l="__l"></sub-nav></view><view class="choose-all-bg data-v-089fcb09"><block wx:if="{{status==0&&signList.length>0}}"><view class="choose-all font26 data-v-089fcb09"><view data-event-opts="{{[['tap',[['chooseAll',['$event']]]]]}}" class="{{['radio','data-v-089fcb09',isAll?'checked':'']}}" bindtap="__e"></view><view class="title data-v-089fcb09">全选</view><block wx:if="{{ids!==''}}"><view class="choose-all-btns font24 data-v-089fcb09"><view data-event-opts="{{[['tap',[['submitAll',[1]]]]]}}" class="btn color-blue data-v-089fcb09" bindtap="__e">一键确认</view><view data-event-opts="{{[['tap',[['submitAll',[0]]]]]}}" class="btn color-99 btn-no data-v-089fcb09" bindtap="__e">退回</view></view></block></view></block></view><view class="sign-record sign-record-other bg-white data-v-089fcb09"><block wx:for="{{signList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item font26 data-v-089fcb09"><block wx:if="{{status==0}}"><view data-event-opts="{{[['tap',[['chooseEv',[index]]]]]}}" class="{{['radio','data-v-089fcb09',item.ifcheck?'checked':'']}}" bindtap="__e"></view></block><view class="{{['info','data-v-089fcb09',status==0?'hide':'']}}"><text class="data-v-089fcb09">{{"姓名:"+item.worker_name}}</text><text class="data-v-089fcb09">{{item.type_text+"打卡:"+item.created_at}}</text><text class="data-v-089fcb09">{{"打卡工地:"+item.worksite_name}}</text></view><block wx:if="{{item.status==0}}"><view class="examine-btns font24 data-v-089fcb09"><view data-event-opts="{{[['tap',[['submitEv',['$0',1],[[['signList','',index,'id']]]]]]]}}" class="btn color-blue data-v-089fcb09" bindtap="__e">确认</view><view data-event-opts="{{[['tap',[['submitEv',['$0',0],[[['signList','',index,'id']]]]]]]}}" class="btn color-99 data-v-089fcb09" bindtap="__e">退回</view></view></block><block wx:if="{{item.status==1||item.status==-1}}"><view class="{{['state','data-v-089fcb09',item.status==-1?'color-red':'']}}">{{item.status_text}}</view></block></view></block><view class="more-tips font24 data-v-089fcb09">{{signList.length==total?'没有更多数据了':'下滑获取更多'}}</view></view></view><tabbar vue-id="0b5a171d-3" userType="{{userType}}" class="data-v-089fcb09" bind:__l="__l"></tabbar></view>
|
|
@ -0,0 +1 @@
|
|||
/* pages/director/sign/examine.wxss */
|
|
@ -98,6 +98,9 @@ try {
|
|||
statusNav: function() {
|
||||
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 121))
|
||||
},
|
||||
signCalendar: function() {
|
||||
return Promise.all(/*! import() | components/sign-calendar/sign-calendar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/sign-calendar/sign-calendar")]).then(__webpack_require__.bind(null, /*! @/components/sign-calendar/sign-calendar.vue */ 171))
|
||||
},
|
||||
tabbar: function() {
|
||||
return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 128))
|
||||
}
|
||||
|
@ -180,7 +183,12 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 128));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var signCalendar = function signCalendar() {Promise.all(/*! require.ensure | components/sign-calendar/sign-calendar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/sign-calendar/sign-calendar")]).then((function () {return resolve(__webpack_require__(/*! @/components/sign-calendar/sign-calendar */ 171));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 128));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -386,6 +394,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
|
||||
{
|
||||
components: {
|
||||
signCalendar: signCalendar,
|
||||
tabbar: tabbar },
|
||||
|
||||
data: function data() {
|
||||
|
@ -506,6 +515,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
backgroundColor: 'none' });
|
||||
|
||||
},
|
||||
|
||||
// 获取用户信息
|
||||
getUserInfo: function getUserInfo() {var _this = this;
|
||||
this.$requst.post('/api/v1/user/info').then(function (res) {
|
||||
|
@ -882,6 +892,15 @@ __webpack_require__.r(__webpack_exports__);
|
|||
if (type == 'bank') {
|
||||
this.registerObj.bank_img = '';
|
||||
}
|
||||
},
|
||||
|
||||
// 预览图片
|
||||
previewImage: function previewImage(url) {
|
||||
var urlArr = [url];
|
||||
uni.previewImage({
|
||||
current: 1, //预览图片的下标
|
||||
urls: urlArr //预览图片的地址,必须要数组形式,如果不是数组形式就转换成数组形式就可以
|
||||
});
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {
|
||||
"status-nav": "/components/status-nav/status-nav",
|
||||
"sign-calendar": "/components/sign-calendar/sign-calendar",
|
||||
"tabbar": "/components/tabbar/tabbar"
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -1,384 +1 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/enterDetail/enterDetail"],{
|
||||
|
||||
/***/ 108:
|
||||
/*!******************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/main.js?{"page":"pagesA%2FenterDetail%2FenterDetail"} ***!
|
||||
\******************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
|
||||
|
||||
|
||||
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
|
||||
var _enterDetail = _interopRequireDefault(__webpack_require__(/*! ./pagesA/enterDetail/enterDetail.vue */ 109));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
|
||||
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_enterDetail.default);
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 109:
|
||||
/*!***********************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/enterDetail/enterDetail.vue ***!
|
||||
\***********************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _enterDetail_vue_vue_type_template_id_3e617202_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./enterDetail.vue?vue&type=template&id=3e617202&scoped=true& */ 110);
|
||||
/* harmony import */ var _enterDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./enterDetail.vue?vue&type=script&lang=js& */ 112);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _enterDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _enterDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
||||
|
||||
var renderjs
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_enterDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_enterDetail_vue_vue_type_template_id_3e617202_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_enterDetail_vue_vue_type_template_id_3e617202_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"3e617202",
|
||||
null,
|
||||
false,
|
||||
_enterDetail_vue_vue_type_template_id_3e617202_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||
renderjs
|
||||
)
|
||||
|
||||
component.options.__file = "pagesA/enterDetail/enterDetail.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 110:
|
||||
/*!******************************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/enterDetail/enterDetail.vue?vue&type=template&id=3e617202&scoped=true& ***!
|
||||
\******************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_enterDetail_vue_vue_type_template_id_3e617202_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./enterDetail.vue?vue&type=template&id=3e617202&scoped=true& */ 111);
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_enterDetail_vue_vue_type_template_id_3e617202_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_enterDetail_vue_vue_type_template_id_3e617202_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_enterDetail_vue_vue_type_template_id_3e617202_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_enterDetail_vue_vue_type_template_id_3e617202_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 111:
|
||||
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesA/enterDetail/enterDetail.vue?vue&type=template&id=3e617202&scoped=true& ***!
|
||||
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||||
var components
|
||||
try {
|
||||
components = {
|
||||
statusNav: function() {
|
||||
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 121))
|
||||
},
|
||||
tabbar: function() {
|
||||
return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 128))
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (
|
||||
e.message.indexOf("Cannot find module") !== -1 &&
|
||||
e.message.indexOf(".vue") !== -1
|
||||
) {
|
||||
console.error(e.message)
|
||||
console.error("1. 排查组件名称拼写是否正确")
|
||||
console.error(
|
||||
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
||||
)
|
||||
console.error(
|
||||
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
||||
)
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
if (!_vm._isMounted) {
|
||||
_vm.e0 = function($event) {
|
||||
_vm.ifReason = true
|
||||
}
|
||||
}
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 112:
|
||||
/*!************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/enterDetail/enterDetail.vue?vue&type=script&lang=js& ***!
|
||||
\************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_enterDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./enterDetail.vue?vue&type=script&lang=js& */ 113);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_enterDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_enterDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_enterDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_enterDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_enterDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 113:
|
||||
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesA/enterDetail/enterDetail.vue?vue&type=script&lang=js& ***!
|
||||
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 128));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
components: {
|
||||
tabbar: tabbar },
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType: 'director', //账户类型 工人:worker 负责人:director
|
||||
centerDetail: {}, //工人信息
|
||||
reasonMsg: '', //退回理由
|
||||
ifReason: false, //是否退回
|
||||
id: 0 //工人id
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad(op) {
|
||||
if (op.id) {
|
||||
this.id = op.id;
|
||||
}
|
||||
},
|
||||
onShow: function onShow() {
|
||||
// 获取工人信息
|
||||
this.getEnterDetail();
|
||||
},
|
||||
onShareAppMessage: function onShareAppMessage(res) {
|
||||
var shareObj = {
|
||||
title: '工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl: '/static/share-logo.jpg' };
|
||||
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 获取工人信息
|
||||
getEnterDetail: function getEnterDetail() {var _this = this;
|
||||
this.$requst.post('/api/v1/manager/check-detail', { id: this.id }).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
console.log(res, '工人信息');
|
||||
_this.centerDetail = res.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 确认&退回
|
||||
submitEv: function submitEv(type) {
|
||||
if (type == 0) {
|
||||
var params = {
|
||||
id: this.id,
|
||||
type: type,
|
||||
reason: this.reasonMsg };
|
||||
|
||||
// 提交
|
||||
this.submitApi(params, type);
|
||||
} else {
|
||||
var _params = {
|
||||
id: this.id,
|
||||
type: type };
|
||||
|
||||
// 提交
|
||||
this.submitApi(_params, type);
|
||||
}
|
||||
},
|
||||
|
||||
// 提交
|
||||
submitApi: function submitApi(params, type) {var _this2 = this;
|
||||
console.log(params, type, 123);
|
||||
this.$requst.post('/api/v1/manager/check-info', params).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
if (type == 0) {
|
||||
_this2.$toolAll.tools.showToast('已退回');
|
||||
} else {
|
||||
_this2.$toolAll.tools.showToast('已确认');
|
||||
}
|
||||
uni.reLaunch({
|
||||
url: '/pages/director/enter/enter' });
|
||||
|
||||
} else {
|
||||
_this2.$toolAll.tools.showToast(res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 关闭退回弹窗
|
||||
closeReason: function closeReason() {
|
||||
this.ifReason = false;
|
||||
this.reasonMsg = '';
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[108,"common/runtime","common/vendor"]]]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/enterDetail/enterDetail.js.map
|
||||
Component({})
|
|
@ -1,6 +1,6 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/information/information"],{
|
||||
|
||||
/***/ 72:
|
||||
/***/ 110:
|
||||
/*!******************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/main.js?{"page":"pagesA%2Finformation%2Finformation"} ***!
|
||||
\******************************************************************************************/
|
||||
|
@ -385,5 +385,5 @@ __webpack_require__.r(__webpack_exports__);
|
|||
|
||||
/***/ })
|
||||
|
||||
},[[72,"common/runtime","common/vendor"]]]);
|
||||
},[[110,"common/runtime","common/vendor"]]]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/information/information.js.map
|
|
@ -1,380 +1 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/overtimeEdit/overtimeEdit"],{
|
||||
|
||||
/***/ 100:
|
||||
/*!**************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/overtimeEdit/overtimeEdit.vue?vue&type=script&lang=js& ***!
|
||||
\**************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./overtimeEdit.vue?vue&type=script&lang=js& */ 101);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 101:
|
||||
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesA/overtimeEdit/overtimeEdit.vue?vue&type=script&lang=js& ***!
|
||||
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 128));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function getDate(type) {
|
||||
var date = new Date();
|
||||
var year = date.getFullYear();
|
||||
var month = date.getMonth() + 1;
|
||||
var day = date.getDate();
|
||||
if (type === 'start') {
|
||||
year = year - 10;
|
||||
} else if (type === 'end') {
|
||||
year = year + 10;
|
||||
}
|
||||
month = month > 9 ? month : '0' + month;
|
||||
day = day > 9 ? day : '0' + day;
|
||||
return "".concat(year, "-").concat(month, "-").concat(day);
|
||||
}var _default =
|
||||
{
|
||||
components: {
|
||||
tabbar: tabbar },
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType: 'worker', //账户类型 工人:worker 负责人:director
|
||||
worksiteList: [], //工地列表
|
||||
worksiteIndex: 0, //当前选择
|
||||
timeList: [], //加班时长列表
|
||||
timeIndex: 0, //当前选择
|
||||
remarks: '', //备注
|
||||
date: getDate({
|
||||
format: true }),
|
||||
|
||||
startDate: getDate('start'),
|
||||
endDate: getDate('end'),
|
||||
flag: true, //是否允许提交
|
||||
isLoding: false, //是否加载完成
|
||||
id: 0, //加班id
|
||||
overtimeDetail: {} //加班详情
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad(op) {
|
||||
if (op.id) {
|
||||
this.id = op.id;
|
||||
}
|
||||
// 获取工地列表
|
||||
this.getWorksiteList();
|
||||
// 获取加班时间
|
||||
this.getTimeList();
|
||||
},
|
||||
onShareAppMessage: function onShareAppMessage(res) {
|
||||
var shareObj = {
|
||||
title: '工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl: '/static/share-logo.jpg' };
|
||||
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 获取工地列表
|
||||
getOvertimeDetail: function getOvertimeDetail() {var _this = this;
|
||||
this.$requst.get('/api/v1/common/overtime-info', { id: this.id }).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
console.log(res, '加班详情');
|
||||
_this.remarks = res.data.remarks;
|
||||
_this.worksiteIndex = _this.worksiteList.findIndex(function (item) {return item.id === parseFloat(res.data.worksite_id);});
|
||||
_this.timeIndex = _this.timeList.findIndex(function (item) {return item === parseFloat(res.data.time);});
|
||||
_this.date = res.data.day_text;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 获取工地列表
|
||||
getWorksiteList: function getWorksiteList() {var _this2 = this;
|
||||
this.$requst.get('/api/v1/common/worksite-list').then(function (res) {
|
||||
if (res.code == 0) {
|
||||
_this2.worksiteList = res.data.list;
|
||||
_this2.isLoding = true;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 获取加班时间
|
||||
getTimeList: function getTimeList() {
|
||||
var timeArr = [];
|
||||
for (var i = 1; i <= 48; i++) {
|
||||
timeArr.push(i - 0.5, i);
|
||||
}
|
||||
this.timeList = timeArr;
|
||||
// 获取加班详情
|
||||
this.getOvertimeDetail();
|
||||
},
|
||||
|
||||
// 编辑
|
||||
editEv: function editEv() {var _this3 = this;
|
||||
if (this.flag) {
|
||||
this.flag = false;
|
||||
var params = {
|
||||
day: this.date,
|
||||
time: this.timeList[this.timeIndex],
|
||||
worksite_id: this.worksiteList[this.worksiteIndex].id,
|
||||
remarks: this.remarks,
|
||||
id: this.id };
|
||||
|
||||
this.$requst.post('/api/v1/worker/overtime-edit', params).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
_this3.$toolAll.tools.showToast('编辑成功');
|
||||
setTimeout(function () {
|
||||
uni.navigateBack({
|
||||
delta: 1 });
|
||||
|
||||
}, 1000);
|
||||
} else {
|
||||
_this3.$toolAll.tools.showToast(res.msg);
|
||||
}
|
||||
setTimeout(function () {
|
||||
_this3.flag = true;
|
||||
}, 2000);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// 删除
|
||||
delEv: function delEv() {var _this4 = this;
|
||||
this.$requst.post('/api/v1/worker/overtime-del', { id: this.id }).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
_this4.$toolAll.tools.showToast('删除成功');
|
||||
setTimeout(function () {
|
||||
uni.navigateBack({
|
||||
delta: 1 });
|
||||
|
||||
}, 1000);
|
||||
} else {
|
||||
_this4.$toolAll.tools.showToast(res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 选择工地
|
||||
bindWorksiteChange: function bindWorksiteChange(e) {
|
||||
this.worksiteIndex = e.detail.value;
|
||||
},
|
||||
|
||||
// 选择日期
|
||||
bindDateChange: function bindDateChange(e) {
|
||||
this.date = e.detail.value;
|
||||
},
|
||||
|
||||
// 选择加班时长
|
||||
bindTimeChange: function bindTimeChange(e) {
|
||||
this.timeIndex = e.detail.value;
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 96:
|
||||
/*!********************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/main.js?{"page":"pagesA%2FovertimeEdit%2FovertimeEdit"} ***!
|
||||
\********************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
|
||||
|
||||
|
||||
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
|
||||
var _overtimeEdit = _interopRequireDefault(__webpack_require__(/*! ./pagesA/overtimeEdit/overtimeEdit.vue */ 97));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
|
||||
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_overtimeEdit.default);
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 97:
|
||||
/*!*************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/overtimeEdit/overtimeEdit.vue ***!
|
||||
\*************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _overtimeEdit_vue_vue_type_template_id_74c4b20b_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./overtimeEdit.vue?vue&type=template&id=74c4b20b&scoped=true& */ 98);
|
||||
/* harmony import */ var _overtimeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./overtimeEdit.vue?vue&type=script&lang=js& */ 100);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _overtimeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _overtimeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
||||
|
||||
var renderjs
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_overtimeEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_overtimeEdit_vue_vue_type_template_id_74c4b20b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_overtimeEdit_vue_vue_type_template_id_74c4b20b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"74c4b20b",
|
||||
null,
|
||||
false,
|
||||
_overtimeEdit_vue_vue_type_template_id_74c4b20b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||
renderjs
|
||||
)
|
||||
|
||||
component.options.__file = "pagesA/overtimeEdit/overtimeEdit.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 98:
|
||||
/*!********************************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/overtimeEdit/overtimeEdit.vue?vue&type=template&id=74c4b20b&scoped=true& ***!
|
||||
\********************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeEdit_vue_vue_type_template_id_74c4b20b_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./overtimeEdit.vue?vue&type=template&id=74c4b20b&scoped=true& */ 99);
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeEdit_vue_vue_type_template_id_74c4b20b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeEdit_vue_vue_type_template_id_74c4b20b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeEdit_vue_vue_type_template_id_74c4b20b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeEdit_vue_vue_type_template_id_74c4b20b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 99:
|
||||
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesA/overtimeEdit/overtimeEdit.vue?vue&type=template&id=74c4b20b&scoped=true& ***!
|
||||
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||||
var components
|
||||
try {
|
||||
components = {
|
||||
statusNav: function() {
|
||||
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 121))
|
||||
},
|
||||
tabbar: function() {
|
||||
return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 128))
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (
|
||||
e.message.indexOf("Cannot find module") !== -1 &&
|
||||
e.message.indexOf(".vue") !== -1
|
||||
) {
|
||||
console.error(e.message)
|
||||
console.error("1. 排查组件名称拼写是否正确")
|
||||
console.error(
|
||||
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
||||
)
|
||||
console.error(
|
||||
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
||||
)
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
var g0 = _vm.isLoding ? _vm.date.split("-") : null
|
||||
var g1 = _vm.isLoding ? _vm.date.split("-") : null
|
||||
var g2 = _vm.isLoding ? _vm.date.split("-") : null
|
||||
_vm.$mp.data = Object.assign(
|
||||
{},
|
||||
{
|
||||
$root: {
|
||||
g0: g0,
|
||||
g1: g1,
|
||||
g2: g2
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[96,"common/runtime","common/vendor"]]]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/overtimeEdit/overtimeEdit.js.map
|
||||
Component({})
|
|
@ -1,362 +1 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/overtimeRecord/overtimeRecord"],{
|
||||
|
||||
/***/ 90:
|
||||
/*!************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/main.js?{"page":"pagesA%2FovertimeRecord%2FovertimeRecord"} ***!
|
||||
\************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
|
||||
|
||||
|
||||
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
|
||||
var _overtimeRecord = _interopRequireDefault(__webpack_require__(/*! ./pagesA/overtimeRecord/overtimeRecord.vue */ 91));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
|
||||
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_overtimeRecord.default);
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 91:
|
||||
/*!*****************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/overtimeRecord/overtimeRecord.vue ***!
|
||||
\*****************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _overtimeRecord_vue_vue_type_template_id_49bbbfaa_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./overtimeRecord.vue?vue&type=template&id=49bbbfaa&scoped=true& */ 92);
|
||||
/* harmony import */ var _overtimeRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./overtimeRecord.vue?vue&type=script&lang=js& */ 94);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _overtimeRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _overtimeRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
||||
|
||||
var renderjs
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_overtimeRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_overtimeRecord_vue_vue_type_template_id_49bbbfaa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_overtimeRecord_vue_vue_type_template_id_49bbbfaa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"49bbbfaa",
|
||||
null,
|
||||
false,
|
||||
_overtimeRecord_vue_vue_type_template_id_49bbbfaa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||
renderjs
|
||||
)
|
||||
|
||||
component.options.__file = "pagesA/overtimeRecord/overtimeRecord.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 92:
|
||||
/*!************************************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/overtimeRecord/overtimeRecord.vue?vue&type=template&id=49bbbfaa&scoped=true& ***!
|
||||
\************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeRecord_vue_vue_type_template_id_49bbbfaa_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./overtimeRecord.vue?vue&type=template&id=49bbbfaa&scoped=true& */ 93);
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeRecord_vue_vue_type_template_id_49bbbfaa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeRecord_vue_vue_type_template_id_49bbbfaa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeRecord_vue_vue_type_template_id_49bbbfaa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeRecord_vue_vue_type_template_id_49bbbfaa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 93:
|
||||
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesA/overtimeRecord/overtimeRecord.vue?vue&type=template&id=49bbbfaa&scoped=true& ***!
|
||||
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||||
var components
|
||||
try {
|
||||
components = {
|
||||
statusNav: function() {
|
||||
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 121))
|
||||
},
|
||||
tabbar: function() {
|
||||
return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 128))
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (
|
||||
e.message.indexOf("Cannot find module") !== -1 &&
|
||||
e.message.indexOf(".vue") !== -1
|
||||
) {
|
||||
console.error(e.message)
|
||||
console.error("1. 排查组件名称拼写是否正确")
|
||||
console.error(
|
||||
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
||||
)
|
||||
console.error(
|
||||
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
||||
)
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
var g0 = _vm.beginDate !== "" ? _vm.beginDate.split("-") : null
|
||||
var g1 = _vm.beginDate !== "" ? _vm.beginDate.split("-") : null
|
||||
var g2 = _vm.beginDate !== "" ? _vm.beginDate.split("-") : null
|
||||
var g3 = _vm.endDate !== "" ? _vm.endDate.split("-") : null
|
||||
var g4 = _vm.endDate !== "" ? _vm.endDate.split("-") : null
|
||||
var g5 = _vm.endDate !== "" ? _vm.endDate.split("-") : null
|
||||
_vm.$mp.data = Object.assign(
|
||||
{},
|
||||
{
|
||||
$root: {
|
||||
g0: g0,
|
||||
g1: g1,
|
||||
g2: g2,
|
||||
g3: g3,
|
||||
g4: g4,
|
||||
g5: g5
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 94:
|
||||
/*!******************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/overtimeRecord/overtimeRecord.vue?vue&type=script&lang=js& ***!
|
||||
\******************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./overtimeRecord.vue?vue&type=script&lang=js& */ 95);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_overtimeRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 95:
|
||||
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesA/overtimeRecord/overtimeRecord.vue?vue&type=script&lang=js& ***!
|
||||
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 128));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function getDate(type) {
|
||||
var date = new Date();
|
||||
var year = date.getFullYear();
|
||||
var month = date.getMonth() + 1;
|
||||
var day = date.getDate();
|
||||
if (type === 'start') {
|
||||
year = year - 10;
|
||||
}
|
||||
month = month > 9 ? month : '0' + month;
|
||||
day = day > 9 ? day : '0' + day;
|
||||
return "".concat(year, "-").concat(month, "-").concat(day);
|
||||
}var _default =
|
||||
{
|
||||
components: {
|
||||
tabbar: tabbar },
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType: 'worker', //账户类型 工人:worker 负责人:director
|
||||
overtimeList: [], //加班列表
|
||||
page: 1,
|
||||
size: 10,
|
||||
total: 0,
|
||||
worksiteList: [], //工地列表
|
||||
worksiteIndex: -1, //当前选择
|
||||
date: getDate({ format: true }),
|
||||
startDate: getDate('start'),
|
||||
beginDate: '', //开始日期
|
||||
endDate: '' //结束日期
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad() {
|
||||
// 获取工地列表
|
||||
this.getWorksiteList();
|
||||
},
|
||||
onShow: function onShow() {
|
||||
// 获取打卡列表
|
||||
this.getOvertimeList();
|
||||
},
|
||||
onReachBottom: function onReachBottom() {
|
||||
if (this.overtimeList.length < this.total) {
|
||||
this.page++;
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
}
|
||||
},
|
||||
onPullDownRefresh: function onPullDownRefresh() {
|
||||
this.page = 1;
|
||||
// 获取加班列表
|
||||
this.getOvertimeList();
|
||||
// 关闭下拉刷新
|
||||
uni.stopPullDownRefresh();
|
||||
},
|
||||
onShareAppMessage: function onShareAppMessage(res) {
|
||||
var shareObj = {
|
||||
title: '工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl: '/static/share-logo.jpg' };
|
||||
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 获取工地列表
|
||||
getWorksiteList: function getWorksiteList() {var _this = this;
|
||||
this.$requst.get('/api/v1/common/worksite-list').then(function (res) {
|
||||
if (res.code == 0) {
|
||||
_this.worksiteList = res.data.list;
|
||||
_this.isLoding = true;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 获取加班列表
|
||||
getOvertimeList: function getOvertimeList() {var _this2 = this;
|
||||
var params = {
|
||||
page: this.page,
|
||||
size: this.size,
|
||||
worksite_id: this.worksiteIndex == -1 ? '' : this.worksiteList[this.worksiteIndex].id,
|
||||
begin_at: this.beginDate,
|
||||
end_at: this.endDate };
|
||||
|
||||
if (this.page == 1) this.overtimeList = [];
|
||||
this.$requst.post('/api/v1/worker/overtime-list', params).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
console.log(res, '加班记录');
|
||||
_this2.total = res.data.total;
|
||||
_this2.overtimeList = _this2.overtimeList.concat(res.data.list);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 再次编辑
|
||||
editEv: function editEv(id) {
|
||||
uni.navigateTo({
|
||||
url: "/pagesA/overtimeEdit/overtimeEdit?id=".concat(id) });
|
||||
|
||||
},
|
||||
|
||||
// 选择工地
|
||||
bindWorksiteChange: function bindWorksiteChange(e) {
|
||||
this.worksiteIndex = e.detail.value;
|
||||
this.page = 1;
|
||||
// 获取加班列表
|
||||
this.getOvertimeList();
|
||||
},
|
||||
|
||||
// 选择开始日期
|
||||
beginDateChange: function beginDateChange(e) {
|
||||
this.beginDate = e.detail.value;
|
||||
this.page = 1;
|
||||
// 获取加班列表
|
||||
this.getOvertimeList();
|
||||
},
|
||||
|
||||
// 选择结束日期
|
||||
endDateChange: function endDateChange(e) {
|
||||
this.endDate = e.detail.value;
|
||||
this.page = 1;
|
||||
// 获取加班列表
|
||||
this.getOvertimeList();
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[90,"common/runtime","common/vendor"]]]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/overtimeRecord/overtimeRecord.js.map
|
||||
Component({})
|
|
@ -1,364 +1 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/signRecord/signRecord"],{
|
||||
|
||||
/***/ 78:
|
||||
/*!****************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/main.js?{"page":"pagesA%2FsignRecord%2FsignRecord"} ***!
|
||||
\****************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
|
||||
|
||||
|
||||
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
|
||||
var _signRecord = _interopRequireDefault(__webpack_require__(/*! ./pagesA/signRecord/signRecord.vue */ 79));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
|
||||
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_signRecord.default);
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 79:
|
||||
/*!*********************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/signRecord/signRecord.vue ***!
|
||||
\*********************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./signRecord.vue?vue&type=template&id=11e99daa&scoped=true& */ 80);
|
||||
/* harmony import */ var _signRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./signRecord.vue?vue&type=script&lang=js& */ 82);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _signRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _signRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
||||
|
||||
var renderjs
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_signRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"11e99daa",
|
||||
null,
|
||||
false,
|
||||
_signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||
renderjs
|
||||
)
|
||||
|
||||
component.options.__file = "pagesA/signRecord/signRecord.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 80:
|
||||
/*!****************************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/signRecord/signRecord.vue?vue&type=template&id=11e99daa&scoped=true& ***!
|
||||
\****************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./signRecord.vue?vue&type=template&id=11e99daa&scoped=true& */ 81);
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 81:
|
||||
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesA/signRecord/signRecord.vue?vue&type=template&id=11e99daa&scoped=true& ***!
|
||||
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||||
var components
|
||||
try {
|
||||
components = {
|
||||
statusNav: function() {
|
||||
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 121))
|
||||
},
|
||||
tabbar: function() {
|
||||
return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 128))
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (
|
||||
e.message.indexOf("Cannot find module") !== -1 &&
|
||||
e.message.indexOf(".vue") !== -1
|
||||
) {
|
||||
console.error(e.message)
|
||||
console.error("1. 排查组件名称拼写是否正确")
|
||||
console.error(
|
||||
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
||||
)
|
||||
console.error(
|
||||
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
||||
)
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
var g0 = _vm.beginDate !== "" ? _vm.beginDate.split("-") : null
|
||||
var g1 = _vm.beginDate !== "" ? _vm.beginDate.split("-") : null
|
||||
var g2 = _vm.beginDate !== "" ? _vm.beginDate.split("-") : null
|
||||
var g3 = _vm.endDate !== "" ? _vm.endDate.split("-") : null
|
||||
var g4 = _vm.endDate !== "" ? _vm.endDate.split("-") : null
|
||||
var g5 = _vm.endDate !== "" ? _vm.endDate.split("-") : null
|
||||
|
||||
var l0 = _vm.__map(_vm.signList, function(item, index) {
|
||||
var $orig = _vm.__get_orig(item)
|
||||
|
||||
var g6 = item.created_at.substr(item.created_at.length - 8)
|
||||
return {
|
||||
$orig: $orig,
|
||||
g6: g6
|
||||
}
|
||||
})
|
||||
|
||||
_vm.$mp.data = Object.assign(
|
||||
{},
|
||||
{
|
||||
$root: {
|
||||
g0: g0,
|
||||
g1: g1,
|
||||
g2: g2,
|
||||
g3: g3,
|
||||
g4: g4,
|
||||
g5: g5,
|
||||
l0: l0
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 82:
|
||||
/*!**********************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/signRecord/signRecord.vue?vue&type=script&lang=js& ***!
|
||||
\**********************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_signRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./signRecord.vue?vue&type=script&lang=js& */ 83);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_signRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_signRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_signRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_signRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_signRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 83:
|
||||
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesA/signRecord/signRecord.vue?vue&type=script&lang=js& ***!
|
||||
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 128));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function getDate(type) {
|
||||
var date = new Date();
|
||||
var year = date.getFullYear();
|
||||
var month = date.getMonth() + 1;
|
||||
var day = date.getDate();
|
||||
if (type === 'start') {
|
||||
year = year - 10;
|
||||
}
|
||||
month = month > 9 ? month : '0' + month;
|
||||
day = day > 9 ? day : '0' + day;
|
||||
return "".concat(year, "-").concat(month, "-").concat(day);
|
||||
}var _default =
|
||||
{
|
||||
components: {
|
||||
tabbar: tabbar },
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType: 'worker', //账户类型 工人:worker 负责人:director
|
||||
signList: [], //打卡列表
|
||||
page: 1,
|
||||
size: 10,
|
||||
total: 0,
|
||||
worksiteList: [], //工地列表
|
||||
worksiteIndex: -1, //当前选择
|
||||
date: getDate({ format: true }),
|
||||
startDate: getDate('start'),
|
||||
beginDate: '', //开始日期
|
||||
endDate: '' //结束日期
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad() {
|
||||
// 获取工地列表
|
||||
this.getWorksiteList();
|
||||
},
|
||||
onShow: function onShow() {
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
},
|
||||
onReachBottom: function onReachBottom() {
|
||||
if (this.signList.length < this.total) {
|
||||
this.page++;
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
}
|
||||
},
|
||||
onPullDownRefresh: function onPullDownRefresh() {
|
||||
this.page = 1;
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
// 关闭下拉刷新
|
||||
uni.stopPullDownRefresh();
|
||||
},
|
||||
onShareAppMessage: function onShareAppMessage(res) {
|
||||
var shareObj = {
|
||||
title: '工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl: '/static/share-logo.jpg' };
|
||||
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 获取工地列表
|
||||
getWorksiteList: function getWorksiteList() {var _this = this;
|
||||
this.$requst.get('/api/v1/common/worksite-list').then(function (res) {
|
||||
if (res.code == 0) {
|
||||
_this.worksiteList = res.data.list;
|
||||
_this.isLoding = true;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 获取打卡列表
|
||||
getSignList: function getSignList() {var _this2 = this;
|
||||
var params = {
|
||||
page: this.page,
|
||||
size: this.size,
|
||||
worksite_id: this.worksiteIndex == -1 ? '' : this.worksiteList[this.worksiteIndex].id,
|
||||
begin_at: this.beginDate,
|
||||
end_at: this.endDate };
|
||||
|
||||
if (this.page == 1) this.signList = [];
|
||||
this.$requst.post('/api/v1/worker/clock-list', params).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
console.log(res, '打卡记录');
|
||||
_this2.total = res.data.total;
|
||||
_this2.signList = _this2.signList.concat(res.data.list);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 选择工地
|
||||
bindWorksiteChange: function bindWorksiteChange(e) {
|
||||
this.worksiteIndex = e.detail.value;
|
||||
this.page = 1;
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
},
|
||||
|
||||
// 选择开始日期
|
||||
beginDateChange: function beginDateChange(e) {
|
||||
this.beginDate = e.detail.value;
|
||||
this.page = 1;
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
},
|
||||
|
||||
// 选择结束日期
|
||||
endDateChange: function endDateChange(e) {
|
||||
this.endDate = e.detail.value;
|
||||
this.page = 1;
|
||||
// 获取打卡列表
|
||||
this.getSignList();
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[78,"common/runtime","common/vendor"]]]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/signRecord/signRecord.js.map
|
||||
Component({})
|
|
@ -1,227 +1 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/singlePage/singlePage"],{
|
||||
|
||||
/***/ 102:
|
||||
/*!****************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/main.js?{"page":"pagesA%2FsinglePage%2FsinglePage"} ***!
|
||||
\****************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
|
||||
|
||||
|
||||
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
|
||||
var _singlePage = _interopRequireDefault(__webpack_require__(/*! ./pagesA/singlePage/singlePage.vue */ 103));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
|
||||
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_singlePage.default);
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 103:
|
||||
/*!*********************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/singlePage/singlePage.vue ***!
|
||||
\*********************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _singlePage_vue_vue_type_template_id_44f8418b_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./singlePage.vue?vue&type=template&id=44f8418b&scoped=true& */ 104);
|
||||
/* harmony import */ var _singlePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./singlePage.vue?vue&type=script&lang=js& */ 106);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _singlePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _singlePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
||||
|
||||
var renderjs
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_singlePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_singlePage_vue_vue_type_template_id_44f8418b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_singlePage_vue_vue_type_template_id_44f8418b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"44f8418b",
|
||||
null,
|
||||
false,
|
||||
_singlePage_vue_vue_type_template_id_44f8418b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||
renderjs
|
||||
)
|
||||
|
||||
component.options.__file = "pagesA/singlePage/singlePage.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 104:
|
||||
/*!****************************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/singlePage/singlePage.vue?vue&type=template&id=44f8418b&scoped=true& ***!
|
||||
\****************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_singlePage_vue_vue_type_template_id_44f8418b_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./singlePage.vue?vue&type=template&id=44f8418b&scoped=true& */ 105);
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_singlePage_vue_vue_type_template_id_44f8418b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_singlePage_vue_vue_type_template_id_44f8418b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_singlePage_vue_vue_type_template_id_44f8418b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_singlePage_vue_vue_type_template_id_44f8418b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 105:
|
||||
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesA/singlePage/singlePage.vue?vue&type=template&id=44f8418b&scoped=true& ***!
|
||||
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||||
var components
|
||||
try {
|
||||
components = {
|
||||
statusNav: function() {
|
||||
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 121))
|
||||
},
|
||||
tabbar: function() {
|
||||
return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 128))
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (
|
||||
e.message.indexOf("Cannot find module") !== -1 &&
|
||||
e.message.indexOf(".vue") !== -1
|
||||
) {
|
||||
console.error(e.message)
|
||||
console.error("1. 排查组件名称拼写是否正确")
|
||||
console.error(
|
||||
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
||||
)
|
||||
console.error(
|
||||
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
||||
)
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 106:
|
||||
/*!**********************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/singlePage/singlePage.vue?vue&type=script&lang=js& ***!
|
||||
\**********************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_singlePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./singlePage.vue?vue&type=script&lang=js& */ 107);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_singlePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_singlePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_singlePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_singlePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_singlePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 107:
|
||||
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesA/singlePage/singlePage.vue?vue&type=script&lang=js& ***!
|
||||
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 128));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
components: {
|
||||
tabbar: tabbar },
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType: 'worker', //账户类型 工人:worker 负责人:director
|
||||
pageTitle: '', //页面标题
|
||||
content: '' //内容
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad(op) {
|
||||
if (op.type == 'manual') {
|
||||
this.pageTitle = '员工手册';
|
||||
// 获取内容
|
||||
this.getSinglePageEv('/api/v1/index/handbook');
|
||||
}
|
||||
if (op.type == 'security') {
|
||||
this.pageTitle = '安全告知';
|
||||
// 获取内容
|
||||
this.getSinglePageEv('/api/v1/index/safe-notice');
|
||||
}
|
||||
if (op.type == 'notice') {
|
||||
this.pageTitle = '公告';
|
||||
// 获取内容
|
||||
this.getSinglePageEv('/api/v1/index/notice');
|
||||
}
|
||||
},
|
||||
onShareAppMessage: function onShareAppMessage(res) {
|
||||
var shareObj = {
|
||||
title: '工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl: '/static/share-logo.jpg' };
|
||||
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 获取内容
|
||||
getSinglePageEv: function getSinglePageEv(url) {var _this = this;
|
||||
this.$requst.get(url).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
console.log(res, '单页内容');
|
||||
_this.content = res.data.content;
|
||||
}
|
||||
});
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[102,"common/runtime","common/vendor"]]]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/singlePage/singlePage.js.map
|
||||
Component({})
|
|
@ -1,249 +1 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/wagesRecord/wagesRecord"],{
|
||||
|
||||
/***/ 84:
|
||||
/*!******************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/main.js?{"page":"pagesA%2FwagesRecord%2FwagesRecord"} ***!
|
||||
\******************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
|
||||
|
||||
|
||||
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
|
||||
var _wagesRecord = _interopRequireDefault(__webpack_require__(/*! ./pagesA/wagesRecord/wagesRecord.vue */ 85));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
|
||||
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_wagesRecord.default);
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 85:
|
||||
/*!***********************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/wagesRecord/wagesRecord.vue ***!
|
||||
\***********************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _wagesRecord_vue_vue_type_template_id_8835a436_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./wagesRecord.vue?vue&type=template&id=8835a436&scoped=true& */ 86);
|
||||
/* harmony import */ var _wagesRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./wagesRecord.vue?vue&type=script&lang=js& */ 88);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _wagesRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _wagesRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
||||
|
||||
var renderjs
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_wagesRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_wagesRecord_vue_vue_type_template_id_8835a436_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_wagesRecord_vue_vue_type_template_id_8835a436_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"8835a436",
|
||||
null,
|
||||
false,
|
||||
_wagesRecord_vue_vue_type_template_id_8835a436_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||
renderjs
|
||||
)
|
||||
|
||||
component.options.__file = "pagesA/wagesRecord/wagesRecord.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 86:
|
||||
/*!******************************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/wagesRecord/wagesRecord.vue?vue&type=template&id=8835a436&scoped=true& ***!
|
||||
\******************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_wagesRecord_vue_vue_type_template_id_8835a436_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./wagesRecord.vue?vue&type=template&id=8835a436&scoped=true& */ 87);
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_wagesRecord_vue_vue_type_template_id_8835a436_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_wagesRecord_vue_vue_type_template_id_8835a436_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_wagesRecord_vue_vue_type_template_id_8835a436_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_wagesRecord_vue_vue_type_template_id_8835a436_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 87:
|
||||
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesA/wagesRecord/wagesRecord.vue?vue&type=template&id=8835a436&scoped=true& ***!
|
||||
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||||
var components
|
||||
try {
|
||||
components = {
|
||||
statusNav: function() {
|
||||
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 121))
|
||||
},
|
||||
tabbar: function() {
|
||||
return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 128))
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (
|
||||
e.message.indexOf("Cannot find module") !== -1 &&
|
||||
e.message.indexOf(".vue") !== -1
|
||||
) {
|
||||
console.error(e.message)
|
||||
console.error("1. 排查组件名称拼写是否正确")
|
||||
console.error(
|
||||
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
||||
)
|
||||
console.error(
|
||||
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
||||
)
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 88:
|
||||
/*!************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesA/wagesRecord/wagesRecord.vue?vue&type=script&lang=js& ***!
|
||||
\************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_wagesRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./wagesRecord.vue?vue&type=script&lang=js& */ 89);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_wagesRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_wagesRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_wagesRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_wagesRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_wagesRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 89:
|
||||
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesA/wagesRecord/wagesRecord.vue?vue&type=script&lang=js& ***!
|
||||
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 128));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
components: {
|
||||
tabbar: tabbar },
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType: 'worker', //账户类型 工人:worker 负责人:director
|
||||
wagesList: [], //加班列表
|
||||
page: 1,
|
||||
size: 10,
|
||||
total: 0 };
|
||||
|
||||
},
|
||||
onLoad: function onLoad() {
|
||||
// 获取工资列表
|
||||
this.getWagesList();
|
||||
},
|
||||
onReachBottom: function onReachBottom() {
|
||||
if (this.wagesList.length < this.total) {
|
||||
this.page++;
|
||||
// 获取工资列表
|
||||
this.getWagesList();
|
||||
}
|
||||
},
|
||||
onPullDownRefresh: function onPullDownRefresh() {
|
||||
this.page = 1;
|
||||
// 获取工资列表
|
||||
this.getWagesList();
|
||||
// 关闭下拉刷新
|
||||
uni.stopPullDownRefresh();
|
||||
},
|
||||
onShareAppMessage: function onShareAppMessage(res) {
|
||||
var shareObj = {
|
||||
title: '工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl: '/static/share-logo.jpg' };
|
||||
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 获取工资列表
|
||||
getWagesList: function getWagesList() {var _this = this;
|
||||
var params = {
|
||||
page: this.page,
|
||||
size: this.size };
|
||||
|
||||
if (this.page == 1) this.wagesList = [];
|
||||
this.$requst.post('/api/v1/worker/pay-list', params).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
console.log(res, '工资记录');
|
||||
_this.total = res.data.total;
|
||||
_this.wagesList = _this.wagesList.concat(res.data.list);
|
||||
}
|
||||
});
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[84,"common/runtime","common/vendor"]]]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/wagesRecord/wagesRecord.js.map
|
||||
Component({})
|
|
@ -0,0 +1 @@
|
|||
Component({})
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"navigationBarTitleText": "录入详情",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"status-nav": "/components/status-nav/status-nav",
|
||||
"tabbar": "/components/tabbar/tabbar"
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
/* pagesB/enterDetail/enterDetail.wxss */
|
|
@ -0,0 +1,384 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesB/notick/notick"],{
|
||||
|
||||
/***/ 165:
|
||||
/*!********************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/main.js?{"page":"pagesB%2Fnotick%2Fnotick"} ***!
|
||||
\********************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
|
||||
|
||||
|
||||
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
|
||||
var _notick = _interopRequireDefault(__webpack_require__(/*! ./pagesB/notick/notick.vue */ 166));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
|
||||
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_notick.default);
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 166:
|
||||
/*!*************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesB/notick/notick.vue ***!
|
||||
\*************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _notick_vue_vue_type_template_id_49e4bd28_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./notick.vue?vue&type=template&id=49e4bd28&scoped=true& */ 167);
|
||||
/* harmony import */ var _notick_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./notick.vue?vue&type=script&lang=js& */ 169);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _notick_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _notick_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
||||
|
||||
var renderjs
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_notick_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_notick_vue_vue_type_template_id_49e4bd28_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_notick_vue_vue_type_template_id_49e4bd28_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"49e4bd28",
|
||||
null,
|
||||
false,
|
||||
_notick_vue_vue_type_template_id_49e4bd28_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||
renderjs
|
||||
)
|
||||
|
||||
component.options.__file = "pagesB/notick/notick.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 167:
|
||||
/*!********************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesB/notick/notick.vue?vue&type=template&id=49e4bd28&scoped=true& ***!
|
||||
\********************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_notick_vue_vue_type_template_id_49e4bd28_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./notick.vue?vue&type=template&id=49e4bd28&scoped=true& */ 168);
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_notick_vue_vue_type_template_id_49e4bd28_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_notick_vue_vue_type_template_id_49e4bd28_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_notick_vue_vue_type_template_id_49e4bd28_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_notick_vue_vue_type_template_id_49e4bd28_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 168:
|
||||
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesB/notick/notick.vue?vue&type=template&id=49e4bd28&scoped=true& ***!
|
||||
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||||
var components
|
||||
try {
|
||||
components = {
|
||||
statusNav: function() {
|
||||
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 121))
|
||||
},
|
||||
tabbar: function() {
|
||||
return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 128))
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (
|
||||
e.message.indexOf("Cannot find module") !== -1 &&
|
||||
e.message.indexOf(".vue") !== -1
|
||||
) {
|
||||
console.error(e.message)
|
||||
console.error("1. 排查组件名称拼写是否正确")
|
||||
console.error(
|
||||
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
||||
)
|
||||
console.error(
|
||||
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
||||
)
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
if (!_vm._isMounted) {
|
||||
_vm.e0 = function($event) {
|
||||
_vm.ifReason = true
|
||||
}
|
||||
}
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 169:
|
||||
/*!**************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesB/notick/notick.vue?vue&type=script&lang=js& ***!
|
||||
\**************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_notick_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./notick.vue?vue&type=script&lang=js& */ 170);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_notick_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_notick_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_notick_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_notick_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_notick_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 170:
|
||||
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesB/notick/notick.vue?vue&type=script&lang=js& ***!
|
||||
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 128));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
components: {
|
||||
tabbar: tabbar },
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType: 'director', //账户类型 工人:worker 负责人:director
|
||||
centerDetail: {}, //工人信息
|
||||
reasonMsg: '', //退回理由
|
||||
ifReason: false, //是否退回
|
||||
id: 0 //工人id
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad(op) {
|
||||
if (op.id) {
|
||||
this.id = op.id;
|
||||
}
|
||||
},
|
||||
onShow: function onShow() {
|
||||
// 获取工人信息
|
||||
this.getEnterDetail();
|
||||
},
|
||||
onShareAppMessage: function onShareAppMessage(res) {
|
||||
var shareObj = {
|
||||
title: '工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl: '/static/share-logo.jpg' };
|
||||
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 获取工人信息
|
||||
getEnterDetail: function getEnterDetail() {var _this = this;
|
||||
this.$requst.post('/api/v1/manager/check-detail', { id: this.id }).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
console.log(res, '工人信息');
|
||||
_this.centerDetail = res.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 确认&退回
|
||||
submitEv: function submitEv(type) {
|
||||
if (type == 0) {
|
||||
var params = {
|
||||
id: this.id,
|
||||
type: type,
|
||||
reason: this.reasonMsg };
|
||||
|
||||
// 提交
|
||||
this.submitApi(params, type);
|
||||
} else {
|
||||
var _params = {
|
||||
id: this.id,
|
||||
type: type };
|
||||
|
||||
// 提交
|
||||
this.submitApi(_params, type);
|
||||
}
|
||||
},
|
||||
|
||||
// 提交
|
||||
submitApi: function submitApi(params, type) {var _this2 = this;
|
||||
console.log(params, type, 123);
|
||||
this.$requst.post('/api/v1/manager/check-info', params).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
if (type == 0) {
|
||||
_this2.$toolAll.tools.showToast('已退回');
|
||||
} else {
|
||||
_this2.$toolAll.tools.showToast('已确认');
|
||||
}
|
||||
uni.reLaunch({
|
||||
url: '/pages/director/enter/enter' });
|
||||
|
||||
} else {
|
||||
_this2.$toolAll.tools.showToast(res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 关闭退回弹窗
|
||||
closeReason: function closeReason() {
|
||||
this.ifReason = false;
|
||||
this.reasonMsg = '';
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[165,"common/runtime","common/vendor"]]]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesB/notick/notick.js.map
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"navigationBarTitleText": "公告管理",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"status-nav": "/components/status-nav/status-nav",
|
||||
"tabbar": "/components/tabbar/tabbar"
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
/* pagesB/notick/notick.wxss */
|
|
@ -0,0 +1 @@
|
|||
Component({})
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"navigationBarTitleText": "公告管理",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
|
@ -0,0 +1,384 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesB/repair/repair"],{
|
||||
|
||||
/***/ 159:
|
||||
/*!********************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/main.js?{"page":"pagesB%2Frepair%2Frepair"} ***!
|
||||
\********************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
|
||||
|
||||
|
||||
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
|
||||
var _repair = _interopRequireDefault(__webpack_require__(/*! ./pagesB/repair/repair.vue */ 160));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
|
||||
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_repair.default);
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 160:
|
||||
/*!*************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesB/repair/repair.vue ***!
|
||||
\*************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _repair_vue_vue_type_template_id_6ef6be8c_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./repair.vue?vue&type=template&id=6ef6be8c&scoped=true& */ 161);
|
||||
/* harmony import */ var _repair_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./repair.vue?vue&type=script&lang=js& */ 163);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _repair_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _repair_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
||||
|
||||
var renderjs
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_repair_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_repair_vue_vue_type_template_id_6ef6be8c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_repair_vue_vue_type_template_id_6ef6be8c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"6ef6be8c",
|
||||
null,
|
||||
false,
|
||||
_repair_vue_vue_type_template_id_6ef6be8c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||
renderjs
|
||||
)
|
||||
|
||||
component.options.__file = "pagesB/repair/repair.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 161:
|
||||
/*!********************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesB/repair/repair.vue?vue&type=template&id=6ef6be8c&scoped=true& ***!
|
||||
\********************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_repair_vue_vue_type_template_id_6ef6be8c_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./repair.vue?vue&type=template&id=6ef6be8c&scoped=true& */ 162);
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_repair_vue_vue_type_template_id_6ef6be8c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_repair_vue_vue_type_template_id_6ef6be8c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_repair_vue_vue_type_template_id_6ef6be8c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_repair_vue_vue_type_template_id_6ef6be8c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 162:
|
||||
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesB/repair/repair.vue?vue&type=template&id=6ef6be8c&scoped=true& ***!
|
||||
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||||
var components
|
||||
try {
|
||||
components = {
|
||||
statusNav: function() {
|
||||
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 121))
|
||||
},
|
||||
tabbar: function() {
|
||||
return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 128))
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (
|
||||
e.message.indexOf("Cannot find module") !== -1 &&
|
||||
e.message.indexOf(".vue") !== -1
|
||||
) {
|
||||
console.error(e.message)
|
||||
console.error("1. 排查组件名称拼写是否正确")
|
||||
console.error(
|
||||
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
||||
)
|
||||
console.error(
|
||||
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
||||
)
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
if (!_vm._isMounted) {
|
||||
_vm.e0 = function($event) {
|
||||
_vm.ifReason = true
|
||||
}
|
||||
}
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 163:
|
||||
/*!**************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesB/repair/repair.vue?vue&type=script&lang=js& ***!
|
||||
\**************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_repair_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./repair.vue?vue&type=script&lang=js& */ 164);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_repair_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_repair_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_repair_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_repair_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_repair_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 164:
|
||||
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesB/repair/repair.vue?vue&type=script&lang=js& ***!
|
||||
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 128));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
components: {
|
||||
tabbar: tabbar },
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType: 'director', //账户类型 工人:worker 负责人:director
|
||||
centerDetail: {}, //工人信息
|
||||
reasonMsg: '', //退回理由
|
||||
ifReason: false, //是否退回
|
||||
id: 0 //工人id
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad(op) {
|
||||
if (op.id) {
|
||||
this.id = op.id;
|
||||
}
|
||||
},
|
||||
onShow: function onShow() {
|
||||
// 获取工人信息
|
||||
this.getEnterDetail();
|
||||
},
|
||||
onShareAppMessage: function onShareAppMessage(res) {
|
||||
var shareObj = {
|
||||
title: '工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl: '/static/share-logo.jpg' };
|
||||
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 获取工人信息
|
||||
getEnterDetail: function getEnterDetail() {var _this = this;
|
||||
this.$requst.post('/api/v1/manager/check-detail', { id: this.id }).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
console.log(res, '工人信息');
|
||||
_this.centerDetail = res.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 确认&退回
|
||||
submitEv: function submitEv(type) {
|
||||
if (type == 0) {
|
||||
var params = {
|
||||
id: this.id,
|
||||
type: type,
|
||||
reason: this.reasonMsg };
|
||||
|
||||
// 提交
|
||||
this.submitApi(params, type);
|
||||
} else {
|
||||
var _params = {
|
||||
id: this.id,
|
||||
type: type };
|
||||
|
||||
// 提交
|
||||
this.submitApi(_params, type);
|
||||
}
|
||||
},
|
||||
|
||||
// 提交
|
||||
submitApi: function submitApi(params, type) {var _this2 = this;
|
||||
console.log(params, type, 123);
|
||||
this.$requst.post('/api/v1/manager/check-info', params).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
if (type == 0) {
|
||||
_this2.$toolAll.tools.showToast('已退回');
|
||||
} else {
|
||||
_this2.$toolAll.tools.showToast('已确认');
|
||||
}
|
||||
uni.reLaunch({
|
||||
url: '/pages/director/enter/enter' });
|
||||
|
||||
} else {
|
||||
_this2.$toolAll.tools.showToast(res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 关闭退回弹窗
|
||||
closeReason: function closeReason() {
|
||||
this.ifReason = false;
|
||||
this.reasonMsg = '';
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[159,"common/runtime","common/vendor"]]]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesB/repair/repair.js.map
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"navigationBarTitleText": "补卡确认",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {
|
||||
"status-nav": "/components/status-nav/status-nav",
|
||||
"tabbar": "/components/tabbar/tabbar"
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
/* pagesB/repair/repair.wxss */
|
|
@ -0,0 +1,384 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesB/worker/worker"],{
|
||||
|
||||
/***/ 153:
|
||||
/*!********************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/main.js?{"page":"pagesB%2Fworker%2Fworker"} ***!
|
||||
\********************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
|
||||
|
||||
|
||||
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
|
||||
var _worker = _interopRequireDefault(__webpack_require__(/*! ./pagesB/worker/worker.vue */ 154));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
|
||||
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_worker.default);
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 154:
|
||||
/*!*************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesB/worker/worker.vue ***!
|
||||
\*************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _worker_vue_vue_type_template_id_08582d6c_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./worker.vue?vue&type=template&id=08582d6c&scoped=true& */ 155);
|
||||
/* harmony import */ var _worker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./worker.vue?vue&type=script&lang=js& */ 157);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _worker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _worker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
||||
|
||||
var renderjs
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_worker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_worker_vue_vue_type_template_id_08582d6c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_worker_vue_vue_type_template_id_08582d6c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"08582d6c",
|
||||
null,
|
||||
false,
|
||||
_worker_vue_vue_type_template_id_08582d6c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||
renderjs
|
||||
)
|
||||
|
||||
component.options.__file = "pagesB/worker/worker.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 155:
|
||||
/*!********************************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesB/worker/worker.vue?vue&type=template&id=08582d6c&scoped=true& ***!
|
||||
\********************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_worker_vue_vue_type_template_id_08582d6c_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./worker.vue?vue&type=template&id=08582d6c&scoped=true& */ 156);
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_worker_vue_vue_type_template_id_08582d6c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_worker_vue_vue_type_template_id_08582d6c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_worker_vue_vue_type_template_id_08582d6c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_worker_vue_vue_type_template_id_08582d6c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 156:
|
||||
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesB/worker/worker.vue?vue&type=template&id=08582d6c&scoped=true& ***!
|
||||
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||||
var components
|
||||
try {
|
||||
components = {
|
||||
statusNav: function() {
|
||||
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 121))
|
||||
},
|
||||
tabbar: function() {
|
||||
return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 128))
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (
|
||||
e.message.indexOf("Cannot find module") !== -1 &&
|
||||
e.message.indexOf(".vue") !== -1
|
||||
) {
|
||||
console.error(e.message)
|
||||
console.error("1. 排查组件名称拼写是否正确")
|
||||
console.error(
|
||||
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
||||
)
|
||||
console.error(
|
||||
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
||||
)
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
if (!_vm._isMounted) {
|
||||
_vm.e0 = function($event) {
|
||||
_vm.ifReason = true
|
||||
}
|
||||
}
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 157:
|
||||
/*!**************************************************************************************!*\
|
||||
!*** D:/Lee/工地打卡小程序/building-sign/pagesB/worker/worker.vue?vue&type=script&lang=js& ***!
|
||||
\**************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_worker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./worker.vue?vue&type=script&lang=js& */ 158);
|
||||
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_worker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_worker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_worker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_worker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_worker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 158:
|
||||
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pagesB/worker/worker.vue?vue&type=script&lang=js& ***!
|
||||
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 128));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
components: {
|
||||
tabbar: tabbar },
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType: 'director', //账户类型 工人:worker 负责人:director
|
||||
centerDetail: {}, //工人信息
|
||||
reasonMsg: '', //退回理由
|
||||
ifReason: false, //是否退回
|
||||
id: 0 //工人id
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad(op) {
|
||||
if (op.id) {
|
||||
this.id = op.id;
|
||||
}
|
||||
},
|
||||
onShow: function onShow() {
|
||||
// 获取工人信息
|
||||
this.getEnterDetail();
|
||||
},
|
||||
onShareAppMessage: function onShareAppMessage(res) {
|
||||
var shareObj = {
|
||||
title: '工地打卡',
|
||||
path: '/pages/pagehome/pagehome',
|
||||
imageUrl: '/static/share-logo.jpg' };
|
||||
|
||||
// 返回shareObj
|
||||
return shareObj;
|
||||
},
|
||||
methods: {
|
||||
// 获取工人信息
|
||||
getEnterDetail: function getEnterDetail() {var _this = this;
|
||||
this.$requst.post('/api/v1/manager/check-detail', { id: this.id }).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
console.log(res, '工人信息');
|
||||
_this.centerDetail = res.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 确认&退回
|
||||
submitEv: function submitEv(type) {
|
||||
if (type == 0) {
|
||||
var params = {
|
||||
id: this.id,
|
||||
type: type,
|
||||
reason: this.reasonMsg };
|
||||
|
||||
// 提交
|
||||
this.submitApi(params, type);
|
||||
} else {
|
||||
var _params = {
|
||||
id: this.id,
|
||||
type: type };
|
||||
|
||||
// 提交
|
||||
this.submitApi(_params, type);
|
||||
}
|
||||
},
|
||||
|
||||
// 提交
|
||||
submitApi: function submitApi(params, type) {var _this2 = this;
|
||||
console.log(params, type, 123);
|
||||
this.$requst.post('/api/v1/manager/check-info', params).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
if (type == 0) {
|
||||
_this2.$toolAll.tools.showToast('已退回');
|
||||
} else {
|
||||
_this2.$toolAll.tools.showToast('已确认');
|
||||
}
|
||||
uni.reLaunch({
|
||||
url: '/pages/director/enter/enter' });
|
||||
|
||||
} else {
|
||||
_this2.$toolAll.tools.showToast(res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 关闭退回弹窗
|
||||
closeReason: function closeReason() {
|
||||
this.ifReason = false;
|
||||
this.reasonMsg = '';
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[153,"common/runtime","common/vendor"]]]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesB/worker/worker.js.map
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"navigationBarTitleText": "工人列表",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {
|
||||
"status-nav": "/components/status-nav/status-nav",
|
||||
"tabbar": "/components/tabbar/tabbar"
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
/* pagesB/worker/worker.wxss */
|
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in New Issue