Commit 2786db3ce152cea0dec4d5384da1fd1e63c96b9f

Authored by 王强
1 parent b70e36e4

购好物,mall.vue页面恢复toPage函数,不知道什么时候删了~

Showing 1 changed file with 13 additions and 0 deletions
src/pages/mall/mall.vue
... ... @@ -293,6 +293,19 @@
293 293 },
294 294  
295 295 /**
  296 + * 调用通用跳转,navs使用
  297 + * @param {object} item [通用跳转对象]
  298 + */
  299 + toPage(item) {
  300 + // 判断是否有通用跳转函数
  301 + if (typeof this.$parent.gotoDetail === "function") {
  302 +
  303 + // 调用通用跳转
  304 + this.$parent.gotoDetail(item);
  305 + }
  306 + },
  307 +
  308 + /**
296 309 * 调用通用跳转
297 310 * @param {object} item [通用跳转对象]
298 311 */
... ...