Commit 00d9b67e authored by Facius's avatar Facius

feat: 日常收据可以修改地址

parent a2d0ee27
<template>
<u-popup v-model="show" border-radius="24" safe-area-inset-bottom mode="bottom" :duration="100">
<view class="content">
<view class="billing">
<view class="billing-head">
<view class="billing-head-location" @click="$u.throttle(getAddress, 500)">
<u-icon name="map" class="billing-head-location-icon"></u-icon>
<view class="billing-head-location-address ellipsis billing-head-location-noaddress">{{ form.address || '选择地址' }}</view>
</view>
<view class="billing-head-close" @click="close"><u-icon name="close"></u-icon></view>
<view class="head">
<!-- <view class="content-head-location" @click="$u.throttle(getAddress, 500)">
<u-icon name="map" class="content-head-location-icon"></u-icon>
<view class="content-head-location-address ellipsis content-head-location-noaddress">{{ form.address || '选择地址' }}</view>
</view> -->
<view class="head-address-value-view">
<view class="head-location-view" hover-class="u-hover-class" @click="$u.throttle(getAddress, 500)">
<view class="head-location-icon-view"><image :src="dingweidizhiImage"></image></view>
</view>
<view class="head-address-view" v-if="form.address">
<u-input
type="text"
adjust-position
:height="76"
:clearable="false"
:custom-style="customStyle"
:placeholder-style="placeholderStyle"
v-model="form.address"
placeholder="选择地址"
/>
</view>
<view class="head-label-view" hover-class="u-hover-class" @click="$u.throttle(getAddress, 500)" v-else>选择地址</view>
</view>
<view class="head-close" @click="close"><u-icon name="close"></u-icon></view>
</view>
<view class="billing">
<view class="billing-type">
<checkbox-groups :checked="form.type" :custom-style="customStyle" :options="billingTypeOptions" @handleClick="billingTypeChange"></checkbox-groups>
<view class="billing-type-date" @click="openCalendarPopup">
......@@ -144,7 +162,10 @@ export default {
};
},
computed: {
...mapGetters(['billType', 'platform'])
...mapGetters(['billType', 'platform']),
dingweidizhiImage() {
return process.uniEnv.qn_base_url + 'dingweidizhi@3x.png';
},
},
mounted() {
this.init();
......@@ -430,43 +451,89 @@ export default {
</script>
<style lang="scss" scoped>
.billing {
color: #333333;
padding: 0 24upx;
padding-bottom: 32upx;
background-color: #ffffff;
&-head {
.content {
.head {
height: 108upx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 8rpx 8rpx 16rpx 16rpx;
&-location {
// &-location {
// display: flex;
// align-items: center;
// font-size: 24upx;
// &-icon {
// margin-right: 8upx;
// font-size: 28upx;
// }
// &-address {
// width: 500upx;
// }
// &-noaddress {
// color: #8d8d8d;
// }
// }
&-address-value-view {
flex: 1;
display: flex;
align-items: center;
font-size: 24upx;
&-icon {
margin-right: 8upx;
font-size: 28upx;
height: 100%;
margin-right: 32rpx;
font-size: 24rpx;
flex: 1;
}
&-address-view {
flex: 1;
height: 100%;
display: flex;
align-items: center;
/deep/.u-input__textarea {
padding: 2rpx 0 !important;
min-height: 40rpx !important;
}
// color: #cccccc;
// &.adress {
// color: #333333;
// }
}
&-address {
width: 500upx;
&-location-view {
height: 100%;
flex-shrink: 0;
width: 48rpx;
display: flex;
align-items: center;
}
&-noaddress {
color: #8d8d8d;
&-location-icon-view {
width: 24rpx;
height: 28rpx;
flex-shrink: 0;
margin-left: 8rpx;
}
&-label-view {
width: 100%;
height: 100%;
display: flex;
align-items: center;
}
}
&-close {
margin-left: 100upx;
width: 108upx;
height: 108upx;
flex-shrink: 0;
width: 64rpx;
height: 64rpx;
display: flex;
align-items: center;
justify-content: flex-end;
justify-content: center;
font-size: 32upx;
}
}
}
.billing {
color: #333333;
padding: 0 24upx;
padding-bottom: 32upx;
background-color: #ffffff;
&-type {
display: flex;
align-items: center;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment