diff --git a/public/img/icons/preview.png b/public/img/icons/preview.png
new file mode 100644
index 0000000..7a151e8
Binary files /dev/null and b/public/img/icons/preview.png differ
diff --git a/public/img/icons/wqr.png b/public/img/icons/wqr.png
new file mode 100644
index 0000000..96cdf7b
Binary files /dev/null and b/public/img/icons/wqr.png differ
diff --git a/src/api/game.ts b/src/api/game.ts
index d230f4a..efc5cfc 100644
--- a/src/api/game.ts
+++ b/src/api/game.ts
@@ -5,8 +5,10 @@ export interface IGameVersion {
name: string
url?: string
appid?: string
+ appsecret?: string
image?: string
selected?: boolean
+ qr?: string
}
export interface IGameData {
_id?: string
diff --git a/src/api/shop.ts b/src/api/shop.ts
index ed7e5b9..6fd83ae 100644
--- a/src/api/shop.ts
+++ b/src/api/shop.ts
@@ -55,6 +55,13 @@ export const getShopGameInfo = (data: any) =>
data
})
+export const getShopGameQr = (data: any) =>
+ request({
+ url: '/shop/gameqr',
+ method: 'post',
+ data
+ })
+
export const updateShopQtypes = (data: any) =>
request({
url: '/shop/save_qtype',
diff --git a/src/views/game/game_edit.vue b/src/views/game/game_edit.vue
index 67488ff..7de4f46 100644
--- a/src/views/game/game_edit.vue
+++ b/src/views/game/game_edit.vue
@@ -80,6 +80,19 @@
style="width: 100%"
/>
+
+
+
@@ -51,11 +52,29 @@
{{vdata.name}}
-
{{ vdata.type | parseGameType}}
+
+
+
+ 查看小程序码
+
+
+ 预览游戏
+
@@ -64,24 +83,36 @@
+