info.vue 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <view class="cmain">
  3. <view class="form_group">
  4. <view class="lable re">企业名称</view>
  5. <input type="text" placeholder="请输入" v-model="item.name" />
  6. </view>
  7. <view class="form_group">
  8. <view class="lable re">税号</view>
  9. <input type="text" placeholder="请输入" v-model="item.dutyParagraph" />
  10. </view>
  11. <view class="form_group">
  12. <view class="lable re">法人姓名</view>
  13. <input type="text" placeholder="请输入" v-model="item.legalPerson" />
  14. </view>
  15. <view class="form_group">
  16. <view class="lable re">法人身份证</view>
  17. <input type="text" placeholder="请输入" v-model="item.idCard" />
  18. </view>
  19. <view class="form_group">
  20. <view class="lable re">联系号码</view>
  21. <input type="text" placeholder="请输入" v-model="item.contact" />
  22. </view>
  23. <view class="form_group">
  24. <view class="lable re">开户行</view>
  25. <input type="text" placeholder="请输入" v-model="item.bankName" />
  26. </view>
  27. <view class="form_group">
  28. <view class="lable re">银行账号</view>
  29. <input type="text" placeholder="请输入" v-model="item.bankAccount" />
  30. </view>
  31. <view class="form_group">
  32. <view class="lable re">营业执照</view>
  33. <card v-model="item.pic" pic="../../static/images/yyzz.png"></card>
  34. </view>
  35. <button class="btn" @click="save()" v-if="item.judgeStatus != 1">提交审核</button>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {
  42. item: {}
  43. };
  44. },
  45. onLoad(e) {
  46. this.http.request({
  47. url: '/level-one-server/app/TbEnterprise/getInfo',
  48. success: res => {
  49. if (res.data.data) {
  50. this.item = res.data.data;
  51. uni.setNavigationBarTitle({ title: '我的认证资料' });
  52. } else {
  53. uni.setNavigationBarTitle({ title: '填写认证资料' });
  54. }
  55. }
  56. });
  57. },
  58. methods: {
  59. save() {
  60. let rule = [
  61. { name: 'name', checkType: 'notnull', errorMsg: '请输入企业名称' },
  62. { name: 'dutyParagraph', checkType: 'notnull', errorMsg: '请输入税号' },
  63. { name: 'legalPerson', checkType: 'notnull', errorMsg: '请法人姓名' }
  64. ];
  65. if (!this.verify.check(this.item, rule)) {
  66. uni.showModal({ content: this.verify.error, showCancel: false });
  67. return false;
  68. }
  69. this.http.request({
  70. url: '/level-one-server/app/TbEnterprise/identification',
  71. method: 'POST',
  72. data: this.item,
  73. success: res => {
  74. uni.showToast({ title: '提交成功' });
  75. setTimeout(() => {
  76. uni.$emit('authentication');
  77. uni.navigateBack();
  78. }, 1000);
  79. }
  80. });
  81. }
  82. }
  83. };
  84. </script>
  85. <style lang="scss">
  86. .btn {
  87. margin-top: 25px;
  88. }
  89. </style>