information.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. <textarea value="" placeholder="请填写详细地址,如街道/小区/门牌等" maxlength="50" class="address-details"/>
  25. <view class="info-from">
  26. <view class="label">联系人</view>
  27. <input class="row-input" type="text" placeholder="请输入联系人姓名" maxlength="6"/>
  28. </view>
  29. <view class="info-from">
  30. <view class="label">邮箱</view>
  31. <input class="row-input" type="text" placeholder="请输入邮箱地址 " maxlength="6"/>
  32. </view>
  33. <text class="info-email">邮箱可用作登录账号,请使用公司邮箱或法人邮箱</text>
  34. <view class="info-from">
  35. <view class="label">固定电话</view>
  36. <input class="row-input" type="text" placeholder="请在号码前加区 " maxlength="6"/>
  37. </view>
  38. <view class="info-from">
  39. <view class="label">传真</view>
  40. <input class="row-input" type="text" placeholder="请输入公司传真号 " maxlength="6"/>
  41. </view>
  42. <view class="info-from">
  43. <view class="label">法人代表</view>
  44. <input class="row-input" type="text" placeholder="请输入公司法人代表姓名 " maxlength="6"/>
  45. </view>
  46. <view class="info-from">
  47. <view class="label">注册资本</view>
  48. <input class="row-input" type="text" placeholder="请填写公司注册资本 " maxlength="6"/>
  49. </view>
  50. <view class="info-from">
  51. <view class="label">公司性质</view>
  52. <input class="row-input" type="text" placeholder="请填写公司性质 " maxlength="6"/>
  53. </view>
  54. <view class="info-from">
  55. <view class="label">年营业额</view>
  56. <input class="row-input" type="text" placeholder="请输入公司年营业额 " maxlength="6"/>
  57. </view>
  58. </view>
  59. <view class="wrap-content">
  60. <view class="row">
  61. <view class="info-title">经营信息</view>
  62. </view>
  63. </view>
  64. <view class="wrap-image">
  65. <view class="row">
  66. <view class="info-title">资质证明</view>
  67. </view>
  68. </view>
  69. <mpvue-city-picker :themeColor="themeColor"
  70. ref="mpvueCityPicker"
  71. :pickerValueDefault="cityPickerValueDefault"
  72. @onCancel="onCancel"
  73. @onConfirm="onConfirm">
  74. </mpvue-city-picker>
  75. </view>
  76. </template>
  77. <script>
  78. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  79. import { uploadFileImage } from "@/api/utils.js"
  80. import { mapState,mapMutations } from 'vuex';
  81. export default{
  82. name:'information',
  83. components:{
  84. mpvueCityPicker,
  85. },
  86. data(){
  87. return{
  88. isShowInput:false,
  89. addressData:{
  90. address:'请选择公司所在地区',
  91. townID:'', //区ID
  92. cityID:'', //区ID
  93. provinceID:'', //区ID
  94. addressDetail: '', //地址
  95. },
  96. }
  97. },
  98. methods:{
  99. showMulLinkageThreePicker() {//三级地址联动
  100. this.isShowInput = true
  101. this.$refs.mpvueCityPicker.show()
  102. },
  103. onConfirm(e) {//获取选择的地址信息
  104. console.log('地址',e);
  105. this.addressData.address = e.name;
  106. this.addressData.townID = e.townCode;
  107. this.addressData.cityID = e.cityCode;
  108. this.addressData.provinceID = e.provinceCode;
  109. this.secondParams.townId = this.addressData.townID;
  110. this.secondParams.address = this.addressData.address;
  111. },
  112. onConfirmbrand(e){
  113. this.brandname = e.name;
  114. },
  115. }
  116. }
  117. </script>
  118. <style lang="scss">
  119. .row{
  120. line-height: 80rpx;
  121. background: #f7f7f7;
  122. padding: 0 24rpx;
  123. .info-title{
  124. font-size: $font-size-30;
  125. color: $text-color;
  126. font-weight: bold;
  127. }
  128. }
  129. .info-from{
  130. width: 702rpx;
  131. height: 90rpx;
  132. line-height: 90rpx;
  133. border-bottom: 2rpx solid #e1e1e1;
  134. margin: auto;
  135. position: relative;
  136. .label{
  137. width: 112rpx;
  138. text-align: left;
  139. font-size: $font-size-28;
  140. color: #666666;
  141. line-height: 90rpx;
  142. float: left;
  143. }
  144. .row-input{
  145. width: 440rpx;
  146. padding-left:10rpx;
  147. font-size: $font-size-28;
  148. color: $text-color;
  149. line-height: 90rpx;
  150. float: left;
  151. height: 90rpx;
  152. margin-left: 50rpx;
  153. .icon-xiayibu{
  154. position: absolute;
  155. right: 0;
  156. color: #b2b2b2;
  157. }
  158. .none{
  159. color: #b2b2b2;
  160. }
  161. }
  162. }
  163. .address-details{
  164. height: 146rpx;
  165. border-bottom: 2rpx solid #e1e1e1;
  166. width: 702rpx;
  167. margin: auto;
  168. font-size: $font-size-28;
  169. padding-top: 20rpx;
  170. }
  171. input[type="text"]::placeholder,textarea::placeholder{color: #b2b2b2;}
  172. .info-email{
  173. color: #fea785;
  174. font-size: $font-size-20;
  175. padding-left: 24rpx ;
  176. }
  177. </style>