register.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921
  1. <template>
  2. <view class="container register" :style="{ paddingTop: CustomBar + 'px' }">
  3. <cu-custom :navbar-data="nvabarData" @navigateBack="modal = true"></cu-custom>
  4. <view class="register-tabs">
  5. <view class="tabs-item" :class="stepNum === 0 ? 'active' : '' ">
  6. <text class="iconfont icon-1_round_solid"></text>
  7. <text>账户信息</text>
  8. </view>
  9. <view class="tabs-item line">
  10. <text class="iconfont icon-hr"></text>
  11. </view>
  12. <view class="tabs-item" :class="stepNum === 1 ? 'active' : '' ">
  13. <text class="iconfont icon-2_round_solid"></text>
  14. <text>机构信息</text>
  15. </view>
  16. </view>
  17. <view class="register-main clearfix" v-if="stepNum === 0">
  18. <view class="register-row clearfix">
  19. <view class="register-from">
  20. <view class="label">手机号:</view>
  21. <input
  22. class="row-input"
  23. type="number"
  24. name="input"
  25. v-model="params.bindMobile"
  26. placeholder="请输入手机号"
  27. maxlength="11"
  28. />
  29. </view>
  30. </view>
  31. <view class="register-row clearfix">
  32. <view class="register-from">
  33. <view class="label">短信验证码:</view>
  34. <input
  35. class="row-input code"
  36. type="text"
  37. v-model="params.smsCode"
  38. placeholder="请输入验证码"
  39. maxlength="6"
  40. />
  41. <view class="row-btn" :class="[isMobileDisabled ? 'disabled' : '']">
  42. <button
  43. class="row-input"
  44. type="button"
  45. @click.stop="getMobileCodeFn"
  46. :disabled="isMobileDisabled"
  47. >
  48. {{ mobileCodeText }}
  49. </button>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="register-row clearfix">
  54. <view class="register-from">
  55. <view class="label">登录密码:</view>
  56. <input
  57. class="row-input"
  58. type="password"
  59. name="input"
  60. v-model="params.password"
  61. placeholder="密码必须为8-16位字母数字组合"
  62. maxlength="16"
  63. />
  64. </view>
  65. </view>
  66. <view class="register-row clearfix">
  67. <view class="register-from">
  68. <view class="label">确认密码:</view>
  69. <input
  70. class="row-input"
  71. type="password"
  72. name="input"
  73. v-model="params.passWordConfirm"
  74. placeholder="请确认密码"
  75. maxlength="16"
  76. />
  77. </view>
  78. </view>
  79. <view class="register-main clearfix" style="margin-top: 180rpx;">
  80. <view class="register-row ">
  81. <view class="register-btn sub" @click.stop="handleCheckRegist">下一步</view>
  82. </view>
  83. </view>
  84. </view>
  85. <view class="register-main clearfix" v-if="stepNum === 1">
  86. <view class="register-row clearfix">
  87. <view class="register-from">
  88. <view class="label"><text>*</text>联系人</view>
  89. <input
  90. class="row-input"
  91. type="text"
  92. v-model="params.linkMan"
  93. placeholder="请输入联系姓名"
  94. placeholder-class="placeholder"
  95. maxlength="6"
  96. />
  97. </view>
  98. </view>
  99. <view class="register-row clearfix">
  100. <view class="register-from">
  101. <view class="label"><text>*</text>机构名称</view>
  102. <input
  103. class="row-input"
  104. type="text"
  105. v-model="params.name"
  106. placeholder="请输入您的机构名称"
  107. placeholder-class="placeholder"
  108. maxlength="30"
  109. />
  110. </view>
  111. </view>
  112. <view class="register-row clearfix">
  113. <view class="register-from" @click="showMulLinkageThreePicker">
  114. <view class="label"><text>*</text>机构地址</view>
  115. <text class="row-input" :class="handleAddress === '请选择机构所在地区' ? 'none' : ''">
  116. {{ handleAddress }}
  117. </text>
  118. <text class="iconfont icon-xiangyou"></text>
  119. </view>
  120. </view>
  121. <view class="register-row text-textarea clearfix">
  122. <view
  123. class="textarea"
  124. v-if="isShowInput"
  125. placeholder-class="placeholder"
  126. @click="showTextareaFocus"
  127. >{{
  128. params.address ? params.address : '详细地址:如道路、门牌号、小区等'
  129. }}</view
  130. >
  131. <textarea
  132. v-else
  133. class="textarea"
  134. type="text"
  135. v-model="params.address"
  136. placeholder="详细地址:如道路、门牌号、小区等"
  137. placeholder-class="placeholder"
  138. maxlength="25"
  139. @input="onTextareaInput"
  140. @focus="textareaFocus"
  141. @blur="hideTextareaFocus"
  142. :class="isShowInput ? '' : ''"
  143. />
  144. </view>
  145. <view class="register-row clearfix">
  146. <view class="register-from">
  147. <view class="label"><text>*</text>营业执照编号</view>
  148. <input
  149. class="row-input"
  150. type="text"
  151. v-model="params.socialCreditCode"
  152. placeholder="请填写社会统一信用代码"
  153. placeholder-class="placeholder"
  154. maxlength="18"
  155. />
  156. </view>
  157. </view>
  158. <view class="register-row clearfix">
  159. <view class="register-picture">
  160. <view class="label"><text>*</text>营业执照</view>
  161. <view class="upload-picture">
  162. <view class="upload-none" v-if="!params.businessLicense" @click="uploadFileImage(1)">
  163. <text class="iconfont icon-shangchuantupian"></text>
  164. <text>选择图片</text>
  165. </view>
  166. <view class="upload-image" v-else>
  167. <image :src="params.businessLicense" mode="" @click="handleViewImage(params.businessLicense)"></image>
  168. <view class="upload-del" @click="handleDelete(1)">
  169. <text class="iconfont icon-shanchu"></text>
  170. </view>
  171. </view>
  172. </view>
  173. </view>
  174. </view>
  175. <view class="register-row clearfix">
  176. <view class="register-picture">
  177. <view class="label"><text>*</text>门头照</view>
  178. <view class="upload-picture">
  179. <view class="upload-none" v-if="!params.shopPhoto" @click="uploadFileImage(2)">
  180. <text class="iconfont icon-shangchuantupian"></text>
  181. <text>选择图片</text>
  182. </view>
  183. <view class="upload-image" v-else>
  184. <image :src="params.shopPhoto" mode="" @click="handleViewImage(params.shopPhoto)"></image>
  185. <view class="upload-del" @click="handleDelete(2)">
  186. <text class="iconfont icon-shanchu"></text>
  187. </view>
  188. </view>
  189. </view>
  190. </view>
  191. </view>
  192. <view class="register-row clearfix">
  193. <view class="register-picture">
  194. <view class="label"><text>*</text>医疗执业许可证</view>
  195. <view class="upload-picture">
  196. <view class="upload-none" v-if="!params.medicalPracticeLicense" @click="uploadFileImage(3)">
  197. <text class="iconfont icon-shangchuantupian"></text>
  198. <text>选择图片</text>
  199. </view>
  200. <view class="upload-image" v-else>
  201. <image :src="params.medicalPracticeLicense" mode="" @click="handleViewImage(params.medicalPracticeLicense)"></image>
  202. <view class="upload-del" @click="handleDelete(3)">
  203. <text class="iconfont icon-shanchu"></text>
  204. </view>
  205. </view>
  206. </view>
  207. </view>
  208. </view>
  209. <view class="register-row ">
  210. <view class="register-btn sub" @click.stop="handleStep(0)">上一步</view>
  211. <view class="register-btn sub" @click.stop="handleConfirm">提交审核</view>
  212. </view>
  213. </view>
  214. <!-- 地址 -->
  215. <mpvue-city-picker
  216. :themeColor="themeColor"
  217. ref="mpvueCityPicker"
  218. :pickerValueDefault="cityPickerValueDefault"
  219. @onCancel="onCancel"
  220. @onConfirm="onConfirm"
  221. >
  222. </mpvue-city-picker>
  223. <!-- 提交审核提示弹窗 -->
  224. <tui-modal :show="modal1" @cancel="modal1 = false" :custom="true" fadeIn >
  225. <view class="tui-modal-custom">
  226. <view class="tui-prompt-title">提交成功!</view>
  227. <view class="tui-modal-custom-text">您的资料将会在1-3个工作日内进行审核,审核通过后才能进行采购。</view>
  228. <view class="tui-button-custom" @click="handleClick1"> 确定 </view>
  229. </view>
  230. </tui-modal>
  231. <!-- 弹窗提示 -->
  232. <tui-modal
  233. :show="modal"
  234. @click="handleClick"
  235. @cancel="modal = false"
  236. :content="'注册尚未完成,确定放弃注册吗?'"
  237. :button="modalButton"
  238. color="#333"
  239. :size="32"
  240. shape="circle"
  241. :maskClosable="false"
  242. >
  243. </tui-modal>
  244. </view>
  245. </template>
  246. <script>
  247. import { mapState, mapMutations } from 'vuex'
  248. import wxLogin from '@/common/config/wxLogin.js'
  249. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  250. import { uploadFileImage } from '@/services/public.js'
  251. export default {
  252. components: {
  253. mpvueCityPicker
  254. },
  255. data() {
  256. return {
  257. CustomBar: this.CustomBar, // 顶部导航栏高度
  258. nvabarData: {
  259. //顶部自定义导航
  260. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  261. showSearch: 0,
  262. title: '机构注册', // 导航栏 中间的标题
  263. haveBack: true,
  264. textLeft: this.$store.state.isIphone
  265. },
  266. isPreviewImage: false, // 预览图片开关
  267. modal1:false, // 提交弹窗控制
  268. modal:false,
  269. modalButton: [
  270. {
  271. text: '取消',
  272. type: 'gray',
  273. plain: true //是否空心
  274. },
  275. {
  276. text: '确认',
  277. customStyle: {
  278. color: '#fff',
  279. bgColor: '#F3B574'
  280. },
  281. plain: false
  282. }
  283. ],
  284. stepNum:0,
  285. textareaFocus: false,
  286. isMobileDisabled: false, //手机验证码按钮控制
  287. mobilCount: '', //倒计时
  288. mobileCodeText: '获取验证码',
  289. mobilTime: null,
  290. params: {
  291. bindMobile: '',
  292. password: '',
  293. passWordConfirm: '',
  294. smsCode: '',
  295. avatarUrl: '',
  296. nickName: '',
  297. unionId: '',
  298. name:'',
  299. provinceId: '',
  300. cityId: '',
  301. townId:'',
  302. address: '',
  303. organizeType:1, //外部商城机构类型 0内部机构 1外部机构
  304. shopPhoto:'',
  305. businessLicense:'',
  306. medicalPracticeLicense:'',
  307. },
  308. codeParams:{
  309. mobile: '',
  310. isCheckCaptcha: 1,
  311. activateCodeType: 8,
  312. platformType: 2
  313. },
  314. handleAddress:'请选择机构所在地区',
  315. isCheckedCode:false
  316. }
  317. },
  318. onLoad(option) {},
  319. computed: {
  320. ...mapState(['isWxAuthorize'])
  321. },
  322. methods: {
  323. ...mapMutations(['login', 'wxLogin']),
  324. // 切换
  325. handleStep(step) {
  326. this.stepNum = step
  327. },
  328. async handleCheckRegist(){
  329. if(this.isCheckedCode){
  330. this.stepNum = 1
  331. }else{
  332. try{
  333. this.handleCheck()
  334. await this.UserService.checkRegisterClub(this.params)
  335. this.isCheckedCode = true
  336. this.stepNum = 1
  337. }catch(error){
  338. this.$util.msg(error.msg, 2000)
  339. }
  340. }
  341. },
  342. handleCheck() {
  343. if (this.params.bindMobile == '') {
  344. this.$util.msg('请输入手机号', 2000)
  345. return
  346. }
  347. if (!this.$reg.isMobile(this.params.bindMobile)) {
  348. this.$util.msg('手机格式不正确', 2000)
  349. return
  350. }
  351. if (this.params.smsCode == '') {
  352. this.$util.msg('请输入手机验证码', 2000)
  353. return
  354. }
  355. if (!this.$reg.isMobileCode(this.params.smsCode)) {
  356. this.$util.msg('验证码格式不正确', 2000)
  357. return
  358. }
  359. if (this.params.password == '') {
  360. this.$util.msg('请输入密码', 2000)
  361. return
  362. }
  363. if (!this.$reg.checkPwd(this.params.password)) {
  364. this.$util.msg('密码必须为8-16位字母数字的组合', 2000)
  365. return
  366. }
  367. if (this.params.passWordConfirm == '') {
  368. this.$util.msg('请再次确认密码', 2000)
  369. return
  370. }
  371. if (this.params.passWordConfirm !== this.params.password) {
  372. this.$util.msg('两次输入的密码不一致', 2000)
  373. return
  374. }
  375. },
  376. handleConfirm(){
  377. // 提交审核
  378. if (this.params.name == '') {
  379. this.$util.msg('请输入机构名称', 2000)
  380. return
  381. }
  382. if (this.params.townId == '') {
  383. this.$util.msg('请选择机构地址', 2000)
  384. return
  385. }
  386. if (this.params.addressDetail == '') {
  387. this.$util.msg('请填写机构详细地址', 2000)
  388. return
  389. }
  390. if (this.params.businessLicense == '') {
  391. this.$util.msg('请上传营业执照', 2000)
  392. return
  393. }
  394. if (this.params.shopPhoto == '') {
  395. this.$util.msg('请上传门头照', 2000)
  396. return
  397. }
  398. if (this.params.medicalPracticeLicense == '') {
  399. this.$util.msg('请上传医疗执业许可证', 2000)
  400. return
  401. }
  402. this.params.unionId = uni.getStorageSync('unionId')
  403. this.userProfile()
  404. },
  405. userProfile() {
  406. //获取用户微信个人信息
  407. const self = this
  408. wx.getUserProfile({
  409. desc: '采美采购商城小程序获取您的信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
  410. success(res) {
  411. console.log('微信获取用户信息新API', res)
  412. self.wxLogin(res.userInfo)
  413. self.params.nickName = res.userInfo.nickName
  414. self.params.avatarUrl = res.userInfo.avatarUrl
  415. self.userAccountRegister(self.params)
  416. },
  417. fail() {
  418. self.$util.msg('授权失败', 2000)
  419. }
  420. })
  421. },
  422. async userAccountRegister(params) {
  423. // 注册
  424. try{
  425. await this.UserService.userAccountRegister(params)
  426. this.modal1 = true
  427. }catch(error){
  428. this.$util.msg(error.msg, 2000)
  429. }
  430. },
  431. storeUpdataeStatus(data) {
  432. uni.setStorageSync('token', data.token)
  433. this.$store.commit('updateStatus', data)
  434. this.login(data)
  435. },
  436. getMobileCodeFn() {
  437. // 点击获取短信验证码
  438. if (this.params.bindMobile == '') {
  439. this.$util.msg('请输入手机号', 2000)
  440. return
  441. }
  442. if (!this.$reg.isMobile(this.params.bindMobile)) {
  443. this.$util.msg('请输入正确的手机号', 2000)
  444. return
  445. }
  446. this.codeParams.mobile = this.params.bindMobile
  447. this.getMobileCode(this.codeParams)
  448. },
  449. async getMobileCode(params){
  450. //获取短信
  451. try{
  452. this.isMobileDisabled = true
  453. await this.PublicService.GetRegisterMobileCode(params)
  454. this.$util.msg('验证短信已发送', 2000)
  455. const TIME_COUNT = 60
  456. if (!this.mobilTime) {
  457. this.mobilCount = TIME_COUNT
  458. this.isMobileDisabled = true
  459. this.mobilTime = setInterval(() => {
  460. if (this.mobilCount > 1 && this.mobilCount <= TIME_COUNT) {
  461. this.mobilCount--
  462. this.mobileCodeText = this.mobilCount + 's重新发送'
  463. } else {
  464. this.isMobileDisabled = false
  465. clearInterval(this.mobilTime)
  466. this.mobilTime = null
  467. this.mobileCodeText = '获取验证码'
  468. }
  469. }, 1000)
  470. }
  471. }catch(error){
  472. this.$util.msg(error.msg, 2000)
  473. this.isMobileDisabled = false
  474. }
  475. },
  476. // 三级联动选择
  477. showMulLinkageThreePicker() {
  478. this.isShowInput = true
  479. this.$refs.mpvueCityPicker.show()
  480. },
  481. onConfirm(e) {
  482. this.handleAddress = e.name
  483. this.params.townId = e.townCode
  484. this.params.cityId = e.cityCode
  485. this.params.provinceId = e.provinceCode
  486. },
  487. onTextareaInput(e) {
  488. //文本框获取焦点
  489. this.params.address = e.detail.value
  490. },
  491. showTextareaFocus() {
  492. //文本框获取焦点
  493. this.isShowInput = false
  494. this.textareaFocus = true
  495. },
  496. hideTextareaFocus() {
  497. //文本框失去焦点
  498. this.isShowInput = true
  499. this.textareaFocus = false
  500. },
  501. //上传
  502. async uploadFileImage(type){
  503. try{
  504. const res = await uploadFileImage()
  505. const data = JSON.parse(res.data).data
  506. switch (type){
  507. case 1:
  508. this.params.businessLicense = data
  509. break;
  510. case 2:
  511. this.params.shopPhoto = data
  512. break;
  513. case 3:
  514. this.params.medicalPracticeLicense = data
  515. break;
  516. }
  517. }catch(error){
  518. console.log('error',error)
  519. }
  520. },
  521. //预览
  522. handleViewImage(url) {
  523. this.isPreviewImage = true
  524. let mentuzArray = []
  525. mentuzArray.push(url)
  526. uni.previewImage({
  527. urls: mentuzArray,
  528. current: 0
  529. })
  530. },
  531. //删除
  532. handleDelete(type){
  533. switch (type){
  534. case 1:
  535. this.$util.modal('', '确定删除营业执照图片吗?', '确定', '取消', true, () => {
  536. this.params.businessLicense = ''
  537. })
  538. break;
  539. case 2:
  540. this.$util.modal('', '确定删除门头照图片吗?', '确定', '取消', true, () => {
  541. this.params.shopPhoto = ''
  542. })
  543. break;
  544. case 3:
  545. this.$util.modal('', '确定删除资质图片吗?', '确定', '取消', true, () => {
  546. this.params.medicalPracticeLicense = ''
  547. })
  548. break;
  549. }
  550. },
  551. handleClick(e) {
  552. //确认
  553. if (e.index == 1) {
  554. uni.navigateBack()
  555. }
  556. this.modal = false
  557. },
  558. handleClick1(){
  559. wxLogin.wxLoginAuthorize()
  560. setTimeout(()=>{
  561. this.$api.switchTabTo('/pages/tabBar/user/user')
  562. },1000)
  563. }
  564. },
  565. onShow() {
  566. if (this.isPreviewImage) {
  567. this.isPreviewImage = false
  568. return
  569. }
  570. }
  571. }
  572. </script>
  573. <style lang="scss">
  574. .register {
  575. width: 100%;
  576. height: 100%;
  577. box-sizing: border-box;
  578. background-size: contain;
  579. .register-tabs{
  580. width: 100%;
  581. height: 40rpx;
  582. box-sizing: border-box;
  583. padding:0 160rpx;
  584. margin: 110rpx 0 40rpx 0;
  585. .tabs-item{
  586. float: left;
  587. line-height: 40rpx;
  588. font-size: $font-size-30;
  589. color: #B2B2B2;
  590. .iconfont{
  591. font-size: 40rpx;
  592. }
  593. &.active{
  594. color: $color-system;
  595. }
  596. &.line{
  597. width: 50rpx;
  598. height: 40rpx;
  599. margin: 0 20rpx;
  600. .iconfont{
  601. font-size: 58rpx;
  602. }
  603. }
  604. }
  605. }
  606. .register-main {
  607. width: 100%;
  608. height: auto;
  609. position: relative;
  610. .register-consult {
  611. width: 110rpx;
  612. height: 68rpx;
  613. background: linear-gradient(223deg, rgba(225, 86, 21, 0.6) 0%, rgba(225, 86, 10, 0.3) 100%);
  614. border-radius: 34rpx 0 0 34rpx;
  615. position: absolute;
  616. right: 0;
  617. bottom: 120rpx;
  618. text-align: left;
  619. line-height: 68rpx;
  620. padding-left: 20rpx;
  621. .icon-kefunv {
  622. font-size: 48rpx;
  623. color: #31313b;
  624. float: left;
  625. }
  626. .text {
  627. font-size: $font-size-24;
  628. display: block;
  629. float: left;
  630. width: 60rpx;
  631. line-height: 30rpx;
  632. color: #ffffff;
  633. margin-top: 6rpx;
  634. }
  635. }
  636. &.detailed {
  637. padding-bottom: 330rpx;
  638. }
  639. .register-row {
  640. width: 100%;
  641. height: auto;
  642. padding: 0 24rpx;
  643. margin-bottom: 30rpx;
  644. box-sizing: border-box;
  645. &.none {
  646. margin-bottom: 0;
  647. }
  648. .register-from {
  649. width: 100%;
  650. height: 80rpx;
  651. background: #ffffff;
  652. position: relative;
  653. border-bottom: 1px solid #e1e1e1;
  654. .label {
  655. text-align: left;
  656. font-size: $font-size-28;
  657. color: #666666;
  658. line-height: 80rpx;
  659. float: left;
  660. text{
  661. color: #F85050;
  662. }
  663. }
  664. .row-input {
  665. width: 440rpx;
  666. padding-left: 24rpx;
  667. font-size: $font-size-28;
  668. color: $text-color;
  669. line-height: 80rpx;
  670. float: left;
  671. height: 80rpx;
  672. box-sizing: border-box;
  673. &.none {
  674. color: #999999;
  675. }
  676. &.code {
  677. width: 330rpx;
  678. }
  679. }
  680. .row-btn {
  681. width: 180rpx;
  682. height: 64rpx;
  683. float: left;
  684. background: $btn-confirm;
  685. padding: 0;
  686. border-radius: 32rpx;
  687. .row-input {
  688. width: 180rpx;
  689. height: 64rpx;
  690. line-height: 64rpx;
  691. padding: 0;
  692. color: #ffffff;
  693. background: $btn-confirm;
  694. text-align: center;
  695. border-radius: 32rpx;
  696. font-size: 24rpx;
  697. &.none {
  698. background: #f7f7f7;
  699. }
  700. }
  701. &.disabled {
  702. background: #f7f7f7;
  703. .row-input {
  704. background: #f7f7f7;
  705. color: #999999;
  706. font-size: 24rpx;
  707. }
  708. }
  709. }
  710. &.btn {
  711. margin-top: 0;
  712. }
  713. }
  714. .icon-xiangyou {
  715. width: 88rpx;
  716. height: 88rpx;
  717. position: absolute;
  718. right: 0;
  719. top: 0;
  720. line-height: 88rpx;
  721. text-align: center;
  722. }
  723. &.text-textarea {
  724. background: #ffffff;
  725. .textarea {
  726. width: 100%;
  727. height: 120rpx;
  728. padding:24rpx 0 ;
  729. font-size: $font-size-28;
  730. color: $text-color;
  731. z-index: 1;
  732. border-bottom: 1px solid #e1e1e1;
  733. }
  734. .textarea.hide {
  735. opacity: 0;
  736. }
  737. .textarea.show {
  738. color: #999999;
  739. }
  740. }
  741. }
  742. .register-picture {
  743. width: 100%;
  744. height: auto;
  745. float: left;
  746. .label {
  747. float: left;
  748. font-size: $font-size-28;
  749. color: $text-color;
  750. line-height: 80rpx;
  751. width: 100%;
  752. text-align: left;
  753. text{
  754. color: #F85050;
  755. }
  756. }
  757. .upload-picture {
  758. float: left;
  759. height: auto;
  760. .upload-none {
  761. width: 210rpx;
  762. height: 210rpx;
  763. border: 1px dashed #B2B2B2;
  764. border-radius: 10rpx;
  765. display: flex;
  766. justify-content: center;
  767. flex-direction: column;
  768. align-items: center;
  769. font-size: $font-size-28;
  770. color: #B2B2B2;
  771. line-height: 50rpx;
  772. .iconfont {
  773. font-size: $font-size-28;
  774. }
  775. }
  776. .upload-image {
  777. width: 210rpx;
  778. height: 210rpx;
  779. border-radius: 10rpx;
  780. margin: 0 20rpx;
  781. position: relative;
  782. image {
  783. width: 210rpx;
  784. height: 210rpx;
  785. border-radius: 10rpx;
  786. }
  787. .upload-del {
  788. width: 40rpx;
  789. height: 40rpx;
  790. position: absolute;
  791. top: -20rpx;
  792. right: -20rpx;
  793. line-height: 40rpx;
  794. text-align: center;
  795. .iconfont {
  796. font-size: $font-size-40;
  797. color: #F85050;
  798. }
  799. }
  800. }
  801. }
  802. }
  803. .register-input {
  804. width: 654rpx;
  805. height: 40rpx;
  806. padding: 24rpx;
  807. margin: 0 auto;
  808. margin-bottom: 60rpx;
  809. background: #f7f7f7;
  810. border-radius: 14rpx;
  811. .input {
  812. width: 100%;
  813. height: 100%;
  814. background: #f7f7f7;
  815. font-size: $font-size-28;
  816. line-height: 40rpx;
  817. color: #333333;
  818. border-radius: 14rpx;
  819. }
  820. }
  821. .register-btn {
  822. width: 100%;
  823. height: 88rpx;
  824. border-radius: 44rpx;
  825. font-size: $font-size-28;
  826. line-height: 88rpx;
  827. color: #ffffff;
  828. margin: 40rpx auto;
  829. text-align: center;
  830. background: $btn-confirm;
  831. &.none {
  832. border: 1px solid $color-system;
  833. background: #ffffff;
  834. color: $color-system;
  835. margin-top: 0;
  836. }
  837. }
  838. }
  839. }
  840. .tui-alert-box {
  841. width: 100%;
  842. height: 100%;
  843. display: flex;
  844. align-items: center;
  845. justify-content: center;
  846. flex-direction: column;
  847. position: fixed;
  848. left: 0;
  849. top: 0;
  850. opacity: 1;
  851. background: rgba(51, 51, 51, 0.5);
  852. z-index: 99999;
  853. .tui-alert-content {
  854. width: 580rpx;
  855. height: 324rpx;
  856. border-radius: 16rpx;
  857. background-color: #ffffff;
  858. position: absolute;
  859. top: 0;
  860. bottom: 0;
  861. right: 0;
  862. left: 0;
  863. margin: auto;
  864. .tui-alert-main {
  865. width: 100%;
  866. height: 234rpx;
  867. box-sizing: border-box;
  868. padding: 60rpx 30rpx;
  869. line-height: 60rpx;
  870. font-size: $font-size-26;
  871. color: #666666;
  872. text-align: justify;
  873. .red {
  874. color: #F3B574;
  875. }
  876. }
  877. .tui-alert-btn {
  878. width: 100%;
  879. height: 90rpx;
  880. box-sizing: border-box;
  881. line-height: 90rpx;
  882. background: $btn-confirm;
  883. color: #ffffff;
  884. text-align: center;
  885. font-size: $font-size-28;
  886. border-radius: 0 0 16rpx 16rpx;
  887. }
  888. }
  889. }
  890. .tui-modal-custom {
  891. text-align: center;
  892. }
  893. .tui-modal-custom-text {
  894. font-size: 30rpx;
  895. color: #333;
  896. padding: 30rpx 0 50rpx;
  897. }
  898. .tui-button-custom{
  899. width: 420rpx;
  900. height: 84rpx;
  901. line-height: 84rpx;
  902. text-align: center;
  903. color: #FFFFFF;
  904. background: $btn-confirm;
  905. font-size: $font-size-28;
  906. margin: 15rpx auto;
  907. border-radius: 42rpx;
  908. }
  909. .tui-prompt-title {
  910. padding-bottom: 20rpx;
  911. font-size: 34rpx;
  912. }
  913. </style>