Commit e9dd25b77a178d2552e641d8f61ae5145bd43438
1 parent
33e872cf
获取视频号的场景
Showing
1 changed file
with
13 additions
and
1 deletions
app.js
@@ -70,7 +70,7 @@ App({ | @@ -70,7 +70,7 @@ App({ | ||
70 | room_id: null, //直播间分享的房间ID | 70 | room_id: null, //直播间分享的房间ID |
71 | room_goods_id: null, //直播间分享的商品ID | 71 | room_goods_id: null, //直播间分享的商品ID |
72 | fail_url: new Map(), | 72 | fail_url: new Map(), |
73 | - sp_scene:"1175,1176,1177" | 73 | + sp_scene: null |
74 | }, | 74 | }, |
75 | auth: o, | 75 | auth: o, |
76 | request: a, | 76 | request: a, |
@@ -207,6 +207,18 @@ App({ | @@ -207,6 +207,18 @@ App({ | ||
207 | 207 | ||
208 | //获取一下门店的基本信息 | 208 | //获取一下门店的基本信息 |
209 | this.getConfig(); | 209 | this.getConfig(); |
210 | + | ||
211 | + //获取视频号场景 | ||
212 | + if(!this.globalData.sp_scene) { | ||
213 | + var th = this; | ||
214 | + var turl = "/api/weshop/manager/managerConfig/get"; | ||
215 | + this.promiseGet(turl, {}).then(res => { | ||
216 | + if (res.data.code == 0) { | ||
217 | + th.globalData.sp_scene = res.data.data.weapp_scenelist; | ||
218 | + } | ||
219 | + }) | ||
220 | + } | ||
221 | + | ||
210 | }, | 222 | }, |
211 | 223 | ||
212 | // overShare:function() { | 224 | // overShare:function() { |