apply-supplier.vue 27 KB

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