| | |
| | | <view class="label">发布</view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="value">*</view> |
| | | <view class="value">0</view> |
| | | <view class="label">获赞</view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="value">*</view> |
| | | <view class="value">{{statis.fans_cnt}}</view> |
| | | <view class="label">粉丝</view> |
| | | </view> |
| | | <!-- <view class="form-item"> |
| | |
| | | order_show: false, |
| | | order_columns: [ |
| | | [] |
| | | ] |
| | | ], |
| | | statis:{ |
| | | fans_cnt:0 |
| | | } |
| | | } |
| | | }, |
| | | onShow() { |
| | | //避免商品数目不一样 |
| | | this.refreshList('post') |
| | | // 获取粉丝数 |
| | | this.getFansCount() |
| | | }, |
| | | async onPullDownRefresh() { |
| | | if (this.id) { |
| | | await this.getDetail() |
| | | } |
| | | await this.refreshList('post') |
| | | // 获取粉丝数 |
| | | this.getFansCount() |
| | | uni.stopPullDownRefresh() |
| | | |
| | | }, |
| | |
| | | value: '' |
| | | }) |
| | | }) |
| | | |
| | | // 获取粉丝数 |
| | | this.getFansCount() |
| | | }, |
| | | // #ifdef PUB_CUSTOMER |
| | | onShareAppMessage() { |
| | |
| | | // } |
| | | }, |
| | | methods: { |
| | | |
| | | // 获取粉丝数量 |
| | | getFansCount(){ |
| | | |
| | | this.$http.request('get', `/api/follow/fans/statis/${this.query.supplierId}`, { |
| | | params: { |
| | | supplierId: this.query.supplierId |
| | | } |
| | | }).then(res => { |
| | | var data = res.data |
| | | this.statis.fans_cnt=data |
| | | }) |
| | | }, |
| | | |
| | | getList_after() { |
| | | if (this.list) { |
| | | for (var item of this.list) { |