|
|
|
@ -1,4 +1,5 @@ |
|
|
|
<template> |
|
|
|
<!-- 兼职中心 --> |
|
|
|
<view class="page1"> |
|
|
|
<view class="title"> |
|
|
|
<view class="title-sreach"> |
|
|
|
@ -6,37 +7,229 @@ |
|
|
|
<uni-icons type="left" size="28"></uni-icons> |
|
|
|
</view> |
|
|
|
<view class="title-name" :style="{'padding-top': menuButtonInfo.top +'px'}"> |
|
|
|
兼职主页 |
|
|
|
兼职中心 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="content"> |
|
|
|
|
|
|
|
<view class="shop-title"> |
|
|
|
<view class="title1"> |
|
|
|
<img src="https://ooo.0o0.ooo/2019/04/28/5cc5a71a6e3b6.png" alt="" /> |
|
|
|
</view> |
|
|
|
<view class="title2"> |
|
|
|
<view class="title22"> |
|
|
|
<view style="display: flex;font-size: 32rpx;font-weight: 700;"> |
|
|
|
{{worker.workerName}} |
|
|
|
<img v-if="isBaozhang" src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/d27fa14c6bb7426482ed7821919d3aa7.png" alt="" style="width: 140rpx;height: 32rpx;background-size: 100%;margin: 20rpx;"> |
|
|
|
<img v-else src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/176715c0f8ea41e7a9be8fa1c3edd670.png" alt="" style="width: 140rpx;height: 32rpx;background-size: 100%;margin: 20rpx;"> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="title33" @tap="goDetail('xx')"> |
|
|
|
修改信息 |
|
|
|
<uni-icons type="right" size="12"></uni-icons> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="shop-order"> |
|
|
|
<view class="order1"> |
|
|
|
待办事项 |
|
|
|
</view> |
|
|
|
<view class="order2"> |
|
|
|
<view class="order22"> |
|
|
|
|
|
|
|
<view class="order33" @tap="goDetail('db',4)"> |
|
|
|
<view class="order44"> |
|
|
|
{{daiquhuo}} |
|
|
|
</view> |
|
|
|
<view class="order55"> |
|
|
|
待取货 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="order33" @tap="goDetail('db',5)"> |
|
|
|
<view class="order44"> |
|
|
|
{{daisongda}} |
|
|
|
</view> |
|
|
|
<view class="order55"> |
|
|
|
待送达 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="order33" @tap="goDetail('tui',11)"> |
|
|
|
<view class="order44"> |
|
|
|
{{shopData.refundCount == undefined?0:shopData.refundCount}} |
|
|
|
</view> |
|
|
|
<view class="order55"> |
|
|
|
待退款/售后 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="order33" @tap="goDetail('pj','cha')"> |
|
|
|
<view class="order44"> |
|
|
|
{{shopData.pendingBadReviewCount == undefined?0:shopData.pendingBadReviewCount}} |
|
|
|
</view> |
|
|
|
<view class="order55"> |
|
|
|
待回复差评 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="shop-order"> |
|
|
|
<view class="order1" style="display: flex;"> |
|
|
|
<view style="flex: 1;"> |
|
|
|
今日实时数据 |
|
|
|
</view> |
|
|
|
<view @tap="goDetail('tj')"> |
|
|
|
更多 |
|
|
|
<uni-icons type="right" size="12"></uni-icons> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="data2"> |
|
|
|
<view class="data22"> |
|
|
|
<view class="data222"> |
|
|
|
{{shopData.orderRevenueAndCount.count == undefined?0:shopData.orderRevenueAndCount.count}} |
|
|
|
</view> |
|
|
|
<view class="data333"> |
|
|
|
完成订单 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="data22"> |
|
|
|
<view class="data222"> |
|
|
|
{{shopData.orderRevenueAndCount.amount == undefined?0:shopData.orderRevenueAndCount.amount}} |
|
|
|
</view> |
|
|
|
<view class="data333"> |
|
|
|
配送佣金 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="shop-order"> |
|
|
|
<view class="order1"> |
|
|
|
必备工具 |
|
|
|
</view> |
|
|
|
<view class="menu2"> |
|
|
|
|
|
|
|
<view class="menu22" @tap="goDetail('xx')"> |
|
|
|
<view class="menu33"> |
|
|
|
<img src="/static/images/dingdan/dd1.png" alt="" /> |
|
|
|
</view> |
|
|
|
<view class="menu44"> |
|
|
|
信息管理 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="menu22" @tap="goDetail('dd')"> |
|
|
|
<view class="menu33"> |
|
|
|
<img src="/static/images/dingdan/dd2.png" alt="" /> |
|
|
|
</view> |
|
|
|
<view class="menu44"> |
|
|
|
订单管理 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="menu22" @tap="goDetail('qb')"> |
|
|
|
<view class="menu33"> |
|
|
|
<img src="/static/images/dingdan/dd2.png" alt="" /> |
|
|
|
</view> |
|
|
|
<view class="menu44"> |
|
|
|
我的钱包 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="menu22" @tap="goDetail('pj','')"> |
|
|
|
<view class="menu33"> |
|
|
|
<img src="/static/images/dingdan/dd4.png" alt="" /> |
|
|
|
</view> |
|
|
|
<view class="menu44"> |
|
|
|
顾客评价 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import base from '@/utils/ossUploadFile/base64.js'; |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
menuButtonInfo: {}, |
|
|
|
worker: {}, |
|
|
|
shopData: {}, |
|
|
|
daixiaofei: 0, |
|
|
|
daichucan: 0, |
|
|
|
daiquhuo: 0, |
|
|
|
daisongda: 0, |
|
|
|
isBaozhang:false |
|
|
|
} |
|
|
|
}, |
|
|
|
filters:{ |
|
|
|
|
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect() |
|
|
|
|
|
|
|
this.worker = uni.getStorageSync('worker') |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getData() { |
|
|
|
this.tui.request("/mall/order/countByShop/" + uni.getStorageSync('shopId'), "GET", {}, false, true).then(( |
|
|
|
res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
this.shopData = res.result |
|
|
|
for (let i = 0; i < this.shopData.orderStatusCount.length; i++) { |
|
|
|
if (this.shopData.orderStatusCount[i].counttype) { |
|
|
|
if (this.shopData.orderStatusCount[i].counttype == 'daisong') { |
|
|
|
this.daisongda = this.shopData.orderStatusCount[i].count |
|
|
|
} else if (this.shopData.orderStatusCount[i].counttype == 'daiqu') { |
|
|
|
this.daiquhuo = this.shopData.orderStatusCount[i].count |
|
|
|
} else if (this.shopData.orderStatusCount[i].counttype == 'daixiaofei') { |
|
|
|
this.daixiaofei = this.shopData.orderStatusCount[i].count |
|
|
|
} else if (this.shopData.orderStatusCount[i].counttype == 'daichucan') { |
|
|
|
this.daichucan = this.shopData.orderStatusCount[i].count |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.tui.toast(res.message) |
|
|
|
} |
|
|
|
uni.hideLoading() |
|
|
|
}).catch((res) => {}) |
|
|
|
}, |
|
|
|
goDetail(type, index) { |
|
|
|
let url = '' |
|
|
|
switch (type) { |
|
|
|
case 'tj': |
|
|
|
url = '/package1/myCenter/dataStatistics' |
|
|
|
break; |
|
|
|
case 'db': |
|
|
|
url = '/package2/shop/shopOrderList?index=' + index |
|
|
|
break; |
|
|
|
case 'xx': |
|
|
|
url = '/package1/myCenter/partTimeJobRegister' |
|
|
|
break; |
|
|
|
case 'qb': |
|
|
|
url = '' |
|
|
|
break; |
|
|
|
case 'dd': |
|
|
|
url = '/package2/shop/shopOrderList' |
|
|
|
break; |
|
|
|
case 'tui': |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/package2/shop/afterService?type=worker' |
|
|
|
}) |
|
|
|
break; |
|
|
|
case 'pj': |
|
|
|
let item = { |
|
|
|
shopScore:uni.getStorageSync('worker').score, |
|
|
|
id:uni.getStorageSync('worker').workerId |
|
|
|
} |
|
|
|
url = '/package1/group/shopEvaluate?item=' + JSON.stringify(item) + '&isMerchant=2&isCha=' + (index =='cha'?1:0) |
|
|
|
break; |
|
|
|
default: |
|
|
|
} |
|
|
|
uni.navigateTo({ |
|
|
|
url: url |
|
|
|
}) |
|
|
|
}, |
|
|
|
back() { |
|
|
|
uni.navigateBack() |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
@ -83,7 +276,111 @@ |
|
|
|
flex: 1; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
.content{ |
|
|
|
margin: -100rpx auto; |
|
|
|
|
|
|
|
.shop-title { |
|
|
|
width: 95%; |
|
|
|
margin: -130rpx auto 0; |
|
|
|
padding: 20rpx; |
|
|
|
background: #fff; |
|
|
|
border-radius: 20rpx; |
|
|
|
display: flex; |
|
|
|
font-size: 28rpx; |
|
|
|
font-weight: 700; |
|
|
|
} |
|
|
|
|
|
|
|
.title1 { |
|
|
|
width: 70rpx; |
|
|
|
height: 70rpx; |
|
|
|
|
|
|
|
img { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
border-radius: 10rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.title2 { |
|
|
|
flex: 1; |
|
|
|
line-height: 70rpx; |
|
|
|
display: flex; |
|
|
|
} |
|
|
|
|
|
|
|
.title22 { |
|
|
|
flex: 1; |
|
|
|
padding-left: 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.shop-order { |
|
|
|
width: 95%; |
|
|
|
margin: 20rpx auto 0; |
|
|
|
background: #fff; |
|
|
|
border-radius: 20rpx; |
|
|
|
padding: 0 20rpx 0; |
|
|
|
} |
|
|
|
|
|
|
|
.order1 { |
|
|
|
height: 70rpx; |
|
|
|
line-height: 70rpx; |
|
|
|
font-size: 28rpx; |
|
|
|
font-weight: 700; |
|
|
|
border-bottom: 1px solid #eee; |
|
|
|
} |
|
|
|
|
|
|
|
.order22 { |
|
|
|
display: flex; |
|
|
|
height: 100rpx; |
|
|
|
padding-top: 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.order33 { |
|
|
|
flex: 1; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
|
|
|
|
.order44 { |
|
|
|
font-size: 28rpx; |
|
|
|
font-weight: 700; |
|
|
|
} |
|
|
|
|
|
|
|
.data2 { |
|
|
|
display: flex; |
|
|
|
height: 140rpx; |
|
|
|
text-align: center; |
|
|
|
padding-top: 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.data22 { |
|
|
|
flex: 1; |
|
|
|
} |
|
|
|
|
|
|
|
.data222 { |
|
|
|
font-size: 36rpx; |
|
|
|
font-weight: 700; |
|
|
|
padding-bottom: 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.menu2 { |
|
|
|
display: flex; |
|
|
|
flex-wrap: wrap; |
|
|
|
text-align: center; |
|
|
|
padding-top: 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.menu22 { |
|
|
|
width: 25%; |
|
|
|
height: 120rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.menu33 { |
|
|
|
img { |
|
|
|
width: 50rpx; |
|
|
|
height: 50rpx; |
|
|
|
background-size: 100%; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.menu44 { |
|
|
|
height: 40rpx; |
|
|
|
line-height: 40rpx; |
|
|
|
} |
|
|
|
</style> |