Commit 19ee7a50 by 杨明

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

2 parents aa7df2fa e63d41d7
...@@ -245,5 +245,13 @@ module.exports = { ...@@ -245,5 +245,13 @@ module.exports = {
projectName: 'pad', projectName: 'pad',
...data ...data
}) })
},
// 预警消息
getWarningPage(data) {
return http.post({
method: 'dj.pad.api.message.box.findWarningNotificationPage',
projectName: 'pad',
...data
})
} }
} }
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
.icon-change-account { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-change-account { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5852514919011083) calc(100vmin * (1173 / 768) * -0.4484228473998295);} background-position: calc(100vmin * (1173 / 768) * -0.5852514919011083) calc(100vmin * (1173 / 768) * -0.4484228473998295);}
.icon-clone { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993); .icon-clone { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.5967604433077579) calc(100vmin * (1173 / 768) * -0.16197783461210571);} background-position: calc(100vmin * (1173 / 768) * -0.5967604433077579) calc(100vmin * (1173 / 768) * -0.18030690537084398);}
.icon-coupon-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-coupon-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.1939471440750213) calc(100vmin * (1173 / 768) * -0.47911338448422847);} background-position: calc(100vmin * (1173 / 768) * -0.1939471440750213) calc(100vmin * (1173 / 768) * -0.47911338448422847);}
.icon-customer-1 { width: calc(100vmin * (1173 / 768) * 0.17050298380221654); height: calc(100vmin * (1173 / 768) * 0.17050298380221654); .icon-customer-1 { width: calc(100vmin * (1173 / 768) * 0.17050298380221654); height: calc(100vmin * (1173 / 768) * 0.17050298380221654);
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
.icon-total { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-total { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.0639386189258312) calc(100vmin * (1173 / 768) * -0.5008525149190111);} background-position: calc(100vmin * (1173 / 768) * -0.0639386189258312) calc(100vmin * (1173 / 768) * -0.5008525149190111);}
.icon-two-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.010230179028132993); .icon-two-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.5967604433077579) calc(100vmin * (1173 / 768) * -0.1453537936913896);} background-position: calc(100vmin * (1173 / 768) * -0.5967604433077579) calc(100vmin * (1173 / 768) * -0.1636828644501279);}
.icon-visible { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-visible { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.6155157715260017) calc(100vmin * (1173 / 768) * -0.5311167945439045);} background-position: calc(100vmin * (1173 / 768) * -0.6155157715260017) calc(100vmin * (1173 / 768) * -0.5311167945439045);}
.icon-warning-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-warning-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
...@@ -244,4 +244,14 @@ ...@@ -244,4 +244,14 @@
.icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489); .icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.17220801364023872) calc(100vmin * (1173 / 768) * -0.47911338448422847);} background-position: calc(100vmin * (1173 / 768) * -0.17220801364023872) calc(100vmin * (1173 / 768) * -0.47911338448422847);}
.icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.12404092071611253) calc(100vmin * (1173 / 768) * -0.5008525149190111);}
\ No newline at end of file \ No newline at end of file
background-position: calc(100vmin * (1173 / 768) * -0.12404092071611253) calc(100vmin * (1173 / 768) * -0.5008525149190111);}
.icon-appeal-record { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.5967604433077579) calc(100vmin * (1173 / 768) * -0.1453537936913896);}
.icon-detail-btn { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.12190963341858482) calc(100vmin * (1173 / 768) * -0.5230179028132992);}
.icon-dress-code { width: calc(100vmin * (1173 / 768) * 0.005115089514066497); height: calc(100vmin * (1173 / 768) * 0.005115089514066497);
background-position: calc(100vmin * (1173 / 768) * -0.6155157715260017) calc(100vmin * (1173 / 768) * -0.578005115089514);}
.icon-submit { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.1453537936913896) calc(100vmin * (1173 / 768) * -0.5230179028132992);}
.icon-time { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.16879795396419436) calc(100vmin * (1173 / 768) * -0.5230179028132992);}
\ No newline at end of file \ No newline at end of file

2.32 MB | W: | H:

