This commit is contained in:
aihe 2024-07-17 00:10:28 +08:00
parent 70d450f800
commit ee81d7f6c0
2 changed files with 63 additions and 57 deletions

View File

@ -85,14 +85,14 @@
<u-row justify="end" custom-style="margin-top:20rpx;">
<view style="display: inline-block;white-space: nowrap;">
<u-row>
<u-button @click="goto(`warehousing/detail?id=${211}`)" shape="circle" type="primary" :plain="true"
<u-button @click="handleDealItem(item, { type: 4 })" shape="circle" type="primary" :plain="true"
custom-style="height: 54rpx;margin-left: 12rpx;">进仓确认</u-button>
<u-button @click="goto(`post/post?copyBillCode=${item.billCode}`)" shape="circle" type="primary"
<u-button @click="handleDealItem(item, { type: 2 })" shape="circle" type="primary"
custom-style="height: 54rpx;margin-left: 12rpx;">再来一单</u-button>
<!-- <u-button shape="circle" type="primary" :plain="true" custom-style="height: 54rpx;margin-left: 16rpx;">单据</u-button> -->
<u-button @click="handleDealItem(item, { type: 3 })" shape="circle" type="primary"
:plain="true" custom-style="height: 54rpx;margin-left: 12rpx;">取消</u-button>
<u-button @click="goto(`bill/detail?id=${222}`)" shape="circle" type="primary" :plain="true"
<u-button @click="handleDealItem(item, { type: 5 })" shape="circle" type="primary" :plain="true"
custom-style="height: 54rpx;margin-left: 12rpx;">去付款</u-button>
</u-row>
</view>
@ -187,11 +187,11 @@
async handleDealItem(item, deal = { type: '1' }) {
let itemQuery = `?billCode=${item.billCode || ''}&orderSn=${item.orderSn || ''}`
switch (deal.type){
case 1: // 跳转
case 1: // 运单详情
this.goto(`post/detail${itemQuery}`)
break;
case 2: // 复制订单号
this.setClipboardData(item.billCode || item.orderSn)
case 2: // 再来一单
this.goto(`post/post?copyBillCode=${item.billCode}`)
break;
case 3: // 取消
let canBl = await this.$refs.cancelRef.getConfirmResult()
@ -202,8 +202,11 @@
this.cancelModal.data = { }
this.cancelModal.show = false
break;
case 4: // 取消
await this.confirmModal('确认要取消吗?')
case 4: // 进仓确认
this.goto(`warehousing/detail${itemQuery}`)
break;
case 5: // 付款
this.goto(`bill/detail${itemQuery}`)
break;
default:
break;

View File

@ -1,61 +1,64 @@
<template>
<view style="position: relative;background-color: #fff;">
<view class="customer_nav_bar">
<!-- 这里是状态栏 -->
</view>
<image class="hdbg" :src="getCdnUrl(`sdg/hdbg.png`)"/>
<view class="pg-container">
<view class="header" >
<u-text size="40" :bold="true" text="探路物流 速运全球" color="#fff"></u-text>
<u-text margin="22rpx 0 0 0" size="24" :bold="true" text="省钱,省时,省力" color="#fff"></u-text>
<button class="btn-ljyy" type="primary">立即预约</button>
<view class="btnlist1">
<u-row>
<u-col v-for="(mbItem, mIndex) in mainBtnlist" span="6" align="center" @click="goto(mbItem.url)">
<view :class="'mb-item ' + (mIndex+1 == mainBtnlist.length ?'noborder': '') ">
<u-row align="center" justify="center">
<image class="tb1" style="width: 92rpx;height: 73rpx;" :src="mbItem.icon"/>
<view class="neirong">
<u-text size="32" :bold="true" color="#fff" :text="mbItem.title"></u-text>
<u-text size="22" margin="15rpx 0 0 0" color="#999" :text="mbItem.subTitle"></u-text>
</view>
</u-row>
</view>
</u-col>
<tpx-page>
<view style="position: relative;background-color: #fff;">
<view class="customer_nav_bar">
<!-- 这里是状态栏 -->
</view>
<image class="hdbg" :src="getCdnUrl(`sdg/hdbg.png`)"/>
<view class="pg-container">
<view class="header" >
<u-text size="40" :bold="true" text="探路物流 速运全球" color="#fff"></u-text>
<u-text margin="22rpx 0 0 0" size="24" :bold="true" text="省钱,省时,省力" color="#fff"></u-text>
<button class="btn-ljyy" type="primary">立即预约</button>
<view class="btnlist1">
<u-row>
<u-col v-for="(mbItem, mIndex) in mainBtnlist" span="6" align="center" @click="goto(mbItem.url)">
<view :class="'mb-item ' + (mIndex+1 == mainBtnlist.length ?'noborder': '') ">
<u-row align="center" justify="center">
<image class="tb1" style="width: 92rpx;height: 73rpx;" :src="mbItem.icon"/>
<view class="neirong">
<u-text size="32" :bold="true" color="#fff" :text="mbItem.title"></u-text>
<u-text size="22" margin="15rpx 0 0 0" color="#999" :text="mbItem.subTitle"></u-text>
</view>
</u-row>
</view>
</u-col>
</u-row>
</view>
</view>
<view class="pbody">
<view class="btnlist2">
<u-row gutter="20" custom-style="flex-wrap: wrap;">
<u-col v-for="tlItem in toolBtnlist" span="6" @click="handleToolItemClict(tlItem)">
<view style="margin: 0 0 20rpx 0;background: #F6F6F6;padding: 30rpx 28rpx;border-radius: 20rpx;position: relative;">
<u-row justify="between" >
<view class="neirong">
<u-text size="28" :bold="true" color="#0E0708" :text="tlItem.title"></u-text>
<u-text size="22" margin="15rpx 0 0 0" color="#999" :text="tlItem.subTitle"></u-text>
</view>
<image :src="tlItem.icon" style="height: 50rpx; width: 50rpx;" mode="aspectFit"/>
</u-row>
</view>
</u-col>
</u-row>
</view>
</view>
<view class="pfoot" >
<u-row justify="between">
<u-text size="24" color="#fff" text="关注探路者官方公众号,实时接收物流信息"></u-text>
<u-button type="primary" custom-style="width: 120rpx;border-radius: 30rpx;margin: 0;font-size: 26rpx;" size="mini">去登录</u-button>
</u-row>
</view>
</view>
<view class="pbody">
<view class="btnlist2">
<u-row gutter="20" custom-style="flex-wrap: wrap;">
<u-col v-for="tlItem in toolBtnlist" span="6" @click="handleToolItemClict(tlItem)">
<view style="margin: 0 0 20rpx 0;background: #F6F6F6;padding: 30rpx 28rpx;border-radius: 20rpx;position: relative;">
<u-row justify="between" >
<view class="neirong">
<u-text size="28" :bold="true" color="#0E0708" :text="tlItem.title"></u-text>
<u-text size="22" margin="15rpx 0 0 0" color="#999" :text="tlItem.subTitle"></u-text>
</view>
<image :src="tlItem.icon" style="height: 50rpx; width: 50rpx;" mode="aspectFit"/>
</u-row>
</view>
</u-col>
</u-row>
</view>
</view>
<view class="pfoot" >
<u-row justify="between">
<u-text size="24" color="#fff" text="关注探路者官方公众号,实时接收物流信息"></u-text>
<u-button type="primary" custom-style="width: 120rpx;border-radius: 30rpx;margin: 0;font-size: 26rpx;" size="mini">去登录</u-button>
</u-row>
</view>
</view>
</view>
</tpx-page>
</template>
<script>
import getCdnUrl from "@/common/getCdnUrl"
import { goto, scanCode } from "@/common/untool"
export default {
props: {
// hasLeftWin: {