add
This commit is contained in:
@ -206,7 +206,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18); //
|
||||
// import Recommend from "@/components/Recommend";
|
||||
var _default = { name: "GoodSearch", components: {// Recommend,
|
||||
// GoodList
|
||||
}, props: {}, data: function data() {return { keywords: [], search: "" };}, mounted: function mounted() {this.getData();}, methods: { submit: function submit() {var search = (0, _utils.trim)(this.search) || "";if (!search) return;this.toSearch(search);}, toSearch: function toSearch(s) {this.$yrouter.push({ path: "/pages/shop/GoodsList/main", query: { s: s } });}, getData: function getData() {var _this = this;(0, _store.getSearchKeyword)().then(function (res) {_this.keywords = res.data;});} } };exports.default = _default;
|
||||
}, props: {}, data: function data() {return { keywords: [], search: "" };}, mounted: function mounted() {this.getData();}, methods: { submit: function submit() {var search = (0, _utils.trim)(this.search) || "";if (!search) return;this.toSearch(search);}, toSearch: function toSearch(s) {this.$yrouter.push({ path: "/pages/shop/GoodsList/index", query: { s: s } });}, getData: function getData() {var _this = this;(0, _store.getSearchKeyword)().then(function (res) {_this.keywords = res.data;});} } };exports.default = _default;
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
@ -100,17 +100,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/GoodsList/index",
|
||||
query: {
|
||||
id: _vm.child.id,
|
||||
title: _vm.child.cateName
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
@ -244,10 +233,16 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
|
||||
//
|
||||
//
|
||||
var _default = { name: "GoodsClass", components: {}, props: {}, data: function data() {return { category: [], navActive: 0, search: "", lock: false };}, watch: { "$yroute.query.id": function $yrouteQueryId(n) {if (n) {this.activeCateId(n);}} }, mounted: function mounted() {// document.addEventListener("scroll", this.onScroll, false);
|
||||
this.loadCategoryData();}, methods: { activeCateId: function activeCateId(n) {var index = 0;n = parseInt(n);if (!n) return;this.category.forEach(function (cate, i) {if (cate.id === n) index = i;});if (index !== this.navActive) {this.asideTap(index);}}, loadCategoryData: function loadCategoryData() {var _this = this;(0, _store.getCategory)().then(function (res) {_this.category = res.data;_this.$nextTick(function () {if (_this.$yroute.query.id) {_this.activeCateId(_this.$yroute.query.id);}});});}, submitForm: function submitForm() {var _this2 = this;var val = (0, _utils.trim)(this.search);
|
||||
this.loadCategoryData();}, methods: { goGoodsList: function goGoodsList(child) {this.$yrouter.push({ path: "/pages/shop/GoodsList/index", query: { id: child.id, title: child.cateName } });}, activeCateId: function activeCateId(n) {var index = 0;n = parseInt(n);if (!n) return;this.category.forEach(function (cate, i) {if (cate.id === n) index = i;});if (index !== this.navActive) {this.asideTap(index);}}, loadCategoryData: function loadCategoryData() {var _this = this;(0, _store.getCategory)().then(function (res) {_this.category = res.data;_this.$nextTick(function () {if (_this.$yroute.query.id) {_this.activeCateId(_this.$yroute.query.id);
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
submitForm: function submitForm() {var _this2 = this;
|
||||
var val = (0, _utils.trim)(this.search);
|
||||
if (val) {
|
||||
this.$yrouter.push({
|
||||
path: "/pages/shop/GoodsList/main",
|
||||
path: "/pages/shop/GoodsList/index",
|
||||
query: { s: val } });
|
||||
|
||||
setTimeout(function () {return _this2.search = "";}, 500);
|
||||
|
@ -1 +1 @@
|
||||
<view class="productSort _div"><form data-event-opts="{{[['submit',[['submitForm',['$event']]]]]}}" bindsubmit="__e"><view data-ref="header" class="header acea-row row-center-wrapper _div vue-ref"><view class="acea-row row-between-wrapper input _div"><label class="iconfont icon-sousuo _span"></label><input type="text" placeholder="搜索商品信息" data-event-opts="{{[['input',[['__set_model',['','search','$event',[]]]]]]}}" value="{{search}}" bindinput="__e"/></view></view></form><view class="aside _div"><block wx:for="{{category}}" wx:for-item="item" wx:for-index="categoryDivindex" wx:key="categoryDivindex"><view data-event-opts="{{[['tap',[['asideTap',[categoryDivindex]]]]]}}" class="{{['item acea-row row-center-wrapper _div',categoryDivindex===navActive?'on':'']}}" bindtap="__e"><label class="_span">{{item.cateName}}</label></view></block></view><view class="conter _div"><block wx:for="{{category}}" wx:for-item="item" wx:for-index="eq" wx:key="eq"><view class="listw _div"><block wx:if="{{eq===navActive}}"><view class="_div"><view data-ref="title" class="title acea-row row-center-wrapper _div vue-ref-in-for"><view class="line _div"></view><view class="name _div">{{item.cateName}}</view><view class="line _div"></view></view><view class="list acea-row _div"><block wx:for="{{item.children}}" wx:for-item="child" wx:for-index="categoryIndex" wx:key="categoryIndex"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="item acea-row row-column row-middle _div" bindtap="__e"><view class="picture _div"><image src="{{child.pic}}" class="_img"></image></view><view class="name line1 _div">{{child.cateName}}</view></view></block></view></view></block></view></block></view><view style="height:100rpx;" class="_div"></view></view>
|
||||
<view class="productSort _div"><form data-event-opts="{{[['submit',[['submitForm',['$event']]]]]}}" bindsubmit="__e"><view data-ref="header" class="header acea-row row-center-wrapper _div vue-ref"><view class="acea-row row-between-wrapper input _div"><label class="iconfont icon-sousuo _span"></label><input type="text" placeholder="搜索商品信息" data-event-opts="{{[['input',[['__set_model',['','search','$event',[]]]]]]}}" value="{{search}}" bindinput="__e"/></view></view></form><view class="aside _div"><block wx:for="{{category}}" wx:for-item="item" wx:for-index="categoryDivindex" wx:key="categoryDivindex"><view data-event-opts="{{[['tap',[['asideTap',[categoryDivindex]]]]]}}" class="{{['item acea-row row-center-wrapper _div',categoryDivindex===navActive?'on':'']}}" bindtap="__e"><label class="_span">{{item.cateName}}</label></view></block></view><view class="conter _div"><block wx:for="{{category}}" wx:for-item="item" wx:for-index="eq" wx:key="eq"><view class="listw _div"><block wx:if="{{eq===navActive}}"><view class="_div"><view data-ref="title" class="title acea-row row-center-wrapper _div vue-ref-in-for"><view class="line _div"></view><view class="name _div">{{item.cateName}}</view><view class="line _div"></view></view><view class="list acea-row _div"><block wx:for="{{item.children}}" wx:for-item="child" wx:for-index="categoryIndex" wx:key="categoryIndex"><view data-event-opts="{{[['tap',[['goGoodsList',['$0'],[[['category','',eq],['children','',categoryIndex]]]]]]]}}" class="item acea-row row-column row-middle _div" bindtap="__e"><view class="picture _div"><image src="{{child.pic}}" class="_img"></image></view><view class="name line1 _div">{{child.cateName}}</view></view></block></view></view></block></view></block></view><view style="height:100rpx;" class="_div"></view></view>
|
@ -1,5 +1,5 @@
|
||||
|
||||
.productSort{
|
||||
height:100%
|
||||
}
|
||||
.productSort {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
@ -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>
|
@ -100,20 +100,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/EvaluateList/index",
|
||||
query: {
|
||||
id: _vm.id
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
_vm.e1 = function($event) {
|
||||
return _vm.$yrouter.push("/pages/shop/ShoppingCart/index")
|
||||
}
|
||||
}
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
@ -147,180 +133,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
|
||||
|
||||
|
||||
|
||||
@ -590,6 +403,18 @@ var _vuex = __webpack_require__(/*! vuex */ 16);function _objectSpread(target) {
|
||||
this.productCon();
|
||||
},
|
||||
methods: {
|
||||
goShoppingCart: function goShoppingCart() {
|
||||
this.$yrouter.switchTab("/pages/shop/ShoppingCart/index");
|
||||
},
|
||||
goCustomerList: function goCustomerList() {
|
||||
this.$yrouter.push({ path: "/pages/user/CustomerList/index" });
|
||||
},
|
||||
goEvaluateList: function goEvaluateList(id) {
|
||||
this.$yrouter.push({
|
||||
path: "/pages/shop/EvaluateList/index",
|
||||
query: { id: id } });
|
||||
|
||||
},
|
||||
showChang: function showChang() {
|
||||
if ((0, _utils.isWeixin)()) {
|
||||
var config = {
|
||||
@ -669,7 +494,7 @@ var _vuex = __webpack_require__(/*! vuex */ 16);function _objectSpread(target) {
|
||||
that.getCartCount();
|
||||
}).
|
||||
catch(function (res) {
|
||||
wx.showToast({
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: "none",
|
||||
duration: 2000 });
|
||||
@ -893,7 +718,7 @@ var _vuex = __webpack_require__(/*! vuex */ 16);function _objectSpread(target) {
|
||||
that.attr.cartAttr = false;
|
||||
if (news) {
|
||||
that.$yrouter.push({
|
||||
path: "/pages/order/OrderSubmission/main",
|
||||
path: "/pages/order/OrderSubmission/index",
|
||||
query: { id: res.data.cartId } });
|
||||
|
||||
} else {
|
||||
@ -907,7 +732,7 @@ var _vuex = __webpack_require__(/*! vuex */ 16);function _objectSpread(target) {
|
||||
}).
|
||||
catch(function (error) {
|
||||
that.isOpen = false;
|
||||
wx.showToast({
|
||||
uni.showToast({
|
||||
title: error.response.data.msg,
|
||||
icon: "none",
|
||||
duration: 2000 });
|
||||
@ -945,6 +770,7 @@ var _vuex = __webpack_require__(/*! vuex */ 16);function _objectSpread(target) {
|
||||
listenerActionClose: function listenerActionClose() {
|
||||
this.posters = false;
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -138,7 +138,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 59));
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 59));
|
||||
|
||||
|
||||
|
||||
@ -327,19 +327,20 @@ var NAME = "GoodsEvaluate";var _default =
|
||||
comment: expect }).
|
||||
|
||||
then(function () {
|
||||
wx.showToast({
|
||||
uni.showToast({
|
||||
title: "评价成功",
|
||||
icon: "success",
|
||||
duration: 2000 });
|
||||
|
||||
_this.$yrouter.push({
|
||||
path: "/pages/order/OrderDetails/main",
|
||||
path: "/pages/order/OrderDetails/index",
|
||||
query: { id: _this.orderCon.orderId } });
|
||||
|
||||
}).
|
||||
catch(function (res) {
|
||||
_this.$dialog.error(res.msg);
|
||||
});case 10:case "end":return _context.stop();}}}, _callee, this, [[1, 6]]);}));function submit() {return _submit.apply(this, arguments);}return submit;}() } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
@ -100,16 +100,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.id
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
@ -313,6 +303,12 @@ var _lodash = _interopRequireDefault(__webpack_require__(/*! lodash.debounce */
|
||||
this.nows = fals;
|
||||
},
|
||||
methods: {
|
||||
goGoodsCon: function goGoodsCon(item) {
|
||||
this.$yrouter.push({
|
||||
path: "/pages/shop/GoodsCon/index",
|
||||
query: { id: item.id } });
|
||||
|
||||
},
|
||||
updateTitle: function updateTitle() {
|
||||
// document.title = this.title || this.$yroute.meta.title;
|
||||
},
|
||||
@ -355,7 +351,7 @@ var _lodash = _interopRequireDefault(__webpack_require__(/*! lodash.debounce */
|
||||
var that = this;
|
||||
switch (index) {
|
||||
case 0:
|
||||
return that.$yrouter.push({ path: "/pages/shop/GoodsClass/main" });
|
||||
return that.$yrouter.push({ path: "/pages/shop/GoodsClass/index" });
|
||||
case 1:
|
||||
if (that.price === 0) that.price = 1;else
|
||||
if (that.price === 1) that.price = 2;else
|
||||
|
@ -1 +1 @@
|
||||
<view data-ref="container" class="productList _div data-v-35c83954 vue-ref"><form data-event-opts="{{[['submit',[['submitForm',['$event']]]]]}}" bindsubmit="__e" class="data-v-35c83954"><view class="search bg-color-red acea-row row-between-wrapper _div data-v-35c83954"><view class="input acea-row row-between-wrapper _div data-v-35c83954"><label class="iconfont icon-sousuo _span data-v-35c83954"></label><input placeholder="搜索商品信息" data-event-opts="{{[['input',[['__set_model',['$0','keyword','$event',[]],['where']]]]]}}" value="{{where.keyword}}" bindinput="__e" class="data-v-35c83954"/></view><view data-event-opts="{{[['tap',[['switchTap',['$event']]]]]}}" class="{{['iconfont _div data-v-35c83954',Switch===true?'icon-pailie':'icon-tupianpailie']}}" bindtap="__e"></view></view></form><view class="nav acea-row row-middle _div data-v-35c83954"><view data-event-opts="{{[['tap',[['set_where',[0]]]]]}}" class="{{['item _div data-v-35c83954',title?'font-color-red':'']}}" bindtap="__e">{{title?title:"默认"}}</view><view data-event-opts="{{[['tap',[['set_where',[1]]]]]}}" class="item _div data-v-35c83954" bindtap="__e">价格<block wx:if="{{price===0}}"><image src="{{$VUE_APP_RESOURCES_URL+'/images/horn.png'}}" class="_img data-v-35c83954"></image></block><block wx:if="{{price===1}}"><image src="{{$VUE_APP_RESOURCES_URL+'/images/up.png'}}" class="_img data-v-35c83954"></image></block><block wx:if="{{price===2}}"><image src="{{$VUE_APP_RESOURCES_URL+'/images/down.png'}}" class="_img data-v-35c83954"></image></block></view><view data-event-opts="{{[['tap',[['set_where',[2]]]]]}}" class="item _div data-v-35c83954" bindtap="__e">销量<block wx:if="{{stock===0}}"><image src="{{$VUE_APP_RESOURCES_URL+'/images/horn.png'}}" class="_img data-v-35c83954"></image></block><block wx:if="{{stock===1}}"><image src="{{$VUE_APP_RESOURCES_URL+'/images/up.png'}}" class="_img data-v-35c83954"></image></block><block wx:if="{{stock===2}}"><image src="{{$VUE_APP_RESOURCES_URL+'/images/down.png'}}" class="_img data-v-35c83954"></image></block></view><view data-event-opts="{{[['tap',[['set_where',[3]]]]]}}" class="{{['item _div data-v-35c83954',nows?'font-color-red':'']}}" bindtap="__e">新品</view></view><view data-ref="container" class="{{['list acea-row row-between-wrapper _div data-v-35c83954 vue-ref',Switch===true?'':'on']}}"><block wx:for="{{productList}}" wx:for-item="item" wx:for-index="productListIndex" wx:key="productListIndex"><view class="{{['item _div data-v-35c83954',Switch===true?'':'on']}}" title="{{item.storeName}}" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e"><view class="{{['pictrue _div data-v-35c83954',Switch===true?'':'on']}}"><image class="{{['_img data-v-35c83954',Switch===true?'':'on']}}" src="{{item.image}}"></image></view><view class="{{['text _div data-v-35c83954',Switch===true?'':'on']}}"><view class="name line1 _div data-v-35c83954">{{item.storeName}}</view><view class="{{['money font-color-red _div data-v-35c83954',Switch===true?'':'on']}}">¥<label class="num _span data-v-35c83954">{{item.price}}</label></view><view class="{{['vip acea-row row-between-wrapper _div data-v-35c83954',Switch===true?'':'on']}}"><view class="vip-money _div data-v-35c83954">{{"¥"+item.otPrice}}</view><view class="_div data-v-35c83954">{{"已售"+item.sales+"件"}}</view></view></view></view></block></view><loading vue-id="f11737e2-1" loaded="{{loadend}}" loading="{{loading}}" class="data-v-35c83954" bind:__l="__l"></loading><block wx:if="{{productList.length===0&&where.page>1}}"><view class="noCommodity _div data-v-35c83954" style="background-color:#fff;"><view class="noPictrue _div data-v-35c83954"><image class="image _img data-v-35c83954" src="{{$VUE_APP_RESOURCES_URL+'/images/noGood.png'}}"></image></view></view></block><block wx:if="{{productList.length===0&&where.page>1}}"><recommend vue-id="f11737e2-2" class="data-v-35c83954" bind:__l="__l"></recommend></block></view>
|
||||
<view data-ref="container" class="productList _div data-v-35c83954 vue-ref"><form data-event-opts="{{[['submit',[['submitForm',['$event']]]]]}}" bindsubmit="__e" class="data-v-35c83954"><view class="search bg-color-red acea-row row-between-wrapper _div data-v-35c83954"><view class="input acea-row row-between-wrapper _div data-v-35c83954"><label class="iconfont icon-sousuo _span data-v-35c83954"></label><input placeholder="搜索商品信息" data-event-opts="{{[['input',[['__set_model',['$0','keyword','$event',[]],['where']]]]]}}" value="{{where.keyword}}" bindinput="__e" class="data-v-35c83954"/></view><view data-event-opts="{{[['tap',[['switchTap',['$event']]]]]}}" class="{{['iconfont _div data-v-35c83954',Switch===true?'icon-pailie':'icon-tupianpailie']}}" bindtap="__e"></view></view></form><view class="nav acea-row row-middle _div data-v-35c83954"><view data-event-opts="{{[['tap',[['set_where',[0]]]]]}}" class="{{['item _div data-v-35c83954',title?'font-color-red':'']}}" bindtap="__e">{{title?title:"默认"}}</view><view data-event-opts="{{[['tap',[['set_where',[1]]]]]}}" class="item _div data-v-35c83954" bindtap="__e">价格<block wx:if="{{price===0}}"><image src="{{$VUE_APP_RESOURCES_URL+'/images/horn.png'}}" class="_img data-v-35c83954"></image></block><block wx:if="{{price===1}}"><image src="{{$VUE_APP_RESOURCES_URL+'/images/up.png'}}" class="_img data-v-35c83954"></image></block><block wx:if="{{price===2}}"><image src="{{$VUE_APP_RESOURCES_URL+'/images/down.png'}}" class="_img data-v-35c83954"></image></block></view><view data-event-opts="{{[['tap',[['set_where',[2]]]]]}}" class="item _div data-v-35c83954" bindtap="__e">销量<block wx:if="{{stock===0}}"><image src="{{$VUE_APP_RESOURCES_URL+'/images/horn.png'}}" class="_img data-v-35c83954"></image></block><block wx:if="{{stock===1}}"><image src="{{$VUE_APP_RESOURCES_URL+'/images/up.png'}}" class="_img data-v-35c83954"></image></block><block wx:if="{{stock===2}}"><image src="{{$VUE_APP_RESOURCES_URL+'/images/down.png'}}" class="_img data-v-35c83954"></image></block></view><view data-event-opts="{{[['tap',[['set_where',[3]]]]]}}" class="{{['item _div data-v-35c83954',nows?'font-color-red':'']}}" bindtap="__e">新品</view></view><view data-ref="container" class="{{['list acea-row row-between-wrapper _div data-v-35c83954 vue-ref',Switch===true?'':'on']}}"><block wx:for="{{productList}}" wx:for-item="item" wx:for-index="productListIndex" wx:key="productListIndex"><view class="{{['item _div data-v-35c83954',Switch===true?'':'on']}}" title="{{item.storeName}}" data-event-opts="{{[['tap',[['goGoodsCon',['$0'],[[['productList','',productListIndex]]]]]]]}}" bindtap="__e"><view class="{{['pictrue _div data-v-35c83954',Switch===true?'':'on']}}"><image class="{{['_img data-v-35c83954',Switch===true?'':'on']}}" src="{{item.image}}"></image></view><view class="{{['text _div data-v-35c83954',Switch===true?'':'on']}}"><view class="name line1 _div data-v-35c83954">{{item.storeName}}</view><view class="{{['money font-color-red _div data-v-35c83954',Switch===true?'':'on']}}">¥<label class="num _span data-v-35c83954">{{item.price}}</label></view><view class="{{['vip acea-row row-between-wrapper _div data-v-35c83954',Switch===true?'':'on']}}"><view class="vip-money _div data-v-35c83954">{{"¥"+item.otPrice}}</view><view class="_div data-v-35c83954">{{"已售"+item.sales+"件"}}</view></view></view></view></block></view><loading vue-id="f11737e2-1" loaded="{{loadend}}" loading="{{loading}}" class="data-v-35c83954" bind:__l="__l"></loading><block wx:if="{{productList.length===0&&where.page>1}}"><view class="noCommodity _div data-v-35c83954" style="background-color:#fff;"><view class="noPictrue _div data-v-35c83954"><image class="image _img data-v-35c83954" src="{{$VUE_APP_RESOURCES_URL+'/images/noGood.png'}}"></image></view></view></block><block wx:if="{{productList.length===0&&where.page>1}}"><recommend vue-id="f11737e2-2" class="data-v-35c83954" bind:__l="__l"></recommend></block></view>
|
@ -81,25 +81,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.productId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
_vm.e1 = function($event) {
|
||||
return _vm.$yrouter.push({
|
||||
path: "/pages/shop/GoodsCon/index",
|
||||
query: {
|
||||
id: _vm.item.productId
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
@ -133,10 +114,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
|
||||
|
||||
|
||||
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
|
||||
|
||||
|
||||
|
||||
@ -375,6 +353,12 @@ var CHECKED_IDS = "cart_checked";var _default =
|
||||
|
||||
},
|
||||
methods: {
|
||||
goGoodsCon: function goGoodsCon(item) {
|
||||
this.$yrouter.push({
|
||||
path: "/pages/shop/GoodsCon/index",
|
||||
query: { id: item.productId } });
|
||||
|
||||
},
|
||||
getCartList: function getCartList() {var _this = this;
|
||||
var that = this;
|
||||
(0, _store.getCartList)().then(function (res) {
|
||||
@ -476,7 +460,7 @@ var CHECKED_IDS = "cart_checked";var _default =
|
||||
}
|
||||
console.log(id);
|
||||
this.$yrouter.push({
|
||||
path: "/pages/order/OrderSubmission/main",
|
||||
path: "/pages/order/OrderSubmission/index",
|
||||
query: { id: id.join(",") } });
|
||||
|
||||
},
|
||||
@ -529,7 +513,7 @@ var CHECKED_IDS = "cart_checked";var _default =
|
||||
_this2.getCartList();
|
||||
}).
|
||||
catch(function (error) {
|
||||
wx.showToast({
|
||||
uni.showToast({
|
||||
title: error.response.data.msg,
|
||||
icon: "none",
|
||||
duration: 2000 });
|
||||
@ -615,6 +599,7 @@ var CHECKED_IDS = "cart_checked";var _default =
|
||||
}
|
||||
that.countmoney = carmoney;
|
||||
} } };exports.default = _default;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -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