Commit 284e1995 by 李伟康

commit 提交

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