首先写个子组件用来放刷新的内容,命名为pull(可以看例子最后面放的。)
然后再要刷新的页面引用
价格 //点击价格会排序
<pull up="true" down="true" @up="next" @down="shuaxin" ref="pull">
<div class="mui-row mui-col-xs-12 mui-clearfix">
<span class="mui-col-xs-6" v-href="{name:'商品详情'}" rel="external nofollow" v-for="item in list">
<div class="img"><img v-bind:src="item.goods_image"/></div>
<h4>{{item.goods_name}}</h4>
<p class="red1">¥{{item.goods_price}}</p>
</span>
</div>