This commit is contained in:
Gao xiaosong
2020-03-16 01:40:52 +08:00
parent 397082cdaf
commit e215701560
216 changed files with 11659 additions and 13905 deletions
+3 -1
View File
@@ -109,5 +109,7 @@
}
]
},
"usingComponents": {}
"permission": {},
"usingComponents": {},
"sitemapLocation": "sitemap79.json"
}
+21 -11
View File
@@ -22,9 +22,9 @@ var _cookie = _interopRequireDefault(__webpack_require__(/*! @/utils/store/cooki
__webpack_require__(/*! @/assets/iconfont/iconfont.css */ 31);
__webpack_require__(/*! @/assets/css/base.css */ 32);
__webpack_require__(/*! @/assets/css/reset.css */ 33);
__webpack_require__(/*! @/assets/css/style.css */ 34);
__webpack_require__(/*! @/assets/css/base.less */ 32);
__webpack_require__(/*! @/assets/css/reset.less */ 33);
__webpack_require__(/*! @/assets/css/style.less */ 34);
var _utils = __webpack_require__(/*! @/utils */ 18);
@@ -86,19 +86,29 @@ Object.defineProperty(_vue.default.prototype, '$yroute', {
} });
Object.defineProperty(_vue.default.prototype, '$VUE_APP_RESOURCES_URL', {
get: function get() {
return _config.VUE_APP_RESOURCES_URL;
} });
_vue.default.prototype.$VUE_APP_RESOURCES_URL = _config.VUE_APP_RESOURCES_URL;
_vue.default.prototype.$VUE_APP_API_URL = _config.VUE_APP_API_URL;
Object.defineProperty(_vue.default.prototype, '$VUE_APP_API_URL', {
get: function get() {
return _config.VUE_APP_API_URL;
} });
// H5编译的代码
_vue.default.prototype.$deviceType = 'H5';
// 微信小程序编译的代码
_vue.default.prototype.$deviceType = 'Weixin';
if (wx) {
_vue.default.prototype.$deviceType = 'Weixin';
}
createApp(app).$mount();
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createApp"]))
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -189,7 +189,7 @@ var _user = __webpack_require__(/*! @/api/user */ 19); //
//
//
//
var _default = { name: "AddressWindow", props: { value: Boolean, checked: Number }, data: function data() {return { addressList: [], current: 0, cartId: 0, pinkId: 0, couponId: 0 };}, mounted: function mounted() {}, methods: { getAddressList: function getAddressList() {var that = this;(0, _user.getAddressList)().then(function (res) {that.addressList = res.data;});}, closeAddress: function closeAddress() {this.$emit("input", false);}, goAddressPages: function goAddressPages() {this.$yrouter.push({ path: "/pages/user/address/AddAddress/main" });this.$emit("redirect");}, tapAddress: function tapAddress(index) {this.$emit("checked", this.addressList[index]);this.$emit("input", false);} } };exports.default = _default;
var _default = { name: "AddressWindow", props: { value: Boolean, checked: Number }, data: function data() {return { addressList: [], current: 0, cartId: 0, pinkId: 0, couponId: 0 };}, mounted: function mounted() {}, methods: { getAddressList: function getAddressList() {var that = this;(0, _user.getAddressList)().then(function (res) {that.addressList = res.data;});}, closeAddress: function closeAddress() {this.$emit("input", false);}, goAddressPages: function goAddressPages() {this.$yrouter.push({ path: "/pages/user/address/AddAddress/index" });this.$emit("redirect");}, tapAddress: function tapAddress(index) {this.$emit("checked", this.addressList[index]);this.$emit("input", false);} } };exports.default = _default;
/***/ })
+4 -4
View File
@@ -147,25 +147,25 @@ var _vuex = __webpack_require__(/*! vuex */ 16);function _objectSpread(target) {
name: "首页",
icon1: "icon-shouye-xianxing",
icon2: "icon-shouye",
url: "/pages/home/main" },
url: "/pages/home/index" },
{
name: "分类",
icon1: "icon-yingyongchengxu-xianxing",
icon2: "icon-yingyongchengxu",
url: "/pages/shop/GoodsClass/main" },
url: "/pages/shop/GoodsClass/index" },
{
name: "购物车",
icon1: "icon-caigou-xianxing",
icon2: "icon-caigou",
url: "/pages/shop/ShoppingCart/main" },
url: "/pages/shop/ShoppingCart/index" },
{
name: "我的",
icon1: "icon-yonghu-xianxing",
icon2: "icon-yonghu",
url: "/pages/user/User/main" }],
url: "/pages/user/User/index" }],
isIpx: false };
+5 -19
View File
@@ -81,16 +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.id
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -150,14 +140,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
//
//
//
//
//
//
//
//
//
//
//
var _default2 =
{
name: "GoodList",
@@ -173,7 +155,11 @@ var _default2 =
data: function data() {
return {};
} };exports.default = _default2;
},
methods: {
routerGo: function routerGo(item) {
this.$yrouter.push({ path: '/pages/shop/GoodsCon/index', query: { id: item.id } });
} } };exports.default = _default2;
/***/ })
+1 -1
View File
@@ -1 +1 @@
<view class="goodList _div"><block wx:for="{{goodList}}" wx:for-item="item" wx:for-index="goodlistIndex" wx:key="goodlistIndex"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="item acea-row row-between-wrapper _div" bindtap="__e"><view class="pictrue _div"><image class="image _img" src="{{item.image}}"></image><block wx:if="{{isSort===true&&index===0}}"><image class="numPic _img" src="{{$VUE_APP_RESOURCES_URL+'/images/one.png'}}"></image></block><block wx:if="{{isSort===true&&index===1}}"><image class="numPic _img" src="{{$VUE_APP_RESOURCES_URL+'/images/two.png'}}"></image></block><block wx:if="{{isSort===true&&index===2}}"><image class="numPic _img" src="{{$VUE_APP_RESOURCES_URL+'/images/three.png'}}"></image></block></view><view class="underline _div"><view class="text _div"><view class="line1 _div">{{item.storeName}}</view><view class="money font-color-red _div">¥<label class="num _span">{{item.price}}</label></view><view class="vip-money acea-row row-middle _div"><view class="vip _div">{{'¥'+(item.otPrice||0)+''}}</view><label class="num _span">{{"已售"+item.sales+item.unitName}}</label></view></view></view><view class="iconfont icon-gouwuche cart-color acea-row row-center-wrapper _div"></view></view></block></view>
<view class="goodList _div"><block wx:for="{{goodList}}" wx:for-item="item" wx:for-index="goodlistIndex" wx:key="goodlistIndex"><view data-event-opts="{{[['tap',[['routerGo',['$0'],[[['goodList','',goodlistIndex]]]]]]]}}" class="item acea-row row-between-wrapper _div" bindtap="__e"><view class="pictrue _div"><image class="image _img" src="{{item.image}}"></image><block wx:if="{{isSort===true&&index===0}}"><image class="numPic _img" src="{{$VUE_APP_RESOURCES_URL+'/images/one.png'}}"></image></block><block wx:if="{{isSort===true&&index===1}}"><image class="numPic _img" src="{{$VUE_APP_RESOURCES_URL+'/images/two.png'}}"></image></block><block wx:if="{{isSort===true&&index===2}}"><image class="numPic _img" src="{{$VUE_APP_RESOURCES_URL+'/images/three.png'}}"></image></block></view><view class="underline _div"><view class="text _div"><view class="line1 _div">{{item.storeName}}</view><view class="money font-color-red _div">¥<label class="num _span">{{item.price}}</label></view><view class="vip-money acea-row row-middle _div"><view class="vip _div">{{"¥"+(item.otPrice||0)}}</view><label class="num _span">{{"已售"+item.sales+item.unitName}}</label></view></view></view><view class="iconfont icon-gouwuche cart-color acea-row row-center-wrapper _div"></view></view></block></view>
+4 -11
View File
@@ -81,16 +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/GoodsEvaluate/index",
query: {
id: _vm.cart.unique
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -166,7 +156,10 @@ var _default2 =
return {};
},
mounted: function mounted() {},
methods: {} };exports.default = _default2;
methods: {
routerGo: function routerGo(item) {
this.$yrouter.push({ path: '/pages/shop/GoodsEvaluate/index', query: { id: cart.unique } });
} } };exports.default = _default2;
/***/ })
+1 -1
View File
@@ -1 +1 @@
<view class="orderGoods _div"><view class="total _div">{{"共"+cartInfo.length+"件商品"}}</view><view class="goodWrapper _div"><block wx:for="{{cartInfo}}" wx:for-item="cart" wx:for-index="__i0__" wx:key="id"><view class="item acea-row row-between-wrapper _div"><view class="pictrue _div"><image class="image _img" src="{{cart.productInfo.image}}"></image></view><view class="text _div"><view class="acea-row row-between-wrapper _div"><view class="name line1 _div">{{cart.productInfo.storeName}}</view><view class="num _div">{{"x "+cart.cartNum}}</view></view><block wx:if="{{cart.productInfo.attrInfo}}"><view class="attr line1 _div">{{cart.productInfo.attrInfo.suk}}</view></block><view class="money font-color-red _div">{{"¥"+cart.truePrice}}</view><block wx:if="{{evaluate==3}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="evaluate _div" bindtap="__e">评价</view></block></view></view></block></view></view>
<view class="orderGoods _div"><view class="total _div">{{"共"+cartInfo.length+"件商品"}}</view><view class="goodWrapper _div"><block wx:for="{{cartInfo}}" wx:for-item="cart" wx:for-index="__i0__" wx:key="id"><view class="item acea-row row-between-wrapper _div"><view class="pictrue _div"><image class="image _img" src="{{cart.productInfo.image}}"></image></view><view class="text _div"><view class="acea-row row-between-wrapper _div"><view class="name line1 _div">{{cart.productInfo.storeName}}</view><view class="num _div">{{"x "+cart.cartNum}}</view></view><block wx:if="{{cart.productInfo.attrInfo}}"><view class="attr line1 _div">{{cart.productInfo.attrInfo.suk}}</view></block><view class="money font-color-red _div">{{"¥"+cart.truePrice}}</view><block wx:if="{{evaluate==3}}"><view data-event-opts="{{[['tap',[['routerGo',['$0'],[[['cartInfo','id',cart.id]]]]]]]}}" class="evaluate _div" bindtap="__e">评价</view></block></view></view></block></view></view>
+12 -26
View File
@@ -81,16 +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.id
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -144,25 +134,21 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
//
//
//
//
//
//
//
//
//
//
var _default2 =
var _default =
{
name: "PromotionGood",
props: {
benefit: {
type: Array,
default: function _default() {return [];} } },
name: 'PromotionGood',
props: ['benefit'],
data: function data() {
return {};
} };exports.default = _default2;
},
methods: {
routerGo: function routerGo(item) {
this.$yrouter.push({ path: '/pages/shop/GoodsCon/index', query: { id: item.id } });
} },
mounted: function mounted() {
console.log(this, 999);
} };exports.default = _default;
/***/ })
+1 -1
View File
@@ -1 +1 @@
<block wx:if="{{benefit.length>0}}"><view class="promotionGood _div"><block wx:for="{{benefit}}" wx:for-item="item" wx:for-index="promotionGoodIndex" wx:key="promotionGoodIndex"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="item acea-row row-between-wrapper _div" bindtap="__e"><view class="pictrue _div"><image class="image _img" src="{{item.image}}"></image></view><view class="text _div"><view class="name line1 _div">{{item.storeName}}</view><view class="sp-money acea-row _div"><view class="moneyCon _div">促销价: ¥<label class="num _span">{{item.price}}</label></view></view><view class="acea-row row-between-wrapper _div"><view class="money _div">{{"日常价:¥"+item.otPrice}}</view><view class="_div">{{"仅剩:"+item.stock+item.unitName}}</view></view></view></view></block></view></block>
<block wx:if="{{benefit.length>0}}"><view class="promotionGood _div"><block wx:for="{{benefit}}" wx:for-item="item" wx:for-index="promotionGoodIndex" wx:key="promotionGoodIndex"><view data-event-opts="{{[['tap',[['routerGo',['$0'],[[['benefit','',promotionGoodIndex]]]]]]]}}" class="item acea-row row-between-wrapper _div" bindtap="__e"><view class="pictrue _div"><image class="image _img" src="{{item.image}}"></image></view><view class="text _div"><view class="name line1 _div">{{item.storeName}}</view><view class="sp-money acea-row _div"><view class="moneyCon _div">促销价: ¥<label class="num _span">{{item.price}}</label></view></view><view class="acea-row row-between-wrapper _div"><view class="money _div">{{"日常价:¥"+item.otPrice}}</view><view class="_div">{{"仅剩:"+item.stock+item.unitName}}</view></view></view></view></block></view></block>
+7 -16
View File
@@ -81,16 +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.id
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -147,8 +137,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@@ -177,11 +165,14 @@ var _store = __webpack_require__(/*! @/api/store */ 97); //
//
//
//
//
//
var Loading = function Loading() {return __webpack_require__.e(/*! import() | components/Loading */ "components/Loading").then(__webpack_require__.bind(null, /*! @/components/Loading */ 494));};var _default = { name: "Recommend", props: {}, components: { Loading: Loading }, data: function data() {return { hostProduct: [], page: 1, limit: 20, loadTitle: "", loading: false, loadend: false };}, mounted: function mounted() {this.hostProducts();}, methods: { hostProducts: function hostProducts() {var that = this;if (that.loading) return; //阻止下次请求(false可以进行请求);
var Loading = function Loading() {return __webpack_require__.e(/*! import() | components/Loading */ "components/Loading").then(__webpack_require__.bind(null, /*! @/components/Loading */ 494));};var _default = { name: 'Recommend', props: {}, components: { Loading: Loading }, data: function data() {return { hostProduct: [], page: 1, limit: 20, loadTitle: '', loading: false, loadend: false };}, mounted: function mounted() {this.hostProducts();}, methods: { routerGo: function routerGo(item) {this.$yrouter.push({ path: '/pages/shop/GoodsCon/index', query: { id: item.id } });}, hostProducts: function hostProducts() {
var that = this;
if (that.loading) return; //阻止下次请求(false可以进行请求);
if (that.loadend) return; //阻止结束当前请求(false可以进行请求);
that.loading = true;(0, _store.getHostProducts)(that.page, that.limit).then(function (res) {that.loading = false; //apply();js将一个数组插入另一个数组;
that.loading = true;
(0, _store.getHostProducts)(that.page, that.limit).then(function (res) {
that.loading = false;
//apply();js将一个数组插入另一个数组;
that.hostProduct.push.apply(that.hostProduct, res.data);
that.loadend = res.data.length < that.limit; //判断所有数据是否加载完成;
that.page = that.page + 1;
+1 -1
View File
@@ -1 +1 @@
<view data-ref="container" class="recommend _div vue-ref"><view class="title acea-row row-center-wrapper _div"><label class="iconfont icon-zhuangshixian _span"></label><label class="name _span">为你推荐</label><label class="iconfont icon-zhuangshixian lefticon _span"></label></view><view class="recommendList acea-row row-between-wrapper _div"><block wx:for="{{hostProduct}}" wx:for-item="item" wx:for-index="recommendIndex" wx:key="recommendIndex"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="pictrue _div"><image class="image _img" src="{{item.image}}"></image></view><view class="name line1 _div">{{item.storeName}}</view><view class="money font-color-red _div">¥<label class="num _span">{{item.price}}</label></view></view></block></view><loading vue-id="b67b5196-1" loaded="{{loadend}}" loading="{{loading}}" bind:__l="__l"></loading></view>
<view data-ref="container" class="recommend _div vue-ref"><view class="title acea-row row-center-wrapper _div"><label class="iconfont icon-zhuangshixian _span"></label><label class="name _span">为你推荐</label><label class="iconfont icon-zhuangshixian lefticon _span"></label></view><view class="recommendList acea-row row-between-wrapper _div"><block wx:for="{{hostProduct}}" wx:for-item="item" wx:for-index="recommendIndex" wx:key="recommendIndex"><view data-event-opts="{{[['tap',[['routerGo',['$0'],[[['hostProduct','',recommendIndex]]]]]]]}}" class="item _div" bindtap="__e"><view class="pictrue _div"><image class="image _img" src="{{item.image}}"></image></view><view class="name line1 _div">{{item.storeName}}</view><view class="money font-color-red _div">¥<label class="num _span">{{item.price}}</label></view></view></block></view><loading vue-id="b67b5196-1" loaded="{{loadend}}" loading="{{loading}}" bind:__l="__l"></loading></view>
+3 -2
View File
@@ -116,7 +116,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;
@@ -307,7 +307,8 @@ var _dayjs = _interopRequireDefault(__webpack_require__(/*! dayjs */ 24));functi
//
//
var _default = { name: "SwitchWindow", props: { switchActive: { type: Boolean, default: false }, login_type: { type: String, default: "" } }, data: function data() {return {};}, mounted: function mounted() {}, methods: { switchClose: function switchClose() {this.$emit("changeswitch", false); //$emit():注册事件;
}, switchH5: function switchH5() {var _this = this;var that = this;wx.showLoading({ title: '正在切换中' });if (that.login_type === "h5") {_cookie.default.set("loginType", "wechat", 60);wx.hideLoading();this.$store.commit("LOGOUT");this.$emit("changeswitch", false);location.reload();} else {(0, _user.switchH5Login)().then(function (_ref) {var data = _ref.data;wx.hideLoading();var expires_time = (0, _dayjs.default)(data.expires_time);_store.default.commit("LOGIN", data.token, expires_time);_this.$emit("changeswitch", false);location.reload();}).catch(function (err) {wx.hideLoading();return that.$dialog.toast({ mes: err });});}} } };exports.default = _default;
}, switchH5: function switchH5() {var _this = this;var that = this;uni.showLoading({ title: '正在切换中' });if (that.login_type === "h5") {_cookie.default.set("loginType", "wechat", 60);uni.hideLoading();this.$store.commit("LOGOUT");this.$emit("changeswitch", false);location.reload();} else {(0, _user.switchH5Login)().then(function (_ref) {var data = _ref.data;uni.hideLoading();var expires_time = (0, _dayjs.default)(data.expires_time);_store.default.commit("LOGIN", data.token, expires_time);_this.$emit("changeswitch", false);location.reload();}).catch(function (err) {uni.hideLoading();return that.$dialog.toast({ mes: err });});}} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
+7 -7
View File
@@ -163,7 +163,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
data: function data() {
return {};
},
mounted: function mounted() {
mounted: function mounted() {var _this = this;
var url = (0, _utils.handleQrCode)();
// 判断是否是分销
if (url) {
@@ -175,12 +175,12 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
_cookie.default.set('spread', urlSpread || 0);
}
}
this.toLaunch();
// login({
// fail: () => {
// this.toLaunch();
// }
// });
// this.toLaunch();
(0, _utils.login)({
fail: function fail() {
_this.toLaunch();
} });
},
methods: _objectSpread({},
(0, _vuex.mapActions)(['changeAuthorization', 'changeUserInfo']), {
+5 -8
View File
@@ -100,13 +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.replace({
path: "/"
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -159,7 +152,11 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
//
var _default =
{
name: "NotDefined" };exports.default = _default;
name: "NotDefined",
methods: {
homeGo: function homeGo() {
this.$yrouter.switchTab('/pages/home/index');
} } };exports.default = _default;
/***/ }),
+1 -1
View File
@@ -1 +1 @@
<view class="not-defined _div data-v-0eb3294f"><image src="{{$VUE_APP_RESOURCES_URL+'/images/404.png'}}" class="_img data-v-0eb3294f"></image><view class="content _div data-v-0eb3294f"><view class="title _h3 data-v-0eb3294f">页面未找到</view><label class="_span data-v-0eb3294f">抱歉!您访问的页面不存在,请返回上一级或点击下方按钮返回首页...</label></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="btn _div data-v-0eb3294f" bindtap="__e">返回首页</view></view>
<view class="not-defined _div data-v-0eb3294f"><image src="{{$VUE_APP_RESOURCES_URL+'/images/404.png'}}" class="_img data-v-0eb3294f"></image><view class="content _div data-v-0eb3294f"><view class="title _h3 data-v-0eb3294f">页面未找到</view><label class="_span data-v-0eb3294f">抱歉!您访问的页面不存在,请返回上一级或点击下方按钮返回首页...</label></view><view data-event-opts="{{[['tap',[['homeGo']]]]}}" class="btn _div data-v-0eb3294f" bindtap="__e">返回首页</view></view>
@@ -131,7 +131,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;
@@ -208,13 +208,13 @@ var _activity = __webpack_require__(/*! @/api/activity */ 443);var CountDown = f
methods: {
goDetail: function goDetail(id) {
this.$yrouter.push({
path: "/pages/activity/DargainDetails/main",
path: "/pages/activity/DargainDetails/index",
query: { id: id, partake: 0 } });
},
goList: function goList() {
this.$yrouter.push({
path: "/pages/activity/GoodsBargain/main" });
path: "/pages/activity/GoodsBargain/index" });
},
getBargainUserList: function getBargainUserList() {
@@ -229,7 +229,7 @@ var _activity = __webpack_require__(/*! @/api/activity */ 443);var CountDown = f
that.loadingList = false;
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -240,7 +240,7 @@ var _activity = __webpack_require__(/*! @/api/activity */ 443);var CountDown = f
var that = this;
(0, _activity.getBargainUserCancel)({ bargainId: bargainId }).
then(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "success",
duration: 2000 });
@@ -252,13 +252,14 @@ var _activity = __webpack_require__(/*! @/api/activity */ 443);var CountDown = f
that.getBargainUserList();
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })
@@ -133,7 +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;
@@ -383,7 +383,7 @@ var NAME = "DargainDetails";var _default =
{
that.bargainPartake = that.userInfo.uid;
// that.$yrouter.push({
// path: "/pages/activity/DargainDetails/main",
// path: "/pages/activity/DargainDetails/index",
// query: { id: that.bargainId, partake: that.bargainPartake }
// });
} else {
@@ -409,7 +409,7 @@ var NAME = "DargainDetails";var _default =
(0, _store.postCartAdd)(data).
then(function (res) {
that.$yrouter.push({
path: "/pages/order/OrderSubmission/main",
path: "/pages/order/OrderSubmission/index",
query: { id: res.data.cartId } });
}).
@@ -421,13 +421,13 @@ var NAME = "DargainDetails";var _default =
var that = this;
that.getBargainShare(that.bargainId);
this.$yrouter.push({
path: "/pages/activity/Poster/main",
path: "/pages/activity/Poster/index",
query: { id: that.bargainId, type: 2 } });
},
goList: function goList() {
this.$yrouter.push({
path: "/pages/activity/GoodsBargain/main" });
path: "/pages/activity/GoodsBargain/index" });
},
//砍价分享
@@ -452,7 +452,7 @@ var NAME = "DargainDetails";var _default =
that.getBargainHelpCount();
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -468,7 +468,7 @@ var NAME = "DargainDetails";var _default =
that.getBargainHelp();
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -482,7 +482,7 @@ var NAME = "DargainDetails";var _default =
that.surplusPrice === 0 &&
that.bargainPartake !== that.userInfo.uid)
{
return wx.showToast({
return uni.showToast({
title: "好友已经砍价成功",
icon: "success",
duration: 2000 });
@@ -507,7 +507,7 @@ var NAME = "DargainDetails";var _default =
that.getBargainHelpPrice();
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -534,7 +534,7 @@ var NAME = "DargainDetails";var _default =
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -560,7 +560,7 @@ var NAME = "DargainDetails";var _default =
that.bargainHelpList.push.apply(that.bargainHelpList, res.data);
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -576,7 +576,7 @@ var NAME = "DargainDetails";var _default =
then(function () {}).
catch(function () {
// that.$yrouter.push({
// path: "/pages/activity/DargainDetails/main",
// path: "/pages/activity/DargainDetails/index",
// query: { id: that.bargainId, partake: that.userInfo.uid }
// });
});
@@ -598,7 +598,7 @@ var NAME = "DargainDetails";var _default =
catch(function () {
that.bargainPartake = that.userInfo.uid;
// that.$yrouter.push({
// path: "/pages/activity/DargainDetails/main",
// path: "/pages/activity/DargainDetails/index",
// query: { id: that.bargainId, partake: that.userInfo.uid }
// });
});
@@ -614,7 +614,7 @@ var NAME = "DargainDetails";var _default =
that.getBargainHelpList();
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -627,11 +627,12 @@ var NAME = "DargainDetails";var _default =
onShareAppMessage: function onShareAppMessage() {
return {
path: "/pages/activity/DargainDetails/main/?id=".concat(
path: "/pages/activity/DargainDetails/index/?id=".concat(
this.$yroute.query.id, "&partake=").concat(
this.userInfo.uid) };
} };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
@@ -213,7 +213,7 @@ var _default = { name: "GoodsBargain", components: {}, props: {}, data: function
loading: false, //当前接口是否请求完成 false 完成 true 未完成
page: 1, //页码
limit: 20 //数量
};}, mounted: function mounted() {this.getBargainList();}, methods: { getBargainList: function getBargainList() {var that = this;if (that.loading) return;if (that.status) return;that.loading = true;(0, _activity.getBargainList)({ page: that.page, limit: that.limit }).then(function (res) {that.status = res.data.length < that.limit;that.bargainLis.push.apply(that.bargainLis, res.data);that.page++;that.loading = false;});}, goDetail: function goDetail(id) {this.$yrouter.push({ path: "/pages/activity/DargainDetails/main", query: { id: id, partake: 0 } });} } };exports.default = _default;
};}, mounted: function mounted() {this.getBargainList();}, methods: { getBargainList: function getBargainList() {var that = this;if (that.loading) return;if (that.status) return;that.loading = true;(0, _activity.getBargainList)({ page: that.page, limit: that.limit }).then(function (res) {that.status = res.data.length < that.limit;that.bargainLis.push.apply(that.bargainLis, res.data);that.page++;that.loading = false;});}, goDetail: function goDetail(id) {this.$yrouter.push({ path: "/pages/activity/DargainDetails/index", query: { id: id, partake: 0 } });} } };exports.default = _default;
/***/ })
@@ -227,7 +227,7 @@ var Loading = function Loading() {return __webpack_require__.e(/*! import() | co
page: 1, //页码
limit: 20, //数量
loadingList: false };}, mounted: function mounted() {// document.querySelector('body').setAttribute('style', 'background-color:#73CBB6');
this.getCombinationList();}, onReachBottom: function onReachBottom() {!this.loadingList && this.getCombinationList();}, methods: { getCombinationList: function getCombinationList() {var that = this;if (that.loading) return;if (that.status) return;(0, _activity.getCombinationList)({ page: that.page, limit: that.limit }).then(function (res) {that.status = res.data.length < that.limit;that.combinationList.push.apply(that.combinationList, res.data);that.page++;that.loading = false;});}, link: function link(id) {this.$yrouter.push({ path: "/pages/activity/GroupDetails/main", query: { id: id } });} } };exports.default = _default;
this.getCombinationList();}, onReachBottom: function onReachBottom() {!this.loadingList && this.getCombinationList();}, methods: { getCombinationList: function getCombinationList() {var that = this;if (that.loading) return;if (that.status) return;(0, _activity.getCombinationList)({ page: that.page, limit: that.limit }).then(function (res) {that.status = res.data.length < that.limit;that.combinationList.push.apply(that.combinationList, res.data);that.page++;that.loading = false;});}, link: function link(id) {this.$yrouter.push({ path: "/pages/activity/GroupDetails/index", query: { id: id } });} } };exports.default = _default;
/***/ })
@@ -133,7 +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;
@@ -301,7 +301,7 @@ var CountDown = function CountDown() {return __webpack_require__.e(/*! import()
loadingList: false, //当前接口是否请求完成 false 完成 true 未完成
page: 1, //页码
limit: 5, //数量
title: [] };}, mounted: function mounted() {this.mountedStart();}, onReachBottom: function onReachBottom() {!this.loadingList && this.getSeckillList();}, methods: { mountedStart: function mountedStart() {var that = this;wx.showLoading();(0, _activity.getSeckillConfig)().then(function (res) {that.$set(that, "headerImg", res.data.lovely);that.$set(that, "timeList", res.data.seckillTime);that.$set(that, "active", res.data.seckillTimeIndex);var title = [];title = res.data.seckillTime.map(function (item, index) {return { name: "div", attrs: { class: "timeItem" }, children: [{ name: "div", attrs: { class: "time" }, children: [{ type: "text", text: item.time }] }, { name: "div", attrs: { class: "state" }, children: [{ type: "text", text: item.state }] }] };});that.$set(that, "title", title);that.datatime = that.timeList[that.active].stop;that.getSeckillList();that.$nextTick(function () {that.sticky = true;wx.hideLoading();});});}, setTime: function setTime(event) {var that = this;
title: [] };}, mounted: function mounted() {this.mountedStart();}, onReachBottom: function onReachBottom() {!this.loadingList && this.getSeckillList();}, methods: { mountedStart: function mountedStart() {var that = this;uni.showLoading();(0, _activity.getSeckillConfig)().then(function (res) {that.$set(that, "headerImg", res.data.lovely);that.$set(that, "timeList", res.data.seckillTime);that.$set(that, "active", res.data.seckillTimeIndex);var title = [];title = res.data.seckillTime.map(function (item, index) {return { name: "div", attrs: { class: "timeItem" }, children: [{ name: "div", attrs: { class: "time" }, children: [{ type: "text", text: item.time }] }, { name: "div", attrs: { class: "state" }, children: [{ type: "text", text: item.state }] }] };});that.$set(that, "title", title);that.datatime = that.timeList[that.active].stop;that.getSeckillList();that.$nextTick(function () {that.sticky = true;uni.hideLoading();});});}, setTime: function setTime(event) {var that = this;
that.active = event.mp.detail.index;
that.datatime = that.timeList[that.active].stop;
that.getSeckillList();
@@ -315,17 +315,18 @@ var CountDown = function CountDown() {return __webpack_require__.e(/*! import()
that.status = res.data.length < that.limit;
that.seckillList.push.apply(that.seckillList, res.data);
that.page++;
wx.hideLoading();
uni.hideLoading();
});
},
goDetail: function goDetail(id) {
var that = this;
var time = that.timeList[that.active].stop;
this.$yrouter.push({
path: "/pages/activity/SeckillDetails/main",
path: "/pages/activity/SeckillDetails/index",
query: { id: id, time: time } });
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
@@ -393,14 +393,14 @@ var NAME = "GroupDetails";var _default =
groupRule: function groupRule(id) {
var that = this;
that.$yrouter.push({
path: "/pages/activity/GroupRule/main",
path: "/pages/activity/GroupRule/index",
query: { id: id } });
},
goReply: function goReply() {
var that = this;
that.$yrouter.push({
path: "/pages/shop/EvaluateList/main",
path: "/pages/shop/EvaluateList/index",
query: { id: that.storeInfo.product_id } });
},
@@ -448,7 +448,7 @@ var NAME = "GroupDetails";var _default =
(0, _store.postCartAdd)(data).
then(function (res) {
that.$yrouter.push({
path: "/pages/order/OrderSubmission/main",
path: "/pages/order/OrderSubmission/index",
query: { id: res.data.cartId } });
}).
@@ -131,7 +131,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;
@@ -281,7 +281,7 @@ var NAME = "GroupRule";var _default =
(0, _store.postCartAdd)(data).
then(function (res) {
that.$yrouter.push({
path: "/pages/order/OrderSubmission/main",
path: "/pages/order/OrderSubmission/index",
query: { id: res.data.cartId, pinkid: that.pinkId } });
}).
@@ -292,27 +292,27 @@ var NAME = "GroupRule";var _default =
goPoster: function goPoster() {
var that = this;
this.$yrouter.push({
path: "/pages/activity/Poster/main",
path: "/pages/activity/Poster/index",
query: { id: that.pinkId, type: 1 } });
},
goOrder: function goOrder() {
var that = this;
this.$yrouter.push({
path: "/pages/order/OrderDetails/main",
path: "/pages/order/OrderDetails/index",
query: { id: that.currentPinkOrder } });
},
//拼团列表
goList: function goList() {
this.$yrouter.push({
path: "/pages/activity/GoodsGroup/main" });
path: "/pages/activity/GoodsGroup/index" });
},
//拼团详情
goDetail: function goDetail(id) {
this.$yrouter.push({
path: "/pages/activity/GroupDetails/main",
path: "/pages/activity/GroupDetails/index",
query: { id: id } });
},
@@ -335,14 +335,14 @@ var NAME = "GroupRule";var _default =
var that = this;
(0, _activity.getCombinationRemove)({ id: that.pinkId, cid: that.storeCombination.id }).
then(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -352,6 +352,7 @@ var NAME = "GroupRule";var _default =
lookAll: function lookAll() {
this.iShidden = !this.iShidden;
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })
@@ -133,7 +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;
@@ -183,7 +183,7 @@ var _default = { name: "Poster", components: {}, props: {}, data: function data(
that.status = false;
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -199,13 +199,14 @@ var _default = { name: "Poster", components: {}, props: {}, data: function data(
that.status = false;
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
@@ -102,13 +102,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/user/CustomerList/index"
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -267,6 +260,9 @@ var NAME = "SeckillDetails";var _default =
this.mountedStart();
},
methods: {
routerGo: function routerGo(item) {
this.$yrouter.push({ path: '/pages/user/CustomerList/index' });
},
mountedStart: function mountedStart() {
var that = this;
var id = that.$yroute.query.id;
@@ -351,7 +347,7 @@ var NAME = "SeckillDetails";var _default =
then(function (res) {
console.log(res);
that.$yrouter.push({
path: "/pages/order/OrderSubmission/main",
path: "/pages/order/OrderSubmission/index",
query: { id: res.data.cartId } });
}).
@@ -1 +1 @@
<view hidden="{{!(domStatus)}}" class="{{['_div data-v-69b60570',posterImageStatus?'noscroll product-con':'product-con']}}"><product-con-swiper vue-id="4a3c0059-1" imgUrls="{{imgUrls}}" class="data-v-69b60570" bind:__l="__l"></product-con-swiper><view class="nav acea-row row-between-wrapper _div data-v-69b60570"><view class="money _div data-v-69b60570">¥<label class="num _span data-v-69b60570">{{storeInfo.price}}</label><label class="y-money _span data-v-69b60570">{{'¥'+storeInfo.price}}</label></view><view class="acea-row row-middle _div data-v-69b60570"><view class="times _div data-v-69b60570"><view class="_div data-v-69b60570">距秒杀结束仅剩</view><count-down vue-id="4a3c0059-2" is-day="{{false}}" tip-text day-text hour-text=" : " minute-text=" : " second-text datatime="{{datatime}}" class="data-v-69b60570" bind:__l="__l"></count-down></view><view class="iconfont icon-jiantou _div data-v-69b60570"></view></view></view><view class="wrapperRush _div data-v-69b60570"><view class="introduce acea-row row-between _div data-v-69b60570"><view class="infor _div data-v-69b60570">{{storeInfo.title}}</view><view data-event-opts="{{[['tap',[['setPosterImageStatus',['$event']]]]]}}" class="iconfont icon-fenxiang _div data-v-69b60570" bindtap="__e"></view></view><view class="label acea-row row-middle _div data-v-69b60570"><view class="stock _div data-v-69b60570">{{'库存:'+storeInfo.stock+'件'}}</view><view class="_div data-v-69b60570">{{'销量:'+storeInfo.sales+'件'}}</view></view></view><view class="product-intro _div data-v-69b60570"><view class="title _div data-v-69b60570">产品介绍</view><view class="conter _div data-v-69b60570"><rich-text nodes="{{storeInfo.description}}"></rich-text></view></view><view style="height:100rpx;" class="_div data-v-69b60570"></view><view class="footerRush acea-row row-between-wrapper _div data-v-69b60570"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="customerSer acea-row row-center-wrapper row-column _div data-v-69b60570" bindtap="__e"><view class="iconfont icon-kefu _div data-v-69b60570"></view><view class="_div data-v-69b60570">客服</view></view><view data-event-opts="{{[['tap',[['tapBuy',['$event']]]]]}}" class="bnt bg-color-red _div data-v-69b60570" bindtap="__e">立即购买</view></view><product-window vue-id="4a3c0059-3" attr="{{attr}}" cartNum="{{cartNum}}" data-event-opts="{{[['^changeFun',[['changeFun']]]]}}" bind:changeFun="__e" class="data-v-69b60570" bind:__l="__l"></product-window><store-poster vue-id="4a3c0059-4" posterImageStatus="{{posterImageStatus}}" posterData="{{posterData}}" data-event-opts="{{[['^setPosterImageStatus',[['setPosterImageStatus']]]]}}" bind:setPosterImageStatus="__e" class="data-v-69b60570" bind:__l="__l"></store-poster></view>
<view hidden="{{!(domStatus)}}" class="{{['_div data-v-69b60570',posterImageStatus?'noscroll product-con':'product-con']}}"><product-con-swiper vue-id="4a3c0059-1" imgUrls="{{imgUrls}}" class="data-v-69b60570" bind:__l="__l"></product-con-swiper><view class="nav acea-row row-between-wrapper _div data-v-69b60570"><view class="money _div data-v-69b60570">¥<label class="num _span data-v-69b60570">{{storeInfo.price}}</label><label class="y-money _span data-v-69b60570">{{'¥'+storeInfo.price}}</label></view><view class="acea-row row-middle _div data-v-69b60570"><view class="times _div data-v-69b60570"><view class="_div data-v-69b60570">距秒杀结束仅剩</view><count-down vue-id="4a3c0059-2" is-day="{{false}}" tip-text day-text hour-text=" : " minute-text=" : " second-text datatime="{{datatime}}" class="data-v-69b60570" bind:__l="__l"></count-down></view><view class="iconfont icon-jiantou _div data-v-69b60570"></view></view></view><view class="wrapperRush _div data-v-69b60570"><view class="introduce acea-row row-between _div data-v-69b60570"><view class="infor _div data-v-69b60570">{{storeInfo.title}}</view><view data-event-opts="{{[['tap',[['setPosterImageStatus',['$event']]]]]}}" class="iconfont icon-fenxiang _div data-v-69b60570" bindtap="__e"></view></view><view class="label acea-row row-middle _div data-v-69b60570"><view class="stock _div data-v-69b60570">{{'库存:'+storeInfo.stock+'件'}}</view><view class="_div data-v-69b60570">{{'销量:'+storeInfo.sales+'件'}}</view></view></view><view class="product-intro _div data-v-69b60570"><view class="title _div data-v-69b60570">产品介绍</view><view class="conter _div data-v-69b60570"><rich-text nodes="{{storeInfo.description}}"></rich-text></view></view><view style="height:100rpx;" class="_div data-v-69b60570"></view><view class="footerRush acea-row row-between-wrapper _div data-v-69b60570"><view data-event-opts="{{[['tap',[['routerGo']]]]}}" class="customerSer acea-row row-center-wrapper row-column _div data-v-69b60570" bindtap="__e"><view class="iconfont icon-kefu _div data-v-69b60570"></view><view class="_div data-v-69b60570">客服</view></view><view data-event-opts="{{[['tap',[['tapBuy',['$event']]]]]}}" class="bnt bg-color-red _div data-v-69b60570" bindtap="__e">立即购买</view></view><product-window vue-id="4a3c0059-3" attr="{{attr}}" cartNum="{{cartNum}}" data-event-opts="{{[['^changeFun',[['changeFun']]]]}}" bind:changeFun="__e" class="data-v-69b60570" bind:__l="__l"></product-window><store-poster vue-id="4a3c0059-4" posterImageStatus="{{posterImageStatus}}" posterData="{{posterData}}" data-event-opts="{{[['^setPosterImageStatus',[['setPosterImageStatus']]]]}}" bind:setPosterImageStatus="__e" class="data-v-69b60570" bind:__l="__l"></store-poster></view>
+5 -4
View File
@@ -133,7 +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;
@@ -181,18 +181,18 @@ var _utils = __webpack_require__(/*! @/utils */ 18);var _data$computed$onShow;fu
// });
// } else {
// this.$yrouter.replace({
// path: "/pages/launch/main",
// path: "/pages/launch/index",
// query: { type: 0 }
// });
// }
this.CHANGE_TABTAR(0);
this.$yrouter.replace({
path: "/pages/launch/main",
path: "/pages/home/index",
query: { type: 0 } });
},
getUserInfo: function getUserInfo(data) {
wx.showLoading({
uni.showLoading({
title: "登录中" });
(0, _utils.login)();
@@ -200,6 +200,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);var _data$computed$onShow;fu
{}), _defineProperty(_data$computed$onShow, "mounted", function mounted()
{}), _data$computed$onShow);exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
+23 -69
View File
@@ -104,68 +104,11 @@ var render = function() {
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push("/pages/shop/GoodSearch/index")
}
_vm.e1 = function($event) {
_vm.item.url ? _vm.$yrouter.push("/" + _vm.item.url) : ""
}
_vm.e2 = function($event) {
_vm.item.wxapp_url ? _vm.$yrouter.push(_vm.item.wxapp_url) : ""
}
_vm.e3 = function($event) {
return _vm.$yrouter.push(_vm.item.wxapp_url)
}
_vm.e4 = function($event) {
return _vm.$yrouter.push({
path: "/pages/shop/HotNewGoods/index",
query: {
type: 2
}
})
}
_vm.e5 = function($event) {
return _vm.$yrouter.push({
path: "/pages/shop/GoodsCon/index",
query: {
id: _vm.item.id
}
})
}
_vm.e6 = function($event) {
return _vm.$yrouter.push({
path: "/pages/shop/HotNewGoods/index",
query: {
type: 1
}
})
}
_vm.e7 = function($event) {
return _vm.$yrouter.push({
path: "/pages/shop/HotNewGoods/index",
query: {
type: 3
}
})
}
_vm.e8 = function($event) {
return _vm.$yrouter.push({
path: "/pages/shop/GoodsCon/index",
query: {
id: _vm.item.id
}
})
}
_vm.e9 = function($event) {
return _vm.$yrouter.push("/pages/shop/GoodsPromotion/index")
_vm.e1 = function($event) {
_vm.item.uniapp_url ? _vm.$yrouter.push(_vm.item.uniapp_url) : ""
}
}
@@ -361,16 +304,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@@ -495,6 +428,27 @@ var HAS_COUPON_WINDOW = "has_coupon_window";var _default =
});
},
methods: {
goGoodSearch: function goGoodSearch() {
this.$yrouter.push("/pages/shop/GoodSearch/index");
},
goWxappUrl: function goWxappUrl(item) {
this.$yrouter.push(item.uniapp_url);
},
goHotNewGoods: function goHotNewGoods(type) {
this.$yrouter.push({
path: "/pages/shop/HotNewGoods/index",
query: { type: type } });
},
goGoodsCon: function goGoodsCon(item) {
this.$yrouter.push({
path: "/pages/shop/GoodsCon/index",
query: { id: item.id } });
},
goGoodsPromotion: function goGoodsPromotion() {
this.$yrouter.push("/pages/shop/GoodsPromotion/index");
},
setOpenShare: function setOpenShare() {} } };exports.default = _default;
/***/ }),
File diff suppressed because one or more lines are too long
+44 -222
View File
@@ -276,68 +276,11 @@ var render = function() {
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push("/pages/shop/GoodSearch/index")
}
_vm.e1 = function($event) {
_vm.item.url ? _vm.$yrouter.push("/" + _vm.item.url) : ""
}
_vm.e2 = function($event) {
_vm.item.wxapp_url ? _vm.$yrouter.push(_vm.item.wxapp_url) : ""
}
_vm.e3 = function($event) {
return _vm.$yrouter.push(_vm.item.wxapp_url)
}
_vm.e4 = function($event) {
return _vm.$yrouter.push({
path: "/pages/shop/HotNewGoods/index",
query: {
type: 2
}
})
}
_vm.e5 = function($event) {
return _vm.$yrouter.push({
path: "/pages/shop/GoodsCon/index",
query: {
id: _vm.item.id
}
})
}
_vm.e6 = function($event) {
return _vm.$yrouter.push({
path: "/pages/shop/HotNewGoods/index",
query: {
type: 1
}
})
}
_vm.e7 = function($event) {
return _vm.$yrouter.push({
path: "/pages/shop/HotNewGoods/index",
query: {
type: 3
}
})
}
_vm.e8 = function($event) {
return _vm.$yrouter.push({
path: "/pages/shop/GoodsCon/index",
query: {
id: _vm.item.id
}
})
}
_vm.e9 = function($event) {
return _vm.$yrouter.push("/pages/shop/GoodsPromotion/index")
_vm.e1 = function($event) {
_vm.item.uniapp_url ? _vm.$yrouter.push(_vm.item.uniapp_url) : ""
}
}
@@ -532,16 +475,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@@ -666,6 +599,27 @@ var HAS_COUPON_WINDOW = "has_coupon_window";var _default =
});
},
methods: {
goGoodSearch: function goGoodSearch() {
this.$yrouter.push("/pages/shop/GoodSearch/index");
},
goWxappUrl: function goWxappUrl(item) {
this.$yrouter.push(item.uniapp_url);
},
goHotNewGoods: function goHotNewGoods(type) {
this.$yrouter.push({
path: "/pages/shop/HotNewGoods/index",
query: { type: type } });
},
goGoodsCon: function goGoodsCon(item) {
this.$yrouter.push({
path: "/pages/shop/GoodsCon/index",
query: { id: item.id } });
},
goGoodsPromotion: function goGoodsPromotion() {
this.$yrouter.push("/pages/shop/GoodsPromotion/index");
},
setOpenShare: function setOpenShare() {} } };exports.default = _default;
/***/ }),
@@ -776,17 +730,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 = []
@@ -918,10 +861,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);
@@ -1042,25 +991,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 = []
@@ -1092,10 +1022,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;
@@ -1334,6 +1261,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) {
@@ -1435,7 +1368,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(",") } });
},
@@ -1488,7 +1421,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 });
@@ -1574,6 +1507,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"]))
/***/ }),
/* 105 */,
@@ -1658,79 +1592,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("/pages/user/PersonalData/index")
}
_vm.e1 = function($event) {
return _vm.$yrouter.push({
path: "/pages/user/PersonalData/index"
})
}
_vm.e2 = function($event) {
return _vm.$yrouter.push({
path: "/pages/user/UserAccount/index"
})
}
_vm.e3 = function($event) {
return _vm.$yrouter.push("/pages/user/promotion/UserPromotion/index")
}
_vm.e4 = function($event) {
return _vm.$yrouter.push("/pages/user/signIn/Integral/index")
}
_vm.e5 = function($event) {
return _vm.$yrouter.push("/pages/user/coupon/UserCoupon/index")
}
_vm.e6 = function($event) {
return _vm.$yrouter.push("/pages/order/MyOrder/index")
}
_vm.e7 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/MyOrder/index",
query: {
type: 0
}
})
}
_vm.e8 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/MyOrder/index",
query: {
type: 1
}
})
}
_vm.e9 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/MyOrder/index",
query: {
type: 2
}
})
}
_vm.e10 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/MyOrder/index",
query: {
type: 3
}
})
}
_vm.e11 = function($event) {
return _vm.$yrouter.push("/pages/order/ReturnList/index")
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -1762,27 +1623,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;
@@ -2078,27 +1919,8 @@ var _vuex = __webpack_require__(/*! vuex */ 16); //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var SwitchWindow = function SwitchWindow() {return __webpack_require__.e(/*! import() | components/SwitchWindow */ "components/SwitchWindow").then(__webpack_require__.bind(null, /*! @/components/SwitchWindow */ 536));};var NAME = "User";var _default = { name: NAME, components: { SwitchWindow: SwitchWindow }, props: {}, data: function data() {return { userInfo: {}, MyMenus: [], orderStatusNum: {}, switchActive: false, isWeixin: false };}, computed: (0, _vuex.mapGetters)(["wxCode"]), watch: { $yroute: function $yroute(n) {if (n.name === NAME) this.User();} }, mounted: function mounted() {console.log('这个是个人中心');this.User();this.MenuUser();this.isWeixin = (0, _utils.isWeixin)();}, methods: { getPhoneNumber: function getPhoneNumber(e) {var _this = this;console.log(e.mp.detail);if (e.mp.detail.errMsg == "getPhoneNumber:ok") {wx.showLoading({ title: "绑定中" });wx.login({ success: function success(loginRes) {(0, _user.bindingPhone)({ code: loginRes.code, encryptedData: e.mp.detail.encryptedData, iv: e.mp.detail.iv }).then(function (res) {_this.User();wx.hideLoading();wx.showToast({ title: res.msg, icon: "success", duration: 2000 });}).catch(function (error) {wx.showToast({ title: error.msg || error.response.data.msg, icon: "none", duration: 2000 });});} });} else {wx.showToast({ title: "已拒绝授权", icon: "none", duration: 2000 });}}, changeswitch: function changeswitch(data) {this.switchActive = data;}, User: function User() {var that = this;(0, _user.getUser)().then(function (res) {that.userInfo = res.data;that.orderStatusNum = res.data.orderStatusNum;});}, MenuUser: function MenuUser() {var that = this;(0, _user.getMenuUser)().then(function (res) {that.MyMenus = res.data.routine_my_menus;});}, goPages: function goPages(index) {var url = this.MyMenus[index].wxapp_url;if (url === "/pages/user/promotion/UserPromotion/main" && this.userInfo.statu === 1) {if (!this.userInfo.isPromoter) return this.$dialog.toast({ mes: "您还没有推广权限!!" });}if (url === "/pages/orderAdmin/OrderIndex/main" && !this.userInfo.adminid) {return this.$dialog.toast({ mes: "您还不是管理员!!" });}this.$yrouter.push({ path: this.MyMenus[index].wxapp_url });} }, onShow: function onShow() {this.User();this.MenuUser();this.isWeixin = (0, _utils.isWeixin)();} };exports.default = _default;
var SwitchWindow = function SwitchWindow() {return __webpack_require__.e(/*! import() | components/SwitchWindow */ "components/SwitchWindow").then(__webpack_require__.bind(null, /*! @/components/SwitchWindow */ 536));};var NAME = "User";var _default = { name: NAME, components: { SwitchWindow: SwitchWindow }, props: {}, data: function data() {return { userInfo: {}, MyMenus: [], orderStatusNum: {}, switchActive: false, isWeixin: false };}, computed: (0, _vuex.mapGetters)(["wxCode"]), watch: { $yroute: function $yroute(n) {if (n.name === NAME) this.User();} }, mounted: function mounted() {console.log("这个是个人中心");this.User();this.MenuUser();this.isWeixin = (0, _utils.isWeixin)();}, methods: { goReturnList: function goReturnList() {this.$yrouter.push("/pages/order/ReturnList/index");}, goMyOrder: function goMyOrder(type) {this.$yrouter.push({ path: "/pages/order/MyOrder/index", query: { type: type } });}, goUserCoupon: function goUserCoupon() {this.$yrouter.push("/pages/user/coupon/UserCoupon/index");}, goIntegral: function goIntegral() {this.$yrouter.push("/pages/user/signIn/Integral/index");}, goUserPromotion: function goUserPromotion() {this.$yrouter.push("/pages/user/promotion/UserPromotion/index");}, goUserAccount: function goUserAccount() {this.$yrouter.push({ path: "/pages/user/UserAccount/index" });}, goPersonalData: function goPersonalData() {this.$yrouter.push("/pages/user/PersonalData/index");}, getPhoneNumber: function getPhoneNumber(e) {var _this = this;console.log(e.mp.detail);if (e.mp.detail.errMsg == "getPhoneNumber:ok") {uni.showLoading({ title: "绑定中" });wx.login({ success: function success(loginRes) {(0, _user.bindingPhone)({ code: loginRes.code, encryptedData: e.mp.detail.encryptedData, iv: e.mp.detail.iv }).then(function (res) {_this.User();uni.hideLoading();uni.showToast({ title: res.msg, icon: "success", duration: 2000 });}).catch(function (error) {uni.showToast({ title: error.msg || error.response.data.msg, icon: "none", duration: 2000 });});} });} else {uni.showToast({ title: "已拒绝授权", icon: "none", duration: 2000 });}}, changeswitch: function changeswitch(data) {this.switchActive = data;}, User: function User() {var that = this;(0, _user.getUser)().then(function (res) {that.userInfo = res.data;that.orderStatusNum = res.data.orderStatusNum;});}, MenuUser: function MenuUser() {var that = this;(0, _user.getMenuUser)().then(function (res) {that.MyMenus = res.data.routine_my_menus;});}, goPages: function goPages(index) {var url = this.MyMenus[index].uniapp_url;if (url === "/pages/user/promotion/UserPromotion/index" && this.userInfo.statu === 1) {if (!this.userInfo.isPromoter) return this.$dialog.toast({ mes: "您还没有推广权限!!" });}if (url === "/pages/orderAdmin/OrderIndex/index" && !this.userInfo.adminid) {return this.$dialog.toast({ mes: "您还不是管理员!!" });}this.$yrouter.push({ path: this.MyMenus[index].uniapp_url });} }, onShow: function onShow() {this.User();this.MenuUser();this.isWeixin = (0, _utils.isWeixin)();} };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
/* 111 */
+3 -3
View File
@@ -7,9 +7,9 @@
}
.productSort{
height:100%
}
.productSort {
height: 100%;
}
.footer-line-height {
@@ -131,7 +131,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;
@@ -234,7 +234,7 @@ var _default = { name: "goodsReturn", components: {// VueCoreImageUpload
refund_reason_wap_explain: refund_reason_wap_explain }).
then(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "success",
duration: 2000 });
@@ -253,6 +253,7 @@ var _default = { name: "goodsReturn", components: {// VueCoreImageUpload
this.getOrderDetail();
this.getRefundReason();
} };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })
+5 -54
View File
@@ -110,15 +110,6 @@ var render = function() {
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/OrderDetails/index",
query: {
id: _vm.order.orderId
}
})
}
_vm.e1 = function($event) {
$event.stopPropagation()
return _vm.$yrouter.push({
path: "/pages/shop/GoodsCon/index",
@@ -128,7 +119,7 @@ var render = function() {
})
}
_vm.e2 = function($event) {
_vm.e1 = function($event) {
$event.stopPropagation()
return _vm.$yrouter.push({
path: "/pages/activity/GroupDetails/index",
@@ -138,7 +129,7 @@ var render = function() {
})
}
_vm.e3 = function($event) {
_vm.e2 = function($event) {
$event.stopPropagation()
return _vm.$yrouter.push({
path: "/pages/activity/DargainDetails/index",
@@ -148,7 +139,7 @@ var render = function() {
})
}
_vm.e4 = function($event) {
_vm.e3 = function($event) {
$event.stopPropagation()
return _vm.$yrouter.push({
path: "/pages/activity/SeckillDetails/index",
@@ -158,25 +149,7 @@ var render = function() {
})
}
_vm.e5 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/OrderDetails/index",
query: {
id: _vm.order.orderId
}
})
}
_vm.e6 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/OrderDetails/index",
query: {
id: _vm.order.orderId
}
})
}
_vm.e7 = function($event) {
_vm.e4 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/Logistics/index",
query: {
@@ -184,24 +157,6 @@ var render = function() {
}
})
}
_vm.e8 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/OrderDetails/index",
query: {
id: _vm.order.orderId
}
})
}
_vm.e9 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/OrderDetails/index",
query: {
id: _vm.order.orderId
}
})
}
}
_vm.$mp.data = Object.assign(
@@ -412,8 +367,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@@ -596,9 +549,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18); //
//
//
//
//
//
var Loading = function Loading() {return __webpack_require__.e(/*! import() | components/Loading */ "components/Loading").then(__webpack_require__.bind(null, /*! @/components/Loading */ 494));};var Payment = function Payment() {return __webpack_require__.e(/*! import() | components/Payment */ "components/Payment").then(__webpack_require__.bind(null, /*! @/components/Payment */ 587));};var DataFormat = function DataFormat() {return __webpack_require__.e(/*! import() | components/DataFormat */ "components/DataFormat").then(__webpack_require__.bind(null, /*! @/components/DataFormat */ 577));};var STATUS = ["待付款", "待发货", "待收货", "待评价", "已完成", "", "", "", "", "待付款"];var NAME = "MyOrder";var _default = { name: NAME, data: function data() {return { offlinePayStatus: 2, orderData: {}, type: "", page: 1, limit: 20, loaded: false, loading: false, orderList: [], pay: false, payType: ["yue", "weixin"], from: (0, _utils.isWeixin)() ? "weixin" : "weixinh5" };}, components: { Loading: Loading, Payment: Payment, DataFormat: DataFormat }, computed: (0, _vuex.mapGetters)(["userInfo"]), watch: { $yroute: function $yroute(n) {if (n.name === NAME) {var type = parseInt(this.$yroute.query.type) || 0;if (this.type !== type) {this.changeType(type);}this.getOrderData();}}, type: function type() {} }, methods: { dataFormat: _utils.dataFormat, setOfflinePayStatus: function setOfflinePayStatus(status) {var that = this;that.offlinePayStatus = status;if (status === 1) {if (that.payType.indexOf("offline") < 0) {that.payType.push("offline");}}}, getOrderData: function getOrderData() {var _this = this;(0, _order.getOrderData)().then(function (res) {_this.orderData = res.data;});}, takeOrder: function takeOrder(order) {var _this2 = this;(0, _order2.takeOrderHandle)(order.orderId).finally(function () {_this2.reload();_this2.getOrderData();});}, reload: function reload() {this.changeType(this.type);}, changeType: function changeType(type) {this.type = type;this.orderList = [];this.page = 1;this.loaded = false;this.loading = false;this.getOrderList();}, getOrderList: function getOrderList() {var _this3 = this;if (this.loading || this.loaded) return;this.loading = true;var page = this.page,limit = this.limit,type = this.type;(0, _order.getOrderList)({ page: page, limit: limit, type: type }).then(function (res) {_this3.orderList = _this3.orderList.concat(res.data);_this3.page++;_this3.loaded = res.data.length < _this3.limit;_this3.loading = false;});}, getStatus: function getStatus(order) {return STATUS[order._status._type];}, cancelOrder: function cancelOrder(order) {var _this4 = this;(0, _order2.cancelOrderHandle)(order.orderId).then(function () {_this4.getOrderData();_this4.orderList.splice(_this4.orderList.indexOf(order), 1);}).catch(function () {_this4.reload();});}, paymentTap: function paymentTap(order) {var _this5 = this;var that = this;if (!(order.combinationId > 0 || order.bargainId > 0 || order.seckillId > 0)) {that.setOfflinePayStatus(order.offlinePayStatus);}this.pay = true;this.toPay = function (type) {(0, _order2.payOrderHandle)(order.orderId, type, that.from).then(function () {var type = parseInt(_this5.$yroute.query.type) || 0;that.changeType(type);that.getOrderData();}).catch(function () {var type = parseInt(that.$yroute.query.type) || 0;that.changeType(type);that.getOrderData();});};}, toPay: function toPay() {} }, mounted: function mounted() {this.type = parseInt(this.$yroute.query.type) || 0;this.getOrderData();this.getOrderList();}, onReachBottom: function onReachBottom() {!this.loading && this.getOrderList();} };exports.default = _default;
var Loading = function Loading() {return __webpack_require__.e(/*! import() | components/Loading */ "components/Loading").then(__webpack_require__.bind(null, /*! @/components/Loading */ 494));};var Payment = function Payment() {return __webpack_require__.e(/*! import() | components/Payment */ "components/Payment").then(__webpack_require__.bind(null, /*! @/components/Payment */ 587));};var DataFormat = function DataFormat() {return __webpack_require__.e(/*! import() | components/DataFormat */ "components/DataFormat").then(__webpack_require__.bind(null, /*! @/components/DataFormat */ 577));};var STATUS = ["待付款", "待发货", "待收货", "待评价", "已完成", "", "", "", "", "待付款"];var NAME = "MyOrder";var _default = { name: NAME, data: function data() {return { offlinePayStatus: 2, orderData: {}, type: "", page: 1, limit: 20, loaded: false, loading: false, orderList: [], pay: false, payType: ["yue", "weixin"], from: (0, _utils.isWeixin)() ? "weixin" : "weixinh5" };}, components: { Loading: Loading, Payment: Payment, DataFormat: DataFormat }, computed: (0, _vuex.mapGetters)(["userInfo"]), watch: { $yroute: function $yroute(n) {if (n.name === NAME) {var type = parseInt(this.$yroute.query.type) || 0;if (this.type !== type) {this.changeType(type);}this.getOrderData();}}, type: function type() {} }, methods: { goOrderDetails: function goOrderDetails(order) {this.$yrouter.push({ path: "/pages/order/OrderDetails/index", query: { id: order.orderId } });}, dataFormat: _utils.dataFormat, setOfflinePayStatus: function setOfflinePayStatus(status) {var that = this;that.offlinePayStatus = status;if (status === 1) {if (that.payType.indexOf("offline") < 0) {that.payType.push("offline");}}}, getOrderData: function getOrderData() {var _this = this;(0, _order.getOrderData)().then(function (res) {_this.orderData = res.data;});}, takeOrder: function takeOrder(order) {var _this2 = this;(0, _order2.takeOrderHandle)(order.orderId).finally(function () {_this2.reload();_this2.getOrderData();});}, reload: function reload() {this.changeType(this.type);}, changeType: function changeType(type) {this.type = type;this.orderList = [];this.page = 1;this.loaded = false;this.loading = false;this.getOrderList();}, getOrderList: function getOrderList() {var _this3 = this;if (this.loading || this.loaded) return;this.loading = true;var page = this.page,limit = this.limit,type = this.type;(0, _order.getOrderList)({ page: page, limit: limit, type: type }).then(function (res) {_this3.orderList = _this3.orderList.concat(res.data);_this3.page++;_this3.loaded = res.data.length < _this3.limit;_this3.loading = false;});}, getStatus: function getStatus(order) {return STATUS[order._status._type];}, cancelOrder: function cancelOrder(order) {var _this4 = this;(0, _order2.cancelOrderHandle)(order.orderId).then(function () {_this4.getOrderData();_this4.orderList.splice(_this4.orderList.indexOf(order), 1);}).catch(function () {_this4.reload();});}, paymentTap: function paymentTap(order) {var _this5 = this;var that = this;if (!(order.combinationId > 0 || order.bargainId > 0 || order.seckillId > 0)) {that.setOfflinePayStatus(order.offlinePayStatus);}this.pay = true;this.toPay = function (type) {(0, _order2.payOrderHandle)(order.orderId, type, that.from).then(function () {var type = parseInt(_this5.$yroute.query.type) || 0;that.changeType(type);that.getOrderData();}).catch(function () {var type = parseInt(that.$yroute.query.type) || 0;that.changeType(type);that.getOrderData();});};}, toPay: function toPay() {} }, mounted: function mounted() {this.type = parseInt(this.$yroute.query.type) || 0;this.getOrderData();this.getOrderList();}, onReachBottom: function onReachBottom() {!this.loading && this.getOrderList();} };exports.default = _default;
/***/ }),
File diff suppressed because one or more lines are too long
@@ -107,7 +107,7 @@ var render = function() {
_vm.e1 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/GoodsReturn/index",
path: "/pages/order/Logistics/index",
query: {
id: _vm.orderInfo.orderId
}
@@ -131,24 +131,6 @@ var render = function() {
}
})
}
_vm.e4 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/Logistics/index",
query: {
id: _vm.orderInfo.orderId
}
})
}
_vm.e5 = function($event) {
return _vm.$yrouter.push({
path: "/pages/activity/GroupRule/index",
query: {
id: _vm.orderInfo.pinkId
}
})
}
}
}
var recyclableRender = false
@@ -183,7 +165,17 @@ __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));
@@ -797,7 +789,7 @@ var NAME = "OrderDetails";var _default =
_this4.setOfflinePayStatus(_this4.orderInfo.offlinePayStatus);
}).
catch(function (err) {
wx.showToast({
uni.showToast({
title: err.response.data.msg,
icon: "none",
duration: 2000 });
@@ -808,6 +800,7 @@ var NAME = "OrderDetails";var _default =
that = this;_context.next = 3;return (
(0, _order2.payOrderHandle)(this.orderInfo.orderId, type, that.from));case 3:
that.getDetail();case 4:case "end":return _context.stop();}}}, _callee, this);}));function toPay(_x) {return _toPay.apply(this, arguments);}return toPay;}() } };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
@@ -133,7 +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;
@@ -501,7 +501,7 @@ _isWeixin = (0, _utils.isWeixin)();var _default =
var data = res.data;
if (data.status === "EXTEND_ORDER") {
_this.$yrouter.replace({
path: "/pages/order/OrderDetails/main",
path: "/pages/order/OrderDetails/index",
query: { id: data.result.orderId } });
} else {
@@ -577,7 +577,7 @@ _isWeixin = (0, _utils.isWeixin)();var _default =
}
}
wx.showLoading({ title: "生成订单中" });
uni.showLoading({ title: "生成订单中" });
(0, _order.createOrder)(this.orderGroupInfo.orderKey, {
realName: this.contacts,
phone: this.contactsTel,
@@ -594,7 +594,7 @@ _isWeixin = (0, _utils.isWeixin)();var _default =
shippingType: parseInt(shipping_type) + 1 }).
then(function (res) {
wx.hideLoading();
uni.hideLoading();
var data = res.data;
switch (data.status) {
case "ORDER_EXIST":
@@ -603,24 +603,24 @@ _isWeixin = (0, _utils.isWeixin)();var _default =
case "PAY_ERROR":
_this3.$dialog.toast({ mes: res.msg });
_this3.$yrouter.replace({
path: "/pages/order/OrderDetails/main",
path: "/pages/order/OrderDetails/index",
query: { id: data.result.orderId } });
break;
case "SUCCESS":
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
_this3.$yrouter.replace({
path: "/pages/order/OrderDetails/main",
path: "/pages/order/OrderDetails/index",
query: { id: data.result.orderId } });
break;
case "WECHAT_H5_PAY":
_this3.$yrouter.replace({
path: "/pages/order/OrderDetails/main",
path: "/pages/order/OrderDetails/index",
query: { id: data.result.orderId } });
setTimeout(function () {
@@ -630,7 +630,7 @@ _isWeixin = (0, _utils.isWeixin)();var _default =
case "WECHAT_PAY":
(0, _wechat.weappPay)(data.result.jsConfig).then(function (res) {
_this3.$yrouter.replace({
path: "/pages/order/OrderDetails/main",
path: "/pages/order/OrderDetails/index",
query: { id: data.result.orderId } });
});
@@ -638,16 +638,17 @@ _isWeixin = (0, _utils.isWeixin)();var _default =
// 下面为原先微信支付方式,
// pay(data.result.jsConfig).finally(() => {
// this.$yrouter.replace({
// path: "/pages/order/OrderDetails/main" ,query: { id: data.result.orderId}
// path: "/pages/order/OrderDetails/index" ,query: { id: data.result.orderId}
// });
// });
}
}).
catch(function (err) {
wx.hideLoading();
uni.hideLoading();
_this3.$dialog.error(err.response.data.msg || "创建订单失败");
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
@@ -1,4 +1,3 @@
{
"navigationBarTitleText": "PaymentStatus",
"usingComponents": {}
"navigationBarTitleText": "PaymentStatus"
}
@@ -98,26 +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/order/OrderDetails/index",
query: {
id: _vm.order.orderId
}
})
}
_vm.e1 = function($event) {
$event.stopPropagation()
return _vm.$yrouter.push({
path: "/pages/shop/GoodsCon/index",
query: {
id: _vm.cart.productInfo.id
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -189,12 +169,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@@ -246,13 +220,14 @@ var _order = __webpack_require__(/*! @/api/order */ 352); //
//
//
//
//
//
//
//
//
//
var Loading = function Loading() {return __webpack_require__.e(/*! import() | components/Loading */ "components/Loading").then(__webpack_require__.bind(null, /*! @/components/Loading */ 494));};var _default = { name: "ReturnList", components: { Loading: Loading }, data: function data() {return { orderList: [], page: 1, limit: 20, loading: false, loaded: false };}, methods: { getOrderList: function getOrderList() {var _this = this;var page = this.page,limit = this.limit;if (this.loading || this.loaded) return;this.loading = true;(0, _order.getOrderList)({ page: page, limit: limit, type: -3 }).then(function (res) {_this.orderList = _this.orderList.concat(res.data);_this.loading = false;_this.loaded = res.data.length < limit;_this.page++;});} }, mounted: function mounted() {this.getOrderList();}, onReachBottom: function onReachBottom() {!this.loading && this.getOrderList();} };exports.default = _default;
var Loading = function Loading() {return __webpack_require__.e(/*! import() | components/Loading */ "components/Loading").then(__webpack_require__.bind(null, /*! @/components/Loading */ 494));};var _default = { name: "ReturnList", components: { Loading: Loading }, data: function data() {return { orderList: [], page: 1, limit: 20, loading: false, loaded: false };}, methods: { goGoodsCon: function goGoodsCon(cart) {this.$yrouter.push({ path: "/pages/shop/GoodsCon/index", query: { id: cart.productInfo.id } });}, goOrderDetails: function goOrderDetails(order) {this.$yrouter.push({ path: "/pages/order/OrderDetails/index", query: { id: order.orderId } });}, getOrderList: function getOrderList() {var _this = this;var page = this.page,limit = this.limit;if (this.loading || this.loaded) return;this.loading = true;(0, _order.getOrderList)({ page: page, limit: limit, type: -3 }).then(function (res) {_this.orderList = _this.orderList.concat(res.data);_this.loading = false;_this.loaded = res.data.length < limit;_this.page++;});} },
mounted: function mounted() {
this.getOrderList();
},
onReachBottom: function onReachBottom() {
!this.loading && this.getOrderList();
} };exports.default = _default;
/***/ })
@@ -1 +1 @@
<view data-ref="container" class="return-list _div vue-ref"><block wx:for="{{orderList}}" wx:for-item="order" wx:for-index="orderListIndex" wx:key="orderListIndex"><view class="goodWrapper _div"><block wx:if="{{order._status._type===-1}}"><view class="iconfont icon-tuikuanzhong powder _div"></view></block><block wx:if="{{order._status._type===-2}}"><view class="iconfont icon-yituikuan _div"></view></block><view class="orderNum _div">{{"订单号:"+order.orderId}}</view><block wx:for="{{order.cartInfo}}" wx:for-item="cart" wx:for-index="cartInfoIndex" wx:key="cartInfoIndex"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="item acea-row row-between-wrapper _div" bindtap="__e"><view class="pictrue _div"><image class="image _img" src="{{cart.productInfo.image}}" data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" catchtap="__e"></image></view><view class="text _div"><view class="acea-row row-between-wrapper _div"><view class="name line1 _div">{{cart.productInfo.storeName}}</view><view class="num _div">{{"x "+cart.cartNum}}</view></view><block wx:if="{{cart.productInfo.attrInfo}}"><view class="attr line1 _div">{{cart.productInfo.attrInfo.suk}}</view></block><block wx:else><view class="attr line1 _div">{{cart.productInfo.storeName}}</view></block><view class="money _div">{{"¥"+cart.productInfo.price}}</view></view></view></block><view class="totalSum _div">{{'共'+(order.cartInfo.length||0)+'件商品,总金额'}}<label class="font-color-red price _span">{{"¥"+order.payPrice}}</label></view></view></block><block wx:if="{{orderList.length===0&&page>1}}"><view class="noCart _div"><view class="pictrue _div"><image src="{{$VUE_APP_RESOURCES_URL+'/images/noOrder.png'}}" class="_img"></image></view></view></block><loading vue-id="2035e57b-1" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading></view>
<view data-ref="container" class="return-list _div vue-ref"><block wx:for="{{orderList}}" wx:for-item="order" wx:for-index="orderListIndex" wx:key="orderListIndex"><view class="goodWrapper _div"><block wx:if="{{order._status._type===-1}}"><view class="iconfont icon-tuikuanzhong powder _div"></view></block><block wx:if="{{order._status._type===-2}}"><view class="iconfont icon-yituikuan _div"></view></block><view class="orderNum _div">{{"订单号:"+order.orderId}}</view><block wx:for="{{order.cartInfo}}" wx:for-item="cart" wx:for-index="cartInfoIndex" wx:key="cartInfoIndex"><view data-event-opts="{{[['tap',[['goOrderDetails',['$0'],[[['orderList','',orderListIndex]]]]]]]}}" class="item acea-row row-between-wrapper _div" bindtap="__e"><view class="pictrue _div"><image class="image _img" src="{{cart.productInfo.image}}" data-event-opts="{{[['tap',[['goGoodsCon',['$0'],[[['orderList','',orderListIndex],['cartInfo','',cartInfoIndex]]]]]]]}}" catchtap="__e"></image></view><view class="text _div"><view class="acea-row row-between-wrapper _div"><view class="name line1 _div">{{cart.productInfo.storeName}}</view><view class="num _div">{{"x "+cart.cartNum}}</view></view><block wx:if="{{cart.productInfo.attrInfo}}"><view class="attr line1 _div">{{cart.productInfo.attrInfo.suk}}</view></block><block wx:else><view class="attr line1 _div">{{cart.productInfo.storeName}}</view></block><view class="money _div">{{"¥"+cart.productInfo.price}}</view></view></view></block><view class="totalSum _div">{{'共'+(order.cartInfo.length||0)+'件商品,总金额'}}<label class="font-color-red price _span">{{"¥"+order.payPrice}}</label></view></view></block><block wx:if="{{orderList.length===0&&page>1}}"><view class="noCart _div"><view class="pictrue _div"><image src="{{$VUE_APP_RESOURCES_URL+'/images/noOrder.png'}}" class="_img"></image></view></view></block><loading vue-id="2035e57b-1" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading></view>
@@ -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/orderAdmin/GoodsDeliver/index",
query: {
id: _vm.orderInfo.orderId
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -141,11 +131,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));
@@ -341,6 +327,12 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
this.getIndex();
},
methods: {
goGoodsDeliver: function goGoodsDeliver(orderInfo) {
this.$yrouter.push({
path: "/pages/orderAdmin/GoodsDeliver/index",
query: { id: orderInfo.orderId } });
},
copyClipboard: _utils.copyClipboard,
more: function more() {
this.order = !this.order;
@@ -362,7 +354,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
that.payType = res.data._status._payType;
},
function (err) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -392,7 +384,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
(0, _admin.setAdminOrderPrice)(data).then(
function () {
that.change = false;
wx.showToast({
uni.showToast({
title: "改价成功",
icon: "success",
duration: 2000 });
@@ -401,7 +393,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
},
function () {
that.change = false;
wx.showToast({
uni.showToast({
title: "改价失败",
icon: "none",
duration: 2000 });
@@ -424,7 +416,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
(0, _admin.setOrderRefund)(data).then(
function (res) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -433,7 +425,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
},
function (err) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -453,7 +445,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
(0, _admin.setAdminOrderRemark)(data).then(
function (res) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -462,7 +454,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
},
function (err) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -474,7 +466,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
offlinePay: function offlinePay() {var _this = this;
(0, _admin.setOfflinePay)({ order_id: this.orderInfo.order_id }).then(
function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -482,7 +474,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
_this.getIndex();
},
function (err) {
wx.showToast({
uni.showToast({
title: err.msg,
icon: "none",
duration: 2000 });
@@ -490,6 +482,7 @@ var _utils = __webpack_require__(/*! @/utils */ 18);function _interopRequireDefa
});
} } };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/orderAdmin/GoodsDeliver/index",
query: {
id: _vm.item.orderId
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -141,11 +131,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));
@@ -287,6 +273,12 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
!that.loading && that.getIndex();
},
methods: {
goGoodsDeliver: function goGoodsDeliver(item) {
this.$yrouter.push({
path: "/pages/orderAdmin/GoodsDeliver/index",
query: { id: item.orderId } });
},
more: function more(index) {
if (this.current === index) this.current = "";else
this.current = index;
@@ -322,7 +314,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
(0, _admin.setAdminOrderPrice)(data).then(
function () {
that.change = false;
wx.showToast({
uni.showToast({
title: "改价成功",
icon: "success",
duration: 2000 });
@@ -331,7 +323,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
},
function () {
that.change = false;
wx.showToast({
uni.showToast({
title: "改价失败",
icon: "none",
duration: 2000 });
@@ -354,7 +346,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
(0, _admin.setOrderRefund)(data).then(
function (res) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -363,7 +355,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
},
function (err) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -382,7 +374,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
(0, _admin.setAdminOrderRemark)(data).then(
function (res) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -391,7 +383,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
},
function (err) {
that.change = false;
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -420,7 +412,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
that.where.page = that.where.page + 1;
},
function (err) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -436,14 +428,14 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
},
toDetail: function toDetail(item) {
this.$yrouter.push({
path: "/pages/orderAdmin/AdminOrder/main",
path: "/pages/orderAdmin/AdminOrder/index",
query: { oid: item.orderId } });
},
offlinePay: function offlinePay(item) {var _this = this;
(0, _admin.setOfflinePay)({ order_id: item.order_id }).then(
function (res) {
_this.$wx.showToast({ title: res.msg, icon: "none", duration: 2000 });
_this.$uni.showToast({ title: res.msg, icon: "none", duration: 2000 });
_this.init();
},
function (error) {
@@ -451,6 +443,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })
@@ -1 +1 @@
<view data-ref="container" class="pos-order-list _div vue-ref"><view class="nav acea-row row-around row-middle _div"><view data-event-opts="{{[['tap',[['changeStatus',[0]]]]]}}" class="{{['item _div',where.status==0?'on':'']}}" bindtap="__e">待付款</view><view data-event-opts="{{[['tap',[['changeStatus',[1]]]]]}}" class="{{['item _div',where.status==1?'on':'']}}" bindtap="__e">待发货</view><view data-event-opts="{{[['tap',[['changeStatus',[2]]]]]}}" class="{{['item _div',where.status==2?'on':'']}}" bindtap="__e">待收货</view><view data-event-opts="{{[['tap',[['changeStatus',[3]]]]]}}" class="{{['item _div',where.status==3?'on':'']}}" bindtap="__e">待评价</view><view data-event-opts="{{[['tap',[['changeStatus',[4]]]]]}}" class="{{['item _div',where.status==4?'on':'']}}" bindtap="__e">已完成</view><view data-event-opts="{{[['tap',[['changeStatus',[-3]]]]]}}" class="{{['item _div',where.status==-3?'on':'']}}" bindtap="__e">退款</view></view><view class="list _div"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="listIndex" wx:key="listIndex"><view class="item _div"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',listIndex]]]]]]]}}" class="order-num acea-row row-middle _div" bindtap="__e"><label class="_span">{{"订单号:"+item.orderId}}</label><label class="time _span"><label class="_span">下单时间:</label><data-format vue-id="{{'49d27afe-1-'+listIndex}}" data="{{item.addTime}}" bind:__l="__l"></data-format></label></view><block wx:for="{{item.cartInfo}}" wx:for-item="val" wx:for-index="key" wx:key="key"><view class="pos-order-goods _div"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',listIndex]]]]]]]}}" class="goods acea-row row-between-wrapper _div" bindtap="__e"><view class="picTxt acea-row row-between-wrapper _div"><view class="pictrue _div"><image src="{{val.productInfo.image}}" class="_img"></image></view><view class="text acea-row row-between row-column _div"><view class="info line2 _div">{{val.productInfo.storeName}}</view><block wx:if="{{val.productInfo.suk}}"><view class="attr _div">{{val.productInfo.suk}}</view></block></view></view><view class="money _div"><view class="x-money _div">{{"¥"+val.productInfo.price}}</view><view class="num _div">{{"x"+val.cartNum}}</view><view class="y-money _div">{{"¥"+val.productInfo.otPrice}}</view></view></view></view></block><view class="public-total _div">{{'共'+item.totalNum+'件商品,应支付'}}<label class="money _span">{{"¥"+item.payPrice}}</label>{{'( 邮费 ¥'+item.totalPostage+'\n )'}}</view><view class="operation acea-row row-between-wrapper _div"><view class="more _div"></view><view class="acea-row row-middle _div"><block wx:if="{{where.status==0}}"><view data-event-opts="{{[['tap',[['modify',['$0',0],[[['list','',listIndex]]]]]]]}}" class="bnt _div" bindtap="__e">一键改价</view></block><block wx:if="{{where.status==-3&&item.refundStatus===1}}"><view data-event-opts="{{[['tap',[['modify',['$0',0],[[['list','',listIndex]]]]]]]}}" class="bnt _div" bindtap="__e">立即退款</view></block><block wx:if="{{item.pay_type==='offline'&&item.paid===0}}"><view data-event-opts="{{[['tap',[['offlinePay',['$0'],[[['list','',listIndex]]]]]]]}}" class="bnt cancel _div" bindtap="__e">确认付款</view></block><block wx:if="{{where.status==1}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="bnt _div" bindtap="__e">去发货</view></block></view></view></view></block></view><loading vue-id="49d27afe-2" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading><price-change vue-id="49d27afe-3" change="{{change}}" orderInfo="{{orderInfo}}" status="{{status}}" data-event-opts="{{[['^closechange',[['changeclose',['$event']]]],['^savePrice',[['savePrice']]]]}}" bind:closechange="__e" bind:savePrice="__e" bind:__l="__l"></price-change></view>
<view data-ref="container" class="pos-order-list _div vue-ref"><view class="nav acea-row row-around row-middle _div"><view data-event-opts="{{[['tap',[['changeStatus',[0]]]]]}}" class="{{['item _div',where.status==0?'on':'']}}" bindtap="__e">待付款</view><view data-event-opts="{{[['tap',[['changeStatus',[1]]]]]}}" class="{{['item _div',where.status==1?'on':'']}}" bindtap="__e">待发货</view><view data-event-opts="{{[['tap',[['changeStatus',[2]]]]]}}" class="{{['item _div',where.status==2?'on':'']}}" bindtap="__e">待收货</view><view data-event-opts="{{[['tap',[['changeStatus',[3]]]]]}}" class="{{['item _div',where.status==3?'on':'']}}" bindtap="__e">待评价</view><view data-event-opts="{{[['tap',[['changeStatus',[4]]]]]}}" class="{{['item _div',where.status==4?'on':'']}}" bindtap="__e">已完成</view><view data-event-opts="{{[['tap',[['changeStatus',[-3]]]]]}}" class="{{['item _div',where.status==-3?'on':'']}}" bindtap="__e">退款</view></view><view class="list _div"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="listIndex" wx:key="listIndex"><view class="item _div"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',listIndex]]]]]]]}}" class="order-num acea-row row-middle _div" bindtap="__e"><label class="_span">{{"订单号:"+item.orderId}}</label><label class="time _span"><label class="_span">下单时间:</label><data-format vue-id="{{'49d27afe-1-'+listIndex}}" data="{{item.addTime}}" bind:__l="__l"></data-format></label></view><block wx:for="{{item.cartInfo}}" wx:for-item="val" wx:for-index="key" wx:key="key"><view class="pos-order-goods _div"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',listIndex]]]]]]]}}" class="goods acea-row row-between-wrapper _div" bindtap="__e"><view class="picTxt acea-row row-between-wrapper _div"><view class="pictrue _div"><image src="{{val.productInfo.image}}" class="_img"></image></view><view class="text acea-row row-between row-column _div"><view class="info line2 _div">{{val.productInfo.storeName}}</view><block wx:if="{{val.productInfo.suk}}"><view class="attr _div">{{val.productInfo.suk}}</view></block></view></view><view class="money _div"><view class="x-money _div">{{"¥"+val.productInfo.price}}</view><view class="num _div">{{"x"+val.cartNum}}</view><view class="y-money _div">{{"¥"+val.productInfo.otPrice}}</view></view></view></view></block><view class="public-total _div">{{'共'+item.totalNum+'件商品,应支付'}}<label class="money _span">{{"¥"+item.payPrice}}</label>{{'( 邮费 ¥'+item.totalPostage+'\n )'}}</view><view class="operation acea-row row-between-wrapper _div"><view class="more _div"></view><view class="acea-row row-middle _div"><block wx:if="{{where.status==0}}"><view data-event-opts="{{[['tap',[['modify',['$0',0],[[['list','',listIndex]]]]]]]}}" class="bnt _div" bindtap="__e">一键改价</view></block><block wx:if="{{where.status==-3&&item.refundStatus===1}}"><view data-event-opts="{{[['tap',[['modify',['$0',0],[[['list','',listIndex]]]]]]]}}" class="bnt _div" bindtap="__e">立即退款</view></block><block wx:if="{{item.pay_type==='offline'&&item.paid===0}}"><view data-event-opts="{{[['tap',[['offlinePay',['$0'],[[['list','',listIndex]]]]]]]}}" class="bnt cancel _div" bindtap="__e">确认付款</view></block><block wx:if="{{where.status==1}}"><view data-event-opts="{{[['tap',[['goGoodsDeliver',['$0'],[[['list','',listIndex]]]]]]]}}" class="bnt _div" bindtap="__e">去发货</view></block></view></view></view></block></view><loading vue-id="49d27afe-2" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading><price-change vue-id="49d27afe-3" change="{{change}}" orderInfo="{{orderInfo}}" status="{{status}}" data-event-opts="{{[['^closechange',[['changeclose',['$event']]]],['^savePrice',[['savePrice']]]]}}" bind:closechange="__e" bind:savePrice="__e" bind:__l="__l"></price-change></view>
@@ -131,7 +131,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));
@@ -254,7 +254,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
that.delivery = res.data;
},
function (error) {
wx.showToast({
uni.showToast({
title: error.msg,
icon: "none",
duration: 2000 });
@@ -269,7 +269,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
that.logistics = res.data;
},
function (error) {
wx.showToast({
uni.showToast({
title: error.msg,
icon: "none",
duration: 2000 });
@@ -318,7 +318,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
var that = this;
(0, _admin.setAdminOrderDelivery)(item).then(
function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -326,7 +326,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
that.$yrouter.go(-1);
},
function (error) {
wx.showToast({
uni.showToast({
title: error.msg,
icon: "none",
duration: 2000 });
@@ -334,6 +334,7 @@ var _dialog = __webpack_require__(/*! @/utils/dialog */ 26);function _interopReq
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })
@@ -133,7 +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;
@@ -229,7 +229,7 @@ var NAME = "OrderCancellation";var _default =
then(function (res) {
_this.iShidden = true;
_this.verify_code = "";
_this.$wx.showToast({ title: res.msg, icon: 'none', duration: 2000 });
_this.$uni.showToast({ title: res.msg, icon: 'none', duration: 2000 });
}).
catch(function (res) {
_this.$dialog.error(res.msg);
@@ -240,15 +240,15 @@ var NAME = "OrderCancellation";var _default =
if (!this.verify_code) return this.$dialog.error("请输入核销码");
if (!ref.test(this.verify_code))
return this.$dialog.error("请输入正确的核销码");
wx.showLoading({ title: "查询中" });
uni.showLoading({ title: "查询中" });
(0, _order.orderVerific)(this.verify_code, 0).
then(function (res) {
wx.hideLoading();
uni.hideLoading();
_this2.orderInfo = res.data;
_this2.iShidden = false;
}).
catch(function () {
wx.hideLoading();
uni.hideLoading();
});
},
openQRCode: function openQRCode() {
@@ -262,7 +262,7 @@ var NAME = "OrderCancellation";var _default =
// that.verify_code = res.resultStr;
// that.storeCancellation();
// } else {
// wx.showToast({
// uni.showToast({
// title: '没有扫描到什么!',
// icon: "none",
// duration: 2000
@@ -280,7 +280,7 @@ var NAME = "OrderCancellation";var _default =
// },
// fail: function(res) {
// if (res.errMsg == "scanQRCode:permission denied") {
// wx.showToast({
// uni.showToast({
// title: '没有权限',
// icon: "none",
// duration: 2000
@@ -291,6 +291,7 @@ var NAME = "OrderCancellation";var _default =
// }
// });
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
@@ -98,112 +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/orderAdmin/AdminOrderList/index",
query: {
types: 0
}
})
}
_vm.e1 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/AdminOrderList/index",
query: {
types: 1
}
})
}
_vm.e2 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/AdminOrderList/index",
query: {
types: 2
}
})
}
_vm.e3 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/AdminOrderList/index",
query: {
types: 3
}
})
}
_vm.e4 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/AdminOrderList/index",
query: {
types: 3
}
})
}
_vm.e5 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/Statistics/index",
query: {
type: "price",
time: "today"
}
})
}
_vm.e6 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/Statistics/index",
query: {
type: "price",
time: "yesterday"
}
})
}
_vm.e7 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/Statistics/index",
query: {
type: "price",
time: "month"
}
})
}
_vm.e8 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/Statistics/index",
query: {
type: "order",
time: "today"
}
})
}
_vm.e9 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/Statistics/index",
query: {
type: "order",
time: "yesterday"
}
})
}
_vm.e10 = function($event) {
return _vm.$yrouter.push({
path: "/pages/orderAdmin/Statistics/index",
query: {
type: "order",
time: "month"
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -296,39 +190,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@@ -429,40 +290,7 @@ var _admin = __webpack_require__(/*! @/api/admin */ 402); //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var Loading = function Loading() {return __webpack_require__.e(/*! import() | components/Loading */ "components/Loading").then(__webpack_require__.bind(null, /*! @/components/Loading */ 494));};var _default = { name: "OrderIndex", components: { Loading: Loading }, props: {}, data: function data() {return { census: { orderCount: {}, orderTimeCount: {} }, list: [], where: { page: 1, limit: 15 }, loaded: false, loading: false };}, mounted: function mounted() {this.getIndex();this.getList();}, onReachBottom: function onReachBottom() {!this.loading && this.getList();}, methods: { getIndex: function getIndex() {var that = this;(0, _admin.getStatisticsInfo)().then(function (res) {that.census = res.data;that.census.unpaidCount = that.census.orderCount.unpaidCount;}, function (err) {that.$dialog.message(err.msg);});}, getList: function getList() {var that = this;if (that.loading || that.loaded) return;that.loading = true;(0, _admin.getStatisticsMonth)(that.where).then(function (res) {that.loading = false;that.loaded = res.data.length < that.where.limit;that.list.push.apply(that.list, res.data);that.where.page = that.where.page + 1;}, function (error) {that.$dialog.message(error.msg);}, 300);} } };exports.default = _default;
var Loading = function Loading() {return __webpack_require__.e(/*! import() | components/Loading */ "components/Loading").then(__webpack_require__.bind(null, /*! @/components/Loading */ 494));};var _default = { name: "OrderIndex", components: { Loading: Loading }, props: {}, data: function data() {return { census: { orderCount: {}, orderTimeCount: {} }, list: [], where: { page: 1, limit: 15 }, loaded: false, loading: false };}, mounted: function mounted() {this.getIndex();this.getList();}, onReachBottom: function onReachBottom() {!this.loading && this.getList();}, methods: { goStatistics: function goStatistics(query) {this.$yrouter.push({ path: "/pages/orderAdmin/Statistics/index", query: query });}, goAdminOrderList: function goAdminOrderList(types) {this.$yrouter.push({ path: "/pages/orderAdmin/AdminOrderList/index", query: { types: types } });}, getIndex: function getIndex() {var that = this;(0, _admin.getStatisticsInfo)().then(function (res) {that.census = res.data;that.census.unpaidCount = that.census.orderCount.unpaidCount;}, function (err) {that.$dialog.message(err.msg);});}, getList: function getList() {var that = this;if (that.loading || that.loaded) return;that.loading = true;(0, _admin.getStatisticsMonth)(that.where).then(function (res) {that.loading = false;that.loaded = res.data.length < that.where.limit;that.list.push.apply(that.list, res.data);that.where.page = that.where.page + 1;}, function (error) {that.$dialog.message(error.msg);}, 300);} } };exports.default = _default;
/***/ })
@@ -1 +1 @@
<view data-ref="container" class="order-index _div vue-ref"><view class="header acea-row _div"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.unpaidCount}}</view><view class="_div">待付款</view></view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.unshippedCount}}</view><view class="_div">待发货</view></view><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.receivedCount}}</view><view class="_div">待收货</view></view><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.evaluatedCount}}</view><view class="_div">待评价</view></view><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.refundCount}}</view><view class="_div">退款</view></view></view><view class="wrapper _div"><view class="title _div"><label class="iconfont icon-shujutongji _span"></label>数据统计</view><view class="list acea-row _div"><view data-event-opts="{{[['tap',[['e5',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.todayPrice}}</view><view class="_div">今日成交额</view></view><view data-event-opts="{{[['tap',[['e6',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.proPrice}}</view><view class="_div">昨日成交额</view></view><view data-event-opts="{{[['tap',[['e7',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.monthPrice}}</view><view class="_div">本月成交额</view></view><view data-event-opts="{{[['tap',[['e8',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.todayCount}}</view><view class="_div">今日订单数</view></view><view data-event-opts="{{[['tap',[['e9',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.proCount}}</view><view class="_div">昨日订单数</view></view><view data-event-opts="{{[['tap',[['e10',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.monthCount}}</view><view class="_div">本月订单数</view></view></view></view><view class="public-wrapper _div"><view class="title _div"><label class="iconfont icon-xiangxishuju _span"></label>详细数据</view><view class="nav acea-row row-between-wrapper _div"><view class="data _div">日期</view><view class="browse _div">订单数</view><view class="turnover _div">成交额</view></view><view class="conter _div"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="orderListIndex" wx:key="orderListIndex"><view class="item acea-row row-between-wrapper _div"><view class="data _div">{{item.time}}</view><view class="browse _div">{{item.count}}</view><view class="turnover _div">{{item.price}}</view></view></block></view></view><loading vue-id="4c65cdfa-1" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading></view>
<view data-ref="container" class="order-index _div vue-ref"><view class="header acea-row _div"><view data-event-opts="{{[['tap',[['goAdminOrderList',[0]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.unpaidCount}}</view><view class="_div">待付款</view></view><view data-event-opts="{{[['tap',[['goAdminOrderList',[1]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.unshippedCount}}</view><view class="_div">待发货</view></view><view data-event-opts="{{[['tap',[['goAdminOrderList',[2]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.receivedCount}}</view><view class="_div">待收货</view></view><view data-event-opts="{{[['tap',[['goAdminOrderList',[3]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.evaluatedCount}}</view><view class="_div">待评价</view></view><view data-event-opts="{{[['tap',[['goAdminOrderList',[3]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderCount.refundCount}}</view><view class="_div">退款</view></view></view><view class="wrapper _div"><view class="title _div"><label class="iconfont icon-shujutongji _span"></label>数据统计</view><view class="list acea-row _div"><view data-event-opts="{{[['tap',[['goStatistics',[['o',['type','price'],['time','today']]]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.todayPrice}}</view><view class="_div">今日成交额</view></view><view data-event-opts="{{[['tap',[['goStatistics',[['o',['type','price'],['time','yesterday']]]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.proPrice}}</view><view class="_div">昨日成交额</view></view><view data-event-opts="{{[['tap',[['goStatistics',[['o',['type','price'],['time','month']]]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.monthPrice}}</view><view class="_div">本月成交额</view></view><view data-event-opts="{{[['tap',[['goStatistics',[['o',['type','order'],['time','today']]]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.todayCount}}</view><view class="_div">今日订单数</view></view><view data-event-opts="{{[['tap',[['goStatistics',[['o',['type','order'],['time','yesterday']]]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.proCount}}</view><view class="_div">昨日订单数</view></view><view data-event-opts="{{[['tap',[['goStatistics',[['o',['type','order'],['time','month']]]]]]]}}" class="item _div" bindtap="__e"><view class="num _div">{{census.orderTimeCount.monthCount}}</view><view class="_div">本月订单数</view></view></view></view><view class="public-wrapper _div"><view class="title _div"><label class="iconfont icon-xiangxishuju _span"></label>详细数据</view><view class="nav acea-row row-between-wrapper _div"><view class="data _div">日期</view><view class="browse _div">订单数</view><view class="turnover _div">成交额</view></view><view class="conter _div"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="orderListIndex" wx:key="orderListIndex"><view class="item acea-row row-between-wrapper _div"><view class="data _div">{{item.time}}</view><view class="browse _div">{{item.count}}</view><view class="turnover _div">{{item.price}}</view></view></block></view></view><loading vue-id="4c65cdfa-1" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading></view>
@@ -133,7 +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;
@@ -373,7 +373,7 @@ var Loading = function Loading() {return __webpack_require__.e(/*! import() | co
that.time_price = res.data.time;
},
function (error) {
wx.showToast({
uni.showToast({
title: error.msg,
icon: "none",
duration: 2000 });
@@ -538,6 +538,7 @@ var Loading = function Loading() {return __webpack_require__.e(/*! import() | co
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
@@ -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;
/***/ }),
+8 -13
View File
@@ -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>
+17 -191
View File
@@ -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"]))
/***/ }),
+7 -11
View File
@@ -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>
+10 -25
View File
@@ -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>
+13 -12
View File
@@ -131,7 +131,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));
@@ -209,23 +209,23 @@ var _user = __webpack_require__(/*! @/api/user */ 19);function _interopRequireDe
step: 1 }).
then(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
that.$yrouter.replace({
path: "/pages/user/PersonalData/main" });
path: "/pages/user/PersonalData/index" });
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
that.$yrouter.replace({
path: "/pages/user/PersonalData/main" });
path: "/pages/user/PersonalData/index" });
});
} },
@@ -234,29 +234,29 @@ var _user = __webpack_require__(/*! @/api/user */ 19);function _interopRequireDe
txt: "取消",
color: false,
callback: function callback() {
wx.showToast({
uni.showToast({
title: "已取消绑定",
icon: "none",
duration: 2000 });
that.$yrouter.replace({
path: "/pages/user/PersonalData/main" });
path: "/pages/user/PersonalData/index" });
} }] });
} else {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
that.$yrouter.replace({ path: "/pages/user/PersonalData/main" });
that.$yrouter.replace({ path: "/pages/user/PersonalData/index" });
}
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -281,7 +281,7 @@ var _user = __webpack_require__(/*! @/api/user */ 19);function _interopRequireDe
(0, _user.registerVerify)({ phone: phone }).
then(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
@@ -289,12 +289,13 @@ var _user = __webpack_require__(/*! @/api/user */ 19);function _interopRequireDe
that.sendCode();
}).
catch(function (res) {
wx.showToast({
uni.showToast({
title: res.msg,
icon: "none",
duration: 2000 });
});case 11:case "end":return _context2.stop();}}}, _callee2, this, [[2, 7]]);}));function code() {return _code.apply(this, arguments);}return code;}() } };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/user/CustomerService/index",
query: {
id: _vm.item.uid
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -174,7 +164,13 @@ var _user = __webpack_require__(/*! @/api/user */ 19); //
//
//
//
var _default = { name: "CustomerList", data: function data() {return { list: [] };}, methods: { getList: function getList() {var _this = this;(0, _user.serviceList)().then(function (res) {_this.list = res.data;});} },
var _default = { name: "CustomerList", data: function data() {return { list: [] };}, methods: { goCustomerService: function goCustomerService(item) {this.$yrouter.push({ path: "/pages/user/CustomerService/index", query: { id: item.uid } });},
getList: function getList() {var _this = this;
(0, _user.serviceList)().then(function (res) {
_this.list = res.data;
});
} },
mounted: function mounted() {
this.getList();
} };exports.default = _default;
@@ -1 +1 @@
<view class="CustomerList _div data-v-668f00fd"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="item acea-row row-between-wrapper _div data-v-668f00fd" bindtap="__e"><view class="pictrue _div data-v-668f00fd"><image src="{{item.avatar}}" class="_img data-v-668f00fd"></image></view><view class="text line1 _div data-v-668f00fd">{{item.nickname}}</view></view></block></view>
<view class="CustomerList _div data-v-668f00fd"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><view data-event-opts="{{[['tap',[['goCustomerService',['$0'],[[['list','id',item.id]]]]]]]}}" class="item acea-row row-between-wrapper _div data-v-668f00fd" bindtap="__e"><view class="pictrue _div data-v-668f00fd"><image src="{{item.avatar}}" class="_img data-v-668f00fd"></image></view><view class="text line1 _div data-v-668f00fd">{{item.nickname}}</view></view></block></view>
+20 -58
View File
@@ -131,35 +131,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;
@@ -358,36 +330,26 @@ var _dayjs = _interopRequireDefault(__webpack_require__(/*! dayjs */ 24));functi
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = { name: "PersonalData", components: {// VueCoreImageUpload
}, data: function data() {return { url: "".concat(_config.VUE_APP_API_URL, "/upload/image"), headers: { Authorization: "Bearer " + this.$store.state.token }, avatar: "", isWeixin: false, currentAccounts: 0, switchUserInfo: [], userIndex: 0 };}, watch: { $yroute: function $yroute(n) {if (n.name === "PersonalData") this.$store.dispatch("USERINFO", true);} }, computed: (0, _vuex.mapGetters)(["userInfo"]), mounted: function mounted() {this.avatar = this.userInfo.avatar;this.isWeixin = (0, _utils.isWeixin)();this.getUserInfo();}, methods: { switchAccounts: function switchAccounts(index) {var that = this;this.userIndex = index;var userInfo = this.switchUserInfo[this.userIndex];if (this.switchUserInfo.length <= 1) return true;if (userInfo === undefined) return this.$dialog.toast({ mes: "切换的账号不存在" });if (userInfo.user_type === "h5") {(0, _user.switchH5Login)().then(function (_ref) {var data = _ref.data;wx.hideLoading();var expires_time = (0, _dayjs.default)(data.expires_time);_store.default.commit("LOGIN", data.token, expires_time);that.$emit("changeswitch", false);location.reload();}).catch(function (err) {wx.hideLoading();return that.$dialog.toast({ mes: err });});} else {_cookie.default.set("loginType", "wechat", 60);wx.hideLoading();this.$store.commit("LOGOUT");this.$emit("changeswitch", false);}}, getUserInfo: function getUserInfo() {var _this = this;var that = this;(0, _user.getUser)().then(function (res) {var switchUserInfo = res.data.switchUserInfo;for (var i = 0; i < switchUserInfo.length; i++) {if (switchUserInfo[i].uid == that.userInfo.uid) that.userIndex = i;if (!that.isWeixin && switchUserInfo[i].user_type != "h5" && switchUserInfo[i].phone === "") switchUserInfo.splice(i, 1);}that.$set(_this, "switchUserInfo", switchUserInfo);});}, imageuploaded: function imageuploaded(res) {if (res.status !== 200) return this.$dialog.error(res.msg || "上传图片失败");if (this.switchUserInfo[this.userIndex] === undefined) return;this.$set(this.switchUserInfo[this.userIndex], "avatar", res.data.url);}, submit: function submit() {var _this2 = this;var userInfo = this.switchUserInfo[this.userIndex];(0, _user.postUserEdit)({ nickname: (0, _utils.trim)(this.userInfo.nickname), avatar: userInfo.avatar }).then(function (res) {_this2.$store.dispatch("USERINFO", true);_this2.$wx.showToast({ title: res.msg, icon: "none", duration: 2000 });_this2.$yrouter.back();}, function (error) {_this2.$dialog.error(error.msg);});}, logout: function logout() {var _this3 = this;this.$dialog.confirm({ mes: "确认退出登录?", opts: function opts() {(0, _user.getLogout)().then(function (res) {_this3.$store.commit("LOGOUT");clearAuthStatus();location.href = location.origin;}).catch(function (err) {});} });} } };exports.default = _default;
}, data: function data() {return { url: "".concat(_config.VUE_APP_API_URL, "/upload/image"), headers: { Authorization: "Bearer " + this.$store.state.token }, avatar: "", isWeixin: false, currentAccounts: 0, switchUserInfo: [], userIndex: 0 };}, watch: { $yroute: function $yroute(n) {if (n.name === "PersonalData") this.$store.dispatch("USERINFO", true);} }, computed: (0, _vuex.mapGetters)(["userInfo"]), mounted: function mounted() {this.avatar = this.userInfo.avatar;this.isWeixin = (0, _utils.isWeixin)();this.getUserInfo();}, methods: { goChangePassword: function goChangePassword() {this.$yrouter.push("/pages/user/ChangePassword/index");}, switchAccounts: function switchAccounts(index) {var that = this;this.userIndex = index;var userInfo = this.switchUserInfo[this.userIndex];if (this.switchUserInfo.length <= 1) return true;if (userInfo === undefined) return this.$dialog.toast({ mes: "切换的账号不存在" });if (userInfo.user_type === "h5") {(0, _user.switchH5Login)().then(function (_ref) {var data = _ref.data;uni.hideLoading();var expires_time = (0, _dayjs.default)(data.expires_time);_store.default.commit("LOGIN", data.token, expires_time);that.$emit("changeswitch", false);location.reload();}).catch(function (err) {uni.hideLoading();return that.$dialog.toast({ mes: err });});} else {_cookie.default.set("loginType", "wechat", 60);uni.hideLoading();this.$store.commit("LOGOUT");this.$emit("changeswitch", false);}}, getUserInfo: function getUserInfo() {var _this = this;var that = this;(0, _user.getUser)().then(function (res) {var switchUserInfo = res.data.switchUserInfo;for (var i = 0; i < switchUserInfo.length; i++) {if (switchUserInfo[i].uid == that.userInfo.uid) that.userIndex = i;if (!that.isWeixin && switchUserInfo[i].user_type != "h5" && switchUserInfo[i].phone === "") switchUserInfo.splice(i, 1);}that.$set(_this, "switchUserInfo", switchUserInfo);});}, imageuploaded: function imageuploaded(res) {if (res.status !== 200) return this.$dialog.error(res.msg || "上传图片失败");if (this.switchUserInfo[this.userIndex] === undefined) return;this.$set(this.switchUserInfo[this.userIndex], "avatar", res.data.url);}, submit: function submit() {var _this2 = this;var userInfo = this.switchUserInfo[this.userIndex];(0, _user.postUserEdit)({ nickname: (0, _utils.trim)(this.userInfo.nickname), avatar: userInfo.avatar }).then(function (res) {_this2.$store.dispatch("USERINFO", true);_this2.$uni.showToast({ title: res.msg, icon: "none", duration: 2000 });_this2.$yrouter.back();}, function (error) {_this2.$dialog.error(error.msg);
});
},
logout: function logout() {var _this3 = this;
this.$dialog.confirm({
mes: "确认退出登录?",
opts: function opts() {
(0, _user.getLogout)().
then(function (res) {
_this3.$store.commit("LOGOUT");
clearAuthStatus();
location.href = location.origin;
}).
catch(function (err) {});
} });
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })
@@ -1 +1 @@
<view class="personal-data _div"><view class="wrapper _div"><view class="title _div">管理我的账号</view><view class="wrapList _div"><block wx:for="{{switchUserInfo}}" wx:for-item="item" wx:for-index="switchUserInfoIndex" wx:key="switchUserInfoIndex"><view class="{{['item acea-row row-between-wrapper _div',item.uid===userInfo.uid?'on':'']}}"><view class="picTxt acea-row row-between-wrapper _div"><view class="pictrue _div"><block wx:if="{{item.uid===userInfo.uid}}"><image class="alter _img" src="{{$VUE_APP_RESOURCES_URL+'/images/alter.png'}}"></image></block></view><view class="text _div"><view class="name line1 _div">{{item.nickname}}</view><view class="phone _div">{{"绑定手机号:"+item.phone}}</view></view></view><block wx:if="{{item.uid===userInfo.uid}}"><view class="currentBnt acea-row row-center-wrapper font-color-red _div">当前账号</view></block><block wx:else><view data-event-opts="{{[['tap',[['switchAccounts',['$0'],['index']]]]]}}" class="bnt font-color-red acea-row row-center-wrapper _div" bindtap="__e">使用账号</view></block></view></block></view></view><view class="list _div"><view class="item acea-row row-between-wrapper _div"><view class="_div">昵称</view><view class="input _div"><input type="text" data-event-opts="{{[['input',[['__set_model',['$0','nickname','$event',[]],['userInfo']]]]]}}" value="{{userInfo.nickname}}" bindinput="__e"/></view></view><view class="item acea-row row-between-wrapper _div"><view class="_div">ID号</view><view class="input acea-row row-between-wrapper _div"><input class="id" type="text" disabled value="{{userInfo.uid}}"/><label class="iconfont icon-suozi _span"></label></view></view><view class="item acea-row row-between-wrapper _div"><view class="_div">手机号</view><view class="input _div"><block wx:if="{{userInfo.phone}}"><input type="text" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['userInfo']]]]]}}" value="{{userInfo.phone}}" bindinput="__e"/></block><block wx:else><input class="id" type="text" value="未绑定" disabled/></block></view></view></view></view>
<view class="personal-data _div"><view class="wrapper _div"><view class="title _div">管理我的账号</view><view class="wrapList _div"><block wx:for="{{switchUserInfo}}" wx:for-item="item" wx:for-index="switchUserInfoIndex" wx:key="switchUserInfoIndex"><view class="{{['item acea-row row-between-wrapper _div',item.uid===userInfo.uid?'on':'']}}"><view class="picTxt acea-row row-between-wrapper _div"><view class="pictrue _div"><block wx:if="{{item.uid===userInfo.uid}}"><image class="alter _img" src="{{$VUE_APP_RESOURCES_URL+'/images/alter.png'}}"></image></block></view><view class="text _div"><view class="name line1 _div">{{item.nickname}}</view><view class="phone _div">{{"绑定手机号:"+item.phone}}</view></view></view><block wx:if="{{item.uid===userInfo.uid}}"><view class="currentBnt acea-row row-center-wrapper font-color-red _div">当前账号</view></block><block wx:else><view data-event-opts="{{[['tap',[['switchAccounts',['$0'],['index']]]]]}}" class="bnt font-color-red acea-row row-center-wrapper _div" bindtap="__e">使用账号</view></block></view></block></view></view><view class="list _div"><view class="item acea-row row-between-wrapper _div"><view class="_div">昵称</view><view class="input _div"><input type="text" data-event-opts="{{[['input',[['__set_model',['$0','nickname','$event',[]],['userInfo']]]]]}}" value="{{userInfo.nickname}}" bindinput="__e"/></view></view><view class="item acea-row row-between-wrapper _div"><view class="_div">ID号</view><view class="input acea-row row-between-wrapper _div"><input class="id" type="text" disabled value="{{userInfo.uid}}"/><label class="iconfont icon-suozi _span"></label></view></view><view class="item acea-row row-between-wrapper _div"><view class="_div">手机号</view><view class="input _div"><block wx:if="{{userInfo.phone}}"><input type="text" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['userInfo']]]]]}}" value="{{userInfo.phone}}" bindinput="__e"/></block><block wx:else><input class="id" type="text" value="未绑定" disabled/></block></view></view><view data-event-opts="{{[['tap',[['goChangePassword']]]]}}" class="item acea-row row-between-wrapper _div" bindtap="__e"><view class="_div">密码</view><view class="input acea-row row-between-wrapper _div"><label class="_span">点击修改密码</label><label class="iconfont icon-suozi _span"></label></view></view></view></view>
+1 -17
View File
@@ -100,14 +100,6 @@ var render = function() {
var _c = _vm._self._c || _h
var m0 = __webpack_require__(/*! @/assets/images/logo.png */ 56)
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push({
name: "Login"
})
}
}
_vm.$mp.data = Object.assign(
{},
{
@@ -196,10 +188,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@@ -256,11 +244,7 @@ var _SendVerifyCode = _interopRequireDefault(__webpack_require__(/*! @/mixins/Se
//
//
//
//
//
//
//
var _default = { name: "Register", mixins: [_SendVerifyCode.default], methods: { code: function code() {this.sendCode();} } };exports.default = _default;
var _default = { name: "Register", mixins: [_SendVerifyCode.default], methods: { code: function code() {this.sendCode();}, goLogin: function goLogin() {this.$yrouter.push({ path: "/pages/user/Login/index" });} } };exports.default = _default;
/***/ })
@@ -1 +1 @@
<view class="register absolute _div"><view class="shading _div"><view class="pictrue acea-row row-center-wrapper _div"><image src="{{$root.m0}}" class="_img"></image></view></view><view class="whiteBg _div"><view class="title _div">注册账号</view><view class="list _div"><view class="item _div"><view class="_div"><svg class="icon" vue-id="398a87c5-1" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('398a87c5-2')+','+('398a87c5-1')}}" xlink:href="#icon-phone_" bind:__l="__l"></use></svg><input type="text" placeholder="输入手机号码"/></view></view><view class="item _div"><view class="align-left _div"><svg class="icon" vue-id="398a87c5-3" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('398a87c5-4')+','+('398a87c5-3')}}" xlink:href="#icon-code_1" bind:__l="__l"></use></svg><input class="codeIput" type="text" placeholder="填写验证码"/><button class="{{['code',disabled===true?'on':'']}}" disabled="{{disabled}}" data-event-opts="{{[['tap',[['code',['$event']]]]]}}" bindtap="__e">{{''+text+''}}</button></view></view><view class="item _div"><view class="_div"><svg class="icon" vue-id="398a87c5-5" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('398a87c5-6')+','+('398a87c5-5')}}" xlink:href="#icon-code_" bind:__l="__l"></use></svg><input type="text" placeholder="填写您的登录密码"/></view></view></view><view class="logon _div">注册</view><view class="tip _div">已有账号?<label data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="font-color-red _span" bindtap="__e">立即登录</label></view></view><view class="bottom _div"></view></view>
<view class="register absolute _div"><view class="shading _div"><view class="pictrue acea-row row-center-wrapper _div"><image src="{{$root.m0}}" class="_img"></image></view></view><view class="whiteBg _div"><view class="title _div">注册账号</view><view class="list _div"><view class="item _div"><view class="_div"><svg class="icon" vue-id="398a87c5-1" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('398a87c5-2')+','+('398a87c5-1')}}" xlink:href="#icon-phone_" bind:__l="__l"></use></svg><input type="text" placeholder="输入手机号码"/></view></view><view class="item _div"><view class="align-left _div"><svg class="icon" vue-id="398a87c5-3" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('398a87c5-4')+','+('398a87c5-3')}}" xlink:href="#icon-code_1" bind:__l="__l"></use></svg><input class="codeIput" type="text" placeholder="填写验证码"/><button class="{{['code',disabled===true?'on':'']}}" disabled="{{disabled}}" data-event-opts="{{[['tap',[['code',['$event']]]]]}}" bindtap="__e">{{text}}</button></view></view><view class="item _div"><view class="_div"><svg class="icon" vue-id="398a87c5-5" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('398a87c5-6')+','+('398a87c5-5')}}" xlink:href="#icon-code_" bind:__l="__l"></use></svg><input type="text" placeholder="填写您的登录密码"/></view></view></view><view class="logon _div">注册</view><view class="tip _div">已有账号?<label data-event-opts="{{[['tap',[['goLogin']]]]}}" class="font-color-red _span" bindtap="__e">立即登录</label></view></view><view class="bottom _div"></view></view>
@@ -100,14 +100,6 @@ var render = function() {
var _c = _vm._self._c || _h
var m0 = __webpack_require__(/*! @/assets/images/logo.png */ 56)
if (!_vm._isMounted) {
_vm.e0 = function($event) {
return _vm.$yrouter.push({
name: "Login"
})
}
}
_vm.$mp.data = Object.assign(
{},
{
@@ -186,19 +178,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@@ -229,6 +208,9 @@ var _validate = _interopRequireWildcard(__webpack_require__(/*! @/utils/validate
},
mixins: [_SendVerifyCode.default],
methods: {
goLogin: function goLogin() {
this.$yrouter.push({ path: "/pages/user/Login/index" });
},
registerReset: function () {var _registerReset2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {var that, account, captcha, password;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:
that = this;
account = that.account, captcha = that.captcha, password = that.password;_context.prev = 2;_context.next = 5;return (
@@ -1 +1 @@
<view class="register absolute _div"><view class="shading _div"><view class="pictrue acea-row row-center-wrapper _div"><image src="{{$root.m0}}" class="_img"></image></view></view><view class="whiteBg _div"><view class="title _div">找回密码</view><view class="list _div"><view class="item _div"><view class="_div"><svg class="icon" vue-id="d92a6c1e-1" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('d92a6c1e-2')+','+('d92a6c1e-1')}}" xlink:href="#icon-phone_" bind:__l="__l"></use></svg><input type="text" placeholder="输入手机号码" data-event-opts="{{[['input',[['__set_model',['','account','$event',[]]]]]]}}" value="{{account}}" bindinput="__e"/></view></view><view class="item _div"><view class="align-left _div"><svg class="icon" vue-id="d92a6c1e-3" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('d92a6c1e-4')+','+('d92a6c1e-3')}}" xlink:href="#icon-code_1" bind:__l="__l"></use></svg><input class="codeIput" type="text" placeholder="填写验证码" data-event-opts="{{[['input',[['__set_model',['','captcha','$event',[]]]]]]}}" value="{{captcha}}" bindinput="__e"/><button class="{{['code',disabled===true?'on':'']}}" disabled="{{disabled}}" data-event-opts="{{[['tap',[['code',['$event']]]]]}}" bindtap="__e">{{''+text+''}}</button></view></view><view class="item _div"><view class="_div"><svg class="icon" vue-id="d92a6c1e-5" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('d92a6c1e-6')+','+('d92a6c1e-5')}}" xlink:href="#icon-code_" bind:__l="__l"></use></svg><input type="password" placeholder="填写您的登录密码" data-event-opts="{{[['input',[['__set_model',['','password','$event',[]]]]]]}}" value="{{password}}" bindinput="__e"/></view></view></view><view data-event-opts="{{[['tap',[['registerReset',['$event']]]]]}}" class="logon _div" bindtap="__e">确认</view><view class="tip _div"><label data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="font-color-red _span" bindtap="__e">立即登录</label></view></view><view class="bottom _div"></view></view>
<view class="register absolute _div"><view class="shading _div"><view class="pictrue acea-row row-center-wrapper _div"><image src="{{$root.m0}}" class="_img"></image></view></view><view class="whiteBg _div"><view class="title _div">找回密码</view><view class="list _div"><view class="item _div"><view class="_div"><svg class="icon" vue-id="d92a6c1e-1" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('d92a6c1e-2')+','+('d92a6c1e-1')}}" xlink:href="#icon-phone_" bind:__l="__l"></use></svg><input type="text" placeholder="输入手机号码" data-event-opts="{{[['input',[['__set_model',['','account','$event',[]]]]]]}}" value="{{account}}" bindinput="__e"/></view></view><view class="item _div"><view class="align-left _div"><svg class="icon" vue-id="d92a6c1e-3" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('d92a6c1e-4')+','+('d92a6c1e-3')}}" xlink:href="#icon-code_1" bind:__l="__l"></use></svg><input class="codeIput" type="text" placeholder="填写验证码" data-event-opts="{{[['input',[['__set_model',['','captcha','$event',[]]]]]]}}" value="{{captcha}}" bindinput="__e"/><button class="{{['code',disabled===true?'on':'']}}" disabled="{{disabled}}" data-event-opts="{{[['tap',[['code',['$event']]]]]}}" bindtap="__e">{{text}}</button></view></view><view class="item _div"><view class="_div"><svg class="icon" vue-id="d92a6c1e-5" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('d92a6c1e-6')+','+('d92a6c1e-5')}}" xlink:href="#icon-code_" bind:__l="__l"></use></svg><input type="password" placeholder="填写您的登录密码" data-event-opts="{{[['input',[['__set_model',['','password','$event',[]]]]]]}}" value="{{password}}" bindinput="__e"/></view></view></view><view data-event-opts="{{[['tap',[['registerReset',['$event']]]]]}}" class="logon _div" bindtap="__e">确认</view><view class="tip _div"><label data-event-opts="{{[['tap',[['goLogin']]]]}}" class="font-color-red _span" bindtap="__e">立即登录</label></view></view><view class="bottom _div"></view></view>
+3 -115
View File
@@ -83,79 +83,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("/pages/user/PersonalData/index")
}
_vm.e1 = function($event) {
return _vm.$yrouter.push({
path: "/pages/user/PersonalData/index"
})
}
_vm.e2 = function($event) {
return _vm.$yrouter.push({
path: "/pages/user/UserAccount/index"
})
}
_vm.e3 = function($event) {
return _vm.$yrouter.push("/pages/user/promotion/UserPromotion/index")
}
_vm.e4 = function($event) {
return _vm.$yrouter.push("/pages/user/signIn/Integral/index")
}
_vm.e5 = function($event) {
return _vm.$yrouter.push("/pages/user/coupon/UserCoupon/index")
}
_vm.e6 = function($event) {
return _vm.$yrouter.push("/pages/order/MyOrder/index")
}
_vm.e7 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/MyOrder/index",
query: {
type: 0
}
})
}
_vm.e8 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/MyOrder/index",
query: {
type: 1
}
})
}
_vm.e9 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/MyOrder/index",
query: {
type: 2
}
})
}
_vm.e10 = function($event) {
return _vm.$yrouter.push({
path: "/pages/order/MyOrder/index",
query: {
type: 3
}
})
}
_vm.e11 = function($event) {
return _vm.$yrouter.push("/pages/order/ReturnList/index")
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -189,27 +116,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;
@@ -505,27 +412,8 @@ var _vuex = __webpack_require__(/*! vuex */ 16); //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var SwitchWindow = function SwitchWindow() {return __webpack_require__.e(/*! import() | components/SwitchWindow */ "components/SwitchWindow").then(__webpack_require__.bind(null, /*! @/components/SwitchWindow */ 536));};var NAME = "User";var _default = { name: NAME, components: { SwitchWindow: SwitchWindow }, props: {}, data: function data() {return { userInfo: {}, MyMenus: [], orderStatusNum: {}, switchActive: false, isWeixin: false };}, computed: (0, _vuex.mapGetters)(["wxCode"]), watch: { $yroute: function $yroute(n) {if (n.name === NAME) this.User();} }, mounted: function mounted() {console.log('这个是个人中心');this.User();this.MenuUser();this.isWeixin = (0, _utils.isWeixin)();}, methods: { getPhoneNumber: function getPhoneNumber(e) {var _this = this;console.log(e.mp.detail);if (e.mp.detail.errMsg == "getPhoneNumber:ok") {wx.showLoading({ title: "绑定中" });wx.login({ success: function success(loginRes) {(0, _user.bindingPhone)({ code: loginRes.code, encryptedData: e.mp.detail.encryptedData, iv: e.mp.detail.iv }).then(function (res) {_this.User();wx.hideLoading();wx.showToast({ title: res.msg, icon: "success", duration: 2000 });}).catch(function (error) {wx.showToast({ title: error.msg || error.response.data.msg, icon: "none", duration: 2000 });});} });} else {wx.showToast({ title: "已拒绝授权", icon: "none", duration: 2000 });}}, changeswitch: function changeswitch(data) {this.switchActive = data;}, User: function User() {var that = this;(0, _user.getUser)().then(function (res) {that.userInfo = res.data;that.orderStatusNum = res.data.orderStatusNum;});}, MenuUser: function MenuUser() {var that = this;(0, _user.getMenuUser)().then(function (res) {that.MyMenus = res.data.routine_my_menus;});}, goPages: function goPages(index) {var url = this.MyMenus[index].wxapp_url;if (url === "/pages/user/promotion/UserPromotion/main" && this.userInfo.statu === 1) {if (!this.userInfo.isPromoter) return this.$dialog.toast({ mes: "您还没有推广权限!!" });}if (url === "/pages/orderAdmin/OrderIndex/main" && !this.userInfo.adminid) {return this.$dialog.toast({ mes: "您还不是管理员!!" });}this.$yrouter.push({ path: this.MyMenus[index].wxapp_url });} }, onShow: function onShow() {this.User();this.MenuUser();this.isWeixin = (0, _utils.isWeixin)();} };exports.default = _default;
var SwitchWindow = function SwitchWindow() {return __webpack_require__.e(/*! import() | components/SwitchWindow */ "components/SwitchWindow").then(__webpack_require__.bind(null, /*! @/components/SwitchWindow */ 536));};var NAME = "User";var _default = { name: NAME, components: { SwitchWindow: SwitchWindow }, props: {}, data: function data() {return { userInfo: {}, MyMenus: [], orderStatusNum: {}, switchActive: false, isWeixin: false };}, computed: (0, _vuex.mapGetters)(["wxCode"]), watch: { $yroute: function $yroute(n) {if (n.name === NAME) this.User();} }, mounted: function mounted() {console.log("这个是个人中心");this.User();this.MenuUser();this.isWeixin = (0, _utils.isWeixin)();}, methods: { goReturnList: function goReturnList() {this.$yrouter.push("/pages/order/ReturnList/index");}, goMyOrder: function goMyOrder(type) {this.$yrouter.push({ path: "/pages/order/MyOrder/index", query: { type: type } });}, goUserCoupon: function goUserCoupon() {this.$yrouter.push("/pages/user/coupon/UserCoupon/index");}, goIntegral: function goIntegral() {this.$yrouter.push("/pages/user/signIn/Integral/index");}, goUserPromotion: function goUserPromotion() {this.$yrouter.push("/pages/user/promotion/UserPromotion/index");}, goUserAccount: function goUserAccount() {this.$yrouter.push({ path: "/pages/user/UserAccount/index" });}, goPersonalData: function goPersonalData() {this.$yrouter.push("/pages/user/PersonalData/index");}, getPhoneNumber: function getPhoneNumber(e) {var _this = this;console.log(e.mp.detail);if (e.mp.detail.errMsg == "getPhoneNumber:ok") {uni.showLoading({ title: "绑定中" });wx.login({ success: function success(loginRes) {(0, _user.bindingPhone)({ code: loginRes.code, encryptedData: e.mp.detail.encryptedData, iv: e.mp.detail.iv }).then(function (res) {_this.User();uni.hideLoading();uni.showToast({ title: res.msg, icon: "success", duration: 2000 });}).catch(function (error) {uni.showToast({ title: error.msg || error.response.data.msg, icon: "none", duration: 2000 });});} });} else {uni.showToast({ title: "已拒绝授权", icon: "none", duration: 2000 });}}, changeswitch: function changeswitch(data) {this.switchActive = data;}, User: function User() {var that = this;(0, _user.getUser)().then(function (res) {that.userInfo = res.data;that.orderStatusNum = res.data.orderStatusNum;});}, MenuUser: function MenuUser() {var that = this;(0, _user.getMenuUser)().then(function (res) {that.MyMenus = res.data.routine_my_menus;});}, goPages: function goPages(index) {var url = this.MyMenus[index].uniapp_url;if (url === "/pages/user/promotion/UserPromotion/index" && this.userInfo.statu === 1) {if (!this.userInfo.isPromoter) return this.$dialog.toast({ mes: "您还没有推广权限!!" });}if (url === "/pages/orderAdmin/OrderIndex/index" && !this.userInfo.adminid) {return this.$dialog.toast({ mes: "您还不是管理员!!" });}this.$yrouter.push({ path: this.MyMenus[index].uniapp_url });} }, onShow: function onShow() {this.User();this.MenuUser();this.isWeixin = (0, _utils.isWeixin)();} };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,25 +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/user/UserBill/index",
query: {
id: 0
}
})
}
_vm.e1 = function($event) {
return _vm.$yrouter.push({
path: "/pages/user/UserBill/index",
query: {
id: 1
}
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -214,6 +195,9 @@ var _user = __webpack_require__(/*! @/api/user */ 19);var Recommend = function R
this.getActivity();
},
methods: {
goUserBill: function goUserBill(id) {
this.$yrouter.push({ path: "/pages/user/UserBill/index", query: { id: id } });
},
getIndex: function getIndex() {
var that = this;
(0, _user.getBalance)().then(
@@ -1 +1 @@
<view class="my-account _div"><view class="wrapper _div"><view class="header _div"><view class="headerCon _div"><view class="account acea-row row-top row-between _div"><view class="assets _div"><view class="_div">总资产(元)</view><view class="money _div">{{now_money}}</view></view></view><view class="cumulative acea-row row-top _div"><view class="item _div"><view class="_div">累计消费(元)</view><view class="money _div">{{orderStatusSum}}</view></view></view></view></view><view class="nav acea-row row-middle _div"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="pictrue _div"><image src="{{$VUE_APP_RESOURCES_URL+'/images/record1.png'}}" class="_img"></image></view><view class="_div">账单记录</view></view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="item _div" bindtap="__e"><view class="pictrue _div"><image src="{{$VUE_APP_RESOURCES_URL+'/images/record2.png'}}" class="_img"></image></view><view class="_div">消费记录</view></view></view><view class="advert acea-row row-between-wrapper _div"></view></view><recommend vue-id="3977060c-1" bind:__l="__l"></recommend></view>
<view class="my-account _div"><view class="wrapper _div"><view class="header _div"><view class="headerCon _div"><view class="account acea-row row-top row-between _div"><view class="assets _div"><view class="_div">总资产(元)</view><view class="money _div">{{now_money}}</view></view></view><view class="cumulative acea-row row-top _div"><view class="item _div"><view class="_div">累计消费(元)</view><view class="money _div">{{orderStatusSum}}</view></view></view></view></view><view class="nav acea-row row-middle _div"><view data-event-opts="{{[['tap',[['goUserBill',[0]]]]]}}" class="item _div" bindtap="__e"><view class="pictrue _div"><image src="{{$VUE_APP_RESOURCES_URL+'/images/record1.png'}}" class="_img"></image></view><view class="_div">账单记录</view></view><view data-event-opts="{{[['tap',[['goUserBill',[1]]]]]}}" class="item _div" bindtap="__e"><view class="pictrue _div"><image src="{{$VUE_APP_RESOURCES_URL+'/images/record2.png'}}" class="_img"></image></view><view class="_div">消费记录</view></view></view><view class="advert acea-row row-between-wrapper _div"></view></view><recommend vue-id="3977060c-1" bind:__l="__l"></recommend></view>
@@ -133,7 +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;
@@ -307,15 +307,15 @@ var _default = { components: { Loading: Loading }, data: function data() {return
that.addressList.push.apply(that.addressList, res.data);that.loadend = res.data.length < that.limit; //判断所有数据是否加载完成;
that.page = that.page + 1;});}, /**
* 编辑地址
*/editAddress: function editAddress(index) {this.$yrouter.push({ path: "/pages/user/address/AddAddress/main", query: { id: this.addressList[index].id } });}, /**
* 删除地址
*/delAddress: function delAddress(index) {var that = this;var address = this.addressList[index];var id = address.id;(0, _user.getAddressRemove)(id).then(function () {that.$dialog.toast({ mes: "删除成功!", callback: function callback() {that.addressList.splice(index, 1);that.$set(that, "addressList", that.addressList);} });});}, /**
* 设置默认地址
*/radioChange: function radioChange(id) {var _this = this;(0, _user.getAddressDefaultSet)(id).then(function (res) {_this.refresh();wx.showToast({ title: res.msg, icon: "none", duration: 2000 });});}, /**
* 新增地址
*/addAddress: function addAddress() {this.$yrouter.push({ path: "/pages/user/address/AddAddress/main" });}, getAddress: function getAddress() {
*/editAddress: function editAddress(index) {this.$yrouter.push({ path: "/pages/user/address/AddAddress/index", query: { id: this.addressList[index].id } });}, /**
* 删除地址
*/delAddress: function delAddress(index) {var that = this;var address = this.addressList[index];var id = address.id;(0, _user.getAddressRemove)(id).then(function () {that.$dialog.toast({ mes: "删除成功!", callback: function callback() {that.addressList.splice(index, 1);that.$set(that, "addressList", that.addressList);} });});}, /**
* 设置默认地址
*/radioChange: function radioChange(id) {var _this = this;(0, _user.getAddressDefaultSet)(id).then(function (res) {_this.refresh();uni.showToast({ title: res.msg, icon: "none", duration: 2000 });});}, /**
* 新增地址
*/addAddress: function addAddress() {this.$yrouter.push({ path: "/pages/user/address/AddAddress/index" });}, getAddress: function getAddress() {
// openAddress().then(userInfo => {
// wx.showLoading({ title: "加载中" });
// uni.showLoading({ title: "加载中" });
// postAddress({
// real_name: userInfo.userName,
// phone: userInfo.telNumber,
@@ -334,15 +334,16 @@ var _default = { components: { Loading: Loading }, data: function data() {return
// this.loadend = false;
// this.addressList = [];
// this.AddressList();
// wx.hideLoading();
// uni.hideLoading();
// this.$dialog.toast({ mes: "添加成功" });
// })
// .catch(err => {
// wx.hideLoading();
// uni.hideLoading();
// this.$dialog.error(err.msg || "添加失败");
// });
// });
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
@@ -98,13 +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/user/promotion/UserPromotion/index"
})
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -148,9 +141,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
//
//
//
//
//
//
var _default =
{
name: "CashAudit",
@@ -165,7 +155,10 @@ var _default =
var myData = new Date();
this.time = myData.toLocaleString();
},
methods: {} };exports.default = _default;
methods: {
goUserPromotion: function goUserPromotion() {
this.$yrouter.push({ path: "/pages/user/promotion/UserPromotion/index" });
} } };exports.default = _default;
/***/ })
@@ -1 +1 @@
<view class="cash-audit _div"><view class="pictrue _div"><image src="{{$VUE_APP_RESOURCES_URL+'/images/examine.png'}}" class="_img"></image></view><view class="tip _div">提现申请已提交,等待人工审核</view><view class="time _div">{{time}}</view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="bnt bg-color-red _div" bindtap="__e">好的</view></view>
<view class="cash-audit _div"><view class="pictrue _div"><image src="{{$VUE_APP_RESOURCES_URL+'/images/examine.png'}}" class="_img"></image></view><view class="tip _div">提现申请已提交,等待人工审核</view><view class="time _div">{{time}}</view><view data-event-opts="{{[['tap',[['goUserPromotion']]]]}}" class="bnt bg-color-red _div" bindtap="__e">好的</view></view>
@@ -133,7 +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;
@@ -226,7 +226,7 @@ var _default = { name: "Poster", components: {// swiper,
var downloadUrl = imgsrc;
if (!wx.saveImageToPhotosAlbum) {
wx.showModal({
uni.showModal({
title: "提示",
content:
"当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。" });
@@ -272,6 +272,7 @@ var _default = { name: "Poster", components: {// swiper,
"poster" + this.activeIndex);
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
@@ -98,27 +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("/pages/user/promotion/CashRecord/index")
}
_vm.e1 = function($event) {
return _vm.$yrouter.push("/pages/user/promotion/Poster/index")
}
_vm.e2 = function($event) {
return _vm.$yrouter.push("/pages/user/promotion/PromoterList/index")
}
_vm.e3 = function($event) {
return _vm.$yrouter.push("/pages/user/promotion/CommissionDetails/index")
}
_vm.e4 = function($event) {
return _vm.$yrouter.push("/pages/user/promotion/PromoterOrder/index")
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -183,18 +162,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@@ -251,19 +218,11 @@ var _user = __webpack_require__(/*! @/api/user */ 19); //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = { name: "UserPromotion", components: {}, props: {}, data: function data() {return { Info: { lastDayCount: 0, extractCount: 0, commissionCount: 0 } };}, mounted: function mounted() {this.getInfo();}, methods: { getInfo: function getInfo() {var that = this;(0, _user.getSpreadInfo)().then(function (res) {that.Info = res.data;}, function (err) {that.$dialog.message(err.msg);});}, toCash: function toCash() {this.$yrouter.push({ path: "/pages/user/promotion/UserCash/main" });} } };exports.default = _default;
var _default = { name: "UserPromotion", components: {}, props: {}, data: function data() {return { Info: { lastDayCount: 0, extractCount: 0, commissionCount: 0 } };}, mounted: function mounted() {this.getInfo();}, methods: { goPoster: function goPoster() {this.$yrouter.push("/pages/user/promotion/Poster/index");}, goCashRecord: function goCashRecord() {this.$yrouter.push("/pages/user/promotion/CashRecord/index");}, goPromoterList: function goPromoterList() {this.$yrouter.push("/pages/user/promotion/PromoterList/index");}, goCommissionDetails: function goCommissionDetails() {this.$yrouter.push("/pages/user/promotion/CommissionDetails/index");}, goPromoterOrder: function goPromoterOrder() {this.$yrouter.push("/pages/user/promotion/PromoterOrder/index");}, getInfo: function getInfo() {var that = this;(0, _user.getSpreadInfo)().then(function (res) {that.Info = res.data;}, function (err) {that.$dialog.message(err.msg);});
},
toCash: function toCash() {
this.$yrouter.push({ path: "/pages/user/promotion/UserCash/index" });
} } };exports.default = _default;
/***/ })
@@ -1 +1 @@
<view class="my-promotion _div"><view class="header _div"><view class="name acea-row row-center-wrapper _div"><view class="_div">当前佣金</view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="record _div" bindtap="__e">提现记录<label class="iconfont icon-xiangyou _span"></label></view></view><view class="num _div">{{Info.commissionCount}}</view><view class="profit acea-row row-between-wrapper _div"><view class="item _div"><view class="_div">昨日收益</view><view class="money _div">{{Info.lastDayCount}}</view></view><view class="item _div"><view class="_div">累积已提</view><view class="money _div">{{Info.extractCount}}</view></view></view></view><view data-event-opts="{{[['tap',[['toCash',['$event']]]]]}}" class="bnt bg-color-red _div" bindtap="__e">立即提现</view><view class="list acea-row row-between-wrapper _div"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-erweima _span"></label><view class="_div">推广名片</view></view><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-tongji _span"></label><view class="_div">推广人统计</view></view><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-qiandai _span"></label><view class="_div">佣金明细</view></view><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-dingdan _span"></label><view class="_div">推广人订单</view></view></view></view>
<view class="my-promotion _div"><view class="header _div"><view class="name acea-row row-center-wrapper _div"><view class="_div">当前佣金</view><view data-event-opts="{{[['tap',[['goCashRecord']]]]}}" class="record _div" bindtap="__e">提现记录<label class="iconfont icon-xiangyou _span"></label></view></view><view class="num _div">{{Info.commissionCount}}</view><view class="profit acea-row row-between-wrapper _div"><view class="item _div"><view class="_div">昨日收益</view><view class="money _div">{{Info.lastDayCount}}</view></view><view class="item _div"><view class="_div">累积已提</view><view class="money _div">{{Info.extractCount}}</view></view></view></view><view data-event-opts="{{[['tap',[['toCash',['$event']]]]]}}" class="bnt bg-color-red _div" bindtap="__e">立即提现</view><view class="list acea-row row-between-wrapper _div"><view data-event-opts="{{[['tap',[['goPoster']]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-erweima _span"></label><view class="_div">推广名片</view></view><view data-event-opts="{{[['tap',[['goPromoterList']]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-tongji _span"></label><view class="_div">推广人统计</view></view><view data-event-opts="{{[['tap',[['goCommissionDetails']]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-qiandai _span"></label><view class="_div">佣金明细</view></view><view data-event-opts="{{[['tap',[['goPromoterOrder']]]]}}" class="item acea-row row-center-wrapper row-column _div" bindtap="__e"><label class="iconfont icon-dingdan _span"></label><view class="_div">推广人订单</view></view></view></view>
@@ -204,6 +204,7 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
var _user = __webpack_require__(/*! @/api/user */ 19); //
@@ -278,8 +279,11 @@ var _user = __webpack_require__(/*! @/api/user */ 19); //
//
//
//
//
var Loading = function Loading() {return __webpack_require__.e(/*! import() | components/Loading */ "components/Loading").then(__webpack_require__.bind(null, /*! @/components/Loading */ 494));};var DataFormat = function DataFormat() {return __webpack_require__.e(/*! import() | components/DataFormat */ "components/DataFormat").then(__webpack_require__.bind(null, /*! @/components/DataFormat */ 577));};var _default = { name: "Integral", components: { Loading: Loading, DataFormat: DataFormat }, props: {}, data: function data() {return { navList: [{ name: "分值明细", icon: "icon-mingxi" // { name: "分值提升", icon: "icon-tishengfenzhi" }
}], current: 0, where: { page: 1, limit: 15 }, data: { sign: 1, integral: 1, all: 1 }, list: [], info: [], loaded: false, loading: false };}, mounted: function mounted() {this.getIntegral();this.getInfo();}, onReachBottom: function onReachBottom() {!this.loading && this.getInfo();}, methods: { nav: function nav(index) {this.current = index;}, getInfo: function getInfo() {var that = this;if (that.loaded == true || that.loading == true) return;that.loading = true;(0, _user.getIntegralList)(that.where).then(function (res) {that.loading = false;that.loaded = res.data.length < that.where.limit;that.loadTitle = that.loaded ? "人家是有底线的" : "上拉加载更多";that.where.page = that.where.page + 1;that.list.push.apply(that.list, res.data);}, function (err) {that.$dialog.message(err.msg);});}, getIntegral: function getIntegral() {var that = this;(0, _user.postSignUser)(that.data).then(function (res) {that.info = res.data;}, function (err) {that.$dialog.message(err.msg);});} } };exports.default = _default;
}], current: 0, where: { page: 1, limit: 15 }, data: { sign: 1, integral: 1, all: 1 }, list: [], info: [], loaded: false, loading: false };}, mounted: function mounted() {this.getIntegral();this.getInfo();}, onReachBottom: function onReachBottom() {!this.loading && this.getInfo();}, methods: { goSignIn: function goSignIn() {this.$yrouter.push("/pages/user/signIn/Sign/index");}, goHome: function goHome() {this.$yrouter.switchTab("/pages/home/index");}, nav: function nav(index) {this.current = index;}, getInfo: function getInfo() {var that = this;if (that.loaded == true || that.loading == true) return;that.loading = true;(0, _user.getIntegralList)(that.where).then(function (res) {that.loading = false;that.loaded = res.data.length < that.where.limit;that.loadTitle = that.loaded ? "人家是有底线的" : "上拉加载更多";that.where.page = that.where.page + 1;that.list.push.apply(that.list, res.data);}, function (err) {that.$dialog.message(err.msg);});}, getIntegral: function getIntegral() {var that = this;(0, _user.postSignUser)(that.data).then(function (res) {that.info = res.data;}, function (err) {that.$dialog.message(err.msg);});
} } };exports.default = _default;
/***/ }),
@@ -1 +1 @@
<view data-ref="container" class="integral-details _div vue-ref"><view class="header _div"><view class="currentScore _div">当前积分</view><view class="_div">{{info.integral}}</view><view class="line _div"></view></view><view class="wrapper _div"><view class="nav acea-row _div"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="navListIndex" wx:key="navListIndex"><view data-event-opts="{{[['tap',[['nav',[navListIndex]]]]]}}" class="{{['item acea-row row-center-wrapper _div',current===navListIndex?'on':'']}}" bindtap="__e"><label class="{{['iconfont _span',item.icon]}}"></label>{{item.name+''}}</view></block></view><view class="list _div" hidden="{{current!==0}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="listIndex" wx:key="listIndex"><view class="item acea-row row-between-wrapper _div"><view class="_div"><view class="state _div">{{item.title}}</view><view class="_div"><data-format vue-id="{{'63e16316-1-'+listIndex}}" data="{{item.addTime}}" bind:__l="__l"></data-format></view></view><block wx:if="{{item.pm==1}}"><view class="num _div">{{"+"+item.number}}</view></block><block wx:if="{{item.pm==0}}"><view class="num font-color-red _div">{{'-'+item.number+''}}</view></block></view></block></view></view><loading vue-id="63e16316-2" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading></view>
<view data-ref="container" class="integral-details _div vue-ref"><view class="header _div"><view class="currentScore _div">当前积分</view><view class="_div">{{info.integral}}</view><view class="line _div"></view></view><view class="wrapper _div"><view class="nav acea-row _div"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="navListIndex" wx:key="navListIndex"><view data-event-opts="{{[['tap',[['nav',[navListIndex]]]]]}}" class="{{['item acea-row row-center-wrapper _div',current===navListIndex?'on':'']}}" bindtap="__e"><label class="{{['iconfont _span',item.icon]}}"></label>{{''+item.name+''}}</view></block></view><view class="list _div" hidden="{{current!==0}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="listIndex" wx:key="listIndex"><view class="item acea-row row-between-wrapper _div"><view class="_div"><view class="state _div">{{item.title}}</view><view class="_div"><data-format vue-id="{{'63e16316-1-'+listIndex}}" data="{{item.addTime}}" bind:__l="__l"></data-format></view></view><block wx:if="{{item.pm==1}}"><view class="num _div">{{"+"+item.number}}</view></block><block wx:if="{{item.pm==0}}"><view class="num font-color-red _div">{{"-"+item.number}}</view></block></view></block></view></view><loading vue-id="63e16316-2" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading></view>
@@ -1,4 +1,4 @@
.list{
}
.list {
}
@@ -100,15 +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("/pages/user/signIn/SignRecord/index")
}
_vm.e1 = function($event) {
return _vm.$yrouter.push("/pages/user/signIn/SignRecord/index")
}
}
}
var recyclableRender = false
var staticRenderFns = []
@@ -244,9 +235,6 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
@@ -362,10 +350,7 @@ var _bc = __webpack_require__(/*! @/utils/bc */ 105); //
//
//
//
//
//
//
var _default = { name: "Sign", components: {}, props: {}, data: function data() {return { userInfo: {}, integral: 0, signCount: [], sign_index: 0, signSystemList: [], signList: [], page: 1, limit: 3, active: false, day: "" };}, mounted: function mounted() {this.signUser();this.signConfig();this.getSignList();}, methods: { // js给数字补0num:需要补0的数字,length:长度(补到多少位);
var _default = { name: "Sign", components: {}, props: {}, data: function data() {return { userInfo: {}, integral: 0, signCount: [], sign_index: 0, signSystemList: [], signList: [], page: 1, limit: 3, active: false, day: "" };}, mounted: function mounted() {this.signUser();this.signConfig();this.getSignList();}, methods: { goSignRecord: function goSignRecord() {this.$yrouter.push("/pages/user/signIn/SignRecord/index");}, // js给数字补0num:需要补0的数字,length:长度(补到多少位);
PrefixInteger: function PrefixInteger(num, length) {return (Array(length).join("0") + num).slice(-length).split("");}, //数字转中文
Rp: function Rp(n) {var cnum = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"];var s = "";n = "" + n; // 数字转为字符串
for (var i = 0; i < n.length; i++) {s += cnum[parseInt(n.charAt(i))];}return s;}, // 获取用户信息
@@ -1 +1 @@
<view class="sign _div data-v-7363eabf"><view class="header bg-color-red _div data-v-7363eabf"><view class="headerCon acea-row row-between-wrapper _div data-v-7363eabf"><view class="left acea-row row-between-wrapper _div data-v-7363eabf"><view class="pictrue _div data-v-7363eabf"><image src="{{userInfo.avatar}}" class="_img data-v-7363eabf"></image></view><view class="text _div data-v-7363eabf"><view class="line1 _div data-v-7363eabf">{{userInfo.nickname}}</view><view class="integral acea-row _div data-v-7363eabf"><label class="_span data-v-7363eabf">{{"积分: "+userInfo.integral}}</label></view></view></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="right acea-row row-middle _div data-v-7363eabf" bindtap="__e"><view class="iconfont icon-caidan _div data-v-7363eabf"></view><view class="_div data-v-7363eabf">明细</view></view></view></view><view class="wrapper _div data-v-7363eabf"><view class="list acea-row row-between-wrapper _div data-v-7363eabf"><block wx:for="{{signSystemList}}" wx:for-item="item" wx:for-index="signSystemListIndex" wx:key="signSystemListIndex"><view class="item _div data-v-7363eabf"><view class="{{['_div data-v-7363eabf',signSystemListIndex+1===signSystemList.length?'rewardTxt':'']}}">{{item.day}}</view><view class="{{['venus _div data-v-7363eabf',(signSystemListIndex+1===signSystemList.length?'reward':'')+' '+(sign_index>=signSystemListIndex+1?'venusSelect':'')]}}"></view><view class="{{['num _div data-v-7363eabf',sign_index>=signSystemListIndex+1?'on':'']}}">{{"+"+item.signNum}}</view></view></block></view><view data-event-opts="{{[['tap',[['goSign',['$event']]]]]}}" class="{{['but bg-color-red _div data-v-7363eabf',userInfo.is_day_sgin?'on':'']}}" bindtap="__e">{{userInfo.isDaySign?"已签到":"立即签到"}}</view><view class="lock _div data-v-7363eabf"></view></view><view class="wrapper wrapper2 _div data-v-7363eabf"><view class="tip _div data-v-7363eabf">已累计签到</view><view class="list2 acea-row row-center row-bottom _div data-v-7363eabf"><block wx:for="{{signCount}}" wx:for-item="item" wx:for-index="signCountIndex" wx:key="signCountIndex"><view class="item _div data-v-7363eabf">{{item||0}}</view></block><view class="data _div data-v-7363eabf">天</view></view><view class="tip2 _div data-v-7363eabf">{{"据说连续签到第"+day+"天可获得超额积分,一定要坚持签到哦~~~"}}</view><view class="list3 _div data-v-7363eabf"><block wx:for="{{signList}}" wx:for-item="item" wx:for-index="signListIndex" wx:key="signListIndex"><view class="item acea-row row-between-wrapper _div data-v-7363eabf"><view class="_div data-v-7363eabf"><view class="name line1 _div data-v-7363eabf">{{item.title}}</view><view class="data _div data-v-7363eabf">{{item.addTime}}</view></view><view class="num font-color-red _div data-v-7363eabf">{{"+"+item.number}}</view></view></block><block wx:if="{{signList.length>0}}"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="Loads acea-row row-center-wrapper _div data-v-7363eabf" bindtap="__e">点击加载更多<view class="iconfont icon-xiangyou acea-row row-center-wrapper _div data-v-7363eabf"></view></view></block></view></view><view class="{{['signTip acea-row row-center-wrapper _div data-v-7363eabf',active===true?'on':'']}}"><view class="signTipLight loadingpic _div data-v-7363eabf"><image src="{{$VUE_APP_RESOURCES_URL+'/images/light.png'}}" class="_img data-v-7363eabf"></image></view><view class="signTipCon _div data-v-7363eabf"><view class="state _div data-v-7363eabf">签到成功</view><view class="integral _div data-v-7363eabf">{{"获得"+integral+"积分"}}</view><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="signTipBnt _div data-v-7363eabf" bindtap="__e">好的</view></view></view><view class="mask _div data-v-7363eabf" hidden="{{active===false}}" data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" bindtouchmove="__e"></view></view>
<view class="sign _div data-v-7363eabf"><view class="header bg-color-red _div data-v-7363eabf"><view class="headerCon acea-row row-between-wrapper _div data-v-7363eabf"><view class="left acea-row row-between-wrapper _div data-v-7363eabf"><view class="pictrue _div data-v-7363eabf"><image src="{{userInfo.avatar}}" class="_img data-v-7363eabf"></image></view><view class="text _div data-v-7363eabf"><view class="line1 _div data-v-7363eabf">{{userInfo.nickname}}</view><view class="integral acea-row _div data-v-7363eabf"><label class="_span data-v-7363eabf">{{"积分: "+userInfo.integral}}</label></view></view></view><view data-event-opts="{{[['tap',[['goSignRecord']]]]}}" class="right acea-row row-middle _div data-v-7363eabf" bindtap="__e"><view class="iconfont icon-caidan _div data-v-7363eabf"></view><view class="_div data-v-7363eabf">明细</view></view></view></view><view class="wrapper _div data-v-7363eabf"><view class="list acea-row row-between-wrapper _div data-v-7363eabf"><block wx:for="{{signSystemList}}" wx:for-item="item" wx:for-index="signSystemListIndex" wx:key="signSystemListIndex"><view class="item _div data-v-7363eabf"><view class="{{['_div data-v-7363eabf',signSystemListIndex+1===signSystemList.length?'rewardTxt':'']}}">{{item.day}}</view><view class="{{['venus _div data-v-7363eabf',(signSystemListIndex+1===signSystemList.length?'reward':'')+' '+(sign_index>=signSystemListIndex+1?'venusSelect':'')]}}"></view><view class="{{['num _div data-v-7363eabf',sign_index>=signSystemListIndex+1?'on':'']}}">{{"+"+item.signNum}}</view></view></block></view><view data-event-opts="{{[['tap',[['goSign',['$event']]]]]}}" class="{{['but bg-color-red _div data-v-7363eabf',userInfo.is_day_sgin?'on':'']}}" bindtap="__e">{{userInfo.isDaySign?"已签到":"立即签到"}}</view><view class="lock _div data-v-7363eabf"></view></view><view class="wrapper wrapper2 _div data-v-7363eabf"><view class="tip _div data-v-7363eabf">已累计签到</view><view class="list2 acea-row row-center row-bottom _div data-v-7363eabf"><block wx:for="{{signCount}}" wx:for-item="item" wx:for-index="signCountIndex" wx:key="signCountIndex"><view class="item _div data-v-7363eabf">{{item||0}}</view></block><view class="data _div data-v-7363eabf">天</view></view><view class="tip2 _div data-v-7363eabf">{{"据说连续签到第"+day+"天可获得超额积分,一定要坚持签到哦~~~"}}</view><view class="list3 _div data-v-7363eabf"><block wx:for="{{signList}}" wx:for-item="item" wx:for-index="signListIndex" wx:key="signListIndex"><view class="item acea-row row-between-wrapper _div data-v-7363eabf"><view class="_div data-v-7363eabf"><view class="name line1 _div data-v-7363eabf">{{item.title}}</view><view class="data _div data-v-7363eabf">{{item.addTime}}</view></view><view class="num font-color-red _div data-v-7363eabf">{{"+"+item.number}}</view></view></block><block wx:if="{{signList.length>0}}"><view data-event-opts="{{[['tap',[['goSignRecord']]]]}}" class="Loads acea-row row-center-wrapper _div data-v-7363eabf" bindtap="__e">点击加载更多<view class="iconfont icon-xiangyou acea-row row-center-wrapper _div data-v-7363eabf"></view></view></block></view></view><view class="{{['signTip acea-row row-center-wrapper _div data-v-7363eabf',active===true?'on':'']}}"><view class="signTipLight loadingpic _div data-v-7363eabf"><image src="{{$VUE_APP_RESOURCES_URL+'/images/light.png'}}" class="_img data-v-7363eabf"></image></view><view class="signTipCon _div data-v-7363eabf"><view class="state _div data-v-7363eabf">签到成功</view><view class="integral _div data-v-7363eabf">{{"获得"+integral+"积分"}}</view><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="signTipBnt _div data-v-7363eabf" bindtap="__e">好的</view></view></view><view class="mask _div data-v-7363eabf" hidden="{{active===false}}" data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" bindtouchmove="__e"></view></view>
+31 -29
View File
@@ -1,31 +1,33 @@
{
"description": "项目配置文件。",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": false
},
"compileType": "miniprogram",
"libVersion": "2.9.2",
"appid": "touristappid",
"projectname": "yshopmall_uni",
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"current": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
}
"description": "项目配置文件。",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": false
},
"compileType": "miniprogram",
"libVersion": "2.9.2",
"appid": "wx604d2ea4702620d2",
"projectname": "yshopmall_uni",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"current": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
}
}
+7
View File
@@ -0,0 +1,7 @@
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}
+7
View File
@@ -0,0 +1,7 @@
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}
+7
View File
@@ -0,0 +1,7 @@
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}
+7
View File
@@ -0,0 +1,7 @@
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}
+7
View File
@@ -0,0 +1,7 @@
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}