2.33 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
<template>
<view class="calendar-container">
<view class="calendar-box">
<view class="calendar-years">
<view class="calendar-year">{{ currentInfo.year }}年{{ currentInfo.month }}月</view>
<view class="appeal-record" @click="viewAppeal"><view class="sprite-icon icon-appeal-record"></view>考勤申诉记录</view>
</view>
<view class="calendar-body">
<view class="calendar-weekdays">
<view class="calendar-weekday" v-for="weekday in weekdays" :key="weekday">
{{ weekday }}
</view>
</view>
<view class="calendar-dates">
<view class="calendar-date" v-for="(date, index) in dates" :key="index">
<template v-if="date">
<view @click="openDetail(date)">
<view class="tag blue">加班</view>
<view class="date-num" v-if="date != currentInfo.day">{{ date }}</view>
<view class="current-date" v-else>今</view>
<view class="date-desc">09:00:21<view class="sprite-icon icon-dress-code"></view></view>
<view class="date-desc date-red">未打卡</view>
</view>
</template>
</view>
</view>
</view>
</view>
<detailPop ref="detail" :detailInfo="selectInfo"></detailPop>
<AppealRecord ref="appeal"></AppealRecord>
</view>
</template>
<script>
// import point from '@/mixin/point'
// import firstTime from '@/mixin/firstTime'
import detailPop from './detailPop.vue'
import AppealRecord from './appealRecord.vue'
export default {
// mixins: [firstTime],
name: 'calendar',
components: {detailPop, AppealRecord},
props: {
// 是否显示周标题
showWeekdays: {
type: Boolean,
default: true
},
open: {
type: Boolean,
default: false
}
},
data() {
return {
// 当前所处日期 年月日
nowDate: '7',
datesd: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31],
clockInDateList: [],
weekdays: ['一', '二', '三', '四', '五', '六', '日'],
showNextMonth: true, //是否显示查看下个月操作箭头,暂时只能看后一个月
currentInfo: {
year: new Date().getFullYear(),
month: new Date().getMonth() + 1,
day: new Date().getDate()
},
selectInfo: {
year: new Date().getFullYear(),
month: new Date().getMonth() + 1,
day: ''
}
}
},
computed: {
dates() {
const firstDayOfMonth = new Date(this.currentInfo.year, this.currentInfo.month - 1, 1)
const dates = []
for (let i = 0, len = this.datesd.length; i < len; i++) {
dates.push(this.datesd[i])
}
if (firstDayOfMonth.getDay() == 0) {
// 第一行只有一天的情况
for (let i = 1; i <= 6; i++) {
dates.unshift(null)
}
} else {
for (let i = 1; i < firstDayOfMonth.getDay(); i++) {
dates.unshift(null)
}
}
console.log(dates)
return dates
}
},
methods: {
openDetail(date) {
this.selectInfo.day = date
this.$refs.detail.open()
},
viewAppeal() {
this.$refs.appeal.open()
}
}
}
</script>
<style scoped lang="scss">
.calendar-box {
padding: toRpx(48) toRpx(64);
box-sizing: border-box;
width: calc(100% - #{toRpx(64)});
height: calc(100vh - #{toRpx(276)});
border: toRpx(4) solid #fff;
background: #f2f7ff;
box-shadow: inset 0 4px 8px 0 #ffffff80;
border-radius: toRpx(48);
margin-top: toRpx(38);
.calendar-years {
color: #1a1a1a;
font-size: toRpx(48);
position: relative;
.appeal-record {
position: absolute;
display: flex;
align-items: center;
top: 0;
right: 0;
background-color: #E6EDF7;
color: #333;
font-size: toRpx(28);
padding: toRpx(10) toRpx(20);
border-radius: toRpx(16);
.icon-appeal-record {
margin-right: toRpx(8);
}
}
}
.calendar-weekdays {
display: flex;
height: toRpx(56);
margin-top: toRpx(30);
.calendar-weekday {
flex: 1;
font-size: toRpx(28);
color: #808291;
text-align: right;
padding-right: toRpx(21);
}
}
.calendar-dates {
display: flex;
flex-wrap: wrap;
border-radius: toRpx(24);
.calendar-date {
position: relative;
width: calc(100% / 7);
height: calc((100vh - toRpx(550)) / 5);
background-color: #fff;
padding: toRpx(22) toRpx(32);
display: flex;
flex-direction: column;
justify-content: space-between;
box-sizing: border-box;
border: toRpx(2) solid #DEEAFC;
+ .calendar-date {
border-left: none;
border-top: none;
}
&:nth-child(7n + 1) {
border-left: toRpx(2) solid #DEEAFC;
}
&:nth-child(-n + 7) {
border-top: toRpx(2) solid #DEEAFC;
}
.tag {
position: absolute;
right: toRpx(29.14);
top: toRpx(29.14);
padding: toRpx(6) toRpx(16);
font-size: toRpx(24);
box-sizing: content-box;
line-height: toRpx(32);
border-radius: toRpx(12);
&.blue {
color: #00B8F0;
background-color: rgba(0, 184, 240, 0.1);
}
&.red {
color: #EB4E4E;
background-color: rgba(235, 78, 78, 0.1);
}
&.gray {
color: #B6BAC2;
background-color: rgba(160, 163, 173, 0.1);
}
&.purple {
color: #6D58F5;
background-color: rgba(109, 88, 245, 0.1);
}
}
.date-num {
color: #1a1a1a;
font-size: toRpx(36);
margin-bottom: toRpx(24.8);
}
.current-date {
width: toRpx(64);
height: toRpx(64);
border-radius: toRpx(80);
opacity: 1;
background: #ebf1fe;
color: #3773F8;
font-size: toRpx(36);
line-height: toRpx(64);
text-align: center;
margin-bottom: toRpx(12);
}
.date-desc {
display: flex;
align-items: center;
position: relative;
font-size: toRpx(24);
padding-left: toRpx(30);
color: #808291;
&:first-child {
margin-bottom: toRpx(12);
}
&::before {
content: '';
position: absolute;
width: toRpx(12);
top: toRpx(12);
left: 0;
height: toRpx(12);
background: #2cca74;
border-radius: 50%;
}
&.date-red {
color: #eb4e4e;
&::before {
background: #eb4e4e;
}
}
.icon-dress-code {
display: inline-block;
margin-left: toRpx(8);
}
}
}
}
}
</style>
export const TYPE_LIST = [
{
value: 1,
name: '正常'
},
{
value: 2,
name: '加班'
},
{
value: 3,
name: '异常'
},
{
value: 4,
name: '有请假'
},
{
value: 5,
name: '请休假'
}
]
export const ABNORMAL_LIST = [
{
value: 31,
name: '迟到'
},
{
value: 32,
name: '早退'
},
{
value: 33,
name: '未打卡'
},
{
value: 34,
name: '着装异常'
}
]
\ No newline at end of file \ No newline at end of file
<template>
<uni-popup ref="popup" type="bottom" border-radius="toRpx(16)" :mask-click="false">
<view :class="['kf-box', type]">
<view class="title">
<image class="attendance-title" :src="require('@/assets/images/point/attendance-title.png')"
mode="scaleToFill" />
<template v-if="type == 'record'"><view>{{ detailInfo.year }}年{{ detailInfo.month }}月{{ detailInfo.day }}日</view></template>
<template v-else-if="type == 'appeal'">{{ title }}</template>
<view class="close flex" @click="close">
<uni-icons type="closeempty" :size="18" color="#1A1A1A"></uni-icons>
</view>
</view>
<template v-if="type == 'record'">
<view class="timeline-container">
<view class="timeline-item">
<view class="timeline-dot"></view>
<view class="timeline-content">
<text class="time-label">上班</text>
<view class="time-right">
<view class="time-top">
<text class="time">{{ dataInfo.endTime }}</text>
<text class="status" :class="{ 'normal': dataInfo.endStatus }">{{ dataInfo.endStatus }}</text>
</view>
<view class="extra-info">着装正常</view>
<image class="dress-code" @click="openImg('上班')" src="../../../../assets/images/common/qr.webp" mode="scaleToFill" />
</view>
</view>
</view>
<view class="timeline-line bnormal"></view>
<view class="timeline-item">
<view class="timeline-dot"></view>
<view class="timeline-content">
<text class="time-label">下班</text>
<view class="time-right">
<view class="time-top">
<text class="time">{{ dataInfo.endTime }}</text>
<text class="status" :class="{ 'normal': dataInfo.endStatus }">{{ dataInfo.endStatus }}</text>
</view>
<view class="extra-info red">着装正常</view>
<image class="dress-code" @click="openImg('下班')" src="../../../../assets/images/common/qr.webp" mode="scaleToFill" />
</view>
</view>
</view>
</view>
<view class="working-hours">
<view class="sprite-icon icon-time"></view>
工作时长:<text class="missing-card">8:25:16</text>
</view>
<view class="btn" @click="toAppeal">我要申诉</view>
<!-- <view class="submit-btn"><view class="sprite-icon icon-submit"></view>已提交申诉</view> -->
</template>
<template v-else-if="type == 'appeal'">
<view class="appeal-box">
<view class="label">申诉日期:{{ detailInfo.year }}年{{ detailInfo.month }}月{{ detailInfo.day }}日</view>
<view class="label">申诉说明:</view>
<view style="position: relative;">
<textarea :class="['textarea', isRequire?'red':'']" v-model="value" @blur="blur" placeholder-style="color: #C9C9C9" placeholder="请填写申诉说明,字数不超过200字" maxlength="200"></textarea>
<view v-if="isRequire" class="error-tips">请填写申诉说明</view>
</view>
</view>
<view class="btn appeal-btn" @click="handleAppeal">提交申诉</view>
</template>
</view>
<preview ref="img" :isComponents="true" :show="showPreview" :mediaObject="mediaObject" @previewBack="previewBack"></preview>
</uni-popup>
</template>
<script type='text/ecmascript-6'>
import preview from './preview.vue';
export default {
name: 'detailPop',
props: {
detailInfo: Object
},
components: {preview},
data() {
return {
dataInfo: {
startTime: '09:00:21',
endTime: '18:26:05',
startStatus: true,
endStatus: true
},
type: 'record',
title: '考勤申诉',
value: '',
showPreview: false,
mediaObject: {
detailUrl: '',
tabName: '',
sourceType: 1
},
isRequire: false
}
},
mounted() {
},
methods: {
open() {
console.log(this.detailInfo, '===')
this.$refs.popup.open("center");
},
close() {
this.$refs.popup.close()
},
toAppeal() {
this.type = 'appeal'
},
handleAppeal() {
console.log(this.value)
if (!this.value) {
this.isRequire = true
} else {
this.isRequire = false
this.type = 'record'
}
},
openImg(name) {
const url = 'https://img.ixintu.com/download/jpg/201911/e25b904bc42a74d7d77aed81e66d772c.jpg!con'
this.mediaObject.detailUrl = url
this.mediaObject.tabName = `${name}打卡`
this.showPreview = true
},
previewBack() {
this.showPreview = false
},
blur() {
this.isRequire = !this.value
}
}
}
</script>
<style scoped lang='scss'>
.kf-box {
position: relative;
background: #ffffff;
border-radius: toRpx(48);
// padding: 0 toRpx(48);
box-sizing: border-box;
background-image: url(@/assets/images/point/attendance-bg.png);
background-repeat: no-repeat;
padding-bottom: toRpx(80);
&.record {
width: toRpx(1040);
min-height: toRpx(654);
background-size: toRpx(1040) toRpx(400);
}
&.appeal {
width: toRpx(1456);
height: toRpx(992);
background-size: toRpx(1456) toRpx(400);
}
.close {
margin-left: auto;
}
.title {
display: flex;
align-items: center;
font-weight: 500;
font-size: toRpx(40);
padding: toRpx(40) toRpx(46);
.attendance-title {
width: toRpx(80);
height: toRpx(80);
margin-right: toRpx(16);
}
}
.message-bg {
width: toRpx(1040);
height: toRpx(400);
border-radius: toRpx(48);
}
.btn {
margin: toRpx(80) auto 0;
width: toRpx(376);
height: toRpx(88);
border-radius: toRpx(16);
background: linear-gradient(180deg, #61c0ff 0%, #2c66f7 100%);
box-shadow: inset 0 0 toRpx(32) 0 #ffffff80;
color: #ffffff;
font-size: toRpx(36);
font-weight: 500;
text-align: center;
line-height: toRpx(88);
}
}
.timeline-container {
position: relative;
padding-left: toRpx(144);
}
.timeline-line {
position: absolute;
left: toRpx(236);
top: toRpx(20);
width: toRpx(4);
background-color: #E6EAF0;
&.normal {
height: toRpx(154);
}
&.bnormal {
height: toRpx(386);
}
}
.timeline-item {
position: relative;
margin-bottom: toRpx(64);
}
.timeline-dot {
position: absolute;
left: toRpx(86);
top: toRpx(20);
transform: translateY(-50%);
width: toRpx(16);
height: toRpx(16);
border: toRpx(6) solid #181A1F;
border-radius: 50%;
box-sizing: border-box;
z-index: 1111;
flex-shrink: 0;
}
.timeline-content {
display: flex;
}
.time-right {
margin-left: toRpx(40);
}
.time-label {
margin-right: toRpx(24);
color: #808291;
font-size: toRpx(32);
}
.time {
font-size: toRpx(32);
color: #181A1F;
}
.status {
margin-left: toRpx(24);
padding: toRpx(6) toRpx(16);
border-radius: toRpx(12);
font-size: toRpx(24);
&.normal {
background-color: rgba(44, 202, 116, 0.1);
color: #2cca74;
}
&.late {
color: #F59619;
background-color: rgba(245, 150, 25, 0.1);
}
&.missing-card {
color: #EB4E4E;
background-color: rgba(235, 78, 78, 0.1);
}
}
.extra-info {
margin-top: toRpx(16);
color: #808291;
font-size: toRpx(26);
&.red {
color: #EB4E4E;
}
}
.dress-code {
margin-top: toRpx(24);
width: toRpx(144);
height: toRpx(192);
border-radius: toRpx(10);
}
.working-hours {
display: flex;
align-items: center;
margin-left: toRpx(144);
font-size: toRpx(32);
.icon-time {
margin-right: toRpx(16);
}
.missing-card {
color: #EB4E4E;
}
}
.submit-btn {
display: flex;
align-items: center;
justify-content: center;
margin-top: toRpx(80);
color: #2cca74;
font-size: toRpx(36);
font-weight: 500;
.icon-submit {
margin-right: toRpx(12);
}
}
.appeal-box {
margin: 0 toRpx(144) 0;
width: calc(100% - #{topx(288)});
.label {
color: #181a1f;
font-size: toRpx(32);
line-height: toRpx(48);
&:first-child {
margin-bottom: toRpx(32);
}
}
.textarea {
width: toRpx(1168);
height: toRpx(488);
border-radius: toRpx(20);
border: toRpx(2) solid #e8e8e8;
background: #ffffff;
margin-top: toRpx(16);
padding: toRpx(20) toRpx(24);
&.red {
border-color: #EB4E4E;
}
}
.error-tips {
position: absolute;
bottom: toRpx(-20);
transform: translateY(100%);
left: 0;
color: #EB4E4E;
}
}
.btn.appeal-btn {
margin-top: toRpx(48);
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="attendance-container">
<Calendar></Calendar>
</view>
</template>
<script type="text/ecmascript-6">
import Calendar from './Calendar.vue'
export default {
components: {Calendar}
}
</script>
<style scoped lang="scss">
.attendance-container {
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view
class="popup-box"
v-if="popupShow"
>
<view class="nav-bar">
<view
class="back"
@click="back"
>
<uni-icons
type="left"
:size="20"
color="#fff"
></uni-icons>
</view>
<view class="title">{{ title }}</view>
</view>
<view class="popup-body">
<video
ref="videoPlayer"
:src="detailUrl"
controls
v-if="sourceType == 2"
></video>
<view
class="img-detail"
v-else
>
<image
@click="back"
:src="detailUrl"
:style="{ width: width + 'px' }"
/>
</view>
</view>
</view>
</template>
<script type="text/ecmascript-6">
export default {
props: {
isComponents: Boolean,
show: Boolean,
mediaObject: Object
},
data () {
return {
width: 0,
title: '',
sourceType: '',
detailUrl: ''
}
},
watch:{
show:{
immediate: true,
handler (n) {
if (n) {
console.log(this.mediaObject)
this.init(this.mediaObject)
}
}
}
},
computed: {
popupShow () {
let status = true
if (this.isComponents) status = this.show
return status
},
},
onLoad (options) {
this.init(options)
},
methods: {
init (options) {
const { tabName, sourceType, detailUrl } = options
this.title = tabName
this.sourceType = sourceType
this.detailUrl = detailUrl
const _this = this
uni.getImageInfo({
src: detailUrl, // 替换为你的图片路径
success (img) {
uni.createSelectorQuery().select('.img-detail').boundingClientRect(function (rect) {
_this.width = rect.height * img.height / img.width
}).exec();
},
fail: function (error) {
console.error('获取图片信息失败:', error);
}
});
},
back () {
if (this.isComponents) this.$emit('previewBack')
else uni.navigateBack()
},
}
}
</script>
<style scoped lang="scss">
.popup-box {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: #000;
padding: toRpx(60) 0;
z-index: 999;
.nav-bar {
width: 100%;
height: toRpx(96);
margin-bottom: toRpx(50);
display: flex;
align-items: center;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
}
.title {
color: #fff;
flex: 1;
font-size: toRpx(32);
font-weight: 700;
text-align: center;
}
}
.popup-body {
width: 100%;
height: calc(100% - #{toRpx(200)});
video {
width: 100%;
height: 100%;
}
.img-detail {
height: 100%;
text-align: center;
image {
height: 100%;
width: auto;
}
}
}
}
</style>
...@@ -18,22 +18,26 @@ ...@@ -18,22 +18,26 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import Point from './Point/index.vue' import Point from './Point/index.vue'
import Income from './Income/index.vue' import Income from './Income/index.vue'
import Attendance from './Attendance/index.vue'
import { mapState } from 'vuex' import { mapState } from 'vuex'
export default { export default {
name: '', name: '',
components: { components: {
Point, Point,
Income Income,
Attendance
}, },
data () { data () {
return { return {
activeIndex:0, activeIndex: 2,
componentList:['Point','Income'], componentList:['Point','Income', 'Attendance'],
tabName: 'Point', tabName: 'Attendance',
tabList:[{ tabList:[{
name:'我的积分', name:'我的积分',
},{ },{
name:'我的收入', name:'我的收入',
},{
name:'我的考勤',
}] }]
} }
}, },
......
...@@ -125,6 +125,12 @@ ...@@ -125,6 +125,12 @@
} }
}, },
{ {
"path": "pages/common/earlyWarnDetail",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/common/messageList", "path": "pages/common/messageList",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
:is-mask-click="false" :is-mask-click="false"
animation animation
:isFooter="false" :isFooter="false"
:title="customerType == 1 ?'为客户发券' : '客户二维码'" :title="title"
:popupW="1200" :popupW="1200"
:maxHeight="896" :maxHeight="896"
> >
...@@ -132,8 +132,7 @@ ...@@ -132,8 +132,7 @@
class="ok-tips" class="ok-tips"
v-if="customerType == 0" v-if="customerType == 0"
> >
<view>请驻店销售员工打开「生意助手</view> <view>{{tips}}</view>
<view>员工版」小程序扫码核销</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -230,7 +229,9 @@ export default { ...@@ -230,7 +229,9 @@ export default {
type: Object, type: Object,
default: () => ({}) default: () => ({})
}, },
show: Boolean show: Boolean,
title: String,
tips: String
}, },
components: { Employee }, components: { Employee },
watch: { watch: {
...@@ -295,7 +296,7 @@ export default { ...@@ -295,7 +296,7 @@ export default {
}, },
isCheck: false, isCheck: false,
customerType: 1, customerType: 1,
selectKey:Date.now() selectKey: Date.now()
} }
}, },
mounted () { mounted () {
...@@ -355,12 +356,44 @@ export default { ...@@ -355,12 +356,44 @@ export default {
this.$refs[e].open(); this.$refs[e].open();
this.$emit('hideTool') this.$emit('hideTool')
}, },
open (customerType, customerCouponId) { open (customerType, customerInfo) {
this.pageParams.customerQr = ''
this.$refs.couponPopup.open() this.$refs.couponPopup.open()
this.customerType = customerType this.customerType = customerType
if (customerCouponId) { if (customerInfo.customerCouponId) {
this.pageParams.customerCouponId = customerCouponId try {
this.pageParams.customerQr = qrcode.createQrCodeImg(`couponId=${customerCouponId}`, { size: 200 }) uni.showLoading({
mask: true
})
let scene = ''
if (customerInfo.inviteRecordId) {
this.customerInfo = customerInfo
scene= `url=/tabDate/pages/detail/detail&id=${customerInfo.inviteRecordId}`
} else {
let params = encodeURIComponent(`couponId=${customerInfo.customerCouponId}`)
scene = `url=/tabWorkOrder/pages/createOrder/createOrder&scene=${params}`
}
uni.$api.commonApi.createQrcode({
scene,
path: '/pages/loading/loading',
appId: 'wx570d9331f9ace0bd'
}).then(({ data, code, message }) => {
uni.hideLoading()
if (code == 0) {
if (data) {
this.pageParams.customerCouponId = customerInfo.customerCouponId
this.pageParams.customerQr = data
} else throw '生成小程序码失败,请重试!'
} else throw message
})
} catch (error) {
uni.hideLoading()
uni.showToast({
title: error,
icon: 'none'
})
}
} }
this.init() this.init()
try { try {
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<view <view
class="coupon-btn flex" class="coupon-btn flex"
v-if="!isPreview" v-if="!isPreview"
@click="couponPopupRef.open(customerType, customerInfo.customerCouponId)" @click="couponPopupRef.open(customerType, customerInfo)"
>{{couponText}}</view> >{{couponText}}</view>
</view> </view>
</view> </view>
...@@ -107,6 +107,8 @@ ...@@ -107,6 +107,8 @@
@reception="reception" @reception="reception"
:show="show" :show="show"
@hideTool="$emit('hideTool')" @hideTool="$emit('hideTool')"
tips="微信扫码进入客户录单页"
:title="customerType == 1 ?'为客户发券' : '客户小程序码'"
/> />
<risk-informed-box <risk-informed-box
ref="riskInformedPop" ref="riskInformedPop"
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
<template> <template>
<view <view
class="detail-box" class="detail-box"
@dblclick="dbClick"
> >
<view class="nav-bar"> <view class="nav-bar">
<view <view
...@@ -293,9 +292,9 @@ export default { ...@@ -293,9 +292,9 @@ export default {
} }
return flag return flag
}, },
dbClick () { // dbClick () {
if (!this.isPreview) this.drawStatus = !this.drawStatus // if (!this.isPreview) this.drawStatus = !this.drawStatus
}, // },
}, },
}; };
</script> </script>
......
...@@ -52,9 +52,18 @@ ...@@ -52,9 +52,18 @@
:key="item.id" :key="item.id"
@click="reception(item)" @click="reception(item)"
> >
<view :class="['status flex', 'status_' + formatInvite(item)]">{{ inviteStatus[formatInvite(item)] }}</view> <view
<view class="name"> class="detail-btn flex"
{{ item.customerName }} @click.stop="openDetail(item)"
>
查看
<div class="sprite-icon icon-detail-btn"></div>
</view>
<view class="top flex">
<view class="name">
{{ item.customerName }}
</view>
<view :class="['status flex', 'status_' + formatInvite(item)]">{{ inviteStatus[formatInvite(item)] }}</view>
</view> </view>
<template v-for="(k, ind) in itemObject"> <template v-for="(k, ind) in itemObject">
<view <view
...@@ -98,12 +107,21 @@ ...@@ -98,12 +107,21 @@
confirmBtnText="确定接待" confirmBtnText="确定接待"
@confirm="jumpPage" @confirm="jumpPage"
></MessageBox> ></MessageBox>
<coupon-pop
ref="couponPopup"
@hideTool="$emit('hideTool')"
title="客户邀约详情"
tips="微信扫码进入客户邀约详情"
/>
</view> </view>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import dayjs from 'dayjs' import dayjs from 'dayjs'
import Record from "@/mixin/record"; import Record from "@/mixin/record";
import CouponPop from './components/CouponPop.vue'
export default { export default {
components: { CouponPop },
mixins: [Record], mixins: [Record],
props: { props: {
show: Boolean, show: Boolean,
...@@ -126,6 +144,11 @@ export default { ...@@ -126,6 +144,11 @@ export default {
chooseItem: {} chooseItem: {}
} }
}, },
computed: {
couponPopupRef () {
return this.$refs.couponPopup
},
},
watch: { watch: {
show: { show: {
handler (val) { handler (val) {
...@@ -212,7 +235,14 @@ export default { ...@@ -212,7 +235,14 @@ export default {
clearCanvas () { clearCanvas () {
this.$refs.invitationCanvas.clearBoard() this.$refs.invitationCanvas.clearBoard()
}, },
openDetail (e) {
this.couponPopupRef.open(0, {
...e,
phoneNumber: e.customerPhone,
carModel: e.carSeriesName,
staffName: e.employeeName
})
}
}, },
} }
</script> </script>
...@@ -329,10 +359,19 @@ export default { ...@@ -329,10 +359,19 @@ export default {
position: relative; position: relative;
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
.status { .detail-btn {
position: absolute; position: absolute;
top: toRpx(24); top: toRpx(24);
right: toRpx(32); right: toRpx(32);
color: #2c66f7;
font-size: toRpx(28);
font-weight: 500;
.sprite-icon {
margin-left: toRpx(8);
}
}
.status {
flex-shrink: 0;
padding: toRpx(4) toRpx(16); padding: toRpx(4) toRpx(16);
border-radius: toRpx(4); border-radius: toRpx(4);
font-weight: 500; font-weight: 500;
...@@ -340,6 +379,7 @@ export default { ...@@ -340,6 +379,7 @@ export default {
justify-content: center; justify-content: center;
background: #fdece9; background: #fdece9;
color: #f24724; color: #f24724;
margin-left: toRpx(16);
&.status_1 { &.status_1 {
background: #fff5e6; background: #fff5e6;
color: #ff9d0a; color: #ff9d0a;
...@@ -362,6 +402,9 @@ export default { ...@@ -362,6 +402,9 @@ export default {
background: #eaf9f1; background: #eaf9f1;
color: #35c376; color: #35c376;
} }
.top {
width: calc(100% - #{toRpx(124)});
}
.name { .name {
font-weight: 500; font-weight: 500;
font-size: toRpx(32); font-size: toRpx(32);
...@@ -369,7 +412,6 @@ export default { ...@@ -369,7 +412,6 @@ export default {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
width: calc(100% - #{toRpx(140)});
} }
.goods-name { .goods-name {
font-weight: 500; font-weight: 500;
......
<template>
<view class="detail-box">
<view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title">话术违规预警</view>
</view>
<view class="weekly-tips">
<scroll-view scroll-y class="outstanding-tip-list">
<view class="outstanding-tip-item">
<view class="tip-header">
<view class="tip-time">{{ warningInfo.time }}</view>
<view class="tip-tags">{{ warningInfo.warningTag }}</view>
</view>
<view class="tip-content warning-content">{{ warningInfo.warningContent }}
<view class="tips">你在以上的接待记录中,存在过度承诺现象,这极易引发客户纠纷,损害公司信誉。请严格依据公司政策与产品实际情况介绍,切勿做出无法兑现的承诺。因本次违规已扣除本月行为类-行为异常积分,后续将加强监管,违规者将严肃处理。
当购车者车辆出现问题,依据商家“任何小毛病都免费修”的承诺前往维修,却发现不在质保范围内需自费维修时,会产生经济上的落差与困扰。这不仅增加维修成本,还可能因与商家的售后纠纷,耗费大量时间与精力去沟通协调。</view>
</view>
</view>
</scroll-view>
</view>
</view>
</template>
<script>
export default {
name: 'EarlyWarnDetail',
data() {
return {
warningInfo: {},
type: 'view',
content: ''
}
},
onLoad(options) {
const { row } = options
const _row = JSON.parse(row)
this.warningInfo = _row
},
methods: {
// 返回
back() {
// this.showPage('MessageList')
uni.navigateBack({
delta: 1,
animationType: 'pop-out',
animationDuration: 100
})
},
}
}
</script>
<style scoped lang="scss">
.detail-box {
position: relative;
width: 100vw;
height: 100vh;
background-image: url('@/assets/images/common/page-bg.webp');
background-size: 100%;
box-sizing: border-box;
padding-top: toRpx(160);
}
.nav-bar {
position: fixed;
width: 100%;
height: toRpx(96);
left: 0;
top: toRpx(48);
z-index: 999;
pointer-events: none;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
pointer-events: auto;
}
.title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 700;
font-size: toRpx(32);
color: #1a1a1a;
}
}
.weekly-tips {
position: relative;
margin: 0 toRpx(64) toRpx(80);
background-color: rgba(255, 255, 255, 0.35);
border: toRpx(4) solid #fff;
border-radius: toRpx(16);
height: calc(100% - #{toRpx(80)});
.outstanding-tip-list {
height: 100%;
background-color: #fff;
border-radius: toRpx(16);
padding: toRpx(24) 0;
}
.outstanding-tip-item {
width: 100%;
padding: 0 toRpx(32);
border-radius: toRpx(16);
background-color: #fff;
height: 100%;
.tip-header {
display: flex;
align-items: center;
.tip-rank {
color: #333;
font-size: toRpx(32);
font-weight: 500;
line-height: toRpx(44);
margin-right: toRpx(24);
}
.tip-time {
color: rgba(102, 102, 102, 0.6);
font-size: toRpx(28);
line-height: toRpx(44);
}
.tip-tags {
border-radius: toRpx(4);
background: rgba(255, 157, 10, 0.1);
padding: toRpx(8) toRpx(24);
color: #ff9d0a;
font-size: toRpx(24);
font-weight: 500;
margin-left: toRpx(24);
}
}
.tip-content {
padding: toRpx(17) 0;
color: #333;
font-size: toRpx(28);
line-height: toRpx(48);
&.warning-content {
white-space: pre-line;
}
.tips {
color: #666;
margin-top: toRpx(16);
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
<view class="message-time">{{ item.actualSendTimeStr }}</view> <view class="message-time">{{ item.actualSendTimeStr }}</view>
<view class="message-tag">{{ CONTRNT_TYPE[item.contentType] }}</view> <view class="message-tag">{{ CONTRNT_TYPE[item.contentType] }}</view>
</view> </view>
<view class="message-content"> 您有新的消息【{{ item.title }}】{{ item.subtitle ? item.subtitle.length > 40 ? `[${item.subtitle.slice(0, 39)}...]` : `[${item.subtitle}]` : ''}},请点击查看 <view class="message-content"> 您有新的消息【{{ item.title }}】{{ item.subtitle ? item.subtitle.length > 40 ?
`[${item.subtitle.slice(0, 39)}...]` : `[${item.subtitle}]` : '' }},请点击查看
</view> </view>
</template> </template>
<template v-else-if="firstIndex == 1"> <template v-else-if="firstIndex == 1">
...@@ -49,6 +50,17 @@ ...@@ -49,6 +50,17 @@
</view> </view>
<view class="message-content">{{ item.polishContent }}</view> <view class="message-content">{{ item.polishContent }}</view>
</template> </template>
<template v-else-if="firstIndex == 2">
<view class="message-header">
<view :class="['dot', item.status == 1 ? '' : 'red']"></view>
<view class="message-type">话术违规预警</view>
<view class="message-time">{{ item.time }}</view>
<view class="message-tag">{{ item.warningTag }}</view>
</view>
<view class="message-content warning-content"><view>你有以下接待记录判定为话术违规</view>{{ item.warningContent }}
</view>
</template>
</view> </view>
</template> </template>
<template v-else> <template v-else>
...@@ -79,14 +91,16 @@ export default { ...@@ -79,14 +91,16 @@ export default {
return { return {
typeList: [ typeList: [
{ tabName: '系统通知', num: () => '' }, { tabName: '系统通知', num: () => '' },
{ tabName: '优秀话术', num: () => '' } { tabName: '优秀话术', num: () => '' },
{ tabName: '预警通知', num: () => '' }
], ],
CONTRNT_TYPE: CONTRNT_TYPE, CONTRNT_TYPE: CONTRNT_TYPE,
firstIndex: 0, firstIndex: 0,
firstLeft: ['first', 'second'], firstLeft: ['first', 'second', 'three'],
firstClass: ['first-nav', 'second-nav'], firstClass: ['first-nav', 'second-nav', 'second-nav'],
systemList: [], systemList: [],
messageList: [], messageList: [],
earlyWarnList: [],
nothing: false, nothing: false,
total: 0, total: 0,
pageNum: PAGE_NUM, pageNum: PAGE_NUM,
...@@ -98,31 +112,36 @@ export default { ...@@ -98,31 +112,36 @@ export default {
}, },
computed: { computed: {
getList() { getList() {
if (this.firstIndex == 0) { const listMap = {
return this.systemList 0: this.systemList,
} else if (this.firstIndex == 1) { 1: this.messageList,
console.log(this.messageList) 2: this.earlyWarnList
return this.messageList };
if (this.firstIndex in listMap) {
return listMap[this.firstIndex];
} }
return []; // 若 firstIndex 不在 0、1、2 范围内,返回 []
}, },
getScrollHeight() { getScrollHeight() {
if (this.getList == 0) return '' // 调用 getList 函数获取列表
else { const list = this.getList;
if (this.firstIndex == 0) { // 如果获取的列表为空,则返回空字符串
return 'scroll-list' if (!list || list.length === 0) {
} else if (this.firstIndex == 1) { return '';
return 'class-scroll' }
} else return '' // 根据 firstIndex 的值返回不同的类名
switch (this.firstIndex) {
case 0:
return 'scroll-list';
case 1:
return 'class-scroll';
case 2:
return 'scroll-list';
default:
return '';
} }
} }
}, },
// props: {
// transfer: {
// type: Object,
// default: () => { }
// }
// },
// inject: ['showPage'],
created() { created() {
uni.$on('pageList', (data) => { uni.$on('pageList', (data) => {
console.log('接收到上一个页面返回的数据:', data); console.log('接收到上一个页面返回的数据:', data);
...@@ -158,20 +177,38 @@ export default { ...@@ -158,20 +177,38 @@ export default {
} else if (index == 1) { } else if (index == 1) {
this.getMessagePage() this.getMessagePage()
this.getLabelList() this.getLabelList()
} else if (index == 2) {
this.getWarningPage()
} }
}, },
// 跳转详情 // 跳转详情
openDetail(row) { openDetail(row) {
console.log(row) console.log(row);
const { id, contentType } = row const { id } = row;
const { tagIndex } = this const actionMap = {
if (this.firstIndex == 1) { 2: () => {
// this.showPage('MessageDetail', { row, type: 'view', tagIndex }) uni.navigateTo({
uni.navigateTo({ url: `/pages/common/earlyWarnDetail?row=${encodeURIComponent(JSON.stringify(row))}`,
url: `/pages/common/messageDetail?row=${encodeURIComponent(JSON.stringify(row))}&type=view` fail: (err) => {
}) console.error('页面跳转失败:', err);
} else if (this.firstIndex == 0) { }
this.getDetailById(id, row.readFlag) });
},
1: () => {
uni.navigateTo({
url: `/pages/common/messageDetail?row=${encodeURIComponent(JSON.stringify(row))}&type=view`,
fail: (err) => {
console.error('页面跳转失败:', err);
}
});
},
0: () => {
this.getDetailById(id, row.readFlag);
}
};
const action = actionMap[this.firstIndex];
if (action) {
action();
} }
}, },
back() { back() {
...@@ -248,9 +285,6 @@ export default { ...@@ -248,9 +285,6 @@ export default {
const res = await uni.$api.commonApi.getTaskInfo({ const res = await uni.$api.commonApi.getTaskInfo({
pageNum, pageSize pageNum, pageSize
}) })
// res.list?.length && res.list.map(e => {
// e.time = dayjs(new Date(e.actualSendTime)).format("YYYY-MM-DD HH:mm:ss")
// })
if (pageNum == 1) { if (pageNum == 1) {
this.systemList = res.list this.systemList = res.list
} else { } else {
...@@ -266,6 +300,41 @@ export default { ...@@ -266,6 +300,41 @@ export default {
}); });
} }
}, },
async getWarningPage() {
try {
uni.showLoading({
mask: true
})
const { pageNum, pageSize } = this
const params = {
pageNum,
pageSize
}
const res = await uni.$api.commonApi.getWarningPage(params)
res.list?.length && res.list.map(e => {
e.time = dayjs(new Date(e.warningTime)).format("YYYY-MM-DD HH:mm:ss")
// const warningContent = e.warningContent.split('\n');
// console.log(warningContent)
// const resultArray = warningContent.filter(item => item!== '')
// e.len = resultArray.length
// console.log(resultArray)
})
if (pageNum == 1) {
this.earlyWarnList = res.list
console.log(this.earlyWarnList, '===')
} else {
this.earlyWarnList = this.messageList.concat(res.list)
}
uni.hideLoading()
this.total = res.total
this.nothing = res.length ? true : false
} catch (error) {
uni.showToast({
title: error,
icon: "none",
});
}
},
async getDetailById(id, readFlag) { async getDetailById(id, readFlag) {
const res = await uni.$api.commonApi.getTaskById({ id }) const res = await uni.$api.commonApi.getTaskById({ id })
// 不刷新列表的更新消息状态 // 不刷新列表的更新消息状态
...@@ -294,16 +363,40 @@ export default { ...@@ -294,16 +363,40 @@ export default {
}) })
} }
}, },
//下拉分页 /**
* 页面触底时的处理函数
* 当页面触底时,判断是否还有更多数据,如果有则加载下一页数据
* 如果没有更多数据,则标记为没有更多数据状态
*/
pageonReachBottom() { pageonReachBottom() {
console.log('到底了'); console.log('到底了');
let { pageNum, total, nothing, pageSize } = this // 解构赋值,设置 nothing 的默认值
if (!nothing) nothing = 'nothing' let { pageNum, total, nothing = 'nothing', pageSize } = this;
if (Math.ceil(total / pageSize) > pageNum) { if (Math.ceil(total / pageSize) > pageNum) {
this.pageNum += 1 this.pageNum += 1;
if (this.firstIndex == 1) this.getMessagePage() // 根据 firstIndex 的值调用不同的方法
else if (this.firstIndex == 0) this.getSystemPage() switch (this.firstIndex) {
} else this.nothing = true case 1:
try {
this.getMessagePage();
} catch (error) {
console.error('调用 getMessagePage 方法时出错:', error);
}
break;
case 0:
try {
this.getSystemPage();
} catch (error) {
console.error('调用 getSystemPage 方法时出错:', error);
}
break;
default:
break;
}
} else {
this.nothing = true;
}
} }
} }
} }
...@@ -365,6 +458,7 @@ export default { ...@@ -365,6 +458,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
.type-box { .type-box {
position: relative; position: relative;
display: flex; display: flex;
...@@ -449,6 +543,7 @@ export default { ...@@ -449,6 +543,7 @@ export default {
position: relative; position: relative;
background-color: #fff; background-color: #fff;
border-radius: 0 0 toRpx(48) toRpx(48); border-radius: 0 0 toRpx(48) toRpx(48);
&.scroll-list { &.scroll-list {
height: calc(100% - #{toRpx(222)}); height: calc(100% - #{toRpx(222)});
} }
...@@ -464,6 +559,7 @@ export default { ...@@ -464,6 +559,7 @@ export default {
margin: 0 toRpx(64) toRpx(40); margin: 0 toRpx(64) toRpx(40);
padding: toRpx(24) toRpx(32); padding: toRpx(24) toRpx(32);
box-sizing: border-box; box-sizing: border-box;
&:first-child { &:first-child {
margin-top: toRpx(10); margin-top: toRpx(10);
} }
...@@ -518,6 +614,10 @@ export default { ...@@ -518,6 +614,10 @@ export default {
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
&.warning-content {
white-space: pre-line;
-webkit-line-clamp: 4;
}
} }
} }
} }
...@@ -563,7 +663,8 @@ export default { ...@@ -563,7 +663,8 @@ export default {
} }
} }
} }
/deep/{
/deep/ {
.uni-scroll-view-content { .uni-scroll-view-content {
height: calc(100% - #{toRpx(10)}); height: calc(100% - #{toRpx(10)});
} }
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
<template> <template>
<view <view
class="detail-box" class="detail-box"
@dblclick="dbClick"
> >
<view <view
class="nav-bar" class="nav-bar"
...@@ -243,9 +242,9 @@ export default { ...@@ -243,9 +242,9 @@ export default {
toPay () { toPay () {
this.$refs.pay.show() this.$refs.pay.show()
}, },
dbClick () { // dbClick () {
if (!this.isPreview) this.drawStatus = !this.drawStatus // if (!this.isPreview) this.drawStatus = !this.drawStatus
}, // },
touchStart (e) { touchStart (e) {
if (!this.drawStatus && e.changedTouches?.length) { if (!this.drawStatus && e.changedTouches?.length) {
this.startX = e.changedTouches[0].pageX this.startX = e.changedTouches[0].pageX
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!