Authored by lijing

合并release/guang

@@ -109,10 +109,13 @@ const packageData = (id, isApp) => { @@ -109,10 +109,13 @@ const packageData = (id, isApp) => {
109 } 109 }
110 110
111 return Promise.all(promises).then(datas => { 111 return Promise.all(promises).then(datas => {
  112 +
  113 + let getArticleContent = {};
  114 +
112 if (datas) { 115 if (datas) {
113 if (datas[1]) { 116 if (datas[1]) {
114 117
115 - let getArticleContent = datas[1].data; 118 + getArticleContent = datas[1].data;
116 119
117 result.getArticleContent = getArticleContent; 120 result.getArticleContent = getArticleContent;
118 121
@@ -256,6 +256,14 @@ const getRelatedEditorial = (brandId, uid, udid, clientType, isApp) => { @@ -256,6 +256,14 @@ const getRelatedEditorial = (brandId, uid, udid, clientType, isApp) => {
256 }); 256 });
257 }; 257 };
258 258
  259 +const privateKeyList = {
  260 + android: 'fd4ad5fcfa0de589ef238c0e7331b585',
  261 + iphone: 'a85bb0674e08986c6b115d5e3a4884fa',
  262 + ipad: 'ad9fcda2e679cf9229e37feae2cdcf80',
  263 + web: '0ed29744ed318fd28d2c07985d3ba633',
  264 + h5: 'fd4ad5fcfa0de589ef238c0e7331b585'
  265 +};
  266 +
259 // 是否收藏 267 // 是否收藏
260 const isCollection = (uid, brandId, clientType) => { 268 const isCollection = (uid, brandId, clientType) => {
261 return serviceAPI.get('shops/service/v1/favorite/getUidBrandFav', { 269 return serviceAPI.get('shops/service/v1/favorite/getUidBrandFav', {
@@ -264,7 +272,6 @@ const isCollection = (uid, brandId, clientType) => { @@ -264,7 +272,6 @@ const isCollection = (uid, brandId, clientType) => {
264 client_type: clientType, 272 client_type: clientType,
265 private_key: privateKeyList[clientType] 273 private_key: privateKeyList[clientType]
266 }).then((result) => { 274 }).then((result) => {
267 -  
268 if (result && result.code === 200) { 275 if (result && result.code === 200) {
269 276
270 let isLike = true; 277 let isLike = true;
@@ -319,6 +326,7 @@ const getDetailData = (id, uid, udid, gender, isApp, clientType) => { @@ -319,6 +326,7 @@ const getDetailData = (id, uid, udid, gender, isApp, clientType) => {
319 shareTitle: list.brandName, 326 shareTitle: list.brandName,
320 shareImg: list.brandIco, 327 shareImg: list.brandIco,
321 shareDesc: htmlProcess.removeHtml(list.brandIntro) 328 shareDesc: htmlProcess.removeHtml(list.brandIntro)
  329 +
322 }); 330 });
323 331
324 return list; 332 return list;
@@ -206,6 +206,8 @@ function loadMore($container, opt, url) { @@ -206,6 +206,8 @@ function loadMore($container, opt, url) {
206 loading.showLoadingMask(); 206 loading.showLoadingMask();
207 } 207 }
208 208
  209 + opt.app_version = '1';
  210 +
209 num = $container.find('.guang-info').length; 211 num = $container.find('.guang-info').length;
210 searching = true; 212 searching = true;
211 $.ajax({ 213 $.ajax({
@@ -258,6 +260,7 @@ function loadMore($container, opt, url) { @@ -258,6 +260,7 @@ function loadMore($container, opt, url) {
258 delete opt.isTab; 260 delete opt.isTab;
259 }, 261 },
260 error: function() { 262 error: function() {
  263 + console.log('error');
261 tip.show('网络断开连接了~'); 264 tip.show('网络断开连接了~');
262 searching = false; 265 searching = false;
263 delete opt.isTab; 266 delete opt.isTab;