Commit 00d9b67e authored by Facius's avatar Facius

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

parent a2d0ee27
<template> <template>
<u-popup v-model="show" border-radius="24" safe-area-inset-bottom mode="bottom" :duration="100"> <u-popup v-model="show" border-radius="24" safe-area-inset-bottom mode="bottom" :duration="100">
<view class="content"> <view class="content">
<view class="billing"> <view class="head">
<view class="billing-head"> <!-- <view class="content-head-location" @click="$u.throttle(getAddress, 500)">
<view class="billing-head-location" @click="$u.throttle(getAddress, 500)"> <u-icon name="map" class="content-head-location-icon"></u-icon>
<u-icon name="map" class="billing-head-location-icon"></u-icon> <view class="content-head-location-address ellipsis content-head-location-noaddress">{{ form.address || '选择地址' }}</view>
<view class="billing-head-location-address ellipsis billing-head-location-noaddress">{{ form.address || '选择地址' }}</view> </view> -->
</view> <view class="head-address-value-view">
<view class="billing-head-close" @click="close"><u-icon name="close"></u-icon></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>
<view class="billing">
<view class="billing-type"> <view class="billing-type">
<checkbox-groups :checked="form.type" :custom-style="customStyle" :options="billingTypeOptions" @handleClick="billingTypeChange"></checkbox-groups> <checkbox-groups :checked="form.type" :custom-style="customStyle" :options="billingTypeOptions" @handleClick="billingTypeChange"></checkbox-groups>
<view class="billing-type-date" @click="openCalendarPopup"> <view class="billing-type-date" @click="openCalendarPopup">
...@@ -144,7 +162,10 @@ export default { ...@@ -144,7 +162,10 @@ export default {
}; };
}, },
computed: { computed: {
...mapGetters(['billType', 'platform']) ...mapGetters(['billType', 'platform']),
dingweidizhiImage() {
return process.uniEnv.qn_base_url + 'dingweidizhi@3x.png';
},
}, },
mounted() { mounted() {
this.init(); this.init();
...@@ -430,43 +451,89 @@ export default { ...@@ -430,43 +451,89 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.billing { .content {
color: #333333; .head {
padding: 0 24upx;
padding-bottom: 32upx;
background-color: #ffffff;
&-head {
height: 108upx; height: 108upx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; 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; display: flex;
align-items: center; align-items: center;
font-size: 24upx; height: 100%;
&-icon { margin-right: 32rpx;
margin-right: 8upx; font-size: 24rpx;
font-size: 28upx; 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 { &-location-view {
width: 500upx; height: 100%;
flex-shrink: 0;
width: 48rpx;
display: flex;
align-items: center;
} }
&-noaddress { &-location-icon-view {
color: #8d8d8d; width: 24rpx;
height: 28rpx;
flex-shrink: 0;
margin-left: 8rpx;
}
&-label-view {
width: 100%;
height: 100%;
display: flex;
align-items: center;
} }
}
&-close { &-close {
margin-left: 100upx; flex-shrink: 0;
width: 108upx; width: 64rpx;
height: 108upx; height: 64rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: center;
font-size: 32upx; font-size: 32upx;
} }
} }
}
.billing {
color: #333333;
padding: 0 24upx;
padding-bottom: 32upx;
background-color: #ffffff;
&-type { &-type {
display: flex; display: flex;
align-items: center; 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