Commit 6821bbe76301769138dd3413da27b7e58085f79b

Authored by zhiyangdu
1 parent f74823ad

组件跳转h5和原生区分

src/pages/newDaren/newDaren.vue
@@ -341,7 +341,7 @@ @@ -341,7 +341,7 @@
341 // 临时,设置跳转参数,跳转达人动态详情页面 341 // 临时,设置跳转参数,跳转达人动态详情页面
342 Object.assign(item, { 342 Object.assign(item, {
343 type: "25", 343 type: "25",
344 - to: "265", 344 + to: (this.mode == "prod") ? "https://managemall.cnlive.com/html/preferred-library/1/#/pages/darenProfileDynamicDetail/darenProfileDynamicDetail?from=redirect" + "&id=" + item.id : "https://wjjshop.cnlive.com/html/preferred-library/1/#/pages/darenProfileDynamicDetail/darenProfileDynamicDetail?from=redirect"+ "&id=" + item.id,
345 shop_type: "" 345 shop_type: ""
346 }); 346 });
347 347
@@ -358,7 +358,6 @@ @@ -358,7 +358,6 @@
358 * @param {object} item [数据对象] 358 * @param {object} item [数据对象]
359 */ 359 */
360 userJump(item) { 360 userJump(item) {
361 -  
362 // 判断并调用通用跳转 361 // 判断并调用通用跳转
363 if (typeof this.$parent.gotoDetail === "function") { 362 if (typeof this.$parent.gotoDetail === "function") {
364 363
@@ -391,7 +390,7 @@ @@ -391,7 +390,7 @@
391 // 临时,设置跳转商品详情参数 390 // 临时,设置跳转商品详情参数
392 Object.assign(item, { 391 Object.assign(item, {
393 type: "2", 392 type: "2",
394 - to: "9525393", 393 + to: item.id,
395 shop_type: "1" 394 shop_type: "1"
396 }); 395 });
397 396
@@ -416,7 +415,7 @@ @@ -416,7 +415,7 @@
416 // 临时,设置跳转商品详情参数 415 // 临时,设置跳转商品详情参数
417 Object.assign(item, { 416 Object.assign(item, {
418 type: "2", 417 type: "2",
419 - to: "9525393", 418 + to: item.id,
420 shop_type: "1" 419 shop_type: "1"
421 }); 420 });
422 421