diff --git a/pages/broadcastDetail/broadcastDetail.js b/pages/broadcastDetail/broadcastDetail.js index df03ba5..d5482bd 100644 --- a/pages/broadcastDetail/broadcastDetail.js +++ b/pages/broadcastDetail/broadcastDetail.js @@ -30,7 +30,9 @@ Page({ getLivePlan(livePlanId) { var self = this; app.restAjax.get(app.restAjax.path('{liveUrl}/app/liveplan/getliveplanbyidrelease/{livePlanId}', [self.data.liveUrl, livePlanId]), {}, null, function(code, data) { - self.data.liveDetail = data; + self.setData({ + liveDetail: data + }); self.videoContext = wx.createLivePlayerContext('liveVideo'); self.videoContext.play(); }, function(code, data) { diff --git a/pages/broadcastDetail/broadcastDetail.wxml b/pages/broadcastDetail/broadcastDetail.wxml index 96ab1a3..387c2a6 100644 --- a/pages/broadcastDetail/broadcastDetail.wxml +++ b/pages/broadcastDetail/broadcastDetail.wxml @@ -1,7 +1,8 @@ - + + {{liveDetail.livePlanName}} diff --git a/project.config.json b/project.config.json index b88d59a..e0f70e6 100644 --- a/project.config.json +++ b/project.config.json @@ -5,30 +5,30 @@ }, "setting": { "urlCheck": false, + "scopeDataCheck": false, + "coverView": true, "es6": true, - "enhance": false, "postcss": true, + "compileHotReLoad": false, "preloadBackgroundData": false, "minified": true, - "newFeature": true, - "coverView": true, - "nodeModules": false, "autoAudits": false, - "showShadowRootInWxmlPanel": true, - "scopeDataCheck": false, + "newFeature": true, "uglifyFileName": false, + "uploadWithSourceMap": true, + "useIsolateContext": true, + "nodeModules": false, + "enhance": false, + "useCompilerModule": true, + "userConfirmedUseCompilerModuleSwitch": false, + "showShadowRootInWxmlPanel": true, "checkInvalidKey": true, "checkSiteMap": true, - "uploadWithSourceMap": true, - "compileHotReLoad": false, "babelSetting": { "ignore": [], "disablePlugins": [], "outputPath": "" - }, - "useIsolateContext": true, - "useCompilerModule": true, - "userConfirmedUseCompilerModuleSwitch": false + } }, "compileType": "miniprogram", "libVersion": "2.11.1",