From 2c46fedac3bd4f2e094b1c29a92b6ee086b11090 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Wed, 10 Apr 2024 10:55:27 +0800 Subject: [PATCH] 1 --- src/api/api.config.js | 1 + src/api/store.js | 13 +++++- src/views/store/auth.vue | 72 ++++++++++++++++++++---------- src/views/store/modules/Commit.vue | 12 ++--- 4 files changed, 67 insertions(+), 31 deletions(-) diff --git a/src/api/api.config.js b/src/api/api.config.js index ee98370..72c09d7 100644 --- a/src/api/api.config.js +++ b/src/api/api.config.js @@ -29,6 +29,7 @@ export default { addTotemplate: 'wxserve/addTotemplate', qrcode: 'wxserve/qrcode', commit: 'wxserve/commit', + getVersion: 'wxserve/getVersion', // 商家功能模块管理 module: { diff --git a/src/api/store.js b/src/api/store.js index 79617a9..5b4057d 100644 --- a/src/api/store.js +++ b/src/api/store.js @@ -1,5 +1,17 @@ import api from './api.config' import { axios } from '@/utils/request' +/** + * 获取列表 + * @param {*} params + */ +export function getVersion(params) { + return axios({ + url: api.store.getVersion, + method: 'get', + params, + }) +} + /** * 获取列表 * @param {*} params @@ -11,7 +23,6 @@ export function delTemplatelist(params) { params, }) } - /** * 获取列表 * @param {*} params diff --git a/src/views/store/auth.vue b/src/views/store/auth.vue index a3801dc..b6a76d9 100644 --- a/src/views/store/auth.vue +++ b/src/views/store/auth.vue @@ -25,20 +25,24 @@
- - - + + +

版本:{{ item.exp_info.exp_version }}

+

时间:{{ item.exp_info.exp_time }}

+
+ +

版本:{{ item.release_info.release_version }}

+

时间:{{ item.release_info.release_time }}

+
+ + + 服务图片 + - 版本发布 + 发布体验版 + 刷新版本信息
@@ -67,41 +71,55 @@ import { ContentHeader, STable } from '@/components' const columns = [ { title: '商城ID', + width: '100px', dataIndex: 'store_id', - ellipsis: true, }, { title: '商城名称', + width: '180px', dataIndex: 'store_name', - ellipsis: true, - }, - { - title: '小程序头像', - dataIndex: 'head_image', - ellipsis: true, - scopedSlots: { customRender: 'head_image' }, }, { title: 'APPID', + width: '180px', dataIndex: 'appid', - ellipsis: true, }, { title: '小程序名称', + width: '180px', dataIndex: 'nick_name', - ellipsis: true, }, { - title: '当前版本信息', - dataIndex: 'version', - ellipsis: true, + title: '体验版', + width: '200px', + key: 'exp_info', + scopedSlots: { customRender: 'exp_info' }, + }, + { + title: '线上版', + width: '200px', + key: 'release_info', + scopedSlots: { customRender: 'release_info' }, }, + { + title: '体验二维码', + dataIndex: 'experience_code', + key: 'experience_code', + width: '100px', + scopedSlots: { customRender: 'experience_code' }, + }, + { title: '授权时间', + width: '200px', dataIndex: 'create_time', }, + { title: '操作', + width: '300px', + key: 'action', + fixed: 'right', scopedSlots: { customRender: 'action' }, }, ] @@ -187,6 +205,12 @@ export default { }) .finally(() => (this.isLoading = false)) }, + handleVersion(item) { + this.isLoading = true + Api.getVersion({ appid: item.appid }).then(() => { + this.fetchData() + }) + }, // 重置搜索表单 handleReset() { this.searchForm.resetFields() diff --git a/src/views/store/modules/Commit.vue b/src/views/store/modules/Commit.vue index 2574b2c..7b22c67 100644 --- a/src/views/store/modules/Commit.vue +++ b/src/views/store/modules/Commit.vue @@ -1,7 +1,7 @@