You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong_qianduan/pages/news3/seasoningCondimentsRecord.vue

219 lines
4.8 KiB

10 months ago
<template>
9 months ago
<view>
<view class="selectContent" style="border:none;background-color: #fff;">
<picker @change="changeMode" mode="selector" range-key="text" :value="index" :range="modeList">
<u-field v-model="form.setGoodsMode" :disabled="true" label="发货模式" placeholder="请选择"
right-icon="arrow-right">
</u-field>
</picker>
<u-field v-model="form.company" label="发货公司" placeholder="请输入">
10 months ago
</u-field>
9 months ago
<u-field v-model="form.name" label="发货人" placeholder="请输入">
</u-field>
<u-field v-model="form.phone" label="发货人电话" placeholder="请输入">
</u-field>
<picker @change="changeOption" mode="selector" range-key="express_name" :value="index" :range="expressList">
<u-field v-model="form.logisticsName" :disabled="true" label="物流公司" placeholder="请选择物流公司"
right-icon="arrow-right">
</u-field>
</picker>
<u-action-sheet :list="kuaidiList" v-model="goodsShow"></u-action-sheet>
<view class="wuliu">
<u-field style="flex: 1;padding:30upx 0 30upx 30upx" v-model="form.logisticsNo" label="物流单号"
placeholder="请填写物流单号">
</u-field>
<view class="getWuliu" @click="onLogistics">
查看物流
10 months ago
</view>
</view>
9 months ago
<view class="recordList">
<view class="recordItem">
<view class="recordTitle">
转账记录
</view>
<view class="picList">
<image :src="$picUrl+'/static/news3/filter.png'" mode="aspectFit"></image>
<image :src="$picUrl+'/static/news3/filter.png'" mode="aspectFit"></image>
<image :src="$picUrl+'/static/news3/filter.png'" mode="aspectFit"></image>
<image :src="$picUrl+'/static/news3/filter.png'" mode="aspectFit"></image>
</view>
10 months ago
</view>
9 months ago
<view class="recordItem">
<view class="recordTitle">
聊天记录
</view>
<view class="picList">
<image :src="$picUrl+'/static/news3/filter.png'" mode="aspectFit"></image>
<image :src="$picUrl+'/static/news3/filter.png'" mode="aspectFit"></image>
<image :src="$picUrl+'/static/news3/filter.png'" mode="aspectFit"></image>
<image :src="$picUrl+'/static/news3/filter.png'" mode="aspectFit"></image>
</view>
10 months ago
</view>
</view>
9 months ago
<view class="footerBtn">
保存
</view>
10 months ago
</view>
9 months ago
10 months ago
</view>
</template>
<script>
9 months ago
import * as newFunApi from '@/api/newFun'
9 months ago
export default {
data() {
return {
form: {
setGoodsMode: '',
company: '',
name: '',
phone: '',
kuaidi: '',
logisticsName: '',
logisticsNo: '',
logisticsId:'',
},
modeList: [{
10 months ago
text: '店内现货',
9 months ago
}],
expressList: [],
modeShow: false,
goodsShow: false,
}
10 months ago
},
9 months ago
onReady() {
this.getExpressAll()
9 months ago
},
9 months ago
methods: {
changeMode(e) {
this.form.setGoodsMode = this.modeList[e.detail.value].text;
},
// 选择物流
changeOption(e) {
this.form.logisticsName = this.expressList[e.detail.value].express_name;
this.form.logisticsId = this.expressList[e.detail.value].express_id
},
/**
* 物流
*/
async getExpressAll() {
let {
status,
message,
data
} = await newFunApi.expressAll();
if (status == 200) {
this.expressList = data.list;
}
},
onLogistics() {
uni.navigateTo({
url: "/pages/news3/LogisticsDetails?logisticsNum=" + this.form.logisticsNo
})
},
}
10 months ago
}
</script>
<style lang="scss" scoped>
9 months ago
page {
min-height: 100%;
background-color: #F7F8FA;
10 months ago
}
9 months ago
.selectContent {
border-top: 1px solid transparent;
margin-top: 6upx;
padding-bottom: 100upx;
}
::v-deep .u-border-bottom:after {
border: none;
}
::v-deep .u-field {
padding: 30upx;
}
::v-deep .uni-input-wrapper {
text-align: right;
}
::v-deep .u-label {
flex: auto !important
}
.wuliu {
display: flex;
align-items: center;
.getWuliu {
width: 130upx;
height: 56upx;
background: #FFFFFF;
border-radius: 19px 19px 19px 19px;
opacity: 1;
border: 1px solid #F55349;
font-size: 24upx;
10 months ago
font-family: PingFang SC, PingFang SC;
font-weight: 400;
9 months ago
color: #F55349;
line-height: 52upx;
10 months ago
text-align: center;
9 months ago
margin-right: 30upx;
}
}
.recordList {
padding: 30upx;
.recordItem {
.recordTitle {
font-size: 28upx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #353535;
}
.picList {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
margin: 12upx 0;
text-align: center;
image {
width: 200upx;
height: 160upx;
}
10 months ago
}
}
}
9 months ago
.footerBtn {
width: 86%;
height: 88upx;
background: #FF5050;
border-radius: 36px 36px 36px 36px;
opacity: 1;
font-size: 28upx;
font-family: PingFang SC, PingFang SC;
font-weight: 500;
color: #FFFFFF;
line-height: 88upx;
text-align: center;
margin: 96upx auto 0 auto;
}
</style>