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 = {
})
},
/**
* 客户邀约记录-邀约类型数目统计
*/
getInviteRecordCount(data) {
return http.post({
method: "dj.api.smartcarlife.inviteRecord.count.new",
method: "dj.api.smartcarlife.customerInviteRecord.inviteStatus.count",
projectName: "boutique",
...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 {
// 创建一个初始数组,根据当月第一天是星期几插入相应数量的 null
const daysArray = [];
for (let i = 0; i < (firstDayWeekday === 0 ? 6 : firstDayWeekday - 1); i++) {
daysArray.push(null);
daysArray.push(null);
}
// 填充当月的日期
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;
},
getMaxLen() {
......@@ -285,6 +292,18 @@ export default {
&:nth-child(-n + 7) {
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 {
position: absolute;
......@@ -385,7 +404,10 @@ export default {
min-height: calc((100vh - #{toRpx(550)}) / 6);
.date-num {
margin-bottom: toRpx(0);
margin-bottom: 0;
}
.date-desc.first-child {
margin-bottom: 0;
}
}
}
......
......@@ -23,7 +23,15 @@
<text class="status" :class="[getClockInStateClass]">{{ CLOCK_STATE[detailInfo.data.clockInState] }}</text>
</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>
......@@ -38,7 +46,16 @@
<text class="status" :class="[getClockOutStateClass]">{{ CLOCK_STATE[detailInfo.data.clockOutState] }}</text>
</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>
......@@ -318,6 +335,21 @@ export default {
.time-right {
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 {
......@@ -366,7 +398,6 @@ export default {
}
.dress-code {
margin-top: toRpx(24);
width: toRpx(144);
height: toRpx(192);
border-radius: toRpx(10);
......
......@@ -155,7 +155,7 @@ export default {
top: 0;
width: 100vw;
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%;
}
.home,
......
......@@ -467,8 +467,8 @@ export default {
const { moduleList } = this,
userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId: merchantId } = userInfo,
{ notInvitedCount } = await uni.$api.boutiqueApi.getInviteRecordCount({
merchantId
{notInvitedCount} = await uni.$api.boutiqueApi.getInviteRecordCount({
merchantIds: [merchantId]
})
moduleList.map(e => {
if (e.id == 3) e.count = notInvitedCount ? notInvitedCount > 99 ? 99 : notInvitedCount : 0
......
......@@ -366,13 +366,14 @@ export default {
color: #2c66f7;
font-size: toRpx(28);
font-weight: 500;
line-height: toRpx(44);
.sprite-icon {
margin-left: toRpx(8);
}
}
.status {
flex-shrink: 0;
padding: toRpx(4) toRpx(16);
padding: toRpx(6) toRpx(16);
border-radius: toRpx(4);
font-weight: 500;
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!