Commit 284e1995 by 李伟康

commit 提交

1 parent b5fb1563
No preview for this file type
...@@ -136,7 +136,6 @@ export default { ...@@ -136,7 +136,6 @@ export default {
} }
}, },
mounted(options) { mounted(options) {
console.log('Calendar.adsfads')
this.init() this.init()
}, },
methods: { methods: {
...@@ -185,9 +184,8 @@ export default { ...@@ -185,9 +184,8 @@ export default {
const params = this.getParams() const params = this.getParams()
const res = await uni.$api.pointApi.newCalendar(params) const res = await uni.$api.pointApi.newCalendar(params)
if (res) { if (res) {
console.log(this.dates, 'dates')
this.dates.forEach(item => { this.dates.forEach(item => {
const clockData = res.clockInDateList.find(i => i.day == item) const clockData = res?.clockInDateList?.find(i => i.day == item)
if (clockData && (this.currentInfo.month < this.defaultMonth || clockData.day < this.currentInfo.day)) { if (clockData && (this.currentInfo.month < this.defaultMonth || clockData.day < this.currentInfo.day)) {
if (clockData.dayState == 4) clockData.isDefault = true if (clockData.dayState == 4) clockData.isDefault = true
clockData.clockInTime1 = clockData.clockInTime ? dayjs(new Date(clockData.clockInTime)).format('HH:mm') : null clockData.clockInTime1 = clockData.clockInTime ? dayjs(new Date(clockData.clockInTime)).format('HH:mm') : null
...@@ -202,7 +200,6 @@ export default { ...@@ -202,7 +200,6 @@ export default {
}) })
} }
}) })
console.log(this.clockInDateList)
} }
}, },
/** 申诉记录 */ /** 申诉记录 */
...@@ -210,7 +207,6 @@ export default { ...@@ -210,7 +207,6 @@ export default {
const params = this.getParams() const params = this.getParams()
params.pageSize = 40 params.pageSize = 40
const res = await uni.$api.pointApi.getAppealList(params) const res = await uni.$api.pointApi.getAppealList(params)
console.log(res)
this.recordList = res.list this.recordList = res.list
}, },
// 切换月份 // 切换月份
......
...@@ -202,7 +202,7 @@ export default { ...@@ -202,7 +202,7 @@ export default {
let _this = this let _this = this
uni.$api.commonApi.getUnreadCount({}).then(res => { uni.$api.commonApi.getUnreadCount({}).then(res => {
this.readCount = res.data this.readCount = res.data
setTimeout(() => { if (res.data) setTimeout(() => {
utils.getViewInfo('.tip-box', info => { utils.getViewInfo('.tip-box', info => {
_this.$emit('showReadCountTips', { _this.$emit('showReadCountTips', {
style: `display:block;opacity:1;top: ${info.top}px; left: ${info.left}px;`, style: `display:block;opacity:1;top: ${info.top}px; left: ${info.left}px;`,
......
...@@ -32,7 +32,6 @@ export default { ...@@ -32,7 +32,6 @@ export default {
dataShow: { dataShow: {
immediate: true, immediate: true,
handler (newval) { handler (newval) {
console.log(123)
this.getServerData() this.getServerData()
} }
} }
......
...@@ -43,7 +43,6 @@ export default { ...@@ -43,7 +43,6 @@ export default {
watchCustomerInfo: { watchCustomerInfo: {
immediate: true, immediate: true,
handler (newval) { handler (newval) {
console.log(newval)
this.id = newval.receptionScene this.id = newval.receptionScene
} }
}, },
......
...@@ -42,6 +42,14 @@ ...@@ -42,6 +42,14 @@
<view class="tool-box box-class"> <view class="tool-box box-class">
<view class="common-title">展业工具</view> <view class="common-title">展业工具</view>
<view class="content-box"> <view class="content-box">
<view class="developing flex">
<image
class="developing-icon"
src="../../assets/images/common/developing.webp"
/>
功能开发中
</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -527,6 +535,16 @@ export default { ...@@ -527,6 +535,16 @@ export default {
position: relative; position: relative;
width: 100%; width: 100%;
height: calc(100% - #{toRpx(120)}); height: calc(100% - #{toRpx(120)});
.developing {
height: 100%;
flex-direction: column;
color: #999999;
font-size: 20rpx;
&-icon {
width: 344rpx;
height: 208rpx;
}
}
} }
.content-left, .content-left,
.content-right { .content-right {
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
> >
<image <image
class="image-block" class="image-block"
:src="item.imgKey" :src="item.imgUrl"
@load="item.hide = true" @load="item.hide = true"
/> />
<view :class="['error-block',{hide:item.hide}]"> <view :class="['error-block',{hide:item.hide}]">
...@@ -150,10 +150,9 @@ export default { ...@@ -150,10 +150,9 @@ export default {
const dataIndex = index - 1 < 0 ? datalist.length - 1 : index - 1 const dataIndex = index - 1 < 0 ? datalist.length - 1 : index - 1
item.isIndex = dataIndex item.isIndex = dataIndex
item.isToor = index item.isToor = index
item.imgKey = datalist[dataIndex]?.[this.imgKey] || '' item.imgUrl = datalist[dataIndex]?.[this.imgKey] || ''
item.x = 0 item.x = 0
}) })
console.log(this.imagelist)
if (autoplay) this.autoPlayFunction() if (autoplay) this.autoPlayFunction()
}, },
autoPlayFunction () { autoPlayFunction () {
...@@ -187,6 +186,7 @@ export default { ...@@ -187,6 +186,7 @@ export default {
(item.isToor - 1) < 0 ? imagelist.length - 1 : item.isToor - 1 (item.isToor - 1) < 0 ? imagelist.length - 1 : item.isToor - 1
: (item.isToor + 1) > imagelist.length - 1 ? 0 : item.isToor + 1 : (item.isToor + 1) > imagelist.length - 1 ? 0 : item.isToor + 1
item.isToor = toor item.isToor = toor
item.imgUrl = ''
item.class = list[toor].class item.class = list[toor].class
item.x = 0 item.x = 0
let isIndex = item.isIndex let isIndex = item.isIndex
...@@ -204,7 +204,7 @@ export default { ...@@ -204,7 +204,7 @@ export default {
if (isIndex < 0) isIndex = len if (isIndex < 0) isIndex = len
} }
item.isIndex = isIndex item.isIndex = isIndex
item.imgKey = datalist[isIndex][this.imgKey] || '' item.imgUrl = datalist[isIndex][this.imgKey] || ''
item.index = list[toor].index item.index = list[toor].index
}) })
let currentIndex = this.imagelist.findIndex(item => item.index == 1) let currentIndex = this.imagelist.findIndex(item => item.index == 1)
......
...@@ -211,6 +211,12 @@ export default { ...@@ -211,6 +211,12 @@ export default {
if (this.id) this.setPageData() if (this.id) this.setPageData()
} }
}, },
id: {
immediate: true,
handler (newval) {
if(!this.pageToolList.length) this.pageToolList = this.toolList
}
}
// toolList: { // toolList: {
// immediate: true, // immediate: true,
// handler (newval) { // handler (newval) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!