平板端快衣店
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.
 
 
 
 
 

158 lines
4.2 KiB

<template>
<view class="">
<view class="">
<view class="" v-if="popleType1== 'kh'" @tap="">
<!-- 供应商、客户走这一套 -->
<view>
<button size="default" type="default" @tap="" hover-class="is-hover">新增人员</button>
</view>
<view class="list-1" v-for="item in popleList" :key="item">
<view class="name-tel">
<text>{{item.name}}</text>
<text style="display: inline-block;margin-left:20rpx;">{{item.phone}}</text>
</view>
<view class="name-tel">
<text>{{item.province + item.city + item.area + item.address}}</text>
</view>
</view>
</view>
<!-- 物流公司、快递公司、啦包公走这一套 -->
<view class="" v-else>
<view class="list-1" style="display: flex;height:75rpx;" v-for="item in popleList" :key="item">
<view class="name-tel">
<text>{{item.companyName}}</text>
<text style="display: inline-block;margin-left:20rpx;">{{item.mobile}}</text>
</view>
<view class="standard-box" @tap="toggle('center')">收费标准<uni-icons type="info" color='#088FEB'
size="16" style="line-height: 75rpx;"></uni-icons></view>
</view>
</view>
</view>
<view>
<uni-popup ref="popup" background-color="#fff" @change="change">
<view class="popup-content">
<view class="popup-title">
<text>收费标准</text>
<uni-icons @tap='close' type="closeempty" color='red' size="16"
style="height:40rpx;line-height: 40rpx;position: absolute;right: 0;"></uni-icons>
</view>
<view class="popup-container">
<text
style="display: inline-block;text-indent: 2em;">标准快递1公斤以下11元,超过1公斤的1到30公斤内是三块钱每公斤。精准汽运,如果是重货的话1.65元每公斤,轻货是347元每立方米。精准卡航,轻货是441元每立方米,重货是2.1元每公斤,运输起价是40元,接货起价是60元。还有一种是3.60特惠件,3公斤以下的按照15元收费,超过3公斤到30公斤以内的按每公斤三元收费。</text>
</view>
</view>
</uni-popup>
</view>
</view>
</template>
<script>
export default {
data() {
return {
popleType1: '',
popleList: []
}
},
onLoad(options) {
console.log(options.popleType)
this.popleType1 = options.popleType
if(options.popleType == ('kh' || 'gys')){ //供应商或者客户
this.khOrGysList(options.popleType);
}else{ //
this.wlOrKdList(options.popleType)
}
},
methods: {
//客户、供应商列表
khOrGysList() {
this.tui.request("/app/customer/list", "get", {
}, false, true).then((res) => {
if (res.code == 200) {
this.popleList = res.result;
}
})
},
//物流或者快递列表
wlOrKdList(e) {
//物流:1 快递:2
if (e == 'wl') {
this.signCompany = 1;
} else {
this.signCompany = 2
}
this.tui.request("/app/logitics/getAll", "post", {
signCompany: this.signCompany
}, false, false).then((res) => {
if (res.code == 200) {
this.popleList = res.result;
}
})
},
//打开弹出层
toggle(type) {
this.type = type
this.$refs.popup.open(type)
},
change(e) {
console.log('当前模式:' + e.type + ',状态:' + e.show);
},
//关闭弹出层
close() {
this.$refs.popup.close()
},
}
}
</script>
<style lang="scss" scoped>
button {
color: #ffffff;
background: #5fd9ee;
width: 90%;
margin-top: 20rpx;
}
.list-1 {
height: 150rpx;
border-bottom: 1px solid #eee;
background: #fff;
font-size: 32rpx;
margin-top: 20rpx;
}
.name-tel {
height: 75rpx;
line-height: 75rpx;
padding-left: 40rpx;
}
.standard-box {
color: #088FEB;
line-height: 75rpx;
width: 50%;
text-align: right;
}
.popup-content {
align-items: center;
justify-content: center;
padding: 15px;
width: 500rpx;
height: 700rpx;
background-color: #fff;
}
.popup-title {
font-size: 36rpx;
font-weight: bold;
text-align: center;
position: relative;
}
.popup-container {
margin-top: 20rpx;
}
</style>