更改委托功能及tabar图片

This commit is contained in:
jia 2023-09-11 11:56:17 +08:00
parent f874159f8f
commit 4b2dbc1be5
17 changed files with 214 additions and 118 deletions

View File

@ -35,8 +35,22 @@ export function checkchain(id,data) {
export function finishchain(id,data) { export function finishchain(id,data) {
return request.post("community/entrust/apply/finish/"+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) { export function addEntrustCart(data) {
return request.post("community/entrust/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);
}

View File

@ -1611,16 +1611,16 @@
}, },
{ {
"pagePath": "pages/plant_release/index", "pagePath": "pages/plant_release/index",
"iconPath": "static/tabbar_icon/d.png", "iconPath": "static/tabbar_icon/c.png",
"selectedIconPath": "static/tabbar_icon/d-a.png", "selectedIconPath": "static/tabbar_icon/c-a.png",
"text": "发布", "text": "发布"
"visible": false
}, },
{ {
"pagePath": "pages/supply_chains/supply_chains", "pagePath": "pages/supply_chains/supply_chains",
"iconPath": "static/tabbar_icon/c.png", "iconPath": "static/tabbar_icon/d.png",
"selectedIconPath": "static/tabbar_icon/c-a.png", "selectedIconPath": "static/tabbar_icon/d-a.png",
"text": "供应" "text": "供应"
}, },
{ {
@ -1629,16 +1629,8 @@
"selectedIconPath": "static/tabbar_icon/e-a.png", "selectedIconPath": "static/tabbar_icon/e-a.png",
"text": "我的" "text": "我的"
} }
], ]
"midButton": {
"width": "68px",
"height": "70px",
"iconWidth": "48px",
"selectedColor": "#E93323",
"pagePath": "pages/plant_release/index",
"iconPath": "static/tabbar_icon/d.png",
"text": "发布"
}

View File

@ -10,7 +10,9 @@
{{objinfo.mer_status==0?"待处理":""||objinfo.mer_status==2?"已拒绝":""||objinfo.mer_status==1?"已接受":""}} {{objinfo.mer_status==0?"待处理":""||objinfo.mer_status==2?"已拒绝":""||objinfo.mer_status==1?"已接受":""}}
</view> </view>
<view class="top-two-two"> <view class="top-two-two">
2020-07-07 14:14:14 <!-- 2020-07-07 14:14:14
-->
{{objinfo.entrust_start_date}}
</view> </view>
</view> </view>
</view> </view>
@ -37,12 +39,12 @@
</view> </view>
<view class="content_center-two"> <view class="content_center-two" v-if="objinfo">
<view class="center-two"> <view class="center-two">
<view class="center-twoa"> <view class="center-twoa">
委托方: 委托方:
</view> </view>
<view class="center-twob"> <view class="center-twob" >
{{objinfo.mer_info.mer_name}} {{objinfo.mer_info.mer_name}}
</view> </view>
</view> </view>
@ -50,7 +52,7 @@
<view class="center-twoa"> <view class="center-twoa">
被委托方: 被委托方:
</view> </view>
<view class="center-twob"> <view class="center-twob" >
{{objinfo.entrust_mer_info.mer_name}} {{objinfo.entrust_mer_info.mer_name}}
</view> </view>
</view> </view>
@ -150,12 +152,12 @@
img: require('@/static/images/wtt2.png') img: require('@/static/images/wtt2.png')
} }
], ],
type:0, type: 0,
} }
}, },
onLoad(e) { onLoad(e) {
this.list(e.id) this.list(e.id)
this.type=e.type this.type = e.type
}, },
onShow() { onShow() {
@ -164,15 +166,17 @@ type:0,
list(id) { list(id) {
entrustdetail(id).then((res) => { entrustdetail(id).then((res) => {
console.log(res.data)
this.objinfo = res.data this.objinfo = res.data
}) })
}, },
submit(item){ submit(item) {
addEntrustCart({community_id:item.community_id}).then(res=>{ addEntrustCart({
community_id: item.community_id
}).then(res => {
if(res.status==200){ if (res.status == 200) {
this.$util.Tips({ this.$util.Tips({
title: res.message, title: res.message,
icon: 'success' icon: 'success'
@ -192,9 +196,10 @@ type:0,
<style lang="scss"> <style lang="scss">
.content{ .content {
position: relative; position: relative;
} }
.content_top { .content_top {
height: 151rpx; height: 151rpx;
background: linear-gradient(84deg, #2352FA 0%, #6497FF 100%); background: linear-gradient(84deg, #2352FA 0%, #6497FF 100%);
@ -366,10 +371,8 @@ type:0,
color: #FFFFFF; color: #FFFFFF;
position: absolute; position: absolute;
left: 50%; left: 50%;
margin-left:-347rpx; margin-left: -347rpx;
position: fixed; position: fixed;
bottom: 100rpx; bottom: 100rpx;
} }
</style> </style>

View File

@ -17,7 +17,7 @@
{{item.title}} {{item.title}}
</view> </view>
<view class="one-txt-b"> <view class="one-txt-b">
委托周期:{{item.credit_buy}} 委托周期:{{item.entrust_day}}
</view> </view>
</view> </view>
</view> </view>
@ -51,10 +51,10 @@
已接受 已接受
</view> </view>
<view class="contentgn"> <view class="contentgn">
<view class="contentgn_a" @click="closingorder"> <view class="contentgn_a" @click="closingorder(item)" v-if="item.entrust_finish==3">
结束委托 结束委托
</view> </view>
<span></span> <span v-if="item.entrust_finish==3"></span >
<view class="contentgn_b" @click="detail(item)"> <view class="contentgn_b" @click="detail(item)">
详情 详情
</view> </view>
@ -166,17 +166,17 @@
<view class="bg-content-a" style="margin-left: 207rpx;"> <view class="bg-content-a" style="margin-left: 207rpx;">
结束委托申请处理 结束委托申请处理
</view> </view>
<view class="bg-content-b"> <view class="bg-content-b" v-if="obj.mer_info">
结算周期: <span>30</span> 结算周期: <span>{{obj.mer_info.settle_cycle}}</span>
</view> </view>
<view class="bg-content-c"> <view class="bg-content-c" v-if="obj.mer_info">
利息比例: <span>0.05%</span> 利息比例: <span>{{obj.mer_info.interest_rate}}%</span>
</view> </view>
<view class="entrust_bga_btn"> <view class="entrust_bga_btn">
<view class="cancellation"> <view class="cancellation" @click="refused">
拒绝 拒绝
</view> </view>
<view class="determine"> <view class="determine" @click="agree(obj)">
接受 接受
</view> </view>
</view> </view>
@ -197,19 +197,19 @@
<view class="bg-content-a" style="margin-left: 207rpx;"> <view class="bg-content-a" style="margin-left: 207rpx;">
结束委托申请处理 结束委托申请处理
</view> </view>
<view class="bg-content-b"> <view class="bg-content-b" v-if="obj.mer_info">
结算周期: <span>30</span> 结算周期: <span>{{obj.mer_info.settle_cycle}}</span>
</view> </view>
<view class="bg-content-c"> <view class="bg-content-c" v-if="obj.mer_info">
利息比例: <span>0.05%</span> 利息比例: <span>{{obj.mer_info.interest_rate}}%</span>
</view> </view>
<view class="bg-content-c"> <view class="bg-content-c">
拒绝原因 拒绝原因
<view class="" style="margin-top: 21rpx;"> <view class="" style="margin-top: 21rpx;">
<textarea value="" placeholder="输入拒绝原因" class="bg-content_textarea" /> <textarea v-model="refuseds" placeholder="输入拒绝原因" class="bg-content_textarea" />
</view> </view>
</view> </view>
<view class="entrust_bga_btn"> <view class="entrust_bga_btn" @click="agree(obj)">
<view class="determine"> <view class="determine">
接受 接受
</view> </view>
@ -228,7 +228,8 @@
import { import {
entrustlist, entrustlist,
finishchain, finishchain,
checkchain checkchain,
finishentrust
} from '@/api/sale.js' } from '@/api/sale.js'
export default { export default {
components: { components: {
@ -290,7 +291,8 @@
} }
], ],
obj: {} obj: {},
refuseds:''
} }
}, },
onLoad() { onLoad() {
@ -330,7 +332,7 @@
this.activeItem = e.name; //class this.activeItem = e.name; //class
this.tabTitle = e.name; // this.tabTitle = e.name; //
this.where.page = 1 this.where.page = 1
this.orderList=[] this.orderList = []
this.where.status = e.type this.where.status = e.type
this.commislist() this.commislist()
}, },
@ -355,14 +357,14 @@
}, },
// //
order(item){ order(item) {
if(item.mer_status==0&&entrust_order_id!=0){ if (item.mer_status == 0 && entrust_order_id != 0) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/commissionedSales/delegation_details/index?id=' + item.community_id url: '/pages/commissionedSales/delegation_details/index?id=' + item.community_id
}) })
}else{ } else {
this.$util.Tips({ this.$util.Tips({
title:'商家还没同意该订单', title: '商家还没同意该订单',
icon: 'err' icon: 'err'
}) })
} }
@ -386,15 +388,41 @@
}, },
// //
closingorder() { closingorder(item) {
this.$refs.bindmobile1.open() console.log(item)
this.obj=item
this.$refs.bindmobile2.open()
// this.$refs.bindmobile3.open() // this.$refs.bindmobile3.open()
}, },
//
refused() {
this.$refs.bindmobile2.close()
setTimeout(() => {
this.$refs.bindmobile3.open()
}, 1000)
},
// //
declined() { declined() {
// this.$refs.bindmobile2.open() // this.$refs.bindmobile2.open()
this.$refs.bindmobile3.open() this.$refs.bindmobile3.open()
}, },
agree(item){
finishentrust(item.community_id,{
status: 2,
refusal:this.refuseds
}).then(res => {
this.$util.Tips({
title: res.message,
icon: 'success'
})
this.orderList = []
this.tabTitle = "tabTwo"
this.$refs.bindmobile2.close()
this.$refs.bindmobile3.close()
this.commislist()
})
},
// //
deleteOrder(item) { deleteOrder(item) {
checkchain(item.community_id, { checkchain(item.community_id, {

View File

@ -51,7 +51,7 @@
<view class="contentgn"> <view class="contentgn">
<view class="contentgn_a" style="margin-left: 10rpx;" <view class="contentgn_a" style="margin-left: 10rpx;"
v-if="item.entrust_order_id>0&&item.mer_status==1" @click="closingorder(item)"> v-if="item.entrust_order_id>0&&item.mer_status==1" @click="closingorder(item)">
结束委托 申请结束委托
</view> </view>
<span v-if="item.entrust_order_id>0&&item.mer_status==1"></span> <span v-if="item.entrust_order_id>0&&item.mer_status==1"></span>
<view class="contentgn_a" v-if="item.entrust_order_id==0" style="margin-left: 10rpx;" <view class="contentgn_a" v-if="item.entrust_order_id==0" style="margin-left: 10rpx;"
@ -60,9 +60,6 @@
</view> </view>
<span v-if="item.entrust_order_id==0"></span> <span v-if="item.entrust_order_id==0"></span>
<view class="contentgn_b" @click="detail(item)"> <view class="contentgn_b" @click="detail(item)">
详情 详情
</view> </view>
@ -370,9 +367,9 @@
url: '/pages/commissionedSales/delegation_details/index?id=' + item.community_id + '&type=1' url: '/pages/commissionedSales/delegation_details/index?id=' + item.community_id + '&type=1'
}) })
}, },
// //
deteragrss(item) { deteragrss(item) {
console.log(item)
finishchain(item.community_id, { finishchain(item.community_id, {
status: 1 status: 1
}).then((res) => { }).then((res) => {
@ -384,9 +381,9 @@
this.orderList = [] this.orderList = []
this.tabTitle = "tabTwo" this.tabTitle = "tabTwo"
this.commislist() this.commislist()
this.$refs.bindmobile1.colse() this.$refs.bindmobile1.close()
}).catch((err)=>{ }).catch((err) => {
this.$refs.bindmobile1.close()
this.$util.Tips({ this.$util.Tips({
title: err, title: err,
icon: 'error' icon: 'error'
@ -428,7 +425,7 @@
this.orderList = [] this.orderList = []
this.tabTitle = "tabOne" this.tabTitle = "tabOne"
this.commislist() this.commislist()
this.$refs.bindmobile1.colse() this.$refs.bindmobile.close()
}) })
}, },
// //

View File

@ -232,6 +232,17 @@
}) })
} }
} else if (this.product_type == 99) {
if(val==1){
uni.navigateTo({
url: `/pages/users/order_list/relase?status=1&product_type=${this.product_type}`
})
}else{
uni.navigateTo({
url: `/pages/users/order_list/relase?status=0&product_type=${this.product_type}`
})
}
} else { } else {
if(val==1){ if(val==1){
uni.navigateTo({ uni.navigateTo({

View File

@ -14,7 +14,11 @@
<view :class="['iconfont','icon-xiaoxi',isFshow?'sitebox':'']" style="color:#000;"></view> <view :class="['iconfont','icon-xiaoxi',isFshow?'sitebox':'']" style="color:#000;"></view>
</navigator> </navigator>
</view> </view>
</view> </view>
<zbpSwiper :isSelectPlace="true" :town="street" :streetname="street" :location_Arr="locationArr" <zbpSwiper :isSelectPlace="true" :town="street" :streetname="street" :location_Arr="locationArr"
@change="dchange"> @change="dchange">
</zbpSwiper> </zbpSwiper>
@ -70,8 +74,6 @@
</view> </view>
<view class="list-con"> <view class="list-con">
<!-- <view class="list-con-left"
@tap="navgo('/pages/nongKe/specialty/index?type_code=TypeFamousSpecialties')"> -->
<view class="list-con-left" <view class="list-con-left"
@tap="navgo('/pages/nongKe/specialty/index?type_code=TypeFamousSpecialties')"> @tap="navgo('/pages/nongKe/specialty/index?type_code=TypeFamousSpecialties')">
<!-- <view class="list-con-title"> <!-- <view class="list-con-title">
@ -85,8 +87,6 @@
<image src="@/static/images/f5.png" mode="aspectFit"></image> <image src="@/static/images/f5.png" mode="aspectFit"></image>
</view> </view>
<view class="list-con-right"> <view class="list-con-right">
<!-- <view class="con-right" style="margin-bottom: 20rpx"
@click="navgo('/pages/nongKe/food/index?type_code=TypeLocalCuisine')"> -->
<view class="con-right" style="margin-bottom: 20rpx" <view class="con-right" style="margin-bottom: 20rpx"
@click="navgo('/pages/nongKe/food/index?type_code=TypeLocalCuisine')"> @click="navgo('/pages/nongKe/food/index?type_code=TypeLocalCuisine')">
<!-- <view class="list-con-title"> <!-- <view class="list-con-title">
@ -99,8 +99,6 @@
</view> --> </view> -->
<image src="@/static/images/f7.png" mode="aspectFit"></image> <image src="@/static/images/f7.png" mode="aspectFit"></image>
</view> </view>
<!-- <view class="con-right"
@click="navgo('/pages/nongKe/tourism/index?type_code=TypeFeaturedCultural')"> -->
<view class="con-right" <view class="con-right"
@click="navgo('/pages/nongKe/tourism/index?type_code=TypeFeaturedCultural')"> @click="navgo('/pages/nongKe/tourism/index?type_code=TypeFeaturedCultural')">
<!-- <view class="list-con-title"> <!-- <view class="list-con-title">
@ -119,7 +117,10 @@
<image src="@/static/images/f4.png" mode="aspectFit"></image> <image src="@/static/images/f4.png" mode="aspectFit"></image>
</view> </view>
<view class="goodslist"> <view class="goodslist">
<WaterfallsFlow :wfList="cateGoods" /> <WaterfallsFlow :wfList="productList" :type="1" />
</view>
<view class='loadingicon acea-row row-center-wrapper' v-if='productList.length > 0'>
<text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>{{loadTitle}}
</view> </view>
<view class="empty_wrapper" v-if="emptyShow"> <view class="empty_wrapper" v-if="emptyShow">
<u-empty :show="emptyShow" mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png"></u-empty> <u-empty :show="emptyShow" mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png"></u-empty>
@ -128,13 +129,12 @@
<u-picker :defaultIndex="[0, 0]" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm" <u-picker :defaultIndex="[0, 0]" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm"
@cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker> @cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker>
<u-loadmore :status="status" v-if="cateGoods.length >= where.limit" />
<view class="location" v-if="isshow"> <view class="location" v-if="isshow">
<view class="locationa"> 位置权限使用说明 </view> <view class="locationa"> 位置权限使用说明 </view>
<view class="locationb"> 用于向你推荐最近门店 </view> <view class="locationb"> 用于向你推荐最近门店 </view>
</view> </view>
<!-- <m-tabbar native>
<!-- <m-tabbar native> <!-- <m-tabbar native>
<template v-slot:tabbar_index_2> <template v-slot:tabbar_index_2>
<view class="custom_style"> <view class="custom_style">
@ -199,7 +199,7 @@
}, },
isshow: false, isshow: false,
locationArr: ({}), locationArr: ({}),
status: 'loadmore',
bgColor: '', bgColor: '',
showPicker: false, showPicker: false,
columnData: [], columnData: [],
@ -223,20 +223,23 @@
location: '', location: '',
emptyShow: false, emptyShow: false,
town: '', town: '',
cateGoods: [], productList: [],
recoList: [], recoList: [],
articleList: [], articleList: [],
street_id: '', street_id: '',
street: '', street: '',
bgColor: '', bgColor: '',
isFshow: false, isFshow: false,
backColor: 'rgba(252, 252, 252, 0)' backColor: 'rgba(252, 252, 252, 0)',
loadend: false,
loading: false,
loadTitle: '加载更多',
} }
}, },
onPullDownRefresh() { onPullDownRefresh() {
this.cateGoods = []
this.list() this.list(true);
this.Area() this.Area()
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
}, },
@ -263,11 +266,15 @@
}, },
onReachBottom() { onReachBottom() {
if (this.status == 'nomore') return; if (this.productList.length > 0) {
this.status = 'loading'; setTimeout(() => {
this.where.page = ++this.where.page; this.list(false);
}, 500)
} else {
this.list() this.list()
}
}, },
beforeDestroy() { beforeDestroy() {
// //
@ -322,17 +329,59 @@
}, },
// //
list(id) { list(isPage,id) {
if (id) { if (id) {
spuInfo(id, this.where1).then(res => {
this.cateGoods.push(...res.data.list)
}) let that = this;
if (that.loadend) return;
if (that.loading) return;
if (isPage === true) that.$set(that, 'productList', []);
that.loading = true;
that.loadTitle = '';
spuInfo(id,that.where).then(res => {
let list = res.data.list;
let productList = that.$util.SplitArray(list, that.productList);
let loadend = list.length < that.where.limit;
that.loadend = loadend;
that.loading = false;
that.loadTitle = loadend ? '已全部加载' : '加载更多';
that.$set(that, 'productList', productList);
// console.log(that.productList)
that.$set(that.where, 'page', that.where.page + 1);
if (that.where.page == 1 && res.data.list.length <= 0) that.emptyShow = true
}).catch(err => {
that.loading = false;
that.loadTitle = '加载更多';
});
} else { } else {
getProductHot(this.where.page, this.where.limit).then(res => { let that = this;
this.cateGoods.push(...res.data.list) if (that.loadend) return;
}) if (that.loading) return;
if (isPage === true) that.$set(that, 'productList', []);
that.loading = true;
that.loadTitle = '';
getProductHot(that.where.page,that.where.limit).then(res => {
let list = res.data.list;
let productList = that.$util.SplitArray(list, that.productList);
let loadend = list.length < that.where.limit;
that.loadend = loadend;
that.loading = false;
that.loadTitle = loadend ? '已全部加载' : '加载更多';
that.$set(that, 'productList', productList);
// console.log(that.productList)
that.$set(that.where, 'page', that.where.page + 1);
if (that.where.page == 1 && res.data.list.length <= 0) that.emptyShow = true
}).catch(err => {
that.loading = false;
that.loadTitle = '加载更多';
});
} }
@ -398,8 +447,8 @@
this.street = e.value[1].name this.street = e.value[1].name
this.street_id = e.value[1].code this.street_id = e.value[1].code
this.town = e.value[1].name this.town = e.value[1].name
this.cateGoods=[] this.productList=[]
this.list(this.street_id) this.list(true,this.street_id)
this.$nextTick(() => { this.$nextTick(() => {
this.$bus.$emit('value-updated', e.value[1].name + ',' + e.value[1].code); this.$bus.$emit('value-updated', e.value[1].name + ',' + e.value[1].code);
@ -489,7 +538,7 @@
this.street = e.value[1].name this.street = e.value[1].name
this.street_id = e.value[1].code this.street_id = e.value[1].code
this.town = e.value[1].name this.town = e.value[1].name
this.cateGoods=[] this.productList=[]
this.list(this.street_id) this.list(this.street_id)
}, },
selfLocation() { selfLocation() {
@ -512,6 +561,7 @@
lat: latitude, lat: latitude,
long: longitude long: longitude
}).then(res => { }).then(res => {
this.isshow = false
this.town = res.data.address_reference.town.title this.town = res.data.address_reference.town.title
this.street_id = res.data.address_reference.town.id this.street_id = res.data.address_reference.town.id
this.street = res.data.address_component.street this.street = res.data.address_component.street
@ -522,6 +572,7 @@
}) })
this.list(this.street_id) this.list(this.street_id)
}).catch(err => { }).catch(err => {
this.isshow = false
uni.showToast({ uni.showToast({
title: err, title: err,
icon: 'none' icon: 'none'

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB