address.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <v-header :title="typeItem.title">
  3. <view class="flex-all-1 overflow">
  4. <flat-list
  5. @changeData="flatChangeData"
  6. background="transparent"
  7. :ref="base_flat_id"
  8. @fetch="fetch"
  9. >
  10. <view>
  11. <view class="address-item row aCenter"
  12. v-for="(item,index) in base_flat_data.data"
  13. :key="index"
  14. @click="checkedAddress(item)"
  15. >
  16. <view class="flex-all-1 overflow">
  17. <view class="address-title row aCenter">
  18. <view class="address-name line-1">{{item.name}}</view>
  19. <view class="address-mobile line-1">{{item.mobile}}</view>
  20. <view v-if="item.is_default === 1" class="address-default center">默认</view>
  21. </view>
  22. <view class="address-info line-1">{{item.province_name}} {{item.city_name}} {{item.area_name}} {{item.address}}</view>
  23. </view>
  24. <v-radio :value="checkId==item.id" disabled borderColor="#c3c3c3" activeBorderColor="#41AE3C" activeColor="#41AE3C" class="address-margin" v-if="typeItem.select"></v-radio>
  25. <image v-else @click.stop="routerUpdateAddress(item)" src="/static/images/address-edit.png" class="address-edit"></image>
  26. </view>
  27. </view>
  28. </flat-list>
  29. </view>
  30. <view class="center address-button-container">
  31. <view @click="routerAddAddress" class="address-button center">添加地址</view>
  32. </view>
  33. </v-header>
  34. </template>
  35. <script>
  36. import vHeader from '../../components/v-header/main';
  37. import flatList from '../../components/flat-list/src/main';
  38. import mixins from './mixins';
  39. import vRadio from '../../components/v-radio/main';
  40. export default {
  41. components:{
  42. vHeader,
  43. flatList,
  44. vRadio
  45. },
  46. mixins
  47. }
  48. </script>
  49. <style src="./style.scss" scoped lang="scss"></style>