apply-supplier.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032
  1. <template>
  2. <view class="container register" :style="{paddingTop:CustomBar+'px'}">
  3. <cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom>
  4. <view class="register-main clearfix" v-if="auditStatus == 92">
  5. <view class="register-row none clearfix">
  6. <view class="error-title">审核未通过原因:</view>
  7. <view class="error-main">
  8. <text class="error-item" v-for="(item, index) in errorList" :key="index">
  9. {{ item }}
  10. </text>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="register-main detailed clearfix">
  15. <view class="register-title">基本信息</view>
  16. <view class="register-row clearfix">
  17. <view class="register-from">
  18. <view class="label">公司名称:</view>
  19. <input class="row-input" type="text" name="input" v-model="shopInfo.name" placeholder="请输入您的公司名称" maxlength="30"/>
  20. </view>
  21. </view>
  22. <view class="register-row clearfix">
  23. <view class="register-from">
  24. <view class="label">联系人:</view>
  25. <input class="row-input" type="text" name="input" v-model="shopInfo.linkMan" placeholder="请输入联系人姓名" maxlength="6"/>
  26. </view>
  27. </view>
  28. <view class="register-row none clearfix">
  29. <view class="register-from">
  30. <view class="label">邮箱:</view>
  31. <input class="row-input" type="text" name="input" v-model="shopInfo.email" placeholder="请输入邮箱地址" maxlength="30"/>
  32. </view>
  33. </view>
  34. <view class="register-row text clearfix">
  35. <text>邮箱可用作登录账号,请使用公司邮箱或法人邮箱</text>
  36. </view>
  37. <view class="register-title">详细信息</view>
  38. <view class="register-row clearfix">
  39. <view class="register-from">
  40. <view class="label">公司简称:</view>
  41. <input class="row-input" type="text" v-model="shopInfo.sname" placeholder="请输入您的公司简称" maxlength="10"/>
  42. </view>
  43. </view>
  44. <view class="register-row clearfix">
  45. <view class="register-from" @click="showMulLinkageThreePicker">
  46. <view class="label">联系地址:</view>
  47. <text class="row-input" :class="addressText === '请选择公司所在地区' ? 'none' : ''">
  48. {{ addressText }}
  49. </text>
  50. <text class="iconfont icon-xiayibu"></text>
  51. </view>
  52. </view>
  53. <view class="register-row text-textarea clearfix">
  54. <view class="textarea show" v-if="isShowInput" @click="showTextareaFocus">{{shopInfo.address ? shopInfo.address :'详细地址:如道路、门牌号、小区等'}}</view>
  55. <textarea v-else
  56. class="textarea"
  57. type="text"
  58. v-model="shopInfo.address"
  59. placeholder="详细地址:如道路、门牌号、小区等"
  60. placeholder-class="placeholder"
  61. maxlength="40"
  62. @input="onTextareaInput"
  63. :focus="textareaFocus"
  64. @blur="hideTextareaFocus"
  65. :class="isShowInput ? '':''"
  66. />
  67. </view>
  68. <view class="register-row clearfix">
  69. <view class="register-from">
  70. <view class="label">营业执照编号:</view>
  71. <input class="row-input" type="text" v-model="shopInfo.socialCreditCode" placeholder="请填写社会统一信用代码" maxlength="18"/>
  72. </view>
  73. </view>
  74. <view class="register-row clearfix">
  75. <view class="register-picture">
  76. <view class="label">营业执照:</view>
  77. <view class="upload-picture">
  78. <view class="upload-none" v-if="shopInfo.businessLicenseImage === ''" @click="chooseBusinessImage"><text class="iconfont icon-jiahao"></text></view>
  79. <view class="upload-image" v-else>
  80. <image :src="shopInfo.businessLicenseImage" mode="" @click="viewBusinessImage"></image>
  81. <view class="upload-del" @click="delBusinessImage">
  82. <text class='iconfont icon-shanchu1'></text>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="register-row clearfix">
  89. <view class="register-from picker">
  90. <view class="label">公司类型:</view>
  91. <view class="row-input picker" @click="bindPickerChange">{{ organizationTypeText }}</view>
  92. <text class="iconfont icon-xiayibu"></text>
  93. </view>
  94. </view>
  95. <view class="register-row none clearfix" v-if="shopInfo.firstShopType == 1">
  96. <view class="register-from radio">
  97. <view class="label">医疗类型:</view>
  98. </view>
  99. </view>
  100. <view class="register-row clearfix" v-if="shopInfo.firstShopType == 1">
  101. <view class="register-from radio">
  102. <radio-group @change="radioChange">
  103. <label class="row-input" v-for="(item, index) in supplierList" :key="item.value">
  104. <radio class="row-radio" :value="item.value" :checked="index === current" color="#E15616"/>
  105. <view class="row-text">{{item.name}}</view>
  106. </label>
  107. </radio-group>
  108. </view>
  109. </view>
  110. <view class="register-row clearfix">
  111. <view class="register-from group">
  112. <view class="label">主营内容:</view>
  113. <view class="content-class">
  114. <checkbox-group @change="chooseMaleLike" >
  115. <label class="item" v-for="(item, index) in supplierMedicaCampList" :key="index" :class="{on: item.checked}">
  116. <checkbox :value="item.value"></checkbox>
  117. <text class="item-text">{{item.name}}</text>
  118. </label>
  119. </checkbox-group>
  120. </view>
  121. </view>
  122. <view class="register-from group btn">
  123. <view class="content-class btn">
  124. <view class="item" @click="showAustomItem">
  125. <text class="item-text">其他</text>
  126. </view>
  127. </view>
  128. </view>
  129. <view class="register-from group btn" v-show="isShowAustomItem">
  130. <view class="content-class btn">
  131. <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义项目" @blur="onBlurInput" maxlength="5"/>
  132. <button type="default"
  133. class="confirm-btn"
  134. :class="[isDisabled === true ? 'disabled' : 'none']"
  135. :disabled="isDisabled"
  136. @click.stop="addCustomItem"
  137. >确认添加</button>
  138. </view>
  139. </view>
  140. </view>
  141. <view class="register-main clearfix">
  142. <view class="register-agree">
  143. <view class="agree-text" @tap.stop="agreeCheck()">
  144. <button class="checkbox iconfont" :class="[isCheck?'icon-gouxuan':'icon-weigouxuan']"></button>
  145. 我已阅读并同意
  146. <text @click.stop="this.$api.navigateTo('/pages/service/supplieragree')">《供应商协议》</text>
  147. <text @click.stop="this.$api.navigateTo('/pages/service/useragree')">《用户协议》</text>及
  148. <text @click.stop="this.$api.navigateTo('/pages/service/privacyagree')">《隐私权政策》</text>
  149. </view>
  150. </view>
  151. <view class="register-row ">
  152. <view class="register-btn sub" @click.stop="SupplierRegisteredThree">提交审核</view>
  153. </view>
  154. </view>
  155. </view>
  156. <mpvue-city-picker :themeColor="themeColor"
  157. ref="mpvueCityPicker"
  158. :pickerValueDefault="cityPickerValueDefault"
  159. @onCancel="onCancel"
  160. @onConfirm="onConfirm">
  161. </mpvue-city-picker>
  162. </view>
  163. </template>
  164. <script>
  165. import { mapMutations } from 'vuex';
  166. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  167. import { supplierList,supplierMedicaCampNullList } from '@/common/json/data.json.js' //本地数据
  168. import { uploadFileImage } from "@/api/utils.js"
  169. export default{
  170. components:{
  171. mpvueCityPicker
  172. },
  173. data() {
  174. return{
  175. nvabarData: {//顶部自定义导航
  176. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  177. showSearch: 0,
  178. title: '修改申请资料', // 导航栏 中间的标题
  179. haveBack:true,
  180. textLeft:this.$store.state.isIphone
  181. },
  182. isIphoneX:this.$store.state.isIphoneX,
  183. CustomBar:this.CustomBar,// 顶部导航栏高度
  184. errorList:[],
  185. tabCurrentIndex:3,
  186. auditStatus:'', //审核状态
  187. isPreviewImage:false, //预览图片开关
  188. shopInfo:{
  189. userId:'', //用户ID
  190. shopID:'', //供应商ID
  191. linkMan:'',
  192. name:'',
  193. email:"",
  194. provinceID :'',
  195. cityID : '',
  196. townID : '',
  197. address:'',
  198. sname:'', //公司简称
  199. socialCreditCode:'', //统一社会信用代码
  200. businessLicenseImage:'', //营业执照图片
  201. provinceID :'',
  202. cityID : '',
  203. townID : '',
  204. address:'',
  205. firstShopType:0,
  206. secondShopType: '',
  207. mainpro:'',
  208. isAgreed:0,
  209. whichStep:3
  210. },
  211. addressText:'请选择公司所在地区',
  212. isDisabled:true,
  213. isShowInput:true,
  214. textareaFocus:false,
  215. organizationTypeText:'请选择公司类型',
  216. supplierList:supplierList,//医疗类型
  217. medicaCampList:supplierMedicaCampNullList,//主营内容
  218. supplierMedicaCampList:[],
  219. typtIndex:0,
  220. organizationType:0,
  221. current:0,
  222. isShowAustomItem:false, //是否显示其他添加
  223. customItemValue:'', //自定义项目
  224. isMainproCheck:false,
  225. isSupplierAlert:true,
  226. isCheck:false
  227. }
  228. },
  229. onLoad() {
  230. this.GetSupplierInfo()
  231. },
  232. methods:{
  233. hanldNavigateBack(){
  234. this.$util.modal('','资料尚未提交审核,确定放弃升级吗?','确定','取消',true,() =>{
  235. uni.navigateBack({
  236. delta: 1
  237. });
  238. })
  239. },
  240. GetSupplierInfo(){
  241. this.$api.getStorage().then((resolve) =>{
  242. this.shopInfo.userId = resolve.userID
  243. this.ShopService.shopInfo({userId:this.shopInfo.userId}).then(response =>{
  244. let responseData = response.data
  245. let supplierShop = responseData.shop
  246. let supplierUser = responseData.user
  247. this.auditStatus = supplierShop.status
  248. if(supplierUser.auditNoteList!=null){
  249. this.errorList = supplierUser.auditNoteList
  250. }
  251. this.shopInfo.shopID = supplierUser.shopID
  252. this.shopInfo.name = this.$reg.checkData(supplierShop.name)
  253. this.shopInfo.linkMan = this.$reg.checkData(supplierShop.linkMan)
  254. this.shopInfo.email = this.$reg.checkData(supplierUser.email)
  255. this.shopInfo.sname = this.$reg.checkData(supplierShop.sname)
  256. this.addressText = supplierShop.provincialAddress ? supplierShop.provincialAddress : '请选择公司所在地区'
  257. this.shopInfo.address = supplierShop.address
  258. this.shopInfo.provinceID = supplierShop.provinceID
  259. this.shopInfo.cityID = supplierShop.cityID
  260. this.shopInfo.townID = supplierShop.townID
  261. this.shopInfo.socialCreditCode = this.$reg.checkData(supplierShop.socialCreditCode)
  262. this.shopInfo.businessLicenseImage = this.$reg.checkData(supplierShop.businessLicenseImage)
  263. this.shopInfo.firstShopType = supplierShop.firstShopType
  264. this.shopInfo.secondShopType = this.$reg.checkData(supplierShop.secondShopType)
  265. //机构类型&&主营项目
  266. switch(this.shopInfo.firstShopType){
  267. case '1':
  268. this.organizationTypeText = '医疗'
  269. this.shopInfo.firstShopType = 1
  270. break;
  271. case '2':
  272. this.organizationTypeText = '非医疗'
  273. this.shopInfo.firstShopType = 2
  274. break;
  275. case null:
  276. this.organizationTypeText = '请选择公司类型'
  277. this.shopInfo.firstShopType = 0
  278. break;
  279. }
  280. if(supplierShop.mainpro){
  281. this.supplierMedicaCampList = this.setNewMainpro(supplierShop.mainpro)
  282. console.log(this.supplierMedicaCampList)
  283. this.mainpro = supplierShop.mainpro;
  284. }else{
  285. this.supplierMedicaCampList = this.medicaCampList
  286. console.log(this.supplierMedicaCampList)
  287. }
  288. }).catch(error =>{
  289. this.$util.msg(error.msg,2000)
  290. })
  291. })
  292. },
  293. SupplierRegisteredThree(){//提交审核
  294. if(!this.isMainproCheck){
  295. let mainproList = []
  296. this.supplierMedicaCampList.forEach(item =>{
  297. mainproList.push(item.name)
  298. })
  299. this.shopInfo.mainpro = mainproList.join('/')
  300. }
  301. if( this.shopInfo.name == ''){
  302. this.$util.msg('请输入您的公司名称',2000);
  303. return
  304. }
  305. if( this.shopInfo.linkMan == ''){
  306. this.$util.msg('请输入联系人名称',2000);
  307. return
  308. }
  309. if( this.shopInfo.email == ''){
  310. this.$util.msg('请输入邮箱地址',2000);
  311. return
  312. }
  313. if(!this.$reg.isEmail(this.shopInfo.email)){
  314. this.$util.msg('请输入正确的邮箱地址',2000);
  315. return
  316. }
  317. if( this.shopInfo.townID == ''){
  318. this.$util.msg('请选择公司地址',2000);
  319. return
  320. }
  321. if( this.shopInfo.address == ''){
  322. this.$util.msg('请填写公司详细地址',2000);
  323. return
  324. }
  325. if( this.shopInfo.socialCreditCode == ''){
  326. this.$util.msg('请填写统一社会信用代码',2000);
  327. return
  328. }
  329. if( !this.shopInfo.businessLicenseImage){
  330. this.$util.msg('请上传您的营业执照',2000);
  331. return
  332. }
  333. if(this.shopInfo.firstShopType == 0){
  334. this.$util.msg('请选择公司类型',2000);
  335. return
  336. }
  337. if(this.shopInfo.mainpro == ''){
  338. this.$util.msg('请选择主营内容',2000);
  339. return
  340. }
  341. if(this.shopInfo.isAgreed == 0){
  342. this.$util.msg('请勾选同意协议',2000);
  343. return
  344. }
  345. this.UserService.appSupplierRegister(this.shopInfo).then(response =>{
  346. this.$util.modal('','您的资料已提交成功,系统将在1-2个工作日内进行审核~','知道了','',false,() =>{
  347. this.$api.switchTabTo('/pages/tabBar/home/index')
  348. })
  349. }).catch(error =>{
  350. this.$util.msg(error.msg,2000);
  351. })
  352. },
  353. chooseBusinessImage() {//营业执照图片上传
  354. uploadFileImage().then(res =>{
  355. this.shopInfo.businessLicenseImage = JSON.parse(res.data).data
  356. })
  357. },
  358. viewBusinessImage(e) {
  359. this.myPreviewImageFn(this.businessLicenseImage)
  360. },
  361. myPreviewImageFn(url){
  362. this.isPreviewImage = true
  363. let mentuzArray = []
  364. mentuzArray.push(url)
  365. uni.previewImage({
  366. urls: mentuzArray,
  367. current: 0
  368. });
  369. },
  370. delBusinessImage(){
  371. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  372. this.shopInfo.businessLicenseImage = ''
  373. })
  374. },
  375. radioChange(e) {
  376. this.shopInfo.secondShopType = e.target.value;
  377. console.log(this.shopInfo.secondShopType)
  378. },
  379. chooseMaleLike(e){
  380. this.isMainproCheck = true
  381. this.shopInfo.mainpro = this.checkLikes(e,this.supplierMedicaCampList)
  382. },
  383. bindPickerChange(e) {
  384. let self = this
  385. uni.showActionSheet({
  386. title:'标题',
  387. itemList: ['医疗', '非医疗'],
  388. success: (e) => {
  389. self.shopInfo.firstShopType = e.tapIndex+1
  390. console.log(self.shopInfo.firstShopType)
  391. switch(e.tapIndex){
  392. case 0:
  393. this.organizationTypeText = '医疗'
  394. break;
  395. case 1:
  396. this.organizationTypeText = '非医疗'
  397. break;
  398. }
  399. }
  400. })
  401. },
  402. showMulLinkageThreePicker() {// 三级联动选择
  403. this.isShowInput = true
  404. this.$refs.mpvueCityPicker.show()
  405. },
  406. showAustomItem() {
  407. this.isShowAustomItem = !this.isShowAustomItem
  408. },
  409. showTextareaFocus(){//文本框获取焦点
  410. this.isShowInput = false
  411. this.textareaFocus = true
  412. },
  413. hideTextareaFocus(){//文本框失去焦点
  414. this.isShowInput = true
  415. this.textareaFocus = false
  416. },
  417. onConfirm(e) {
  418. this.addressText = e.name;
  419. this.shopInfo.townID = e.townCode;
  420. this.shopInfo.cityID = e.cityCode;
  421. this.shopInfo.provinceID = e.provinceCode;
  422. console.log(this.shopInfo)
  423. },
  424. onTextareaInput(e){
  425. this.shopInfo.address = e.detail.value;
  426. },
  427. onBlurInput(e){//
  428. if(e.detail.value ===''){
  429. this.isDisabled = true
  430. }else{
  431. this.isDisabled = false
  432. }
  433. },
  434. agreeCheck() {
  435. this.isCheck = !this.isCheck
  436. if(this.isCheck){
  437. this.shopInfo.isAgreed = 1
  438. }else{
  439. this.shopInfo.isAgreed = 0
  440. }
  441. },
  442. checkLikes(e,list){
  443. let values = e.detail.value
  444. let arr = []
  445. list.forEach(item => {
  446. if(values.indexOf(item.value) >= 0){
  447. this.$set(item,'checked',true)
  448. arr.push(item.name)
  449. }else{
  450. this.$set(item,'checked',false)
  451. }
  452. })
  453. return arr.join('/')
  454. },
  455. setNewMainpro(arr){//回显处理主营内容
  456. let _ARRAY = []
  457. arr.split('/').forEach((item,index) =>{
  458. let _OBJ = {value:(index+1).toString(),name:item,checked:true}
  459. _ARRAY.push(_OBJ)
  460. })
  461. return _ARRAY
  462. },
  463. addCustomItem(){
  464. if(this.customItemValue==''){
  465. this.$util.msg('请输入自定义主营内容',2000);
  466. }else{
  467. if(this.isOrganizationType == 1){
  468. let item = {value:`${this.supplierMedicaCampList.length+1}`,name:this.customItemValue,checked:true}
  469. if(this.checkedArray(this.customItemValue,this.mentuzCampList)){
  470. this.$util.msg('主营内容已存在!',2000)
  471. }else{
  472. this.mentuzCampList.push(item)
  473. }
  474. }else{
  475. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
  476. if(this.checkedArray(this.customItemValue,this.medicaCampList)){
  477. this.$util.msg('主营内容已存在!',2000)
  478. }else{
  479. this.medicaCampList.push(item)
  480. }
  481. }
  482. }
  483. },
  484. checkedArray(content,arr){//判断主营内容是否已存在
  485. for(var i in arr){
  486. if(arr[i].name == content){
  487. return true;
  488. }
  489. }
  490. return false;
  491. },
  492. },
  493. onShow() {
  494. if(this.isPreviewImage){
  495. this.isPreviewImage = false
  496. return
  497. }
  498. }
  499. }
  500. </script>
  501. <style lang="scss">
  502. .placeholder{color:#b2b2b2 ;}
  503. .register{
  504. width: 100%;
  505. height: 100%;
  506. box-sizing: border-box;
  507. .register-main{
  508. width: 100%;
  509. height: auto;
  510. position: relative;
  511. .register-title{
  512. width: 100%;
  513. height: 80rpx;
  514. line-height: 80rpx;
  515. background-color: #F7F7F7;
  516. font-size: $font-size-34;
  517. color: $text-color;
  518. text-align: left;
  519. font-weight: bold;
  520. box-sizing: border-box;
  521. padding: 0 24rpx;
  522. margin-bottom: 20rpx;
  523. }
  524. .register-consult{
  525. width: 110rpx;
  526. height: 68rpx;
  527. background:linear-gradient(223deg,rgba(225,86,21,0.6) 0%,rgba(225,86,10,0.3) 100%);
  528. border-radius: 34rpx 0 0 34rpx;
  529. position: absolute;
  530. right: 0;
  531. bottom: 120rpx;
  532. text-align: left;
  533. line-height: 68rpx;
  534. padding-left: 20rpx;
  535. .icon-kefunv{
  536. font-size: 48rpx;
  537. color: #31313B;
  538. float: left;
  539. }
  540. .text{
  541. font-size: $font-size-24;
  542. display: block;
  543. float: left;
  544. width: 60rpx;
  545. line-height: 30rpx;
  546. color: #FFFFFF;
  547. margin-top: 6rpx;
  548. }
  549. }
  550. .register-agree{
  551. display: flex;
  552. flex-direction: column;
  553. align-items: center;
  554. margin: 100rpx 0 20rpx 0;
  555. .agree-text{
  556. .checkbox{
  557. float: left;
  558. margin: 4rpx 6rpx 0 0;
  559. color: #999999;
  560. font-size: $font-size-34;
  561. &.icon-gouxuan{
  562. color: $color-system;
  563. }
  564. }
  565. font-size: $font-size-22;
  566. line-height: 44rpx;
  567. color: #999999;
  568. text{
  569. color:#1890f9;
  570. }
  571. }
  572. }
  573. .register-logo{
  574. width: 100%;
  575. display: flex;
  576. flex-direction: column;
  577. align-items: center;
  578. height: 189rpx;
  579. padding:60rpx 0 40rpx 0;
  580. .logo{
  581. width:467rpx;
  582. height: 189rpx;
  583. display: block;
  584. }
  585. }
  586. &.detailed{
  587. padding-bottom: 330rpx;
  588. }
  589. .register-row{
  590. width: 100%;
  591. height: auto;
  592. padding: 0 24rpx;
  593. margin-bottom: 20rpx;
  594. box-sizing: border-box;
  595. &.text{
  596. font-size: $font-size-20;
  597. line-height: 40rpx;
  598. color: #fea785;
  599. }
  600. &.none{
  601. margin-bottom: 0;
  602. }
  603. .error-title{
  604. line-height: 40rpx;
  605. font-size: $font-size-28;
  606. color: $text-color;
  607. text-align: left;
  608. }
  609. .error-main{
  610. padding: 10rpx 0;
  611. .error-item{
  612. padding:0 20rpx;
  613. margin:10rpx;
  614. background: #F53636;
  615. height: 52rpx;
  616. line-height: 52rpx;
  617. border-radius: 26rpx;
  618. font-size: $font-size-26;
  619. color: #FFFFFF;
  620. text-align: center;
  621. display: inline-block;
  622. }
  623. }
  624. &.login{
  625. display: flex;
  626. }
  627. .register-text{
  628. line-height: 44rpx;
  629. margin-top: 100rpx;
  630. font-size: $font-size-24;
  631. color: #999999;
  632. text-align: justify;
  633. .txt{
  634. margin-right: 15rpx;
  635. }
  636. }
  637. .register-tip{
  638. line-height: 64rpx;
  639. font-size: $font-size-24;
  640. color: #CECECE;
  641. text-align: left;
  642. }
  643. .register-from{
  644. width: 100%;
  645. height: 80rpx;
  646. background: #FFFFFF;
  647. position: relative;
  648. border-bottom: 1px solid #e1e1e1;
  649. .label{
  650. text-align: left;
  651. font-size: $font-size-28;
  652. color:#666666;
  653. line-height: 80rpx;
  654. float: left;
  655. }
  656. .row-input{
  657. width: 440rpx;
  658. padding-left:10rpx;
  659. font-size: $font-size-28;
  660. color: $text-color;
  661. line-height: 80rpx;
  662. float: left;
  663. height: 80rpx;
  664. &.none{
  665. color: #999999;
  666. }
  667. &.picker{
  668. text-align: left;
  669. color: #333333;
  670. }
  671. &.keshi{
  672. width: 550rpx;
  673. }
  674. &.code{
  675. width: 350rpx;
  676. }
  677. &.imgCode{
  678. width: 390rpx;
  679. }
  680. }
  681. .vscodeimg{
  682. width: 160rpx;
  683. height: 80;
  684. float: left;
  685. display: flex;
  686. flex-direction: column;
  687. align-items: center;
  688. border-radius: 6rpx;
  689. margin: 0 10rpx;
  690. image{
  691. width: 150rpx;
  692. height: 68rpx;
  693. border-radius: 6rpx;
  694. }
  695. }
  696. .vscod-refresh{
  697. width: 120rpx;
  698. float: right;
  699. line-height: 80rpx;
  700. .ref-text{
  701. float: left;
  702. font-size: 26rpx;
  703. color: #999999;
  704. }
  705. .icon-shuaxin{
  706. float: left;
  707. font-size: 36rpx;
  708. color: #999999;
  709. margin-right: 10rpx;
  710. }
  711. }
  712. &.imgcode{
  713. width: 410rpx;
  714. float: left;
  715. margin-right: 20rpx;
  716. .row-input{
  717. width: 230rpx;
  718. }
  719. }
  720. .row-btn{
  721. width: 180rpx;
  722. height:64rpx;
  723. float: left;
  724. background: $btn-confirm;
  725. padding: 0;
  726. border-radius: 32rpx;
  727. .row-input{
  728. width: 180rpx;
  729. height: 64rpx;
  730. line-height: 64rpx;
  731. padding: 0;
  732. color: #FFFFFF;
  733. background: $btn-confirm;
  734. text-align: center;
  735. border-radius: 32rpx;
  736. font-size: $font-size-24;
  737. &.other{
  738. width: 180rpx;
  739. background: #F7F7F7;
  740. margin-right: 20rpx;
  741. }
  742. &.none{
  743. background: #F7F7F7;
  744. }
  745. }
  746. &.disabled{
  747. background: #F7F7F7;
  748. .row-input{
  749. background: #F7F7F7;
  750. color: #999999;
  751. }
  752. }
  753. }
  754. &.picker{
  755. width: 100%;
  756. height: 80rpx;
  757. line-height: 80rpx;
  758. .label{
  759. line-height: 80rpx;
  760. }
  761. .row-input{
  762. width: 470rpx;
  763. height: 80rpx;
  764. line-height: 80rpx;
  765. padding-left: 30rpx;
  766. }
  767. }
  768. &.radio{
  769. width: 100%;
  770. border-bottom: none;
  771. .row-input{
  772. width: 25%;
  773. height: 80rpx;
  774. line-height: 80rpx;
  775. padding-left: 0;
  776. }
  777. .row-radio{
  778. float: left;
  779. transform: scale(0.8);
  780. }
  781. .row-text{
  782. text-align: center;
  783. float: left;
  784. font-size: $font-size-24;
  785. }
  786. }
  787. &.group{
  788. width: 100%;
  789. height: auto;
  790. background: #FFFFFF;
  791. margin-top: 30rpx;
  792. border-bottom: none;
  793. .label{
  794. line-height: 76rpx;
  795. }
  796. .row-input{
  797. width: 100%;
  798. height: 80rpx;
  799. line-height: 80rpx;
  800. padding-left: 0;
  801. }
  802. .row-radio{
  803. float: left;
  804. }
  805. .row-text{
  806. width: 100rpx;
  807. text-align: center;
  808. float: left;
  809. }
  810. }
  811. &.btn{
  812. margin-top: 0;
  813. }
  814. .content-class {
  815. margin: 20rpx auto;
  816. display: flex;
  817. flex-flow: row wrap;
  818. justify-content: space-between;
  819. align-items: center;
  820. &.btn{
  821. margin: 0 auto;
  822. margin-left: 116rpx;
  823. }
  824. .row-input{
  825. display: flex;
  826. width: 330rpx;
  827. box-sizing: border-box;
  828. height: 64rpx;
  829. padding:0 24rpx;
  830. text-align: left;
  831. border-radius: 32rpx;
  832. font-size: $font-size-28;
  833. color: $text-color;
  834. border: 1px solid #B2B2B2;
  835. line-height: 64rpx;
  836. }
  837. .confirm-btn{
  838. width: 200rpx;
  839. height: 64rpx;
  840. border-radius: 32rpx;
  841. line-height: 64rpx;
  842. text-align: center;
  843. &.other{
  844. width: 213rpx;
  845. }
  846. &.none{
  847. color: $color-system;
  848. background: #ffe6dc;
  849. }
  850. &.disabled{
  851. color: #999999;
  852. }
  853. }
  854. .item {
  855. width: 155rpx;
  856. height: 60rpx;
  857. font-size:$font-size-28;
  858. line-height: 60rpx;
  859. border-radius:30rpx;
  860. margin: 10rpx;
  861. text-align: center;
  862. box-sizing: border-box;
  863. border: 1rpx solid #EFEFEF;
  864. float: left;
  865. checkbox {
  866. display: none;
  867. }
  868. }
  869. .on {
  870. border-color: $color-system;
  871. color:$color-system;
  872. }
  873. }
  874. }
  875. .row-login{
  876. flex: 1;
  877. font-size: $font-size-28;
  878. color: $text-color;
  879. text-align: left;
  880. }
  881. .row-logincode{
  882. flex: 1;
  883. font-size: $font-size-28;
  884. color: $text-color;
  885. text-align: right;
  886. }
  887. .icon-xiayibu{
  888. width: 80rpx;
  889. height: 80rpx;
  890. position: absolute;
  891. right: 0;
  892. top: 0;
  893. line-height: 80rpx;
  894. text-align: center;
  895. }
  896. &.text-textarea{
  897. background: #FFFFFF;
  898. .textarea{
  899. width: 100%;
  900. height: 180rpx;
  901. padding: 24rpx;
  902. box-sizing: border-box;
  903. font-size: $font-size-28;
  904. color: $text-color;
  905. z-index: 1;
  906. border-bottom: 1px solid #e1e1e1;
  907. }
  908. .textarea.hide{
  909. opacity: 0;
  910. }
  911. .textarea.show{
  912. color: #999999;
  913. }
  914. }
  915. }
  916. .register-picture{
  917. height: 180rpx;
  918. margin: 30rpx 0;
  919. float: left;
  920. &.zz{
  921. width: 100%;
  922. }
  923. .label{
  924. float: left;
  925. font-size: $font-size-28;
  926. color: #666666;
  927. line-height: 180rpx;
  928. width: 150rpx;
  929. text-align: left;
  930. }
  931. .upload-picture{
  932. float: left;
  933. height: 180rpx;
  934. .upload-none{
  935. width: 180rpx;
  936. height: 180rpx;
  937. text-align: center;
  938. line-height: 180rpx;
  939. color: #999999;
  940. border: 1px solid #999999;
  941. border-radius: 10rpx;
  942. margin: 0 20rpx;
  943. .iconfont{
  944. font-size: 60rpx;
  945. }
  946. }
  947. .upload-image{
  948. width: 180rpx;
  949. height: 180rpx;
  950. border-radius: 6rpx;
  951. margin: 0 20rpx;
  952. position: relative;
  953. image{
  954. width: 180rpx;
  955. height: 180rpx;
  956. border-radius: 6rpx;
  957. }
  958. .upload-del{
  959. width: 40rpx;
  960. height: 40rpx;
  961. position: absolute;
  962. top: -20rpx;
  963. right: -20rpx;
  964. line-height: 40rpx;
  965. text-align: center;
  966. .iconfont{
  967. font-size: $font-size-32;
  968. color: #999999;
  969. }
  970. }
  971. }
  972. }
  973. }
  974. .register-input{
  975. width: 654rpx;
  976. height: 40rpx;
  977. padding: 24rpx;
  978. margin: 0 auto;
  979. margin-bottom: 60rpx;
  980. background: #F7F7F7;
  981. border-radius: 14rpx;
  982. .input{
  983. width: 100%;
  984. height: 100%;
  985. background: #F7F7F7;
  986. font-size: $font-size-28;
  987. line-height: 40rpx;
  988. color: #333333;
  989. border-radius: 14rpx;
  990. }
  991. }
  992. .register-fiexd{
  993. width: 100%;
  994. height: auto;
  995. position: fixed;
  996. bottom: 0;
  997. left: 0;
  998. z-index: 999;
  999. background: #FFFFFF;
  1000. }
  1001. .register-btn{
  1002. width: 600rpx;
  1003. height: 88rpx;
  1004. border-radius: 44rpx;
  1005. font-size: $font-size-28;
  1006. line-height: 88rpx;
  1007. color: #FFFFFF;
  1008. margin: 0 auto;
  1009. text-align: center;
  1010. background: $btn-confirm;
  1011. margin-top: 96rpx;
  1012. &.prev{
  1013. background:#ffe6dc;
  1014. color: $color-system;
  1015. margin-top: 20rpx;
  1016. }
  1017. &.none{
  1018. border: 1px solid $color-system;
  1019. background: #FFFFFF;
  1020. color:$color-system;
  1021. margin-top: 0;
  1022. }
  1023. &.sub{
  1024. margin-top: 0;
  1025. }
  1026. }
  1027. }
  1028. }
  1029. </style>