uu
This commit is contained in:
parent
1516a6a49d
commit
3cc545157c
@ -1,5 +1,5 @@
|
|||||||
// TODO 区分环境
|
// TODO 区分环境
|
||||||
export const host = 'http://47.102.220.189:59089/api/oms'
|
export const host = 'http://47.102.220.189:58089/api/bizsvr'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
uploadFile: '/common/ossUpload',
|
uploadFile: '/common/ossUpload',
|
||||||
|
|||||||
@ -43,37 +43,7 @@ const authCodeEnum = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const dealBtnMap = {
|
const dealBtnMap = {
|
||||||
lanShou: { title: '揽收扫描', subTitle: "", icon: getCdnUrl(`home/lshsm.png`), url: 'deliveryDeal/pickUp', code: authCodeEnum.lanShou },
|
|
||||||
shouHuo: { title: '收货入库', subTitle: "", icon: getCdnUrl(`home/shhruku.png`), url: 'deliveryDeal/storage' },
|
|
||||||
faJianScan: { title: '发件扫描', subTitle: "", icon: getCdnUrl(`home/fajiansm.png`), url: 'deliveryDeal/qutgoingScanning', code: authCodeEnum.faJianScan },
|
|
||||||
daoJianScan: { title: '到件扫描', subTitle: "", icon: getCdnUrl(`home/daojsm.png`), url: 'deliveryDeal/arriveScanning', code: authCodeEnum.daoJianScan },
|
|
||||||
yunDanLuRu: { title: '运单录入', subTitle: "", icon: getCdnUrl(`home/ydluru.png`), url: 'post/openorder?type=create' },
|
|
||||||
qianShouScan: { title: '签收扫描', subTitle: "", icon: getCdnUrl(`home/qianshsm.png`), url: 'deliveryDeal/signedScanning', code: authCodeEnum.qianShouScan },
|
|
||||||
fenBoScan: { title: '分拨发件', subTitle: "", icon: getCdnUrl(`home/fajiansm.png`), url: 'deliveryDeal/distributeOutgoing' },
|
|
||||||
paiJianScan: { title: '派件扫描', subTitle: "", icon: getCdnUrl(`home/paijsm.png`), url: 'deliveryDeal/deliveryScanning', code: authCodeEnum.paiJianScan },
|
|
||||||
yunDanXiuGai: { title: '运单修改', subTitle: "", icon: getCdnUrl(`home/ydxiugai.png`), url: 'post/openorder?type=edit' },
|
|
||||||
baoJiaShiSuan: { title: '报价试算', subTitle: "", icon: getCdnUrl(`home/baojshs.png`), url: 'post/freightCalculate' },
|
|
||||||
wenTiJian: { title: '问题件', subTitle: "", icon: getCdnUrl(`home/wentijian.png`), url: 'deliveryDeal/problemsRegisteScanning' },
|
|
||||||
daoPaiScan: { title: '到派扫描', subTitle: "", icon: getCdnUrl(`home/daohsm.png`), url: 'deliveryDeal/arriveDeliveryScanning' },
|
|
||||||
woDeErWeiMa: { title: '我的二维码', subTitle: "", icon: getCdnUrl(`mine/zhshu.png`), url: 'user/exclusiveQrcode' },
|
|
||||||
mianDanDayin: { title: '面单打印', subTitle: "", icon: getCdnUrl(`home/mdbuda.png`), url: 'print/courierNote' },
|
|
||||||
kuaiJianGenZong: { title: '快件跟踪', subTitle: "", icon: getCdnUrl(`home/kdchxun.png`), url: 'post/query' },
|
|
||||||
heBaoScan: { title: '合包扫描', subTitle: "", icon: getCdnUrl(`home/hebaosm.png`), url: 'tms/coPackingScanning' },
|
|
||||||
zhuangGuiScan: { title: '装柜扫描', subTitle: "", icon: getCdnUrl(`home/zhuangchesm.png`), url: 'deliveryDeal/shipping' },
|
|
||||||
faJianQingDan: { title: '发件清单', subTitle: "", icon: getCdnUrl(`home/fjqingdan.png`), url: 'deliveryDeal/sendList' },
|
|
||||||
chaiBaoScan: { title: '拆包扫描', subTitle: "", icon: getCdnUrl(`home/chaibsm.png`), url: 'tms/unpackingScanning' },
|
|
||||||
baoGuanScan: { title: '报关扫描', subTitle: "", icon: getCdnUrl(`home/baogsm.png`), url: 'tms/customsDeclarationScanning' },
|
|
||||||
qingGuanScan: { title: '清关扫描', subTitle: "", icon: getCdnUrl(`home/qinggsm.png`), url: 'tms/customsClearanceScanning' },
|
|
||||||
zhuangCheScan: { title: '装车扫描', subTitle: "", icon: getCdnUrl(`home/zhuangchesm.png`), url: 'tms/entruckingScanning' },
|
|
||||||
zhengCheScan: { title: '整车扫描', subTitle: "", icon: getCdnUrl(`home/zhuangchesm.png`), url: 'tms/allCartScanning' },
|
|
||||||
xieCheScan: { title: '卸车扫描', subTitle: "", icon: getCdnUrl(`home/xiechesm.png`), url: 'tms/untruckingScanning' },
|
|
||||||
daoJianQingDan: { title: '到件清单', subTitle: "", icon: getCdnUrl(`home/daojqd.png`), url: 'deliveryDeal/arriveList' },
|
|
||||||
paiJianQingDan: { title: '派件清单', subTitle: "", icon: getCdnUrl(`home/paijqd.png`), url: 'deliveryDeal/paiList' },
|
|
||||||
liuCangScan: { title: '留仓扫描', subTitle: "", icon: getCdnUrl(`home/licsm.png`), url: 'deliveryDeal/stayScanning' },
|
|
||||||
zhuanJianScan: { title: '转件扫描', subTitle: "", icon: getCdnUrl(`home/zhuanjsm.png`), url: 'deliveryDeal/translateScanning' },
|
|
||||||
jinCangChaXun: { title: '进仓查询', subTitle: "", icon: getCdnUrl(`home/jincchx.png`), url: '' },
|
|
||||||
yunDanChaXun: { title: '快件跟踪', subTitle: "", icon: getCdnUrl(`home/kdchxun.png`), url: 'post/query' },
|
|
||||||
shuiFeiYuGu: { title: '税费预估', subTitle: "", icon: getCdnUrl(`home/shfgs.png`), url: '' }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
|||||||
@ -1,66 +1,75 @@
|
|||||||
<template>
|
<template>
|
||||||
<view style="position: relative;">
|
<tpx-page>
|
||||||
<view class="customer_nav_bar">
|
<view style="position: relative;">
|
||||||
<!-- 这里是状态栏 -->
|
<view class="customer_nav_bar">
|
||||||
</view>
|
<!-- 这里是状态栏 -->
|
||||||
<image class="hdbg" :src="getCdnUrl(`mine/hdbg.png`)"/>
|
|
||||||
|
|
||||||
<view class="pg-container">
|
|
||||||
|
|
||||||
<view class="com-jianju" style="margin-top: 30rpx;">
|
|
||||||
<u-row align="center" >
|
|
||||||
<u-col span="11">
|
|
||||||
<u-row>
|
|
||||||
<u-avatar size="120"></u-avatar>
|
|
||||||
<u-col custom-style="padding-left: 24rpx;">
|
|
||||||
<u-text text="张三" color="#fff" :bold="true" size="36"></u-text>
|
|
||||||
<u-text margin="10rpx 0 0 0" text="13712345678" color="#fff" size="26"></u-text>
|
|
||||||
</u-col>
|
|
||||||
</u-row>
|
|
||||||
</u-col>
|
|
||||||
<u-col span="1" align="end">
|
|
||||||
<image style="height: 32rpx;width: 32rpx;" :src="getCdnUrl(`mine/right.png`)"/>
|
|
||||||
</u-col>
|
|
||||||
</u-row>
|
|
||||||
</view>
|
</view>
|
||||||
|
<image class="hdbg" :src="getCdnUrl(`mine/hdbg.png`)"/>
|
||||||
|
|
||||||
|
<view class="pg-container">
|
||||||
<view class="com-jianju" style="margin-top: 50rpx;">
|
|
||||||
<u-row justify="between">
|
<view class="com-jianju" style="margin-top: 30rpx;">
|
||||||
<u-col v-for="(mbItem, mIndex) in mainBtnlist" span="5.8"
|
<u-row align="center" >
|
||||||
customStyle="background: linear-gradient(0deg, #1D1818 0%, #0E0708 100%);border-radius: 20rpx;padding: 30rpx;"
|
<u-col span="11">
|
||||||
>
|
<u-row>
|
||||||
<u-row justify="center">
|
<u-avatar :src="userInfo.avatar" size="120"></u-avatar>
|
||||||
<image mode="aspectFit" style="width: 92rpx;height: 76rpx;" :src="mbItem.icon"/>
|
<u-col custom-style="padding-left: 24rpx;">
|
||||||
<view style="margin-left: 22rpx;">
|
<u-text :text="userInfo.empName" color="#fff" :bold="true" size="36"></u-text>
|
||||||
<u-text size="28rpx" color="#fff" :bold="true" :text="mbItem.title"></u-text>
|
<u-text margin="10rpx 0 0 0" :text="userInfo.phonenumber" color="#fff" size="26"></u-text>
|
||||||
<u-text size="24rpx" color="#999" margin= "15rpx 0 0 0" :text="mbItem.subTitle"></u-text>
|
</u-col>
|
||||||
</view>
|
</u-row>
|
||||||
</u-row>
|
|
||||||
</u-col>
|
|
||||||
</u-row>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="com-jianju pb-block" style="margin-top: 30rpx;padding: 10rpx 0;">
|
|
||||||
<u-row justify="start" custom-style="flex-wrap: wrap;">
|
|
||||||
<u-col span="3" v-for="tlItem in toolBtnlist" align="center"
|
|
||||||
@click="handlePageRedirect(tlItem)"
|
|
||||||
>
|
|
||||||
<u-col align="center" justify="center" custom-style="padding: 20rpx 0;display: flex;">
|
|
||||||
<image :src="tlItem.icon" style="height: 66rpx;width: 66rpx" mode="aspectFit"/>
|
|
||||||
<view style="font-size: 24rpx;margin-top: 20rpx;">{{tlItem.title}}</view>
|
|
||||||
</u-col>
|
</u-col>
|
||||||
</u-col>
|
<u-col span="1" align="end">
|
||||||
</u-row>
|
<image style="height: 32rpx;width: 32rpx;" :src="getCdnUrl(`mine/right.png`)"/>
|
||||||
|
</u-col>
|
||||||
|
</u-row>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
<view class="com-jianju" style="margin-top: 50rpx;">
|
||||||
|
<u-row justify="between">
|
||||||
|
<u-col v-for="(mbItem, mIndex) in mainBtnlist" span="5.8"
|
||||||
|
customStyle="background: linear-gradient(0deg, #1D1818 0%, #0E0708 100%);border-radius: 20rpx;padding: 30rpx;"
|
||||||
|
>
|
||||||
|
<u-row justify="center">
|
||||||
|
<image mode="aspectFit" style="width: 92rpx;height: 76rpx;" :src="mbItem.icon"/>
|
||||||
|
<view style="margin-left: 22rpx;">
|
||||||
|
<u-text size="28rpx" color="#fff" :bold="true" :text="mbItem.title"></u-text>
|
||||||
|
<u-text size="24rpx" color="#999" margin= "15rpx 0 0 0" :text="mbItem.subTitle"></u-text>
|
||||||
|
</view>
|
||||||
|
</u-row>
|
||||||
|
</u-col>
|
||||||
|
</u-row>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="com-jianju pb-block" style="margin-top: 30rpx;padding: 10rpx 0;">
|
||||||
|
<u-row justify="start" custom-style="flex-wrap: wrap;">
|
||||||
|
<u-col span="3" v-for="tlItem in toolBtnlist" align="center"
|
||||||
|
@click="handlePageRedirect(tlItem)"
|
||||||
|
>
|
||||||
|
<u-col align="center" justify="center" custom-style="padding: 20rpx 0;display: flex;">
|
||||||
|
<image :src="tlItem.icon" style="height: 66rpx;width: 66rpx" mode="aspectFit"/>
|
||||||
|
<view style="font-size: 24rpx;margin-top: 20rpx;">{{tlItem.title}}</view>
|
||||||
|
</u-col>
|
||||||
|
</u-col>
|
||||||
|
</u-row>
|
||||||
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</tpx-page>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import getCdnUrl from "@/common/getCdnUrl"
|
import getCdnUrl from "@/common/getCdnUrl"
|
||||||
import { goto } from "@/common/untool"
|
import { dealBtnMap } from "@/common/enum"
|
||||||
|
import * as apiService from "@/common/api"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
computed: {
|
||||||
|
userInfo() {
|
||||||
|
return this.$store.getters.userInfo
|
||||||
|
}
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
// hasLeftWin: {
|
// hasLeftWin: {
|
||||||
// type: Boolean
|
// type: Boolean
|
||||||
@ -68,6 +77,10 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
staticInfo: {
|
||||||
|
commStat: {},
|
||||||
|
orderStat: {},
|
||||||
|
},
|
||||||
mainBtnlist: [
|
mainBtnlist: [
|
||||||
{ title: '186单', subTitle: "寄件", icon: getCdnUrl(`mine/jijian.png`), url: '' },
|
{ title: '186单', subTitle: "寄件", icon: getCdnUrl(`mine/jijian.png`), url: '' },
|
||||||
{ title: '186单', subTitle: "收件", icon: getCdnUrl(`mine/shjian.png`), url: '' }
|
{ title: '186单', subTitle: "收件", icon: getCdnUrl(`mine/shjian.png`), url: '' }
|
||||||
@ -86,15 +99,26 @@
|
|||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
return {
|
return {
|
||||||
title: '探路物流 速运全球',
|
|
||||||
// path: 'TODO'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onLoad() {
|
||||||
|
this.initData()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getCdnUrl,
|
|
||||||
handlePageRedirect(item) {
|
handlePageRedirect(item) {
|
||||||
item.url && goto(item.url)
|
item.url && this.goto(item.url)
|
||||||
}
|
},
|
||||||
|
async initData(){
|
||||||
|
this.getAppHomeStatData()
|
||||||
|
},
|
||||||
|
async getAppHomeStatData(){
|
||||||
|
let res = await apiService.getAppHomeStatData()
|
||||||
|
this.staticInfo = res.data
|
||||||
|
},
|
||||||
|
async handleUnlogin() {
|
||||||
|
await this.$store.dispatch(USERKEY.LOGOUT)
|
||||||
|
this.goto(`login/login`, 2)
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user