Commit d0aaaf8c by 杨明

Merge branch 'SAAS+V4.52.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.52.0

2 parents 07aed763 29267361
...@@ -89,9 +89,12 @@ module.exports = { ...@@ -89,9 +89,12 @@ module.exports = {
}) })
}, },
/**
* 客户邀约记录-邀约类型数目统计
*/
getInviteRecordCount(data) { getInviteRecordCount(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.inviteRecord.count.new", method: "dj.api.smartcarlife.customerInviteRecord.inviteStatus.count",
projectName: "boutique", projectName: "boutique",
...data ...data
}) })
......

2.34 MB | W: | H:

2.34 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -102,12 +102,19 @@ export default { ...@@ -102,12 +102,19 @@ export default {
// 创建一个初始数组,根据当月第一天是星期几插入相应数量的 null // 创建一个初始数组,根据当月第一天是星期几插入相应数量的 null
const daysArray = []; const daysArray = [];
for (let i = 0; i < (firstDayWeekday === 0 ? 6 : firstDayWeekday - 1); i++) { for (let i = 0; i < (firstDayWeekday === 0 ? 6 : firstDayWeekday - 1); i++) {
daysArray.push(null); daysArray.push(null);
} }
// 填充当月的日期
for (let day = 1; day <= totalDays; day++) { for (let day = 1; day <= totalDays; day++) {
daysArray.push(day); daysArray.push(day);
}
// 用null补足最后一行
const lastDayWeekday = lastDayOfMonth.getDay();
const remainingDays = lastDayWeekday === 0 ? 0 : 7 - lastDayWeekday;
for (let i = 0; i < remainingDays; i++) {
daysArray.push(null);
} }
return daysArray; return daysArray;
}, },
getMaxLen() { getMaxLen() {
...@@ -285,6 +292,18 @@ export default { ...@@ -285,6 +292,18 @@ export default {
&:nth-child(-n + 7) { &:nth-child(-n + 7) {
border-top: toRpx(2) solid #DEEAFC; border-top: toRpx(2) solid #DEEAFC;
} }
&:first-child {
border-radius: toRpx(24) 0 0 0;
}
&:nth-child(7) {
border-radius: 0 toRpx(24) 0 0;
}
&:nth-last-child(7) {
border-radius: 0 0 0 toRpx(24);
}
&:last-child {
border-radius: 0 0 toRpx(24) 0;
}
.tag { .tag {
position: absolute; position: absolute;
...@@ -385,7 +404,10 @@ export default { ...@@ -385,7 +404,10 @@ export default {
min-height: calc((100vh - #{toRpx(550)}) / 6); min-height: calc((100vh - #{toRpx(550)}) / 6);
.date-num { .date-num {
margin-bottom: toRpx(0); margin-bottom: 0;
}
.date-desc.first-child {
margin-bottom: 0;
} }
} }
} }
......
...@@ -23,7 +23,15 @@ ...@@ -23,7 +23,15 @@
<text class="status" :class="[getClockInStateClass]">{{ CLOCK_STATE[detailInfo.data.clockInState] }}</text> <text class="status" :class="[getClockInStateClass]">{{ CLOCK_STATE[detailInfo.data.clockInState] }}</text>
</view> </view>
<view :class="['extra-info', clockInAbnormalAttire ? 'red':'']">{{clockInAbnormalAttire ? '着装异常':'着装正常'}}</view> <view :class="['extra-info', clockInAbnormalAttire ? 'red':'']">{{clockInAbnormalAttire ? '着装异常':'着装正常'}}</view>
<image v-if="abnormalAttire" class="dress-code" @click="openImg('上班', detailInfo.data.clockInPhotoUrl)" :src="detailInfo.data.clockInPhotoUrl" mode="scaleToFill" /> <view v-if="abnormalAttire" class="clock-img">
<template v-if="detailInfo.data.clockInPhotoUrl"><image class="dress-code" @click="openImg('上班', detailInfo.data.clockInPhotoUrl)" :src="detailInfo.data.clockInPhotoUrl" mode="scaleToFill" /></template>
<template v-else>
<view class="no-url">
<view class="sprite-icon icon-no-picture"></view>
暂无记录</view>
</template>
</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -38,7 +46,16 @@ ...@@ -38,7 +46,16 @@
<text class="status" :class="[getClockOutStateClass]">{{ CLOCK_STATE[detailInfo.data.clockOutState] }}</text> <text class="status" :class="[getClockOutStateClass]">{{ CLOCK_STATE[detailInfo.data.clockOutState] }}</text>
</view> </view>
<view :class="['extra-info', clockOutAbnormalAttire ? 'red':'']">{{clockOutAbnormalAttire ? '着装异常':'着装正常'}}</view> <view :class="['extra-info', clockOutAbnormalAttire ? 'red':'']">{{clockOutAbnormalAttire ? '着装异常':'着装正常'}}</view>
<image v-if="abnormalAttire" class="dress-code" @click="openImg('下班', detailInfo.data.clockOutPhotoUrl)" :src="detailInfo.data.clockOutPhotoUrl" mode="scaleToFill" /> <view v-if="abnormalAttire" class="clock-img">
<template v-if="detailInfo.data.clockOutPhotoUrl">
<image class="dress-code" @click="openImg('下班', detailInfo.data.clockOutPhotoUrl)" :src="detailInfo.data.clockOutPhotoUrl" mode="scaleToFill" />
</template>
<template v-else>
<view class="no-url">
<view class="sprite-icon icon-no-picture"></view>
暂无记录</view>
</template>
</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -318,6 +335,21 @@ export default { ...@@ -318,6 +335,21 @@ export default {
.time-right { .time-right {
margin-left: toRpx(40); margin-left: toRpx(40);
.clock-img {
margin-top: toRpx(24);
width: toRpx(144);
height: toRpx(192);
border-radius: toRpx(10);
background-color: #F7F8FA;
.no-url {
display: flex;
flex-direction: column;
align-items: center;
padding-top: toRpx(56);
color: #B6BAC2;
font-size: toRpx(24);
}
}
} }
.time-label { .time-label {
...@@ -366,7 +398,6 @@ export default { ...@@ -366,7 +398,6 @@ export default {
} }
.dress-code { .dress-code {
margin-top: toRpx(24);
width: toRpx(144); width: toRpx(144);
height: toRpx(192); height: toRpx(192);
border-radius: toRpx(10); border-radius: toRpx(10);
......
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
top: 0; top: 0;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background-image: url('@/assets/images/common/home-bg.webp'); background-image: url('@/assets/images/common/home-bg-1.webp');
background-size: 100% 100%; background-size: 100% 100%;
} }
.home, .home,
......
...@@ -467,8 +467,8 @@ export default { ...@@ -467,8 +467,8 @@ export default {
const { moduleList } = this, const { moduleList } = this,
userInfo = uni.$storage.get("userInfo"), userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId: merchantId } = userInfo, { shopMerchantId: merchantId } = userInfo,
{ notInvitedCount } = await uni.$api.boutiqueApi.getInviteRecordCount({ {notInvitedCount} = await uni.$api.boutiqueApi.getInviteRecordCount({
merchantId merchantIds: [merchantId]
}) })
moduleList.map(e => { moduleList.map(e => {
if (e.id == 3) e.count = notInvitedCount ? notInvitedCount > 99 ? 99 : notInvitedCount : 0 if (e.id == 3) e.count = notInvitedCount ? notInvitedCount > 99 ? 99 : notInvitedCount : 0
......
...@@ -366,13 +366,14 @@ export default { ...@@ -366,13 +366,14 @@ export default {
color: #2c66f7; color: #2c66f7;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 500; font-weight: 500;
line-height: toRpx(44);
.sprite-icon { .sprite-icon {
margin-left: toRpx(8); margin-left: toRpx(8);
} }
} }
.status { .status {
flex-shrink: 0; flex-shrink: 0;
padding: toRpx(4) toRpx(16); padding: toRpx(6) toRpx(16);
border-radius: toRpx(4); border-radius: toRpx(4);
font-weight: 500; font-weight: 500;
font-size: toRpx(24); font-size: toRpx(24);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!