add
This commit is contained in:
@ -98,16 +98,6 @@ var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
if (!_vm._isMounted) {
|
||||
_vm.e0 = function($event) {
|
||||
return _vm.$yrouter.push({
|
||||
path: "/pages/shop/news/NewsDetail/index",
|
||||
query: {
|
||||
id: _vm.item.id
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
@ -161,10 +151,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -194,10 +180,10 @@ var _public = __webpack_require__(/*! @/api/public */ 88); //
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default = { name: "NewsList", components: {}, props: {}, data: function data() {return { page: 1, limit: 20, loadTitle: "", loading: false, loadend: false, imgUrls: [], navLsit: [], articleList: [], active: 0, cid: 0, swiperNew: { pagination: { el: ".swiper-pagination", clickable: true }, autoplay: { disableOnInteraction: false, delay: 2000 }, loop: true,
|
||||
var _default = { name: "NewsList", components: {}, props: {}, data: function data() {return { page: 1, limit: 20, loadTitle: "", loading: false, loadend: false, imgUrls: [], navLsit: [], articleList: [], active: 0, cid: 0, swiperNew: { pagination: { el: ".swiper-pagination", clickable: true }, autoplay: { disableOnInteraction: false,
|
||||
delay: 2000 },
|
||||
|
||||
loop: true,
|
||||
speed: 1000,
|
||||
observer: true,
|
||||
observeParents: true } };
|
||||
@ -216,6 +202,12 @@ var _default = { name: "NewsList", components: {}, props: {}, data: function dat
|
||||
!this.loading && this.getArticleLists();
|
||||
},
|
||||
methods: {
|
||||
goNewsDetail: function goNewsDetail(item) {
|
||||
this.$yrouter.push({
|
||||
path: "/pages/shop/news/NewsDetail/index",
|
||||
query: { id: item.id } });
|
||||
|
||||
},
|
||||
getArticleLists: function getArticleLists() {
|
||||
var that = this;
|
||||
if (that.loading) return; //阻止下次请求(false可以进行请求);
|
||||
|
@ -1 +1 @@
|
||||
<view data-ref="container" class="newsList _div vue-ref"><block wx:for="{{articleList}}" wx:for-item="item" wx:for-index="articleListIndex" wx:key="articleListIndex"><view class="list _div"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="item acea-row row-between-wrapper _div" bindtap="__e"><view class="text acea-row row-column-between _div"><view class="name line2 _div">{{item.title}}</view><view class="_div">{{item.addTime}}</view></view><view class="pictrue _div"><image src="{{item.imageInput}}" class="_img"></image></view></view></view></block><block wx:if="{{articleList.length===0&&page>1}}"><view class="noCommodity _div"><view class="noPictrue _div"><image class="image _img" src="{{$VUE_APP_RESOURCES_URL+'/images/noNews.png'}}"></image></view></view></block></view>
|
||||
<view data-ref="container" class="newsList _div vue-ref"><block wx:for="{{articleList}}" wx:for-item="item" wx:for-index="articleListIndex" wx:key="articleListIndex"><view class="list _div"><view data-event-opts="{{[['tap',[['goNewsDetail',['$0'],[[['articleList','',articleListIndex]]]]]]]}}" class="item acea-row row-between-wrapper _div" bindtap="__e"><view class="text acea-row row-column-between _div"><view class="name line2 _div">{{item.title}}</view><view class="_div">{{item.addTime}}</view></view><view class="pictrue _div"><image src="{{item.imageInput}}" class="_img"></image></view></view></view></block><block wx:if="{{articleList.length===0&&page>1}}"><view class="noCommodity _div"><view class="noPictrue _div"><image class="image _img" src="{{$VUE_APP_RESOURCES_URL+'/images/noNews.png'}}"></image></view></view></block></view>
|
Reference in New Issue
Block a user