mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 21:46:44 +08:00
添加活动量管理页面也功能
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
<template>
|
||||
<div>
|
||||
<van-cell :title="ActivityLogInfo.name" is-link :icon="ActivityLogInfo.avatarUrl" value-class="text-left">
|
||||
<van-cell :title="ActivityLogInfo.name" :is-link="isEdit" :icon="ActivityLogInfo.avatarUrl" value-class="text-left">
|
||||
<span class="mr20">{{ ActivityLogInfo.age }}</span>
|
||||
<span>{{ ActivityLogInfo.flag }}</span>
|
||||
<van-icon slot="right-icon" name="edit" style="line-height: inherit;" color="#1989fa" size="24" />
|
||||
<van-icon slot="right-icon" name="edit" style="line-height: inherit;" :color="isEdit ? '#1989fa' : 'transparent'" size="24" @click="toEdit" />
|
||||
</van-cell>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import formatDate from '@/assets/js/utils/date-utils'
|
||||
import { Cell, CellGroup, Image } from 'vant'
|
||||
|
||||
export default {
|
||||
@@ -25,13 +26,44 @@ export default {
|
||||
name: '王辉',
|
||||
avatarUrl: 'https://img.yzcdn.cn/vant/cat.jpeg',
|
||||
age: '35岁',
|
||||
flag: '同业'
|
||||
flag: '同业',
|
||||
currentTime: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {}
|
||||
return {
|
||||
isEdit: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
toEdit() {
|
||||
if (!this.isEdit) {
|
||||
return false
|
||||
}
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + `/#/manpower/ActivityLog/Edit`
|
||||
},
|
||||
routerInfo: { path: '/manpower/ActivityLog/Edit' }
|
||||
})
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
currentTime() {
|
||||
return this.ActivityLogInfo.currentTime
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
currentTime(newVal) {
|
||||
if (newVal === formatDate.formatDate().split(' ')[0]) {
|
||||
this.isEdit = true
|
||||
} else {
|
||||
this.isEdit = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -37,7 +37,7 @@ export default {
|
||||
methods: {
|
||||
rout(config) {
|
||||
if (!config.share) {
|
||||
let url = config.path.split("/").pop()
|
||||
let url = config.path.split('/').pop()
|
||||
let path = config.path
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
|
||||
Reference in New Issue
Block a user