From e9dd25b77a178d2552e641d8f61ae5145bd43438 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Sat, 9 Apr 2022 18:07:45 +0800 Subject: [PATCH] 获取视频号的场景 --- app.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 8d31646..fd71b47 100644 --- a/app.js +++ b/app.js @@ -70,7 +70,7 @@ App({ room_id: null, //直播间分享的房间ID room_goods_id: null, //直播间分享的商品ID fail_url: new Map(), - sp_scene:"1175,1176,1177" + sp_scene: null }, auth: o, request: a, @@ -207,6 +207,18 @@ App({ //获取一下门店的基本信息 this.getConfig(); + + //获取视频号场景 + if(!this.globalData.sp_scene) { + var th = this; + var turl = "/api/weshop/manager/managerConfig/get"; + this.promiseGet(turl, {}).then(res => { + if (res.data.code == 0) { + th.globalData.sp_scene = res.data.data.weapp_scenelist; + } + }) + } + }, // overShare:function() { -- libgit2 0.21.4