Commit 729daada23e91df710688e7d1df6f8037ba33bbd
1 parent
08225f16
已关注达人,更多按钮调用通用跳转
Showing
1 changed file
with
13 additions
and
8 deletions
src/pages/optimization/optimization.vue
| @@ -5,10 +5,10 @@ | @@ -5,10 +5,10 @@ | ||
| 5 | <van-pull-refresh v-model="isLoading" pulling-text="下拉刷新..." loosing-text="释放刷新" loading-text="加载中..." success-text="刷新成功" @refresh="onRefresh"> | 5 | <van-pull-refresh v-model="isLoading" pulling-text="下拉刷新..." loosing-text="释放刷新" loading-text="加载中..." success-text="刷新成功" @refresh="onRefresh"> |
| 6 | 6 | ||
| 7 | <!-- 标题 --> | 7 | <!-- 标题 --> |
| 8 | - <text-title-box @more="h5More()" | 8 | + <text-title-box @more="h5More" |
| 9 | :titles="{ | 9 | :titles="{ |
| 10 | title: '已关注达人', | 10 | title: '已关注达人', |
| 11 | - more: newGoodsMore | 11 | + more: true |
| 12 | }"> | 12 | }"> |
| 13 | </text-title-box> | 13 | </text-title-box> |
| 14 | 14 | ||
| @@ -250,13 +250,18 @@ | @@ -250,13 +250,18 @@ | ||
| 250 | */ | 250 | */ |
| 251 | h5More() { | 251 | h5More() { |
| 252 | 252 | ||
| 253 | - // 跳转达人列表页面 | ||
| 254 | - this.$router.push({ | ||
| 255 | - path:"/fansShopMessageList", | ||
| 256 | - query:{ | ||
| 257 | - uid: (this.$route.query.uid || this.getStore("uid")) | 253 | + // 判断并调用通用跳转 |
| 254 | + if (typeof this.$parent.gotoDetail === "function") { | ||
| 255 | + | ||
| 256 | + // 设置跳转参数 | ||
| 257 | + let options = { | ||
| 258 | + type: "5", | ||
| 259 | + to: (window.location.href.split("#")[0] + "#/fansShopMessageList?uid=" + (this.$route.query.uid || this.getStore("uid"))), | ||
| 260 | + shop_type: "" | ||
| 258 | } | 261 | } |
| 259 | - }) | 262 | + |
| 263 | + this.$parent.gotoDetail(options); | ||
| 264 | + } | ||
| 260 | }, | 265 | }, |
| 261 | 266 | ||
| 262 | /** | 267 | /** |