addcompany.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867
  1. <template>
  2. <view class="content">
  3. <!-- <web-view :src="srcHandler()" v-if="isSshowPlayVideo"></web-view> -->
  4. <!-- <u-navbar leftText="返回" title="企业认证" :safeAreaInsetTop="true">
  5. <view class="u-nav-slot" slot="left">
  6. <u-icon @click='navback' name="arrow-left" size="19"></u-icon>
  7. </view>
  8. <view class="u-nav-slot" slot="right">
  9. <view @click="goDetailPage('/pages/mine/company/addcompanythree')" class='next'>下一步</view>
  10. </view>
  11. </u-navbar> -->
  12. <view v-show="videoPlay">
  13. <video controls id="myvideo" :src="dataDetails.videoAddressUrl" @fullscreenchange="screenChange"></video>
  14. </view>
  15. <view style='margin:10px 0 0 19px;font-size:12px;color:#EF4034;'>注:企业认证仅限该企业法定代表人本人完成。</view>
  16. <view class='content1'>
  17. <view class="title">上传营业执照</view>
  18. <view style='position:relative;' @click="uploadImg(1)">
  19. <view v-if='!dataDetails.businessLicenseAddressUrl' class="picture picture7">
  20. <image class="xj-image" src="@/static/mine/ic_shanchuan@2x.png"></image>
  21. <view class="text">上传营业执照</view>
  22. </view>
  23. <view v-if='dataDetails.businessLicenseAddressUrl' @click.stop="uploadImg(1)"
  24. class="preview-card-img picture ">
  25. <view @click.stop="delCard(1)">
  26. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  27. </image>
  28. </view>
  29. <image class="" :src="dataDetails.businessLicenseAddressUrl" mode="aspectFit"></image>
  30. </view>
  31. </view>
  32. <view class="flex row">
  33. <view class="left-text">营业期限截止日期</view>
  34. <view style='font-size:14px;width:50%;' class='flex flex-space-between'
  35. @click="selectValidityPeriod(0)">
  36. <view :style="{'color':dataDetails.businessTermDate ? '#000':'#C6CBD5'}">
  37. {{dataDetails.businessTermDate?dataDetails.businessTermDate:'选择期限截止日期'}}
  38. </view>
  39. <view>
  40. <u-icon name="arrow-right" color="#7E7E7E" size="10"></u-icon>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="flex row noborder">
  45. <view class="left-text">统一社会信用代码</view>
  46. <u--input placeholder="请输入统一社会信用代码" inputAlign='left' border="none"
  47. v-model="dataDetails.unifiedSocialCreditCode">
  48. </u--input>
  49. </view>
  50. </view>
  51. <view class='wrap'>
  52. <view class="flex border-bottom mt20 align-center">
  53. <view class="left">企业名称</view>
  54. <view class="flex right">
  55. <u--input placeholder="输入企业名称" inputAlign='left' border="none" v-model="dataDetails.companyName"
  56. @blur='companyNameBlur'>
  57. </u--input>
  58. </view>
  59. </view>
  60. <view class="flex border-bottom mt20 align-center">
  61. <view class="left">法定代表人姓名</view>
  62. <view class="flex right">
  63. <u--input placeholder="输入法定代表人姓名" inputAlign='left' border="none"
  64. v-model="dataDetails.legalPersonName">
  65. </u--input>
  66. </view>
  67. </view>
  68. <view class="flex border-bottom mt20 align-center">
  69. <view class="left">联系电话</view>
  70. <view class="flex right">
  71. <u--input disabledColor='#fff' placeholder="输入联系电话" inputAlign='left' border="none"
  72. v-model="dataDetails.phone">
  73. </u--input>
  74. </view>
  75. </view>
  76. <!-- <view class="flex mt20 align-center">
  77. <view class="left">注册实缴金额</view>
  78. <view class="flex right align-center">
  79. <u--input placeholder="输入企业注册实缴金额" inputAlign='left' border="none"
  80. v-model="dataDetails.registeredPaidAmount">
  81. </u--input>
  82. <view>万元</view>
  83. </view>
  84. </view> -->
  85. </view>
  86. <!-- http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4 -->
  87. <!-- dataDetails.videoAddressUrl -->
  88. <view class='content3' v-if="!dataDetails.videoAddressUrl"
  89. @click="goDetailPage('/pages/mine/company/companyvideo')">
  90. <view class="left-text">视频验证(打开摄像头并阅读提示文字)</view>
  91. <view class="video-icon">
  92. <u-icon size="40" name="camera-fill"></u-icon>
  93. </view>
  94. </view>
  95. <view class='content3' v-if="dataDetails.videoAddressUrl">
  96. <view class="flex row noborder mt20 flex-space-between">
  97. <view class="left-text">视频验证(点击按钮播放视频)</view>
  98. <view>
  99. <u-button type="primary" @click="goDetailPage('/pages/mine/company/companyvideo')" size="mini">重新上传
  100. </u-button>
  101. </view>
  102. </view>
  103. <!-- <video class="myVideo" :src="dataDetails.videoAddressUrl" controls></video> -->
  104. <view>
  105. <view class="video-icon">
  106. <u-icon size="40" name="play-circle-fill" @click="videoShow()"></u-icon>
  107. </view>
  108. </view>
  109. </view>
  110. <view class='content3'>
  111. <view class="flex row noborder mt20 flex-space-between">
  112. <view class="left-text">申请开通平台垫付运费业务</view>
  113. <view>
  114. <u-switch @change="change" v-model="value" inactiveColor='#ABB0BB' size="20"></u-switch>
  115. </view>
  116. </view>
  117. </view>
  118. <view v-if="value" class='content1'>
  119. <view class="flex row">
  120. <view class="left-text">企业用地是否自有</view>
  121. <view class="flex right">
  122. <u-radio-group placement="row" class="select-type" v-model="dataDetails.landOwnership">
  123. <u-radio :customStyle="radioCustomStyle" v-for="(item, index) in radiolist1" :key="index"
  124. :label="item.name" :name="item.name" @change="radioChange($event,item)" labelSize='12px'
  125. :iconSize='4'>
  126. </u-radio>
  127. </u-radio-group>
  128. </view>
  129. </view>
  130. <view class="title">{{dataDetails.landOwnership=='自有'?'上传房产证':'上传租赁合同(扫描件或图片)'}}</view>
  131. <view style='position:relative;'>
  132. <view v-if='!dataDetails.propertyAddressUrl' @click="uploadImg(2)" class="picture">
  133. <image class="xj-image" src="@/static/mine/company/tianjiazhaopian@3x.png"></image>
  134. </view>
  135. <view v-if='dataDetails.propertyAddressUrl' @click.stop="uploadImg(2)" style='position:relative;'
  136. class="preview-card-img picture">
  137. <view @click.stop="delCard(2)">
  138. <image class='del-card' src="@/static/images/common/quxiao@2x.png">
  139. </image>
  140. </view>
  141. <image class="uploadimage uploadimage-small" :src="dataDetails.propertyAddressUrl" mode="aspectFit">
  142. </image>
  143. </view>
  144. </view>
  145. <view v-if="dataDetails.landOwnership=='租赁'" class="flex border-bottom mt20 align-center">
  146. <view class="left-text">场地租赁截止日期</view>
  147. <view style='font-size:14px;width:50%;' class='flex flex-space-between'
  148. @click="selectValidityPeriod(1)">
  149. <view :style="{'color':dataDetails.siteLeaseDate ? '#000':'#C6CBD5'}">
  150. {{dataDetails.siteLeaseDate?dataDetails.siteLeaseDate:'选择日期'}}
  151. </view>
  152. <view>
  153. <u-icon name="arrow-right" color="#7E7E7E" size="10"></u-icon>
  154. </view>
  155. </view>
  156. </view>
  157. </view>
  158. <view class="content4">
  159. <view class="flex service align-center">
  160. <u--image @click='consent'
  161. :src="consentStatus==true?'../../../static/images/mine/duihao@2x.png':'../../../static/images/mine/wxz.png'"
  162. width="12px" height="12px"></u--image>
  163. 我已阅读并同意
  164. <navigator
  165. url="/pages/sale/webview?can_share=false&url=https://liangxin.zthymaoyi.com/userAgreement.html"
  166. class="path" hover-class="navigator-hover">《服务协议》</navigator>和<navigator
  167. url="/pages/sale/webview?can_share=false&url=https://liangxin.zthymaoyi.com/screctAgreement.html"
  168. class="path" hover-class="navigator-hover">《隐私政策》</navigator>
  169. </view>
  170. </view>
  171. <view class='footer'>
  172. <!-- <view @click="goDetailPage('/pages/mine/company/addcompanythree')" class='newlyIncreased'>下一步</view> -->
  173. <view @click="submit" class='newlyIncreased'>提交</view>
  174. </view>
  175. <u-picker :show="isShowcardValidity" ref="uPicker" :columns="validityPeriod" @confirm="confirmValidityPeriod"
  176. @change="changeHandler" @cancel="isShowcardValidity=false">
  177. </u-picker>
  178. <u-action-sheet :actions="$helper.imgTypeList" :title="$helper.imgType" :show="isShowimgType"
  179. @select="imgTypeSelect" :closeOnClickOverlay="true" :closeOnClickAction="true" @close="isShowimgType=false">
  180. </u-action-sheet>
  181. <u-toast ref="uToast"></u-toast>
  182. </view>
  183. </template>
  184. <script>
  185. import {
  186. mapState
  187. } from 'vuex';
  188. import upload from '@/components/upload.vue';
  189. import uploadImage from '@/components/ossutil/uploadFile.js';
  190. export default {
  191. components: {},
  192. data() {
  193. return {
  194. videoPlay: false,
  195. isSshowPlayVideo: false,
  196. srcHandler() {
  197. return `/hybrid/html/play.html?src=${this.dataDetails.videoAddressUrl}`
  198. },
  199. consentStatus: false,
  200. ValidityPeriodType: '',
  201. value: false,
  202. radioCustomStyle: {
  203. margin: '0 0 0 20rpx'
  204. },
  205. radiolist1: [{
  206. name: '自有',
  207. disabled: false
  208. },
  209. {
  210. name: '租赁',
  211. disabled: false
  212. },
  213. ],
  214. isShowcardValidity: false,
  215. uploadType: '',
  216. index: '',
  217. isShowimgType: false,
  218. validityPeriod: [],
  219. checked: false,
  220. checked1: false,
  221. dataDetails: {
  222. phone: '',
  223. businessLicenseAddressUrl: '',
  224. propertyAddressUrl: '',
  225. advanceFreightService: 0,
  226. landOwnership: '自有',
  227. videoAddressUrl: null,
  228. legalPersonName: ''
  229. }
  230. }
  231. },
  232. onShow() {
  233. console.log(uni.getStorageSync("videoSrc"))
  234. var viderSrc = uni.getStorageSync("videoSrc")
  235. if (viderSrc) {
  236. this.dataDetails.videoAddressUrl = viderSrc
  237. }
  238. },
  239. onLoad(options) {
  240. this.validityPeriod = this.$helper.makeValidityPeriod(0, '长期')
  241. console.log(this)
  242. this.dataDetails.commonId = this.userInfo.id
  243. this.dataDetails.phone = this.userInfo.phone
  244. console.log('```````````````')
  245. console.log(options)
  246. if (uni.getStorageSync('companydata')) {
  247. this.dataDetails = JSON.parse(uni.getStorageSync('companydata'))
  248. if (!this.dataDetails.businessLicenseAddressUrl) {
  249. this.dataDetails.businessLicenseAddressUrl = ""
  250. }
  251. }
  252. this.dataDetails.videoAddressUrl = options.videoSrc
  253. this.getName()
  254. },
  255. computed: {
  256. ...mapState(['hasLogin', 'userInfo']),
  257. },
  258. methods: {
  259. screenChange(e) {
  260. let fullScreen = e.detail.fullScreen; // 值true为进入全屏,false为退出全屏
  261. console.log(e, "全屏");
  262. if (!fullScreen) {
  263. //退出全屏
  264. this.videoPlay = false; // 隐藏播放盒子
  265. }
  266. },
  267. // 触发全屏播放的点击事件
  268. videoShow() {
  269. this.videoContext = uni.createVideoContext("myvideo", this); // this这个是实例对象 必传
  270. this.videoContext.requestFullScreen({
  271. direction: 270
  272. });
  273. this.videoContext.play();
  274. console.log(this.videoContext)
  275. this.videoPlay = true; // 显示播放盒子
  276. },
  277. // getList(){
  278. // uni.showLoading({
  279. // title: '加载中',
  280. // mask:true
  281. // })
  282. // var _this=this
  283. // this.$request.baseRequest('get', '/companyInfo/getCompanyInfo', {id:this.dataDetails.id}).then(res => {
  284. // uni.hideLoading()
  285. // _this.dataDetails=res.data
  286. // })
  287. // .catch(res => {
  288. // uni.hideLoading()
  289. // uni.showToast({
  290. // title: res.message,
  291. // icon: 'none',
  292. // duration: 2000
  293. // })
  294. // });
  295. // },
  296. companyNameBlur() {
  297. this.$request.baseRequest('get', '/companyInfo/repeatCompanyInfo', {
  298. commonId: this.userInfo.id,
  299. companyName: this.dataDetails.companyName
  300. }).then(res => {
  301. if (res.code == 200) {
  302. // that.dataDetails.legalPersonName = res.data.name
  303. } else {
  304. uni.showToast({
  305. title: res.message,
  306. icon: 'none',
  307. duration: 2000
  308. })
  309. }
  310. })
  311. .catch(res => {
  312. uni.hideLoading()
  313. uni.showToast({
  314. title: res.message,
  315. icon: 'none',
  316. duration: 2000
  317. })
  318. });
  319. },
  320. getName() {
  321. let that = this
  322. this.$request.baseRequest('get', '/cargoOwnerInfo/selectCargoOwner', {
  323. commonId: this.userInfo.id
  324. }).then(res => {
  325. if (res.code == 200) {
  326. that.dataDetails.legalPersonName = res.data.name
  327. }
  328. })
  329. .catch(res => {
  330. uni.hideLoading()
  331. uni.showToast({
  332. title: res.message,
  333. icon: 'none',
  334. duration: 2000
  335. })
  336. });
  337. },
  338. loadedmetadata(event) {
  339. console.log(event)
  340. },
  341. loadeddata(event) {
  342. console.log(event)
  343. },
  344. videoErrorCallback: function(e) {
  345. uni.showModal({
  346. content: e.target.errMsg,
  347. showCancel: false
  348. })
  349. },
  350. validate() {
  351. if (uni.$u.test.isEmpty(this.dataDetails.companyName)) {
  352. this.$refs.uToast.show({
  353. type: 'error',
  354. message: "企业名称不能为空!",
  355. })
  356. return true
  357. }
  358. if (this.dataDetails.companyName.length < 4 || this.dataDetails.companyName.length > 25) {
  359. this.$refs.uToast.show({
  360. type: 'error',
  361. message: "企业名称字数在4-25个字!",
  362. })
  363. return true
  364. }
  365. if (uni.$u.test.isEmpty(this.dataDetails.legalPersonName)) {
  366. this.$refs.uToast.show({
  367. type: 'error',
  368. message: "法定代表人姓名不能为空!",
  369. })
  370. return true
  371. }
  372. if (uni.$u.test.isEmpty(this.dataDetails.phone)) {
  373. this.$refs.uToast.show({
  374. type: 'error',
  375. message: "联系电话不能为空!",
  376. })
  377. return true
  378. }
  379. // if (uni.$u.test.isEmpty(this.dataDetails.registeredPaidAmount)) {
  380. // this.$refs.uToast.show({
  381. // type: 'error',
  382. // message: "注册实缴金额不能为空!",
  383. // })
  384. // return true
  385. // }
  386. if (uni.$u.test.isEmpty(this.dataDetails.businessLicenseAddressUrl)) {
  387. this.$refs.uToast.show({
  388. type: 'error',
  389. message: "营业执照不能为空!",
  390. })
  391. return true
  392. }
  393. if (uni.$u.test.isEmpty(this.dataDetails.businessTermDate)) {
  394. this.$refs.uToast.show({
  395. type: 'error',
  396. message: "营业期限截止日期不能为空!",
  397. })
  398. return true
  399. }
  400. if (uni.$u.test.isEmpty(this.dataDetails.unifiedSocialCreditCode)) {
  401. this.$refs.uToast.show({
  402. type: 'error',
  403. message: "统一社会信用代码不能为空!",
  404. })
  405. return true
  406. }
  407. if (this.dataDetails.advanceFreightService == 1 && uni.$u.test.isEmpty(this.dataDetails
  408. .propertyAddressUrl)) {
  409. this.$refs.uToast.show({
  410. type: 'error',
  411. message: "房产证或租赁合同不能为空!",
  412. })
  413. return true
  414. }
  415. if (this.dataDetails.advanceFreightService == 1 && this.dataDetails.landOwnership == '租赁') {
  416. if (uni.$u.test.isEmpty(this.dataDetails.siteLeaseDate)) {
  417. this.$refs.uToast.show({
  418. type: 'error',
  419. message: "场地租赁截止日期不能为空!",
  420. })
  421. return true
  422. }
  423. }
  424. // if (uni.$u.test.isEmpty(this.dataDetails.videoAddressUrl)) {
  425. // this.$refs.uToast.show({
  426. // type: 'error',
  427. // message: "视频认证不能为空!",
  428. // })
  429. // return true
  430. // }
  431. },
  432. submit() {
  433. if (this.validate()) return
  434. uni.showLoading({
  435. title: '加载中',
  436. mask: true
  437. })
  438. var _this = this
  439. this.$request.baseRequest('post', '/companyInfo/api/addCompanyInfo', _this.dataDetails).then(res => {
  440. uni.hideLoading()
  441. uni.$u.toast('提交成功')
  442. uni.removeStorageSync("videoSrc")
  443. uni.navigateBack({
  444. delta: 1
  445. })
  446. })
  447. .catch(res => {
  448. uni.hideLoading()
  449. uni.showToast({
  450. title: res.message,
  451. icon: 'none',
  452. duration: 2000
  453. })
  454. });
  455. },
  456. consent() {
  457. this.consentStatus = !this.consentStatus
  458. },
  459. change(e) {
  460. if (this.value) {
  461. this.$set(this.dataDetails, 'advanceFreightService', 1)
  462. } else {
  463. this.$set(this.dataDetails, 'advanceFreightService', 0)
  464. }
  465. },
  466. radioChange(n) {
  467. console.log('radioChange', n);
  468. this.dataDetails.landOwnership = n
  469. console.log('this.dataDetails.landOwnership', this.dataDetails.landOwnership);
  470. },
  471. delCard(type) {
  472. if (type == 1) {} else {
  473. }
  474. this.dataDetails.businessLicenseAddressUrl = ''
  475. this.$forceUpdate()
  476. },
  477. navBack() {
  478. uni.navigateBack();
  479. },
  480. checkedchange() {
  481. this.checked = !this.checked
  482. if (this.checked) {
  483. this.dataDetails.landOwnership = 0
  484. this.checked1 = false
  485. } else {
  486. }
  487. },
  488. checkedchange1() {
  489. this.checked1 = !this.checked1
  490. if (this.checked1) {
  491. this.dataDetails.landOwnership = 1
  492. this.checked = false
  493. } else {
  494. }
  495. },
  496. clickcancel() {
  497. this.isShowcardValidity = false
  498. },
  499. imgTypeSelect(val) {
  500. var _this = this
  501. if (val.name == '相册') {
  502. uni.chooseImage({
  503. count: 1,
  504. sourceType: this.$helper.chooseImage.sourceType,
  505. success: function(res) {
  506. console.log(JSON.stringify(res.tempFilePaths));
  507. uploadImage('image', res.tempFilePaths[0], 'appData/',
  508. result => {
  509. // 上传成功回调函数
  510. console.log('图片地址', result)
  511. switch (_this.uploadType) {
  512. // 身份正面
  513. case 1:
  514. _this.dataDetails.businessLicenseAddressUrl = result
  515. // 识别
  516. _this.$request.baseRequest('get',
  517. '/cargoOwnerInfo/api/licenseShibie', {
  518. licenseImg: result,
  519. }).then(res => {
  520. if (res.code == '200') {
  521. if (res.data.validPeriod == '29991231') {
  522. _this.dataDetails.businessTermDate = '长期'
  523. }
  524. _this.dataDetails.unifiedSocialCreditCode = res
  525. .data.regNum
  526. _this.dataDetails.legalPersonName = res.data
  527. .licensePerson
  528. _this.dataDetails.companyName = res.data
  529. .licenseName
  530. console.log(res)
  531. _this.$forceUpdate()
  532. }
  533. })
  534. .catch(res => {
  535. uni.$u.toast(res.message);
  536. });
  537. console.log(_this.dataDetails.businessLicenseAddressUrl)
  538. break
  539. // 身份反面
  540. case 2:
  541. _this.dataDetails.propertyAddressUrl = result
  542. console.log(_this.dataDetails.propertyAddressUrl)
  543. break
  544. case 3:
  545. break;
  546. }
  547. }
  548. )
  549. }
  550. });
  551. } else {
  552. uni.chooseImage({
  553. count: 1,
  554. sourceType: ['camera'],
  555. success: function(res) {
  556. console.log(JSON.stringify(res.tempFilePaths));
  557. uploadImage('image', res.tempFilePaths[0], 'appData/',
  558. result => {
  559. // 上传成功回调函数
  560. console.log('图片地址', result)
  561. switch (_this.uploadType) {
  562. // 身份正面
  563. case 1:
  564. // 识别
  565. _this.$request.baseRequest('get',
  566. '/cargoOwnerInfo/api/licenseShibie', {
  567. licenseImg: result,
  568. }).then(res => {
  569. if (res.code == '200') {
  570. if (res.data.validPeriod == '29991231') {
  571. _this.dataDetails.businessTermDate = '长期'
  572. }
  573. _this.dataDetails.unifiedSocialCreditCode = res
  574. .data.regNum
  575. _this.dataDetails.legalPersonName = res.data
  576. .licensePerson
  577. _this.dataDetails.companyName = res.data
  578. .licenseName
  579. console.log(res)
  580. _this.$forceUpdate()
  581. }
  582. })
  583. .catch(res => {
  584. uni.$u.toast(res.message);
  585. });
  586. _this.dataDetails.businessLicenseAddressUrl = result
  587. console.log(_this.dataDetails.businessLicenseAddressUrl)
  588. break
  589. // 身份反面
  590. case 2:
  591. _this.dataDetails.propertyAddressUrl = result
  592. console.log(_this.dataDetails.propertyAddressUrl)
  593. break
  594. case 3:
  595. break;
  596. }
  597. }
  598. )
  599. }
  600. });
  601. }
  602. },
  603. uploadImg(type) {
  604. this.uploadType = type
  605. this.isShowimgType = true
  606. // this.index = index
  607. },
  608. goDetailPage(src) {
  609. uni.setStorageSync('companydata', this.dataDetails);
  610. uni.$u.route(src);
  611. },
  612. selectValidityPeriod(type) {
  613. this.ValidityPeriodType = type
  614. this.isShowcardValidity = true
  615. },
  616. confirmValidityPeriod(e) {
  617. switch (this.ValidityPeriodType) {
  618. case 0:
  619. if (e.value[0] == '长期') {
  620. this.dataDetails.businessTermDate = e.value[0]
  621. } else {
  622. this.dataDetails.businessTermDate = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
  623. }
  624. break
  625. case 1:
  626. if (e.value[0] == '长期') {
  627. this.dataDetails.siteLeaseDate = e.value[0]
  628. } else {
  629. this.dataDetails.siteLeaseDate = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
  630. }
  631. break
  632. }
  633. console.log('confirm', e)
  634. this.isShowcardValidity = false
  635. },
  636. changeHandler(e) {
  637. const {
  638. columnIndex,
  639. value,
  640. values,
  641. index,
  642. picker = this.$refs.uPicker
  643. } = e
  644. // if (columnIndex === 0) {
  645. //
  646. // if (e.index != 0) {
  647. // picker.setColumnValues(1, this.validityPeriod[1].shift())
  648. // }
  649. // } else if (columnIndex === 1) {
  650. // if (e.index != 0) {
  651. // picker.setColumnValues(2, this.validityPeriod[2].shift())
  652. // }
  653. // }
  654. },
  655. }
  656. }
  657. </script>
  658. <style lang="scss" scoped>
  659. .content {
  660. padding: 0 0 200rpx 0;
  661. }
  662. page {
  663. background: #F5F6FA;
  664. }
  665. /deep/uni-image.uploadimage-small {
  666. width: 100% !important;
  667. }
  668. .next {
  669. color: #2772FB;
  670. font-size: 13px;
  671. }
  672. .wrap {
  673. background: #fff;
  674. padding: 20rpx 30rpx;
  675. border-radius: 5px;
  676. margin: 20rpx;
  677. .left {
  678. width: 240rpx;
  679. font-size: 28rpx;
  680. }
  681. .right {
  682. font-size: 28rpx;
  683. width: calc(100% - 240rpx);
  684. }
  685. }
  686. .preview-card-img {
  687. // /deep/uni-image>div, uni-image>img {
  688. // transform: scale(1.5) rotate(-90deg);
  689. // }
  690. }
  691. .picture {
  692. margin-top: 20rpx;
  693. background: #F5F6FA;
  694. width: 212rpx;
  695. height: 212rpx;
  696. border-radius: 20rpx;
  697. display: flex;
  698. flex-direction: column;
  699. justify-content: center;
  700. align-items: center;
  701. color: #6A7282;
  702. }
  703. .content1 {
  704. background: #fff;
  705. padding: 20rpx;
  706. margin: 20rpx;
  707. border-radius: 10rpx;
  708. .row {
  709. border-bottom: 1px solid #EEEEEE;
  710. padding-bottom: 28rpx;
  711. margin-top: 26rpx;
  712. }
  713. .left-text {
  714. // background: red;
  715. width: 320rpx;
  716. color: #333333;
  717. display: flex;
  718. align-items: center;
  719. font-size: 14px;
  720. }
  721. .picture {
  722. position: relative;
  723. width: 100%;
  724. height: 440rpx;
  725. display: flex;
  726. justify-content: center;
  727. flex-direction: column;
  728. align-items: center;
  729. .text {
  730. margin-top: 20rpx;
  731. }
  732. }
  733. .picture7 {
  734. background: url(../../../static/mine/cy.png);
  735. background-size: 100% 100%;
  736. }
  737. .xj-image {
  738. width: 100rpx;
  739. height: 100rpx;
  740. }
  741. .title {
  742. color: #333333;
  743. margin: 20rpx 0;
  744. }
  745. }
  746. .content2,
  747. .content3,
  748. .content4 {
  749. background: #fff;
  750. padding: 20rpx;
  751. margin: 20rpx;
  752. border-radius: 10rpx;
  753. }
  754. .u-input {
  755. font-size: 16px;
  756. }
  757. .content4 {}
  758. .del-card {
  759. position: absolute;
  760. top: -10rpx;
  761. right: -6rpx;
  762. width: 80rpx;
  763. height: 80rpx;
  764. z-index: 9;
  765. }
  766. .footer {
  767. position: fixed;
  768. background: #fff;
  769. width: 100%;
  770. bottom: 0;
  771. left: 0;
  772. padding: 40rpx 60rpx;
  773. box-sizing: border-box;
  774. z-index: 9999;
  775. }
  776. .newlyIncreased {
  777. width: 100%;
  778. height: 80rpx;
  779. margin: 0 auto;
  780. text-align: center;
  781. color: #fff;
  782. background: #2772FB;
  783. background-size: 100%;
  784. border-radius: 50rpx;
  785. display: flex;
  786. align-items: center;
  787. justify-content: center;
  788. }
  789. .u-checkbox-label--left {
  790. margin: 0 10px;
  791. }
  792. .service {
  793. font-size: 24rpx;
  794. margin: 20rpx;
  795. justify-content: center;
  796. /deep/.u-image {
  797. margin: 0 20rpx;
  798. }
  799. }
  800. .video-icon {
  801. margin-top: 20rpx;
  802. background: #F5F6FA;
  803. width: 212rpx;
  804. height: 211rpx;
  805. border-radius: 20rpx;
  806. display: flex;
  807. flex-direction: column;
  808. justify-content: center;
  809. align-items: center;
  810. color: #6A7282;
  811. }
  812. .myVideo {}
  813. </style>