emis-sapp/pages/post/post.vue

354 lines
11 KiB
Vue
Raw Normal View History

2023-12-04 01:18:04 +00:00
<template>
2023-12-05 14:16:45 +00:00
<tpx-layout>
<template v-slot:body>
<view class="com-jianju pos-rlt pb-30" style="padding-top: 2rpx;">
<view class="blcok" style="background-color: #0E0708;">
<u-row>
<image class="mr-20" style="height: 28rpx;width: 34rpx;"
:src="getCdnUrl(`post/gangbo.png`)"></image>
<u-text size="24" color="#fff" text="下单后会有业务员及时联系您,请保持电话畅通!"></u-text>
</u-row>
</view>
<view class="blcok-white">
<view>
<u-row @click="handleAddressChoose(1)" custom-style="position:relative;" align="top"
justify="between">
<view>
<image style="height: 50rpx;width: 42rpx;" :src="getCdnUrl(`post/ji.png`)"></image>
2023-12-05 05:20:55 +00:00
</view>
2023-12-05 14:16:45 +00:00
<view style="flex: 1;padding: 0 30rpx;">
<u-text text="寄件人信息" size="28" :bold="true"></u-text>
<view style="margin: 8rpx 0 0 0;">
<u-text text="请新建您的寄件地址信息" size="22" color="#999"></u-text>
2023-12-05 05:20:55 +00:00
</view>
</view>
2023-12-05 14:16:45 +00:00
<view class="flex-column-center">
<image style="height: 32rpx;width: 28rpx;" :src="getCdnUrl(`post/adress.png`)">
</image>
<u-text align="center" text="地址薄" size="22" :bold="true"
margin="8rpx 0 0 0"></u-text>
</view>
<view style="position: absolute;left: 20rpx;bottom: -20rpx;top: 46rpx;">
<u-line custom-style="height:100%;" direction="col" dashed="true"></u-line>
2023-12-05 05:20:55 +00:00
</view>
2023-12-05 14:16:45 +00:00
</u-row>
<view style="padding-left: 76rpx;">
<u-line margin="20rpx 0"></u-line>
</view>
<u-row @click="handleAddressChoose(2)" custom-style="position:relative;" align="top"
justify="between">
<view style="position: absolute;left: 20rpx;top: -20rpx;bottom: 100%;">
<u-line custom-style="height:100%;" direction="col" dashed="true"></u-line>
2023-12-05 05:20:55 +00:00
</view>
2023-12-05 14:16:45 +00:00
<view>
<image style="height: 50rpx;width: 42rpx;" :src="getCdnUrl(`post/shou.png`)">
</image>
2023-12-05 05:20:55 +00:00
</view>
2023-12-05 14:16:45 +00:00
<view class="pr-30 pl-30" style="flex: 1;">
<u-text text="收件人信息" size="28" :bold="true"></u-text>
<view style="margin: 8rpx 0 0 0;">
<u-text text="请填写收件人国家、姓名,电话" size="22" color="#999"></u-text>
</view>
2023-12-05 05:20:55 +00:00
</view>
2023-12-05 14:16:45 +00:00
<view class="flex-column-center">
<image style="height: 32rpx;width: 28rpx;" :src="getCdnUrl(`post/adress.png`)">
</image>
<u-text align="center" text="地址薄" size="22" :bold="true"
margin="8rpx 0 0 0"></u-text>
2023-12-05 05:20:55 +00:00
</view>
2023-12-05 14:16:45 +00:00
</u-row>
</view>
</view>
<view class="blcok-white">
<view style="width: 80%;">
<tpx-tabs :list="sendTypeList" v-model:value="submitParam.type" @tabchange="(val)=> { }">
</tpx-tabs>
2023-12-04 18:08:31 +00:00
</view>
2023-12-05 14:16:45 +00:00
<view>
<view class="pt-30 pb-30" style="border-bottom: 2rpx solid #F6F6F6;;">
<u-row>
<view>
<u-text text="目的国" size="28" :bold="true"></u-text>
</view>
<u-row custom-style="flex: 1;" justify="end" align="center">
<u-text align="right" margin="0 12rpx 0 0" size="22" text="柬埔寨"></u-text>
<u-icon size="22" name="arrow-right" color="#333"></u-icon>
</u-row>
2023-12-05 05:20:55 +00:00
</u-row>
2023-12-04 18:08:31 +00:00
</view>
2023-12-05 14:16:45 +00:00
<view class="pt-30 pb-30" style="border-bottom: 2rpx solid #F6F6F6;;">
<u-row>
<view>
<u-text text="选择线路" size="28" :bold="true"></u-text>
</view>
<u-row custom-style="flex: 1;" justify="end" align="center">
<u-text align="right" margin="0 12rpx 0 0" size="22" color="#999"
text="请选择"></u-text>
<u-icon size="22" name="arrow-right" color="#333"></u-icon>
</u-row>
2023-12-05 05:20:55 +00:00
</u-row>
2023-12-04 18:08:31 +00:00
</view>
2023-12-05 14:16:45 +00:00
<view class="pt-30 pb-30" style="border-bottom: 2rpx solid #F6F6F6;;">
<u-row>
<view>
<u-text text="货物信息(必填)" size="28" :bold="true"></u-text>
</view>
<u-row custom-style="flex: 1;" justify="end" align="center">
<u-text align="right" margin="0 12rpx 0 0" size="22" color="#999"
text="填写物品信息"></u-text>
<u-icon size="22" name="arrow-right" color="#333"></u-icon>
</u-row>
</u-row>
2023-12-04 18:08:31 +00:00
</view>
2023-12-05 14:16:45 +00:00
<view class="pt-30 pb-30" style="border-bottom: 2rpx solid #F6F6F6;;">
2023-12-05 05:20:55 +00:00
<u-row>
<view>
2023-12-05 14:16:45 +00:00
<u-text text="重量/体积" size="28" :bold="true"></u-text>
2023-12-05 05:20:55 +00:00
</view>
2023-12-05 14:16:45 +00:00
<u-row custom-style="flex: 1;" justify="end" align="center">
<u-text align="right" margin="0 12rpx 0 0" size="22" color="#999"
text="填写重量体积"></u-text>
<u-icon size="22" name="arrow-right" color="#333"></u-icon>
</u-row>
2023-12-05 05:20:55 +00:00
</u-row>
2023-12-05 14:16:45 +00:00
</view>
<view class="pt-30 pb-30" style="border-bottom: 2rpx solid #F6F6F6;;">
<u-row>
<view>
<u-text text="期望上门时间 " size="28" :bold="true"></u-text>
</view>
<u-row custom-style="flex: 1;" justify="end" align="center">
<u-text align="right" margin="0 12rpx 0 0" size="22" text="1小时内"></u-text>
<u-icon size="22" name="arrow-right" color="#333"></u-icon>
</u-row>
</u-row>
</view>
<view style="padding: 30rpx 0;border-bottom: 2rpx solid #F6F6F6;;">
<u-row>
<view>
<u-text text="付款方式" size="28" :bold="true"></u-text>
</view>
<u-row custom-style="flex: 1;" justify="end" align="center">
<u-text align="right" margin="0 12rpx 0 0" size="22" text="1现金/月结"></u-text>
<u-icon size="22" name="arrow-right" color="#333"></u-icon>
</u-row>
</u-row>
</view>
</view>
</view>
<view class="com-section mt-30">产品类型</view>
<view class="blcok-white yunf-list">
<view class="yunf-item active">
<u-row justify="between">
<u-col span="8">
<u-text text="柬埔寨-国际特快" size="28" :bold="true"></u-text>
<u-text margin="6rpx" text="1-2工作日 ¥80元起" size="22" color="#999"></u-text>
</u-col>
<u-col span="4">
<u-text align="right" text="运费预估" size="22" color="#999"></u-text>
<u-text align="right" margin="6rpx" text="32" size="22" :bold="true" mode="price"
color="#B12D29"></u-text>
</u-col>
</u-row>
</view>
<view class="yunf-item">
<u-row justify="between">
<u-col span="8">
<u-text text="柬埔寨-国际特快" size="28" :bold="true"></u-text>
<u-text margin="6rpx" text="1-2工作日 ¥80元起" size="22" color="#999"></u-text>
</u-col>
<u-col span="4">
<u-text align="right" text="运费预估" size="22" color="#999"></u-text>
<u-text align="right" margin="6rpx" text="32" size="22" :bold="true" mode="price"
color="#B12D29"></u-text>
</u-col>
2023-12-04 18:08:31 +00:00
</u-row>
2023-12-05 05:20:55 +00:00
</view>
2023-12-04 18:08:31 +00:00
</view>
2023-12-05 14:16:45 +00:00
<view class="com-section mt-30">给快递员捎话</view>
<view class="blcok-white">
<view class="smp-tag" v-for="(item, index) in tipsList">
<u-tag :text="`${item.title}`" :plain="!item.checked" type="info" shape="circle"
:bg-color="`${item.checked?'#de524e':''}`" @click="handleCheckBoxClick(item)">
</u-tag>
</view>
<u-textarea v-model="submitParam.otherDes" border="surround" height="160" placeholder="其他说明"
maxlength="50" count></u-textarea>
<u-line margin="20rpx 0 10rpx 0"></u-line>
<u-row justify="between">
<u-text text="您的专属快递员" size="22" color="#999"></u-text>
<u-row>
<u-text text="李晓" size="28" :bold="true" margin="0 30rpx 0 0"></u-text>
<view>
<u-avatar size="50" :src="''"></u-avatar>
</view>
</u-row>
2023-12-05 05:20:55 +00:00
</u-row>
2023-12-05 14:16:45 +00:00
</view>
</view>
</template>
<template v-slot:footer>
<view class="pos-rlt blcok-white" style="border-radius: 0;margin-top: 0;">
<u-row justify="between">
<view>
<u-row align="top">
<u-checkbox size="22" labelSize="22" v-model="agreePrivateRule" label="我已同意接受"
label-color=":#999" activeColor="#B12D29"
custom-style="margin-bottom: 10rpx;"></u-checkbox>
<view class="pl-10" style="padding-top: 6rpx;">
<u-text text="《快件运单契约条款》" size="22"></u-text>
</view>
</u-row>
<u-row>
<view class="mr-10">
<u-text text="预估" :bold="true" size="28"></u-text>
</view>
<u-text :text="80" mode="price" color="#B12D29" :bold="true" size="28"></u-text>
</u-row>
<u-text margin="10rpx 0 0 0" text="温馨提示:具体费用以快递小哥核实为准" color="#999" size="22"></u-text>
</view>
2023-12-05 05:44:01 +00:00
<u-row>
2023-12-05 14:16:45 +00:00
<u-button size="large" shape="circle"
custom-style="width: 200rpx;height:80rpx;font-size: 30rpx;" type="primary">下单</u-button>
2023-12-05 05:20:55 +00:00
</u-row>
2023-12-05 01:19:34 +00:00
</u-row>
2023-12-05 14:16:45 +00:00
</view>
</template>
</tpx-layout>
2023-12-04 01:18:04 +00:00
</template>
2023-12-05 14:16:45 +00:00
2023-12-04 01:18:04 +00:00
<script>
import getCdnUrl from "@/common/getCdnUrl"
2023-12-05 14:16:45 +00:00
import {
ordStaEnum,
ordStatusList,
payTypeEnum,
payTypeList,
dlvTypeEnum,
dlvTypeList,
dateTypeEnum,
dateTypeList
} from "@/common/enum"
import {
goto
} from "@/common/untool"
2023-12-04 01:18:04 +00:00
export default {
props: {
// hasLeftWin: {
// type: Boolean
// }
},
computed: {
2023-12-05 14:16:45 +00:00
2023-12-04 01:18:04 +00:00
},
data() {
return {
2023-12-05 14:16:45 +00:00
sendTypeList: [{
title: '上门取件',
val: 1
},
{
title: '仓库收货',
val: 2
},
{
title: '整柜提货',
val: 3
}
2023-12-04 18:08:31 +00:00
],
2023-12-05 14:16:45 +00:00
tipsList: [{
title: '请带纸箱',
val: 3
},
{
title: '需要爬楼',
val: 3
},
{
title: '来前电话',
val: 3
},
2023-12-05 04:25:58 +00:00
],
2023-12-04 18:08:31 +00:00
showCladar: false,
2023-12-05 05:20:55 +00:00
agreePrivateRule: false,
2023-12-04 18:08:31 +00:00
submitParam: {
2023-12-05 04:25:58 +00:00
type: 1,
otherDes: ''
2023-12-04 18:08:31 +00:00
}
2023-12-04 01:18:04 +00:00
}
},
onShareAppMessage() {
return {
// title: '',
// path: 'TODO'
}
},
onLoad() {
this.initData();
},
onUnload() {
2023-12-05 14:16:45 +00:00
2023-12-04 01:18:04 +00:00
},
methods: {
getCdnUrl,
2023-12-05 14:16:45 +00:00
initData() {
2023-12-04 01:18:04 +00:00
// uni.showLoading({
// title: '加载中'
// });
},
2023-12-05 14:16:45 +00:00
handleAddressChoose(type) { // 1 寄件地址 2收件地址
goto(`address/list?tab=${type}`)
},
2023-12-04 01:18:04 +00:00
handleSwitchCladar() {
this.showCladar = !this.showCladar
2023-12-05 14:16:45 +00:00
if (!this.showCladar) {
2023-12-04 01:18:04 +00:00
}
2023-12-04 18:08:31 +00:00
},
handleSendTypeChange(item) {
2023-12-05 14:16:45 +00:00
2023-12-05 04:25:58 +00:00
},
2023-12-05 14:16:45 +00:00
handleCheckBoxClick(item, key) {
2023-12-05 04:25:58 +00:00
item.checked = !item.checked
},
2023-12-04 01:18:04 +00:00
}
}
</script>
<style lang="scss">
2023-12-05 14:16:45 +00:00
@import '@/common/uni-nvue.scss';
2023-12-04 01:18:04 +00:00
page {
background-color: #F6F6F6;
height: 100% !important;
}
</style>
<style scoped lang="scss">
2023-12-05 14:16:45 +00:00
.yunf-item {
2023-12-05 01:19:34 +00:00
margin-bottom: 20rpx;
padding: 30rpx;
background: #F6F6F6;
border-radius: 20rpx;
2023-12-05 14:16:45 +00:00
&.active {
2023-12-05 01:19:34 +00:00
border: 2rpx solid $uni-color-primary;
}
2023-12-05 14:16:45 +00:00
&:last-child {
2023-12-05 01:19:34 +00:00
margin-bottom: 0;
}
}
2023-12-04 01:18:04 +00:00
</style>