1 Commits
3.0.7 ... 3.0.8

Author SHA1 Message Date
zzc
911a182143 fix: share token
All checks were successful
continuous-integration/drone/tag Build is passing
2026-02-10 01:25:49 +08:00
6 changed files with 52 additions and 11 deletions

View File

@@ -31,7 +31,12 @@
<el-table-column align="center" label="卡片" width="100">
<template slot-scope="scope">
<el-tooltip class="item" :content="scope.row.title" effect="dark" placement="top">
<el-image fit="cover" :preview-src-list="[scope.row.imageUrl]" :src="scope.row.imageUrl" style="width: 50px; height: 50px" />
<el-image
fit="cover"
:preview-src-list="[scope.row.imageUrl]"
:src="getThumbUrl(scope.row.imageUrl)"
style="width: 50px; height: 50px"
/>
</el-tooltip>
</template>
</el-table-column>
@@ -82,6 +87,7 @@
import { doDelete, getList } from '@/api/spring/fortune/card'
import { formatTime } from '@/utils'
import Edit from './components/AppManagementEdit'
import { getThumbUrl } from '@/utils/blessing'
export default {
name: 'AppManagement',
@@ -111,6 +117,7 @@
clearTimeout(this.timeOutID)
},
methods: {
getThumbUrl,
setSelectRows(val) {
this.selectRows = val
},

View File

@@ -17,7 +17,12 @@
<el-table-column align="center" label="抽签结果" width="100">
<template slot-scope="scope">
<el-tooltip class="item" :content="scope.row.id" effect="dark" placement="top">
<el-image fit="cover" :preview-src-list="[scope.row.imageUrl]" :src="scope.row.imageUrl" style="width: 50px; height: 50px" />
<el-image
fit="cover"
:preview-src-list="[scope.row.imageUrl]"
:src="getThumbUrl(scope.row.imageUrl)"
style="width: 50px; height: 50px"
/>
</el-tooltip>
</template>
</el-table-column>
@@ -79,6 +84,7 @@
<script>
import { getDrawList } from '@/api/spring/fortune/card'
import { formatTime } from '@/utils'
import { getThumbUrl } from '@/utils/blessing'
export default {
name: 'DrawRecord',
@@ -112,6 +118,7 @@
clearTimeout(this.timeOutID)
},
methods: {
getThumbUrl,
formatTime,
setSelectRows(val) {
this.selectRows = val

View File

@@ -7,6 +7,9 @@
<!-- </vab-query-form-left-panel> -->
<vab-query-form-left-panel :span="12">
<el-form :inline="true" :model="queryForm" @submit.native.prevent>
<el-form-item>
<el-input v-model.trim="queryForm.userId" clearable placeholder="请输入用户id" />
</el-form-item>
<el-form-item>
<el-input v-model.trim="queryForm.keyword" clearable placeholder="请输入查询条件" />
</el-form-item>
@@ -133,11 +136,15 @@
pageSize: 10,
scene: '',
keyword: '',
userId: '',
},
timeOutID: null,
}
},
created() {
if (this.$route.query.userId) {
this.queryForm.userId = this.$route.query.userId
}
this.fetchData()
},

View File

@@ -8,7 +8,10 @@
<vab-query-form-left-panel :span="12">
<el-form :inline="true" :model="queryForm" @submit.native.prevent>
<el-form-item>
<el-input v-model.trim="queryForm.keyword" clearable placeholder="请输入查询条件" />
<el-input v-model.trim="queryForm.userId" clearable placeholder="请输入用户id" />
</el-form-item>
<el-form-item>
<el-input v-model.trim="queryForm.keyword" clearable placeholder="请输入 shareToken" />
</el-form-item>
<el-form-item>
<el-select v-model="queryForm.scene" clearable placeholder="请选择分享场景" @change="queryData">
@@ -133,6 +136,7 @@
pageSize: 10,
scene: '',
keyword: '',
userId: '',
},
timeOutID: null,
}
@@ -141,6 +145,9 @@
if (this.$route.query.keyword) {
this.queryForm.keyword = this.$route.query.keyword
}
if (this.$route.query.userId) {
this.queryForm.userId = this.$route.query.userId
}
this.fetchData()
},

View File

@@ -44,20 +44,20 @@
</div>
</template>
</el-table-column>
<el-table-column align="left" label="小程序信息" show-overflow-tooltip>
<el-table-column align="left" label="使用信息" show-overflow-tooltip>
<template #default="{ row }">
<div>
<div>
<strong>粉丝</strong>
{{ row.followers }}
<strong>分享数</strong>
<el-link type="primary" :underline="false" @click="goToShareRecord(row.id)">{{ row.shareCount }}</el-link>
</div>
<div>
<strong>关注</strong>
{{ row.followings }}
<strong>查看</strong>
<el-link type="primary" :underline="false" @click="goToViewRecord(row.id)">{{ row.viewCount }}</el-link>
</div>
<div>
<strong>好友</strong>
{{ row.friends }}
<strong>保存数</strong>
<el-link type="primary" :underline="false" @click="goToSaveRecord(row.id)">{{ row.saveCount }}</el-link>
</div>
</div>
</template>
@@ -164,6 +164,15 @@
goToDevice(deviceId) {
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
},
goToShareRecord(userId) {
this.$router.push({ path: '/spring/user/shareRecord', query: { userId } })
},
goToViewRecord(userId) {
this.$router.push({ path: '/spring/user/viewRecord', query: { userId } })
},
goToSaveRecord(userId) {
this.$router.push({ path: '/spring/user/saveRecord', query: { userId } })
},
async fetchData() {
this.listLoading = true
const { data } = await getUserList(this.queryForm)

View File

@@ -8,7 +8,7 @@
<vab-query-form-left-panel :span="12">
<el-form :inline="true" :model="queryForm" @submit.native.prevent>
<el-form-item>
<el-input v-model.trim="queryForm.keyword" clearable placeholder="请输入查询条件" />
<el-input v-model.trim="queryForm.userId" clearable placeholder="请输入查询条件" />
</el-form-item>
<el-form-item>
<el-select v-model="queryForm.scene" clearable placeholder="请选择浏览场景" @change="queryData">
@@ -134,11 +134,15 @@
pageSize: 10,
scene: '',
keyword: '',
userId: '',
},
timeOutID: null,
}
},
created() {
if (this.$route.query.userId) {
this.queryForm.userId = this.$route.query.userId
}
this.fetchData()
},