00f58933 by simon

默认提交

1 parent 2d4931fc
1 //app.js 1 //app.js
2 const ald = require('./utils/ald-stat.js')
2 let fetchApi = require('./http/fetch-api.js'); 3 let fetchApi = require('./http/fetch-api.js');
3 let api = require('./http/api'); 4 let api = require('./http/api');
4 let config = require('./config'); 5 let config = require('./config');
......
...@@ -2,7 +2,7 @@ let ENV_CONFIG = require('./env/index'); ...@@ -2,7 +2,7 @@ let ENV_CONFIG = require('./env/index');
2 2
3 const APPID = '' 3 const APPID = ''
4 /** ====每次发布版本记得修改此环境配置==== */ 4 /** ====每次发布版本记得修改此环境配置==== */
5 const ENV = 'Dev'; // Dev Prod 5 const ENV = 'Prod'; // Dev Prod
6 const NET_CONFIG = ENV_CONFIG[ENV]; 6 const NET_CONFIG = ENV_CONFIG[ENV];
7 const MOCKAPI = ENV_CONFIG.mockApi; 7 const MOCKAPI = ENV_CONFIG.mockApi;
8 8
......
...@@ -56,9 +56,6 @@ Page({ ...@@ -56,9 +56,6 @@ Page({
56 }); 56 });
57 this.queryVideoDetail(); 57 this.queryVideoDetail();
58 this.initData(); 58 this.initData();
59
60
61
62 }, 59 },
63 60
64 /** 61 /**
...@@ -218,7 +215,6 @@ Page({ ...@@ -218,7 +215,6 @@ Page({
218 * 视频详情 215 * 视频详情
219 */ 216 */
220 queryVideoDetail() { 217 queryVideoDetail() {
221
222 return new Promise((resolve, reject) => { 218 return new Promise((resolve, reject) => {
223 app.post({ 219 app.post({
224 url: app.api.videoDetail, 220 url: app.api.videoDetail,
......
1 exports.app_key = "eb6daf8e1ce2e5e29de64d5ec1286fbc"; //请在此行填写从阿拉丁后台获取的appkey
2 exports.getLocation = false; //默认不获取用户坐标位置
3 exports.plugin = false; //您的小程序中是否使用了插件。根据是否启用插件会有不同的接入方式,请参考文档文档。
4 exports.useOpen = false; //默认不启用,是否启用openid计算,开启后必须上传openid,否则数据不会上报。