Commit bcc58df58492053b436d8d0b64110573b54a1926

Authored by zhiyangdu
1 parent c546b66e

增加最新动态达人页面

Showing 1 changed file with 19 additions and 7 deletions
src/pages/newDaren/newDaren.vue
... ... @@ -22,14 +22,26 @@
22 22 :lists="shopDarenHot"
23 23 com="5">
24 24 </horiz-list>
25   - <!-- 达人动态列表 -->
  25 + <!-- 已关注达人 -->
26 26 <daren-list-box class="daren-list" @userJump="userJump" @jump="jump" @goodsJump="goodsJump" @goodsPrimary="goodsPrimary"
27 27 :lists="shopFnsDynamic">
28 28  
29 29 <!-- 最新动态标题 -->
30 30 <text-title-box slot="title-box" @more="newDarenDynamicsMore"
31 31 :titles="{
32   - title: '最新动态',
  32 + title: '已关注达人',
  33 + more: true
  34 + }">
  35 + </text-title-box>
  36 + </daren-list-box>
  37 + <!--最新达人动态-->
  38 + <daren-list-box class="daren-list" @userJump="userJump" @jump="jump" @goodsJump="goodsJump" @goodsPrimary="goodsPrimary"
  39 + :lists="shopFnsDynamic">
  40 +
  41 + <!-- 最新动态标题 -->
  42 + <text-title-box slot="title-box" @more="newDarenDynamicsMore"
  43 + :titles="{
  44 + title: '最新达人动态',
33 45 more: true
34 46 }">
35 47 </text-title-box>
... ... @@ -124,7 +136,7 @@
124 136 // 设置标题
125 137 this.$set(this, "title", datas.title);
126 138 }
127   -
  139 +
128 140  
129 141 // 设置banner数据
130 142  
... ... @@ -175,14 +187,14 @@
175 187 );
176 188 }
177 189 },
178   -
  190 +
179 191 /**
180 192 * 关注/取消关注达人回调
181 193 * @param {object} res [服务器返回数据]
182 194 * @param {object} ext [扩展参数]
183 195 */
184 196 fansShopCallback(res, ext) {
185   -
  197 +
186 198 // 加载完成
187 199 Indicator.close();
188 200 if (res.code) {
... ... @@ -195,11 +207,11 @@
195 207 this.$set(ext.item, "is_fans", "0");
196 208 }
197 209 }else if (res.statusCode === 200 && res.data.code == 400) {
198   -
  210 +
199 211 // 关注失败
200 212 this.showToast(res.data.message);
201 213 } else {
202   -
  214 +
203 215 // 关注失败
204 216 this.showToast("关注失败");
205 217 }
... ...