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/GoodsCon/index",
|
||||
query: {
|
||||
id: _vm.item.pid
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
@ -203,6 +193,12 @@ var _user = __webpack_require__(/*! @/api/user */ 19);var Recommend = function R
|
||||
!this.loading && this.get_user_collect_product();
|
||||
},
|
||||
methods: {
|
||||
goGoodsCon: function goGoodsCon(item) {
|
||||
this.$yrouter.push({
|
||||
path: "/pages/shop/GoodsCon/index",
|
||||
query: { id: item.pid } });
|
||||
|
||||
},
|
||||
get_user_collect_product: function get_user_collect_product() {
|
||||
var that = this;
|
||||
if (that.loading) return; //阻止下次请求(false可以进行请求);
|
||||
|
@ -1 +1 @@
|
||||
<view data-ref="container" class="_div vue-ref"><block wx:if="{{collectProductList.length>0}}"><view class="collectionGoods _div"><block wx:for="{{collectProductList}}" wx:for-item="item" wx:for-index="collectProductListIndex" wx:key="collectProductListIndex"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="item acea-row row-between-wrapper _div" bindtap="__e"><view class="pictrue _div"><image src="{{item.image}}" class="_img"></image></view><view class="text acea-row row-column-between _div"><view class="infor line1 _div">{{item.storeName}}</view><view class="acea-row row-between-wrapper _div"><view class="money font-color-red _div">{{"¥"+item.price}}</view><view data-event-opts="{{[['tap',[['delCollection',[collectProductListIndex]]]]]}}" class="delete _div" bindtap="__e">删除</view></view></view></view></block></view></block><loading vue-id="6e43f6e2-1" loaded="{{loadend}}" loading="{{loading}}" bind:__l="__l"></loading><block wx:if="{{collectProductList.length<1&&page>1}}"><view class="noCommodity _div" style="background-color:#fff;"><view class="noPictrue _div"><image class="image _img" src="{{$VUE_APP_RESOURCES_URL+'/images/noCollection.png'}}"></image></view><recommend vue-id="6e43f6e2-2" bind:__l="__l"></recommend></view></block></view>
|
||||
<view data-ref="container" class="_div vue-ref"><block wx:if="{{collectProductList.length>0}}"><view class="collectionGoods _div"><block wx:for="{{collectProductList}}" wx:for-item="item" wx:for-index="collectProductListIndex" wx:key="collectProductListIndex"><view data-event-opts="{{[['tap',[['goGoodsCon',['$0'],[[['collectProductList','',collectProductListIndex]]]]]]]}}" class="item acea-row row-between-wrapper _div" bindtap="__e"><view class="pictrue _div"><image src="{{item.image}}" class="_img"></image></view><view class="text acea-row row-column-between _div"><view class="infor line1 _div">{{item.storeName}}</view><view class="acea-row row-between-wrapper _div"><view class="money font-color-red _div">{{"¥"+item.price}}</view><view data-event-opts="{{[['tap',[['delCollection',[collectProductListIndex]]]]]}}" class="delete _div" bindtap="__e">删除</view></view></view></view></block></view></block><loading vue-id="6e43f6e2-1" loaded="{{loadend}}" loading="{{loading}}" bind:__l="__l"></loading><block wx:if="{{collectProductList.length<1&&page>1}}"><view class="noCommodity _div" style="background-color:#fff;"><view class="noPictrue _div"><image class="image _img" src="{{$VUE_APP_RESOURCES_URL+'/images/noCollection.png'}}"></image></view><recommend vue-id="6e43f6e2-2" bind:__l="__l"></recommend></view></block></view>
|
Reference in New Issue
Block a user