123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- <template name="address">
- <view class="address-template">
- <!-- 地址信息 -->
- <view class="address-section">
- <view class="address-content">
- <view class="address-cen">
- <view class="top">
- <view class="name">{{addressData.shouHuoRen !== undefined ? addressData.shouHuoRen : ''}}</view>
- <view class="mobile">{{addressData.mobile !== undefined ? addressData.mobile : ''}}</view>
- </view>
- <view class="address">
- <view class="address-icon">
- <text class="iconfont icon-shouhuodizhi"></text>
- </view>
- <view class="address-text">
- {{addressData.province !== undefined ? addressData.province : ''}}
- {{addressData.city !== undefined ? addressData.city : ''}}
- {{addressData.town !== undefined ? addressData.town : ''}}
- {{addressData.address !== undefined ? addressData.address : ''}}
- </view>
- </view>
- </view>
- </view>
- </view>
- <image src="../../../static/ws/address_cat.png" mode=""></image>
- </view>
- </template>
- <script>
- export default{
- name:"address",
- props:{
- addressData:{
- type:Object
- }
- },
- data() {
- return{
- initData:''
- }
- },
- created(){
- this.initData = this.addressData;
- },
- computed: {
- },
- methods:{
-
- }
- }
- </script>
- <style lang="scss">
- .address-template{
- width: 100%;
- height: auto;
- background: #FFFFFF;
- // border-top: 1px solid #F8F8F8;
- image{
- float: left;
- width: 100%;
- height: 6rpx;
- }
- }
- .address-section {
- width: 100%;
- height: auto;
- float: left;
- position: relative;
-
- .address-empty{
- width: 100%;
- height: 84rpx;
- line-height: 84rpx;
- color: $color-system;
- text-align: center;
- font-size: $font-size-26;
- font-weight: bold;
- background: #fff;
- float: left;
- .icon-tianjiadizhi{
- font-size: 30rpx;
- margin: 0 8rpx;
- }
- }
- .address-content {
- display: flex;
- align-items: center;
- padding:20rpx 24rpx;
- background: #fff;
- }
-
- .icon-shouhuodizhi {
- flex-shrink: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 40rpx;
- color: $color-system;
- font-size: 40rpx;
- margin-right: 10rpx;
- }
- .address-cen {
- width: 100%;
- height: auto;
- position: relative;
- .top{
- padding-left: 50rpx;
- height: 42rpx;
- line-height: 42rpx;
- text-align: left;
- font-size: $font-size-30;
- color: $text-color;
- padding-bottom: 8rpx;
- display: flex;
- float: left;
- .name{
- margin-right: 48rpx;
- }
- .mobile{
- margin-right: 40rpx;
- }
- }
- .address {
- width: 100%;
- height: auto;
- float: left;
- .address-icon{
- width: 40rpx;
- height: auto;
- float: left;
- line-height: 40rpx;
- }
- .address-text{
- width: 650rpx;
- padding-left: 10rpx;
- float: left;
- line-height: 40rpx;
- font-size: $font-size-28;
- color: #666666;
- text-align: left;
- -o-text-overflow: ellipsis;
- text-overflow: ellipsis;
- display: -webkit-box;
- word-break: break-all;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- }
- }
- }
- .icon-chakangengduo {
- font-size: 32rpx;
- color: $text-color;
- margin-right: 30rpx;
- }
- .a-bg {
- position: absolute;
- left: 0;
- bottom: 0;
- display: block;
- width: 100%;
- height: 5rpx;
- }
- }
- </style>
|