bug
This commit is contained in:
@@ -85,6 +85,7 @@
|
||||
<span>张</span>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty v-if="!list.length && isMore"></AiEmpty>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -100,6 +101,7 @@
|
||||
photoTotal: {},
|
||||
date: '',
|
||||
list: [],
|
||||
isMore: false,
|
||||
attendanceCount: {}
|
||||
}
|
||||
},
|
||||
@@ -157,6 +159,8 @@
|
||||
num: res.data[v]
|
||||
}
|
||||
})
|
||||
|
||||
this.isMore = true
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
this.week = new Date().getDay()
|
||||
}, 1000)
|
||||
|
||||
this.getLocation()
|
||||
// this.getLocation()
|
||||
|
||||
uni.$on('change', e => {
|
||||
this.configList = e
|
||||
@@ -98,32 +98,21 @@
|
||||
|
||||
methods: {
|
||||
...mapActions(['injectJWeixin']),
|
||||
|
||||
getLocation () {
|
||||
this.injectJWeixin(['getLocation']).then(res => {
|
||||
console.log(res)
|
||||
wx.getLocation({
|
||||
type: 'wgs84',
|
||||
success: function (res) {
|
||||
var lat = res.latitude
|
||||
var lng = res.longitude
|
||||
console.log(lat, lng)
|
||||
},
|
||||
error: res => {
|
||||
console.log(res)
|
||||
var latitude = res.latitude
|
||||
var longitude = res.longitude
|
||||
var speed = res.speed
|
||||
var accuracy = res.accuracy
|
||||
}
|
||||
})
|
||||
})
|
||||
// uni.getLocation({
|
||||
// type: 'wgs84',
|
||||
// success: res => {
|
||||
// console.log(res)
|
||||
// this.$http.get('https://apis.map.qq.com/ws/geocoder/v1/?location=39.984154,116.307490&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1').then(res => {
|
||||
// console.log(res)
|
||||
// })
|
||||
// },
|
||||
// fail: error => {
|
||||
// console.log(error)
|
||||
// }
|
||||
// })
|
||||
},
|
||||
|
||||
linkTo (url) {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<span v-if="isShowWeather">{{ weather }}</span>
|
||||
</div>
|
||||
<p v-if="isShowDate">{{ date }} {{ weekCn }}</p>
|
||||
<div class="text" v-if="isShowMatters">
|
||||
<div class="text" v-if="isShowMatters && matters">
|
||||
<span>{{ matters }}</span>
|
||||
<image src="./../../images/quotes.png" />
|
||||
</div>
|
||||
@@ -76,6 +76,7 @@
|
||||
const title = v.filter(v => v.type === '5')[0]
|
||||
const name = v.filter(v => v.type === '6')[0]
|
||||
const matters = v.filter(v => v.type === '7')[0]
|
||||
|
||||
this.isShowWeather = weather.status === '1'
|
||||
this.isShowDate = date.status === '1'
|
||||
this.isShowTitle = title.status === '1'
|
||||
@@ -84,7 +85,10 @@
|
||||
this.isShowMatters = matters.status === '1'
|
||||
this.title = title.defaultValue || ''
|
||||
this.name = name.defaultValue || ''
|
||||
this.date = date.defaultValue || this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||
this.time = time.defaultValue || this.$dayjs().format('HH:mm')
|
||||
this.matters = matters.defaultValue || ''
|
||||
this.week = date.defaultValue ? this.$dayjs(date.defaultValue).day() : new Date().getDay()
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
@@ -92,15 +96,23 @@
|
||||
},
|
||||
|
||||
created () {
|
||||
this.configList = JSON.parse(JSON.stringify(this.config))
|
||||
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||
this.time = this.$dayjs().format('HH:mm')
|
||||
this.configList = JSON.parse(JSON.stringify(this.config)).map(v => {
|
||||
if (v.fieldType === '7') {
|
||||
v.defaultValue = this.$dayjs().format('YYYY-MM-DD')
|
||||
this.week = new Date().getDay()
|
||||
}
|
||||
if (v.fieldType === '6') {
|
||||
v.defaultValue = this.$dayjs().format('HH:mm')
|
||||
}
|
||||
|
||||
this.timer = setInterval(() => {
|
||||
this.date = this.$dayjs().format('YYYY-MM-DD')
|
||||
this.time = this.$dayjs().format('HH:mm')
|
||||
this.week = new Date().getDay()
|
||||
}, 1000)
|
||||
return v
|
||||
})
|
||||
|
||||
// this.timer = setInterval(() => {
|
||||
// this.date = this.$dayjs().format('YYYY-MM-DD')
|
||||
// this.time = this.$dayjs().format('HH:mm')
|
||||
// this.week = new Date().getDay()
|
||||
// }, 1000)
|
||||
|
||||
uni.$on('change', e => {
|
||||
this.configList = e
|
||||
@@ -142,7 +154,7 @@
|
||||
|
||||
image {
|
||||
position: absolute;
|
||||
bottom: 14px;
|
||||
top: -6px;
|
||||
left: 0;
|
||||
width: 28px;
|
||||
height: 24px;
|
||||
|
||||
@@ -73,7 +73,18 @@
|
||||
},
|
||||
|
||||
created () {
|
||||
this.configList = JSON.parse(JSON.stringify(this.config))
|
||||
this.configList = JSON.parse(JSON.stringify(this.config)).map(v => {
|
||||
if (v.fieldType === '7') {
|
||||
v.defaultValue = this.$dayjs().format('YYYY-MM-DD')
|
||||
this.week = new Date().getDay()
|
||||
}
|
||||
if (v.fieldType === '6') {
|
||||
v.defaultValue = this.$dayjs().format('HH:mm')
|
||||
}
|
||||
|
||||
return v
|
||||
})
|
||||
|
||||
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||
this.time = this.$dayjs().format('HH:mm')
|
||||
|
||||
|
||||
@@ -69,7 +69,17 @@
|
||||
},
|
||||
|
||||
created () {
|
||||
this.configList = JSON.parse(JSON.stringify(this.config))
|
||||
this.configList = JSON.parse(JSON.stringify(this.config)).map(v => {
|
||||
if (v.fieldType === '7') {
|
||||
v.defaultValue = this.$dayjs().format('YYYY-MM-DD')
|
||||
this.week = new Date().getDay()
|
||||
}
|
||||
if (v.fieldType === '6') {
|
||||
v.defaultValue = this.$dayjs().format('HH:mm')
|
||||
}
|
||||
|
||||
return v
|
||||
})
|
||||
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||
this.time = this.$dayjs().format('HH:mm')
|
||||
this.week = new Date().getDay()
|
||||
|
||||
@@ -67,10 +67,10 @@
|
||||
configList: {
|
||||
handler: function (v) {
|
||||
if (v.length) {
|
||||
const title = v.filter(v => v.type === '3')[0]
|
||||
const address = v.filter(v => v.type === '4')[0]
|
||||
const date = v.filter(v => v.type === '4')[0]
|
||||
const time = v.filter(v => v.type === '4')[0]
|
||||
const title = v.filter(v => v.type === '5')[0]
|
||||
const address = v.filter(v => v.type === '3')[0]
|
||||
const date = v.filter(v => v.type === '1')[0]
|
||||
const time = v.filter(v => v.type === '0')[0]
|
||||
this.isShowAddress = address.status === '1'
|
||||
this.isShowDate = date.status === '1'
|
||||
this.isShowTime = time.status === '1'
|
||||
@@ -82,7 +82,17 @@
|
||||
},
|
||||
|
||||
created () {
|
||||
this.configList = JSON.parse(JSON.stringify(this.config))
|
||||
this.configList = JSON.parse(JSON.stringify(this.config)).map(v => {
|
||||
if (v.fieldType === '7') {
|
||||
v.defaultValue = this.$dayjs().format('YYYY-MM-DD')
|
||||
this.week = new Date().getDay()
|
||||
}
|
||||
if (v.fieldType === '6') {
|
||||
v.defaultValue = this.$dayjs().format('HH:mm')
|
||||
}
|
||||
|
||||
return v
|
||||
})
|
||||
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||
this.time = this.$dayjs().format('HH:mm')
|
||||
|
||||
|
||||
@@ -64,7 +64,6 @@
|
||||
if (v.length) {
|
||||
const address = v.filter(v => v.type === '3')[0]
|
||||
const title = v.filter(v => v.type === '5')[0]
|
||||
console.log(address)
|
||||
this.isShowAddress = address.status === '1'
|
||||
this.title = title.defaultValue || ''
|
||||
}
|
||||
@@ -74,7 +73,17 @@
|
||||
},
|
||||
|
||||
created () {
|
||||
this.configList = JSON.parse(JSON.stringify(this.config))
|
||||
this.configList = JSON.parse(JSON.stringify(this.config)).map(v => {
|
||||
if (v.fieldType === '7') {
|
||||
v.defaultValue = this.$dayjs().format('YYYY-MM-DD')
|
||||
this.week = new Date().getDay()
|
||||
}
|
||||
if (v.fieldType === '6') {
|
||||
v.defaultValue = this.$dayjs().format('HH:mm')
|
||||
}
|
||||
|
||||
return v
|
||||
})
|
||||
this.date = this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||
this.time = this.$dayjs().format('HH:mm')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user