information.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template name='information'>
  2. <view class="container">
  3. <view class="wrap-info">
  4. <view class="row">
  5. <view class="info-title">基本信息</view>
  6. </view>
  7. <view class="info-from">
  8. <view class="label">公司名称</view>
  9. <input class="row-input" type="text" placeholder="请与营业执照的注册名称保持一致" maxlength="6"/>
  10. </view>
  11. <view class="info-from">
  12. <view class="label">公司简称</view>
  13. <input class="row-input" type="text" placeholder="请输入公司简称" maxlength="6"/>
  14. </view>
  15. <view class="info-from">
  16. <view class="label">公司地址</view>
  17. <view class="row-input" @click="showMulLinkageThreePicker">
  18. <text :class="addressData.address === '请选择公司所在地区' ? 'none' : ''">
  19. {{addressData.address}}
  20. </text>
  21. <text class="iconfont icon-xiayibu"></text>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="wrap-content">
  26. <view class="row">
  27. <view class="info-title">经营信息</view>
  28. </view>
  29. </view>
  30. <view class="wrap-image">
  31. <view class="row">
  32. <view class="info-title">资质证明</view>
  33. </view>
  34. </view>
  35. <mpvue-city-picker :themeColor="themeColor"
  36. ref="mpvueCityPicker"
  37. :pickerValueDefault="cityPickerValueDefault"
  38. @onCancel="onCancel"
  39. @onConfirm="onConfirm">
  40. </mpvue-city-picker>
  41. </view>
  42. </template>
  43. <script>
  44. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  45. import { uploadFileImage } from "@/api/utils.js"
  46. import { mapState,mapMutations } from 'vuex';
  47. export default{
  48. name:'information',
  49. components:{
  50. mpvueCityPicker,
  51. },
  52. data(){
  53. return{
  54. addressData:{
  55. address:'请选择公司所在地区',
  56. townID:'', //区ID
  57. cityID:'', //区ID
  58. provinceID:'', //区ID
  59. addressDetail: '', //地址
  60. },
  61. }
  62. },
  63. methods:{
  64. showMulLinkageThreePicker() {//三级地址联动
  65. this.isShowInput = true
  66. this.$refs.mpvueCityPicker.show()
  67. },
  68. onConfirm(e) {//获取选择的地址信息
  69. console.log('地址',e);
  70. this.addressData.address = e.name;
  71. this.addressData.townID = e.townCode;
  72. this.addressData.cityID = e.cityCode;
  73. this.addressData.provinceID = e.provinceCode;
  74. this.secondParams.townId = this.addressData.townID;
  75. this.secondParams.address = this.addressData.address;
  76. },
  77. onConfirmbrand(e){
  78. this.brandname = e.name;
  79. },
  80. }
  81. }
  82. </script>
  83. <style lang="scss">
  84. .row{
  85. line-height: 80rpx;
  86. background: #f7f7f7;
  87. padding: 0 24rpx;
  88. .info-title{
  89. font-size: $font-size-30;
  90. color: $text-color;
  91. font-weight: bold;
  92. }
  93. }
  94. .info-from{
  95. width: 702rpx;
  96. height: 90rpx;
  97. line-height: 90rpx;
  98. border-bottom: 2rpx solid #e1e1e1;
  99. margin: auto;
  100. position: relative;
  101. .label{
  102. width: 112rpx;
  103. text-align: left;
  104. font-size: $font-size-28;
  105. color: #666666;
  106. line-height: 90rpx;
  107. float: left;
  108. }
  109. .row-input{
  110. width: 440rpx;
  111. padding-left:10rpx;
  112. font-size: $font-size-28;
  113. color: $text-color;
  114. line-height: 90rpx;
  115. float: left;
  116. height: 90rpx;
  117. margin-left: 50rpx;
  118. .icon-xiayibu{
  119. position: absolute;
  120. right: 0;
  121. color: #666666;
  122. }
  123. .none{
  124. color: #666666;
  125. }
  126. }
  127. }
  128. </style>