赞
踩
<view class="content"> <view class="contentlist" v-for="(item, index) in newsList" :key="index" @click="todetail(item.id)"> <image :src="imgurl + item.images" mode=""></image> <view class="contentext"> <text class="contentextitle">{ { item.name }}</text> <text class="contentextintegral">{ { item.price }} 积分</text> </view> </view> <!-- <uni-load-more class="middle" :loadingType="loadingType" :contentText="contentText"></uni-load-more> --> <view class="middle" v-if="showMore"> { { loadingType === 0 ? contentText.contentdown : loadingType === 1 ? contentText.contentrefresh : contentText.contentnomore }} </view> </view> import uniLoadMore from '../../common/uni-load-more.vue'; //引入uniapp官方插件 var _self, page = 1, timer = null; export default { components: { //注册组件 uniLoadMore }, data() { return { showMore: false, loadingText: '加载中...', loadingType: 0, //定义加载方式 0---contentdown 1---contentrefresh 2---contentnomore contentText: { contentdown: '上拉显示更多', contentrefresh: '正在加载...', contentno
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。