From f874159f8f251ff2e677dc0ce963ec5a56260c50 Mon Sep 17 00:00:00 2001 From: jia <1451658316@qq.com> Date: Mon, 11 Sep 2023 09:35:25 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E5=A7=94=E6=89=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../commissionedSales/addDelegation/index.vue | 50 +++-- .../initiateDelegation/index.vue | 182 ++++++++++++------ .../receivedCommission/index.vue | 89 ++++----- pages/moreProject/moreProject.vue | 8 +- pages/product/basicSet.vue | 2 +- 5 files changed, 187 insertions(+), 144 deletions(-) diff --git a/pages/commissionedSales/addDelegation/index.vue b/pages/commissionedSales/addDelegation/index.vue index 86619ff..6da72d9 100644 --- a/pages/commissionedSales/addDelegation/index.vue +++ b/pages/commissionedSales/addDelegation/index.vue @@ -1,12 +1,9 @@ @@ -98,20 +88,8 @@ return { value1: 1, value2: "", - options1: [{ - text: "Shenzhen1", - value: 1 - }, { + options1: [], - text: "Shenzhen2", - value: 2 - }, { - - - text: "Shenzhen3", - value: 3 - }], - date: 1, productList: [], info: { startDate: '', @@ -122,6 +100,14 @@ selected: [], showMonth: false }, + formData: { + entrust_mer_id: '', + entrust_day: 0, + is_type: "4", + product_info: [], + content: '' + }, + type: '' }; }, computed: { @@ -287,6 +273,10 @@ background: #F5F5F5; } + .content { + height: 100vh; + position: relative; + } .release_content { @@ -531,6 +521,10 @@ } .release_btn { - margin-top: 100rpx; + + position: absolute; + bottom: 150rpx; + left: 50%; + margin-left: -347rpx; } \ No newline at end of file diff --git a/pages/commissionedSales/initiateDelegation/index.vue b/pages/commissionedSales/initiateDelegation/index.vue index 4615473..5ade2bd 100644 --- a/pages/commissionedSales/initiateDelegation/index.vue +++ b/pages/commissionedSales/initiateDelegation/index.vue @@ -6,7 +6,7 @@ - + @@ -14,10 +14,10 @@ - {{item.content}} + {{item.title}} - 委托周期:{{item.day}} + 委托周期:{{item.credit_buy}} @@ -28,7 +28,6 @@ 待处理 - + + @@ -149,7 +147,7 @@ - + @@ -162,7 +160,7 @@ - + { this.winHeight = res.windowHeight + this.appInfo = res.safeAreaInsets }, }); this.street_code = e.street this.town = e.town this.getCloundShop() }, - onShow() { + // 分页 + // onReachBottom() { + // if (this.flag) return + // this.status = "loading" + // this.page_num += 1 + // this.flag = true + // this.getList().then(res => { + // return + // this.goodsList = this.goodsList.concat(res.data.data) + // this.flag = false + // if (!res.data.data.length) { + // this.status = "nomore" + // this.flag = true + // } + // }) + // }, + - }, onPageScroll(e) { let that = this this.showtit = !Boolean(e.scrollTop) @@ -323,6 +334,7 @@ .in(this) .select('.content') .boundingClientRect(rect => { + console.log(rect) if (rect.top <= this.headtop) { this.pocls = 'fixed' this.act_swiper = 'act_swiper' @@ -419,7 +431,9 @@ street_code: this.street_code, category_id: this.cloudList[this.current].category_id, order: this.type, - keyword: this.keyword + keyword: this.keyword, + // page_num: this.page_num + }).then(res => { this.goodsList = res.data.list this.showLoading = false @@ -727,7 +741,7 @@ left: 50%; transform: translateX(-50%); position: fixed; - bottom: 0; + // bottom: 0; background-color: #333333; height: 101.64rpx; border-radius: 50.82rpx; From 4b2dbc1be50d06094c9c1ec90ed38acefe644cf1 Mon Sep 17 00:00:00 2001 From: jia <1451658316@qq.com> Date: Mon, 11 Sep 2023 11:56:17 +0800 Subject: [PATCH 03/11] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=A7=94=E6=89=98?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=8F=8Atabar=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/sale.js | 16 ++- pages.json | 24 ++-- .../delegation_details/index.vue | 61 +++++----- .../initiateDelegation/index.vue | 96 ++++++++++------ .../receivedCommission/index.vue | 17 ++- pages/order_pay_status/index.vue | 11 ++ pages/supply_chains/supply_chains.vue | 107 +++++++++++++----- static/tabbar_icon/a-a.png | Bin 3995 -> 4650 bytes static/tabbar_icon/a.png | Bin 2080 -> 1446 bytes static/tabbar_icon/b-a.png | Bin 4042 -> 4771 bytes static/tabbar_icon/b.png | Bin 2174 -> 2656 bytes static/tabbar_icon/c-a.png | Bin 4914 -> 4873 bytes static/tabbar_icon/c.png | Bin 1882 -> 1625 bytes static/tabbar_icon/d-a.png | Bin 4335 -> 3750 bytes static/tabbar_icon/d.png | Bin 4070 -> 2193 bytes static/tabbar_icon/e-a.png | Bin 3867 -> 4903 bytes static/tabbar_icon/e.png | Bin 2696 -> 2267 bytes 17 files changed, 214 insertions(+), 118 deletions(-) diff --git a/api/sale.js b/api/sale.js index a11ed19..c7e5ce8 100644 --- a/api/sale.js +++ b/api/sale.js @@ -35,8 +35,22 @@ export function checkchain(id,data) { export function finishchain(id,data) { return request.post("community/entrust/apply/finish/"+id, data); } - +//商家申请结束委托 +export function finishentrust(id,data) { + return request.post("community/entrust/finish/"+id, data); +} //委托商品加入购物车 export function addEntrustCart(data) { return request.post("community/entrust/addEntrustCart", data); +} + + +//获取委托商品详情 +export function entrustdetail(id) { + return request.get("community/entrust/"+id); +} + +//编辑委托商品详情 +export function editentrust(id,data) { + return request.post("community/entrust/edit/"+id, data); } \ No newline at end of file diff --git a/pages.json b/pages.json index 397cbbd..19b254a 100644 --- a/pages.json +++ b/pages.json @@ -1611,16 +1611,16 @@ }, { "pagePath": "pages/plant_release/index", - "iconPath": "static/tabbar_icon/d.png", - "selectedIconPath": "static/tabbar_icon/d-a.png", - "text": "发布", - "visible": false + "iconPath": "static/tabbar_icon/c.png", + "selectedIconPath": "static/tabbar_icon/c-a.png", + "text": "发布" + }, { "pagePath": "pages/supply_chains/supply_chains", - "iconPath": "static/tabbar_icon/c.png", - "selectedIconPath": "static/tabbar_icon/c-a.png", + "iconPath": "static/tabbar_icon/d.png", + "selectedIconPath": "static/tabbar_icon/d-a.png", "text": "供应" }, { @@ -1629,16 +1629,8 @@ "selectedIconPath": "static/tabbar_icon/e-a.png", "text": "我的" } - ], - "midButton": { - "width": "68px", - "height": "70px", - "iconWidth": "48px", - "selectedColor": "#E93323", - "pagePath": "pages/plant_release/index", - "iconPath": "static/tabbar_icon/d.png", - "text": "发布" - } + ] + diff --git a/pages/commissionedSales/delegation_details/index.vue b/pages/commissionedSales/delegation_details/index.vue index 05b293a..6d24b4c 100644 --- a/pages/commissionedSales/delegation_details/index.vue +++ b/pages/commissionedSales/delegation_details/index.vue @@ -10,7 +10,9 @@ {{objinfo.mer_status==0?"待处理":""||objinfo.mer_status==2?"已拒绝":""||objinfo.mer_status==1?"已接受":""}} - 2020-07-07 14:14:14 + + {{objinfo.entrust_start_date}} @@ -37,12 +39,12 @@ - + 委托方: - + {{objinfo.mer_info.mer_name}} @@ -50,7 +52,7 @@ 被委托方: - + {{objinfo.entrust_mer_info.mer_name}} @@ -92,7 +94,7 @@ 是否结束委托: - {{objinfo.entrust_finish==0?'未结束':""||objinfo.entrust_finish==1?'已结束':""||objinfo.entrust_finish==2?'商家拒绝':""||objinfo.entrust_finish==3?'申请':""}} + {{objinfo.entrust_finish==0?'未结束':""||objinfo.entrust_finish==1?'已结束':""||objinfo.entrust_finish==2?'商家拒绝':""||objinfo.entrust_finish==3?'申请':""}} @@ -100,7 +102,7 @@ 拒绝原因: - {{objinfo.entrust_finish_refusal}} + {{objinfo.entrust_finish_refusal}} @@ -122,7 +124,7 @@ - + @@ -150,12 +152,12 @@ img: require('@/static/images/wtt2.png') } ], -type:0, + type: 0, } }, onLoad(e) { this.list(e.id) - this.type=e.type + this.type = e.type }, onShow() { @@ -164,25 +166,27 @@ type:0, list(id) { entrustdetail(id).then((res) => { - +console.log(res.data) this.objinfo = res.data }) }, - - submit(item){ - addEntrustCart({community_id:item.community_id}).then(res=>{ - - if(res.status==200){ - this.$util.Tips({ - title: res.message, - icon: 'success' - }) - uni.navigateTo({ - url: '/pages/users/order_confirm/index?cartId=' + res.data.cart_id.toString() - }) - } - - }) + + submit(item) { + addEntrustCart({ + community_id: item.community_id + }).then(res => { + + if (res.status == 200) { + this.$util.Tips({ + title: res.message, + icon: 'success' + }) + uni.navigateTo({ + url: '/pages/users/order_confirm/index?cartId=' + res.data.cart_id.toString() + }) + } + + }) } } @@ -192,9 +196,10 @@ type:0, \ No newline at end of file diff --git a/pages/commissionedSales/initiateDelegation/index.vue b/pages/commissionedSales/initiateDelegation/index.vue index 5ade2bd..d4ac509 100644 --- a/pages/commissionedSales/initiateDelegation/index.vue +++ b/pages/commissionedSales/initiateDelegation/index.vue @@ -17,7 +17,7 @@ {{item.title}} - 委托周期:{{item.credit_buy}} + 委托周期:{{item.entrust_day}} @@ -25,11 +25,11 @@ - + 待处理 - @@ -51,10 +51,10 @@ 已接受 - + 结束委托 - + 详情 @@ -166,17 +166,17 @@ 结束委托申请处理 - - 结算周期: 30天 + + 结算周期: {{obj.mer_info.settle_cycle}}天 - - 利息比例: 0.05% + + 利息比例: {{obj.mer_info.interest_rate}}% - + 拒绝 - + 接受 @@ -197,19 +197,19 @@ 结束委托申请处理 - - 结算周期: 30天 + + 结算周期: {{obj.mer_info.settle_cycle}}天 - - 利息比例: 0.05% + + 利息比例: {{obj.mer_info.interest_rate}}% 拒绝原因: -