diff --git a/common/styles/iconfont.css b/common/styles/iconfont.css index 4682435..ac8aeef 100644 --- a/common/styles/iconfont.css +++ b/common/styles/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "lf-iconfont"; /* Project id 2779107 */ - src: url('//at.alicdn.com/t/font_2779107_e1lp09zkffc.woff2?t=1632308314645') format('woff2'), - url('//at.alicdn.com/t/font_2779107_e1lp09zkffc.woff?t=1632308314645') format('woff'), - url('//at.alicdn.com/t/font_2779107_e1lp09zkffc.ttf?t=1632308314645') format('truetype'); + src: url('//at.alicdn.com/t/font_2779107_gbe0eg36e0e.woff2?t=1632969325882') format('woff2'), + url('//at.alicdn.com/t/font_2779107_gbe0eg36e0e.woff?t=1632969325882') format('woff'), + url('//at.alicdn.com/t/font_2779107_gbe0eg36e0e.ttf?t=1632969325882') format('truetype'); } .lf-iconfont { @@ -13,94 +13,66 @@ -moz-osx-font-smoothing: grayscale; } -.icon-jiazai:before { - content: "\e7ba"; -} - -.icon-daifahuo:before { - content: "\e642"; -} - -.icon-daishouhuo:before { - content: "\e636"; -} - -.icon-fanhui:before { - content: "\e613"; +.icon-dianshangjiashangcheng-xianxing:before { + content: "\e79d"; } -.icon-shouye:before { - content: "\e61d"; -} - -.icon-faxian:before { - content: "\e6b8"; +.icon-zhuanjifen:before { + content: "\e616"; } -.icon-yingerche:before { - content: "\e603"; +.icon-Bookmark:before { + content: "\e619"; } -.icon-fenleiorguangchangorqitatianchong:before { - content: "\e67d"; +.icon-Location:before { + content: "\e61f"; } -.icon-jifen1:before { - content: "\e6a4"; +.icon-Star:before { + content: "\e625"; } -.icon-tingchechang:before { - content: "\e6ca"; +.icon-huiyuan4:before { + content: "\fc38"; } -.icon-VIP:before { - content: "\e68e"; +.icon-31daifahuo:before { + content: "\e604"; } -.icon-tubiao-:before { - content: "\e610"; +.icon-a-Group21:before { + content: "\e615"; } -.icon-packing:before { - content: "\e625"; +.icon-a-Group16:before { + content: "\e614"; } -.icon-liwu:before { - content: "\e674"; +.icon-jiazai:before { + content: "\e7ba"; } -.icon-activity-s:before { - content: "\e641"; +.icon-daishouhuo:before { + content: "\e636"; } -.icon-peishi-shoubiao:before { - content: "\e60a"; +.icon-fanhui:before { + content: "\e613"; } -.icon-shujia:before { - content: "\e620"; +.icon-shouye:before { + content: "\e61d"; } -.icon-V:before { - content: "\e719"; +.icon-faxian:before { + content: "\e6b8"; } .icon-huiyuan2:before { content: "\e731"; } -.icon-yinliao:before { - content: "\e60e"; -} - -.icon-meishi:before { - content: "\e611"; -} - -.icon-shuji:before { - content: "\fbb7"; -} - .icon-jian1:before { content: "\e633"; } diff --git a/components/lf-shopGoodsCard/lf-shopGoodsCard.vue b/components/lf-shopGoodsCard/lf-shopGoodsCard.vue index 982fb70..3aab9f1 100644 --- a/components/lf-shopGoodsCard/lf-shopGoodsCard.vue +++ b/components/lf-shopGoodsCard/lf-shopGoodsCard.vue @@ -11,7 +11,7 @@ {{ item.associate.name }} - ¥{{ item.associate.min_price }} + ¥{{ item.associate.sell_price }} diff --git a/pages.json b/pages.json index 7be0500..cb8ff74 100644 --- a/pages.json +++ b/pages.json @@ -503,6 +503,20 @@ "navigationBarTitleText": "商家登录" , "navigationStyle":"custom" } + }, + { + "path": "pages/business/activity/add", + "style": { + "navigationBarTitleText": "新增活动" , + "navigationStyle":"custom" + } + }, + { + "path": "pages/business/activity/list", + "style": { + "navigationBarTitleText": "活动列表" , + "navigationStyle":"custom" + } } ], "globalStyle": { diff --git a/pages/aboutpay/confirmcash.vue b/pages/aboutpay/confirmcash.vue index b488f93..328f49b 100644 --- a/pages/aboutpay/confirmcash.vue +++ b/pages/aboutpay/confirmcash.vue @@ -23,18 +23,21 @@ - + + + + diff --git a/pages/business/activity/list.vue b/pages/business/activity/list.vue new file mode 100644 index 0000000..28cfea8 --- /dev/null +++ b/pages/business/activity/list.vue @@ -0,0 +1,302 @@ + + + + + diff --git a/pages/business/balance/balance.vue b/pages/business/balance/balance.vue index beb954f..5b1ff8f 100644 --- a/pages/business/balance/balance.vue +++ b/pages/business/balance/balance.vue @@ -35,7 +35,10 @@ +¥{{ item.balance }} - {{ item.balance }} + + [{{ item.state }}] + {{ item.balance }} + {{ item.note }} @@ -66,17 +69,46 @@ isPage: true, list: [] }], - balance: 0 + balance: 0, + show_count: 0 } }, computed: { getDay(){ return this.$shared.recordTime(new Date(), '-', 'date'); + }, + showStateColor(){ + return function(val){ + if(val == '提现中'){ + return '#999999' + }else if(val == '已到账'){ + return '#0D2E9A' + }else{ + return '#87aebf' + } + } } }, onLoad(){ this.getBalance(); }, + onShow(){ + this.show_count++; + if(this.show_count > 1){ + this.tab_list = [{ + name: '余额明细', + page: 1, + isPage: true, + list: [] + },{ + name: '提现明细', + page: 1, + isPage: true, + list: [] + }]; + this.getBalance(); + } + }, methods: { // 时间筛选 dateChange(event){ diff --git a/pages/business/center/center.vue b/pages/business/center/center.vue index 08391fe..d51f1e2 100644 --- a/pages/business/center/center.vue +++ b/pages/business/center/center.vue @@ -96,6 +96,23 @@ + + + 我的活动 + + + + + 新增活动 + + + + 活动列表 + + + + + @@ -151,6 +168,10 @@ url += `&rand=${result.rand}`; url += `&time=${result.time}`; this.$url(url); + }else if(result.u_id && result.a_id){ + this.activityJoin(result); + }else if(result.u_id && result.no){ + this.orderSelf(result); } }else{ this.$msg('不是有效的支付码'); @@ -170,6 +191,50 @@ new_data = str; } return new_data; + }, + // 核销活动 + activityJoin(result){ + this.$http.post({ + api: 'api/supplier/activity/join', + data: { + user_id: result.u_id, + activity_id: result.a_id + }, + header: { + token: this.token + } + }).then(res => { + this.$msg(res.data.message || '核销失败'); + }) + }, + // 自提 + orderSelf(result){ + this.$http.post({ + api: `api/supplier/order/self/${result.no}`, + data: { + user_id: result.u_id + }, + header: { + token: this.token + } + }).then(res => { + this.$msg(res.data.message || '自提核销成功'); + }) + }, + // 退出登录 + outLogin(){ + uni.showModal({ + title: '温馨提示', + content: '您确定退出登录商家中心吗?', + success: result => { + if(result.confirm){ + this.$cookieStorage.clear('store_token'); + this.$msg('退出成功', {icon: 'success'}).then(() => { + this.$toBack(); + }) + } + } + }) } } } @@ -288,4 +353,16 @@ } } } + .out-btn{ + width: 686rpx; + height: 90rpx; + background-color: #0D2E9A; + color: #FFFFFF; + font-size: 32rpx; + margin: 0 auto; + display: flex; + justify-content: center; + align-items: center; + margin-top: 60rpx; + } diff --git a/pages/business/payment/money.vue b/pages/business/payment/money.vue index d11f221..ae25a7e 100644 --- a/pages/business/payment/money.vue +++ b/pages/business/payment/money.vue @@ -7,7 +7,7 @@ - + diff --git a/pages/business/withdrawal/withdrawal.vue b/pages/business/withdrawal/withdrawal.vue index 48e64f1..adb6b78 100644 --- a/pages/business/withdrawal/withdrawal.vue +++ b/pages/business/withdrawal/withdrawal.vue @@ -210,7 +210,7 @@ this.alipay_account = ''; } this.money = ''; - this.$msg('提现成功', {icon: 'success'}); + this.$msg('提现成功', {icon: 'success', duration: 2500}); this.getApplyInfo(); } uni.hideLoading(); diff --git a/pages/discover/discover.vue b/pages/discover/discover.vue index 787955b..d99e217 100644 --- a/pages/discover/discover.vue +++ b/pages/discover/discover.vue @@ -104,6 +104,9 @@ return `calc(${this.scrollH}px - ${this.nav_height}px - 130rpx - 86rpx)`; } }, + onShow() { + this.getHotActivity() + }, onLoad(){ let info = uni.getSystemInfoSync(); this.scrollH = info.screenHeight; diff --git a/pages/discover/discoverdetails.vue b/pages/discover/discoverdetails.vue index c6db11b..57f547f 100644 --- a/pages/discover/discoverdetails.vue +++ b/pages/discover/discoverdetails.vue @@ -54,7 +54,7 @@ {{commentitem.user.nick_name}} {{commentitem.user.mobile_replace}} - {{commentitem.content}}{{commentitem.created_at}} + {{commentitem.content}}{{commentitem.created_at}} @@ -106,21 +106,21 @@ - + - - - + + + {{discover_details.likes_count}} - - + + {{discover_details.view_count}} - - + + {{discover_details.comments_count}} @@ -181,7 +181,7 @@ .then(res => { if (res.data.code == 200) { if (res.data.status) { - this.$msg('点赞成功').then(() => { + this.$msg('点赞成功',{icon: 'success', duration: 2500}).then(() => { console.log('更新点赞列表') this.getCommentList() }) @@ -264,7 +264,7 @@ .then(res => { if (res.data.code == 200) { if (res.data.status) { - this.$msg('回复成功').then(() => { + this.$msg('回复成功',{icon: 'success', duration: 2500}).then(() => { console.log('更新回复列表'); this.comment = ''; this.ifApply = false; @@ -310,7 +310,7 @@ .then(res => { if (res.data.code == 200) { if (res.data.status) { - this.$msg('评论成功').then(() => { + this.$msg('评论成功',{icon: 'success', duration: 2500}).then(() => { console.log('更新评论列表') this.comment = ''; this.getCommentList(); diff --git a/pages/discover/publish.vue b/pages/discover/publish.vue index 32f43f4..458d7fc 100644 --- a/pages/discover/publish.vue +++ b/pages/discover/publish.vue @@ -118,7 +118,7 @@ let current_count = this.image_count - this.image_list.length; if(current_count == 0) return; uni.chooseImage({ - count: current_count, + count: 1, complete: result => { if(result.errMsg == "chooseImage:fail cancel"){ return; // 取消选择图片 diff --git a/pages/index/activity/detail.vue b/pages/index/activity/detail.vue index 1f07633..a073beb 100644 --- a/pages/index/activity/detail.vue +++ b/pages/index/activity/detail.vue @@ -1,18 +1,18 @@