From 9b39c27876879776831294b6f76bdcae0f3fc03d Mon Sep 17 00:00:00 2001 From: stivepeim Date: Thu, 5 Nov 2020 16:21:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0Note=20=091.=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=B4=AD=E7=89=A9=E8=BD=A6,=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=92=8C=E9=80=80=E5=8D=95=E5=90=8E=E5=90=8E=E7=BD=AE=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=AD=A3=E7=A1=AE=E6=89=A7=E8=A1=8C=20=092.=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BD=A3=E9=87=91=E8=AE=B0=E5=BD=95=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E5=92=8C=E8=AF=A6=E6=83=85=20=093.=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=AE=A1=E7=90=86=E7=AB=AF=20=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E7=95=8C=E9=9D=A2=E4=B8=8B=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1=E4=B8=8D?= =?UTF-8?q?=E5=87=86=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98=20=094.=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9F=AD=E4=BF=A1API=E5=8D=87=E7=BA=A7-?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E4=BD=BF=E7=94=A8=E4=B8=80=E5=8F=B7=E9=80=9A?= =?UTF-8?q?=20=095.=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=9B=B8=E5=85=B3=E9=97=AE=E9=A2=98=20=096.=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A0=B8=E9=94=80=E7=82=B9=E6=A0=B8=E9=94=80?= =?UTF-8?q?=E5=90=8E=E6=A0=B8=E9=94=80=E5=9C=B0=E5=9D=80=E4=B8=8D=E5=87=86?= =?UTF-8?q?=E7=A1=AE=20=097.=20=E4=BF=AE=E5=A4=8D=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=BA=91=E6=9C=8D=E5=8A=A1=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20=E6=96=B0=E5=A2=9E=E5=8A=9F=E8=83=BD=20=091.=20?= =?UTF-8?q?=E7=A7=92=E6=9D=80=20=09=09a.=20=E7=A7=92=E6=9D=80=E6=97=B6?= =?UTF-8?q?=E6=AE=B5=E9=85=8D=E7=BD=AE=20=09=09b.=20=E7=A7=92=E6=9D=80?= =?UTF-8?q?=E5=95=86=E5=93=81=E7=BB=B4=E6=8A=A4=20=092.=20=E8=B4=A2?= =?UTF-8?q?=E5=8A=A1=E7=AE=A1=E7=90=86=20=09=09a.=20=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E6=8F=90=E7=8E=B0=20=09=09b.=20=E8=B4=A2=E5=8A=A1=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=20=09=09=09i.=20=E5=85=85=E5=80=BC=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=20=09=09=09ii.=20=E8=B5=84=E9=87=91=E7=9B=91=E6=8E=A7=20=09=09?= =?UTF-8?q?c.=20=E4=BD=A3=E9=87=91=E8=AE=B0=E5=BD=95=20=093.=20=E6=99=AE?= =?UTF-8?q?=E9=80=9A=E5=95=86=E5=93=81=E6=98=BE=E7=A4=BA=E8=AF=A5=E5=95=86?= =?UTF-8?q?=E5=93=81=E6=AD=A3=E5=9C=A8=E5=8F=82=E5=8A=A0=E7=9A=84=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E4=BF=A1=E6=81=AF[=E7=A7=92=E6=9D=80]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 29 +- api/activity.js | 8 + api/order.js | 5 +- api/store.js | 2 +- api/user.js | 14 + components/Authorize.vue | 2 +- components/goodList/index.vue | 10 +- components/productConSwiper/index.vue | 2 +- components/productWindow/index.vue | 144 +- components/promotionGood/index.vue | 6 +- components/recommend/index.vue | 6 +- components/tabNav.vue | 2 +- components/userEvaluation/index.vue | 2 +- config/app.js | 2 + libs/order.js | 12 +- libs/wechat.js | 15 + pages.json | 5 +- pages/activity/bargain/index.vue | 4 +- .../goods_combination_status/index.vue | 2 +- pages/activity/goods_seckill/index.vue | 47 +- .../activity/goods_seckill_details/index.vue | 399 +++--- pages/admin/delivery/index.vue | 8 +- pages/admin/order/index.vue | 4 +- pages/admin/orderDetail/index.vue | 6 +- pages/admin/orderList/index.vue | 6 +- pages/admin/order_cancellation/index.vue | 2 +- pages/admin/statistics/index.vue | 4 +- pages/customer_list/chat.vue | 7 +- pages/goods_details/index.vue | 41 +- pages/goods_details/index001.vue | 8 +- pages/goods_list/index.vue | 8 +- pages/index/index.vue | 86 +- pages/order_addcart/order_addcart.vue | 11 +- pages/order_addcart/order_addcart11.vue | 1186 +++++++++++++++++ pages/order_details/index.vue | 5 +- pages/retrieve_password/index.vue | 7 +- pages/user/index.vue | 2 +- pages/users/goods_comment_list/index.vue | 8 +- pages/users/goods_details_store/index.vue | 2 +- pages/users/order_confirm/index.vue | 31 +- pages/users/promoter-list/index.vue | 6 +- pages/users/promoter-order/index.vue | 7 +- pages/users/retrievePassword/index.vue | 4 +- pages/users/user_cash/index.vue | 219 ++- pages/users/user_info/index.vue | 2 +- pages/users/user_spread_code/index.vue | 8 +- pages/users/user_spread_money/index.vue | 63 +- pages/users/user_spread_user/index.vue | 4 +- pages/users/user_vip/index.vue | 4 +- pages/users/wechat_login/index.vue | 4 +- static/html/pc.html | 58 + utils/util.js | 21 +- 52 files changed, 2108 insertions(+), 442 deletions(-) create mode 100644 pages/order_addcart/order_addcart11.vue create mode 100644 static/html/pc.html diff --git a/App.vue b/App.vue index 17433b0d..bd076f53 100644 --- a/App.vue +++ b/App.vue @@ -1,4 +1,10 @@ - + - \ No newline at end of file diff --git a/pages/order_details/index.vue b/pages/order_details/index.vue index 51e6a7c4..010883c3 100644 --- a/pages/order_details/index.vue +++ b/pages/order_details/index.vue @@ -970,12 +970,15 @@ orderCancel(self.orderInfo.id) .then((data) => { self.$util.Tips({ - title: '删除成功' + title: '取消成功' }, { tab: 3 }) }) .catch(() => { + self.$util.Tips({ + title: err + }) self.getDetail(); }); } else if (res.cancel) { diff --git a/pages/retrieve_password/index.vue b/pages/retrieve_password/index.vue index a2f8158a..5f96a431 100644 --- a/pages/retrieve_password/index.vue +++ b/pages/retrieve_password/index.vue @@ -79,7 +79,7 @@ }) .then(res => { that.$util.Tips({ - title: res.msg, + title: res, success: () => { uni.navigateTo({ url: '/pages/login/index' @@ -88,9 +88,8 @@ }); }) .catch(res => { - console.log(res); that.$util.Tips({ - title: res.msg + title: res }); }); }, @@ -105,7 +104,7 @@ registerVerify({ phone: that.account }) .then(res => { that.$util.Tips({ - title: res.msg + title: res }); that.sendCode(); }) diff --git a/pages/user/index.vue b/pages/user/index.vue index bc925619..9851a08f 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -30,7 +30,7 @@ - {{Number(userInfo.nowMoney).toFixed(2) || 0}} + {{userInfo.nowMoney?Number(userInfo.nowMoney).toFixed(2):0}} 余额 diff --git a/pages/users/goods_comment_list/index.vue b/pages/users/goods_comment_list/index.vue index 80752040..7b1d6700 100644 --- a/pages/users/goods_comment_list/index.vue +++ b/pages/users/goods_comment_list/index.vue @@ -55,13 +55,13 @@ */ onLoad: function(options) { let that = this; - if (!options.product_id) return that.$util.Tips({ + if (!options.productId) return that.$util.Tips({ title: '缺少参数' }, { tab: 3, url: 1 }); - that.product_id = options.product_id; + that.productId = options.productId; }, onShow: function() { this.getProductReplyCount(); @@ -74,7 +74,7 @@ */ getProductReplyCount: function() { let that = this; - getReplyConfig(that.product_id).then(res => { + getReplyConfig(that.productId).then(res => { that.$set(that,'replyData',res.data); }); }, @@ -87,7 +87,7 @@ if (that.loading) return; that.loading = true; that.loadTitle = ''; - getReplyList(that.product_id, { + getReplyList(that.productId, { page: that.page, limit: that.limit, type: that.type, diff --git a/pages/users/goods_details_store/index.vue b/pages/users/goods_details_store/index.vue index 5e2478c5..f477c908 100644 --- a/pages/users/goods_details_store/index.vue +++ b/pages/users/goods_details_store/index.vue @@ -151,7 +151,7 @@ this.page = this.page + 1; }) .catch(err => { - this.$dialog.error(err.msg); + this.$dialog.error(err); }); } }, diff --git a/pages/users/order_confirm/index.vue b/pages/users/order_confirm/index.vue index 8ca3fa62..1866a2c5 100644 --- a/pages/users/order_confirm/index.vue +++ b/pages/users/order_confirm/index.vue @@ -24,7 +24,7 @@ {{system_store.name}} {{system_store.phone}} - {{system_store.address}}{{", " + system_store.detailedAddress}} + {{system_store.address}}{{", " + system_store.detailedAddress}} @@ -271,7 +271,8 @@ from: '', news: true, again: false, - addAgain: false + addAgain: false, + secKill: false //是否是秒杀 }; }, computed: mapGetters(['isLogin']), @@ -296,6 +297,7 @@ this.news = options.new || true; this.again = options.again || false; this.addAgain = options.addAgain || false; + this.secKill = options.secKill || false; if (this.isLogin) { this.getaddressInfo(); this.getConfirm(); @@ -375,7 +377,11 @@ let list = res.data.list || []; this.$set(this, 'storeList', list); this.$set(this, 'system_store', list[0]); - }).catch(err => {}) + }).catch(err => { + return this.$util.Tips({ + title: err + }); + }) }, // 关闭地址弹窗; changeClose: function() { @@ -501,7 +507,7 @@ */ getConfirm: function() { let that = this; - orderConfirm(that.cartId,that.news,this.addAgain).then(res => { + orderConfirm(that.cartId,that.news,this.addAgain,this.secKill).then(res => { that.$set(that, 'userInfo', res.data.userInfo); that.$set(that, 'integral', res.data.userInfo.integral); that.$set(that, 'cartInfo', res.data.cartInfo); @@ -512,7 +518,7 @@ that.$set(that, 'priceGroup', res.data.priceGroup); that.$set(that, 'totalPrice', that.$util.$h.Add(parseFloat(res.data.priceGroup.totalPrice), parseFloat(res.data .priceGroup.storePostage))); - that.$set(that, 'seckillId', parseInt(res.data.seckill_id)); + that.$set(that, 'seckillId', parseInt(res.data.secKillId)); that.$set(that, 'store_self_mention', res.data.storeSelfMention == 'true'?true:false); that.cartArr[1].title = '可用余额:' + res.data.userInfo.nowMoney; that.cartArr[0].payStatus = res.data.payWeixinOpen || 0 @@ -526,15 +532,14 @@ // that.$set(that, 'cartArr', that.cartArr); that.$set(that, 'ChangePrice', that.totalPrice); that.getBargainId(); - that.getCouponList(); + if(!that.secKill) that.getCouponList(); }).catch(err => { - console.log(err, 'err') - // return this.$util.Tips({ - // title: err - // }, { - // tab: 3, - // url: 1 - // }); + return this.$util.Tips({ + title: err + }, { + tab: 3, + url: 1 + }); }); }, /* diff --git a/pages/users/promoter-list/index.vue b/pages/users/promoter-list/index.vue index db744db7..016ced4b 100644 --- a/pages/users/promoter-list/index.vue +++ b/pages/users/promoter-list/index.vue @@ -147,8 +147,6 @@ let that = this; that.isAsc = isAsc; that.sort = sortKey+isAsc; - console.log('ppppppp'); - console.log(sortKey+isAsc); that.sortKey = sortKey; that.page = 1; that.limit = 20; @@ -202,10 +200,10 @@ recordListNew = recordList.concat(recordListData); that.total = res.data.total; that.totalLevel = res.data.totalLevel; - that.teamCount = that.$util.$h.Add(Number(res.data.total), Number(res.data.totalLevel)); + that.teamCount = res.data.count; that.status = limit > len; that.page = page + 1; - that.$set(that, 'recordList', recordListNew); + that.$set(that, 'recordList', recordListNew || []); }); } }, diff --git a/pages/users/promoter-order/index.vue b/pages/users/promoter-order/index.vue index c7367dc5..646ac72c 100644 --- a/pages/users/promoter-order/index.vue +++ b/pages/users/promoter-order/index.vue @@ -27,11 +27,12 @@ {{child.nickname}} - 返佣:¥{{child.number}} - 暂未返佣:¥{{child.number}} + 返佣:¥{{child.number}} + - 订单编号:{{child.order_id}} + 订单编号:{{child.orderId}} 下单时间:{{child.time}} diff --git a/pages/users/retrievePassword/index.vue b/pages/users/retrievePassword/index.vue index 8e1b35b0..21df18ba 100644 --- a/pages/users/retrievePassword/index.vue +++ b/pages/users/retrievePassword/index.vue @@ -111,7 +111,7 @@ }) .then(res => { that.$util.Tips({ - title: res.msg + title: res.message }, { tab: 3 }) @@ -138,7 +138,7 @@ code: that.codeVal }) .then(res => { - that.$dialog.success(res.msg); + that.$dialog.success(res.message); that.sendCode(); }) .catch(res => { diff --git a/pages/users/user_cash/index.vue b/pages/users/user_cash/index.vue index a8485f10..136e855a 100644 --- a/pages/users/user_cash/index.vue +++ b/pages/users/user_cash/index.vue @@ -51,6 +51,19 @@ 提现 + + 收款码 + + + + + + + + 上传图片 + + + 当前可提现金额: ¥{{commission.commissionCount}},冻结佣金:¥{{commission.brokenCommission}} @@ -70,6 +83,19 @@ 提现 + + 收款码 + + + + + + + + 上传图片 + + + 当前可提现金额: ¥{{commission.commissionCount}},冻结佣金:¥{{commission.brokenCommission}} @@ -132,7 +158,10 @@ isClone: false, isAuto: false, //没有授权的不会自动授权 isShowAuth: false, //是否隐藏授权 - commission:{} + commission:{}, + qrcodeUrlW:"", + qrcodeUrlZ:"", + isCommitted: false //防止多次提交 }; }, computed: mapGetters(['isLogin']), @@ -140,7 +169,7 @@ if (this.isLogin) { this.getUserInfo(); this.getUserExtractBank(); - this.getBrokerageCommission(); + //this.getBrokerageCommission(); } else { // #ifdef H5 || APP-PLUS toLogin(); @@ -152,12 +181,37 @@ } }, methods: { + uploadpic: function (type) { + let that = this; + that.$util.uploadImageOne({ + url: 'user/upload/image', + name: 'multipart', + model: "user", + pid: 1 + }, function(res) { + if(type==='W'){ + that.qrcodeUrlW = res.data.url; + }else{ + that.qrcodeUrlZ = res.data.url; + } + }); + }, + /** + * 删除图片 + * + */ + DelPicW: function () { + this.qrcodeUrlW = ""; + }, + DelPicZ: function () { + this.qrcodeUrlZ = ""; + }, onLoadFun: function() { this.getUserInfo(); this.getUserExtractBank(); - this.getBrokerageCommission(); + // this.getBrokerageCommission(); }, - getBrokerageCommission(){ + getBrokerageCommission: function(){ brokerageCommission().then(res=>{ this.commission = res.data; }) @@ -194,48 +248,55 @@ subCash: function(e) { let that = this, value = e.detail.value; - if (that.currentTab == 0) { //银行卡 - if (value.name.length == 0) return this.$util.Tips({ - title: '请填写持卡人姓名' + if (that.currentTab == 0) { //银行卡 + if (value.name.length == 0) return this.$util.Tips({ + title: '请填写持卡人姓名' + }); + if (value.cardum.length == 0) return this.$util.Tips({ + title: '请填写卡号' + }); + if (that.index == 0) return this.$util.Tips({ + title: "请选择银行" + }); + value.extractType = 'bank'; + value.bankName = that.array[that.index]; + } else if (that.currentTab == 1) { //微信 + value.extractType = 'weixin'; + if (value.name.length == 0) return this.$util.Tips({ + title: '请填写微信号' + }); + value.wechat = value.name; + value.qrcodeUrl = that.qrcodeUrlW; + } else if (that.currentTab == 2) { //支付宝 + value.extractType = 'alipay'; + if (value.name.length == 0) return this.$util.Tips({ + title: '请填写账号' + }); + value.alipayCode = value.name; + value.qrcodeUrl = that.qrcodeUrlZ; + } + if (value.money.length == 0) return this.$util.Tips({ + title: '请填写提现金额' }); - if (value.cardum.length == 0) return this.$util.Tips({ - title: '请填写卡号' + if (value.money < that.minPrice) return this.$util.Tips({ + title: '提现金额不能低于' + that.minPrice }); - if (that.index == 0) return this.$util.Tips({ - title: "请选择银行" + if(this.isCommitted==false){ + this.isCommitted=true; + extractCash(value).then(res => { + that.getUserInfo(); + return this.$util.Tips({ + title: "提现成功", + icon: 'success' + },{ tab: 2, url: '/pages/users/user_spread_user/index' }); + this.isCommitted=false; + }).catch(err => { + this.isCommitted=false; + return this.$util.Tips({ + title: err + }); }); - value.extractType = 'bank'; - value.bankname = that.array[that.index]; - } else if (that.currentTab == 1) { //微信 - value.extractType = 'weixin'; - if (value.name.length == 0) return this.$util.Tips({ - title: '请填写微信号' - }); - value.wechat = value.name; - } else if (that.currentTab == 2) { //支付宝 - value.extractType = 'alipay'; - if (value.name.length == 0) return this.$util.Tips({ - title: '请填写账号' - }); - value.alipayCode = value.name; } - if (value.money.length == 0) return this.$util.Tips({ - title: '请填写提现金额' - }); - if (value.money < that.minPrice) return this.$util.Tips({ - title: '提现金额不能低于' + that.minPrice - }); - extractCash(value).then(res => { - that.getUserInfo(); - return this.$util.Tips({ - title: "提现成功", - icon: 'success' - },{ tab: 2, url: '/pages/users/user_spread_user/index' }); - }).catch(err => { - return this.$util.Tips({ - title: err - }); - }); } } } @@ -245,22 +306,22 @@ page { background-color: #fff !important; } - + .cash-withdrawal .nav { height: 130rpx; box-shadow: 0 10rpx 10rpx #f8f8f8; } - + .cash-withdrawal .nav .item { font-size: 26rpx; flex: 1; text-align: center; } - + .cash-withdrawal .nav .item~.item { border-left: 1px solid #f0f0f0; } - + .cash-withdrawal .nav .item .iconfont { width: 40rpx; height: 40rpx; @@ -272,53 +333,87 @@ font-size: 22rpx; box-sizing: border-box; } - + .cash-withdrawal .nav .item .iconfont.on { background-color: #e93323; color: #fff; border-color: #e93323; } - + .cash-withdrawal .nav .item .line { width: 2rpx; height: 20rpx; margin: 0 auto; transition: height 0.3s; } - + .cash-withdrawal .nav .item .line.on { height: 39rpx; } - + .cash-withdrawal .wrapper .list { padding: 0 30rpx; } - + .cash-withdrawal .wrapper .list .item { border-bottom: 1rpx solid #eee; - height: 107rpx; + min-height: 28rpx; font-size: 30rpx; color: #333; + padding: 39rpx 0; } - + .cash-withdrawal .wrapper .list .item .name { width: 130rpx; } - + .cash-withdrawal .wrapper .list .item .input { width: 505rpx; } - + .cash-withdrawal .wrapper .list .item .input .placeholder { color: #bbb; } - + + .cash-withdrawal .wrapper .list .item .picEwm,.cash-withdrawal .wrapper .list .item .pictrue{ + width:140rpx; + height:140rpx; + border-radius:3rpx; + position: relative; + margin-right: 23rpx; + } + + .cash-withdrawal .wrapper .list .item .picEwm image{ + width:100%; + height:100%; + border-radius:3rpx; + } + + .cash-withdrawal .wrapper .list .item .picEwm .icon-guanbi1{ + position:absolute; + right: -14rpx; + top: -16rpx; + font-size:40rpx; + } + + .cash-withdrawal .wrapper .list .item .pictrue{ + border:1px solid rgba(221,221,221,1); + font-size:22rpx; + color: #BBBBBB; + } + + .cash-withdrawal .wrapper .list .item .pictrue .icon-icon25201{ + font-size: 47rpx; + color: #DDDDDD; + margin-bottom: 3px; + } + .cash-withdrawal .wrapper .list .tip { font-size: 26rpx; color: #999; margin-top: 25rpx; } - + .cash-withdrawal .wrapper .list .bnt { font-size: 32rpx; color: #fff; @@ -329,14 +424,14 @@ line-height: 90rpx; margin: 64rpx auto; } - + .cash-withdrawal .wrapper .list .tip2 { font-size: 26rpx; color: #999; text-align: center; margin: 44rpx 0 20rpx 0; } - + .cash-withdrawal .wrapper .list .value { height: 135rpx; line-height: 135rpx; @@ -344,18 +439,18 @@ width: 690rpx; margin: 0 auto; } - + .cash-withdrawal .wrapper .list .value input { font-size: 80rpx; color: #282828; height: 135rpx; text-align: center; } - + .cash-withdrawal .wrapper .list .value .placeholder2 { color: #bbb; } - + .price { color: $theme-color; } diff --git a/pages/users/user_info/index.vue b/pages/users/user_info/index.vue index 0b2b8337..17331ca6 100644 --- a/pages/users/user_info/index.vue +++ b/pages/users/user_info/index.vue @@ -198,7 +198,7 @@ }); }).catch(msg => { return that.$util.Tips({ - title: msg.message || '保存失败,您并没有修改' + title: msg || '保存失败,您并没有修改' }, { tab: 3, url: 1 diff --git a/pages/users/user_spread_code/index.vue b/pages/users/user_spread_code/index.vue index 9e1071b4..54dba14e 100644 --- a/pages/users/user_spread_code/index.vue +++ b/pages/users/user_spread_code/index.vue @@ -243,7 +243,7 @@ }, fail: function(res) { return that.$util.Tips({ - title: res.errMsg + title: res }); }, complete: function(res) {}, @@ -279,7 +279,7 @@ }, fail: function(res) { return that.$util.Tips({ - title: res.errMsg + title: res }); }, complete: function(res) {}, @@ -292,13 +292,13 @@ }) } else { return that.$util.Tips({ - title: resFile.errMsg + title: resFile }); } }, fail(res) { return that.$util.Tips({ - title: res.errMsg + title: res }); } }) diff --git a/pages/users/user_spread_money/index.vue b/pages/users/user_spread_money/index.vue index b2841ce6..d2731d6e 100644 --- a/pages/users/user_spread_money/index.vue +++ b/pages/users/user_spread_money/index.vue @@ -11,7 +11,31 @@ - + + + + + {{item.date}} + + + + + {{child.status === -1 ? '提现失败' : '提现成功'}}{{'('+child.failMsg+')'}} + {{child.createTime}} + + +{{child.extractPrice}} + -{{child.extractPrice}} + + + + + + + + + + + @@ -46,7 +70,9 @@ + + + + + + + \ No newline at end of file diff --git a/utils/util.js b/utils/util.js index d30287b0..ab8b16bd 100644 --- a/utils/util.js +++ b/utils/util.js @@ -363,7 +363,7 @@ import { } else { errorCallback && errorCallback(data); that.Tips({ - title: data.msg + title: data.message }); } } @@ -618,6 +618,23 @@ import { } return status; }, - } + }, + + toStringValue: function(obj) { + if (obj instanceof Array) { + var arr = []; + for (var i = 0; i < obj.length; i++) { + arr[i] = toStringValue(obj[i]); + } + return arr; + } else if (typeof obj == 'object') { + for (var p in obj) { + obj[p] = toStringValue(obj[p]); + } + } else if (typeof obj == 'number') { + obj = obj + ''; + } + return obj; + } }