fix: share token
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
zzc
2026-02-10 01:25:49 +08:00
parent 69fd59dada
commit 911a182143
6 changed files with 52 additions and 11 deletions

View File

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

View File

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

View File

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

View File

@@ -8,7 +8,10 @@
<vab-query-form-left-panel :span="12"> <vab-query-form-left-panel :span="12">
<el-form :inline="true" :model="queryForm" @submit.native.prevent> <el-form :inline="true" :model="queryForm" @submit.native.prevent>
<el-form-item> <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-form-item> <el-form-item>
<el-select v-model="queryForm.scene" clearable placeholder="请选择分享场景" @change="queryData"> <el-select v-model="queryForm.scene" clearable placeholder="请选择分享场景" @change="queryData">
@@ -133,6 +136,7 @@
pageSize: 10, pageSize: 10,
scene: '', scene: '',
keyword: '', keyword: '',
userId: '',
}, },
timeOutID: null, timeOutID: null,
} }
@@ -141,6 +145,9 @@
if (this.$route.query.keyword) { if (this.$route.query.keyword) {
this.queryForm.keyword = 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() this.fetchData()
}, },

View File

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

View File

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