editApplyFamily.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  1. <template>
  2. <view class="container edit_wrap">
  3. <form :style="'pointer-events:' + (waitAudit?'none':'auto')">
  4. <view class="form_group">
  5. <text class="red">*</text>
  6. <text class="sex">姓名:</text>
  7. <input disabled="true" placeholder-class="placeholder_style" type="text" :value="name" class="placeholder_style">
  8. </input>
  9. </view>
  10. <view class="form_group">
  11. <text class="red">*</text>
  12. <text class="sex">手机号:</text>
  13. <input name="data_name" @input="telFun" placeholder="请输入11位手机号码" placeholder-class="placeholder_style" type="text" :value="tel" class="placeholder_style">
  14. </input>
  15. </view>
  16. <view class="form_group">
  17. <text class="red">*</text>
  18. <text class="sex">房间号:</text>
  19. <input disabled="true" name="data_name" placeholder-class="placeholder_style" type="text" :value="room_name" class="placeholder_style">
  20. </input>
  21. </view>
  22. <view class="form_group">
  23. <text class="red">*</text>
  24. <text class="sex">住户类型:</text>
  25. <view class="ar_picker" style="background:#fff">
  26. <view class="ar_picker_wrap">
  27. <picker @change="typeChange" :value="type" :range="typeArray">
  28. <view>
  29. <text>{{typeArray[type]}}</text>
  30. </view>
  31. </picker>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="form_group">
  36. <text class="red">*</text>
  37. <text class="sex">国籍:</text>
  38. <view class="ar_picker" style="background:#fff">
  39. <view class="ar_picker_wrap">
  40. <picker @change="nationalityChange" :value="nationality" :range="nationalityArray">
  41. <view>
  42. <text>{{nationalityArray[nationality]}}</text>
  43. </view>
  44. </picker>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="form_group">
  49. <text class="sex">证件类型:</text>
  50. <input :value="nationalityName" disabled="true" placeholder-class="placeholder_style" type="text" class="placeholder_style">
  51. </input>
  52. </view>
  53. <view class="form_group">
  54. <text class="sex">证件号码:</text>
  55. <input @input="id_cardFun" name="data_name" placeholder="住户类型是业主时,必填" placeholder-class="placeholder_style" type="text" :value="id_card" class="placeholder_style">
  56. </input>
  57. </view>
  58. <view class="form_group">
  59. <text class="sex">性别:</text>
  60. <!-- <radio-group class="item-right radio-group" @change="sexChange">
  61. <label v-for="(item, index) in sexArray" :key="index" class="radio">
  62. <radio :class="item.checked?'red checked':''" color="#2e7eff" :value="item.sex" :checked="item.checked"></radio>{{item.name}}
  63. </label>
  64. </radio-group> -->
  65. <u-radio-group class="item-right radio-group" v-model="sex" >
  66. <u-radio shape="circle" name="1">男</u-radio>
  67. <u-radio shape="circle" name="2">女</u-radio>
  68. </u-radio-group>
  69. </view>
  70. <view v-if="waitAudit" class="form_group" :style="'pointer-events:' + (waitAudit?'auto':'none')">
  71. <text class="sex">审核原因:</text>
  72. <input @input="checkOpinionFun" placeholder="请填写审核原因" placeholder-class="placeholder_style" type="text" :value="checkOpinion" class="placeholder_style"></input>
  73. </view>
  74. <view v-if="nationality==3">
  75. <view class="form_group mb0">
  76. <view>
  77. <text class="red">*</text>
  78. <text class="sex">护照图片:</text>
  79. <text class="tips">(基本身份信息页)</text>
  80. </view>
  81. </view>
  82. <view @click="operaType=1;chooseImage()" style="margin: 30rpx 0 10rpx 0;display: flex;align-items: center;flex-direction: column;">
  83. <upload-img
  84. :width="$isEmpty(show_passport_img_uri)?bgWidth:imgWidth"
  85. :height="$isEmpty(show_passport_img_uri)?bgHeight:imgHeight"
  86. :currentImage="show_passport_img_uri"
  87. :bgsrc="bgsrc"
  88. >
  89. </upload-img>
  90. <view class="" style="color: #59a5f0;">
  91. <text class="cuIcon-camera padding-right-sm" style="font-size: 30rpx;"></text>
  92. <text v-if="$isEmpty(show_passport_img_uri)">点击上传护照</text>
  93. <text style="margin-top: 40rpx;display: inline-block;" v-else>点击重新上传</text>
  94. </view>
  95. </view>
  96. </view>
  97. <view v-if="nationality==3">
  98. <view class="form_group mb0">
  99. <view>
  100. <text class="red">*</text>
  101. <text class="sex">入境证明:</text>
  102. <text class="tips">(入镜盖章页)</text>
  103. </view>
  104. </view>
  105. <view @click="operaType=2;chooseImage()" style="margin: 30rpx 0 10rpx 0;display: flex;align-items: center;flex-direction: column;">
  106. <upload-img
  107. :width="$isEmpty(show_entry_img_uri)?bgWidth:imgWidth"
  108. :height="$isEmpty(show_entry_img_uri)?bgHeight:imgHeight"
  109. :currentImage="show_entry_img_uri"
  110. :bgsrc="bgsrc"
  111. >
  112. </upload-img>
  113. <view class="" style="color: #59a5f0;">
  114. <text class="cuIcon-camera padding-right-sm" style="font-size: 30rpx;"></text>
  115. <text v-if="$isEmpty(show_entry_img_uri)">点击上传入境证明</text>
  116. <text style="margin-top: 40rpx;display: inline-block;" v-else>点击重新上传</text>
  117. </view>
  118. </view>
  119. </view>
  120. <view class="form_group mb0">
  121. <view>
  122. <text class="red">*</text>
  123. <text class="sex">人脸:</text>
  124. <text class="tips">(人脸用于开门,请上传正脸图片)</text>
  125. </view>
  126. </view>
  127. <view >
  128. <view @click="show=true;operaType=3" style="margin: 30rpx 0 10rpx 0;display: flex;align-items: center;flex-direction: column;">
  129. <upload-img
  130. :width="$isEmpty(show_image_uri)?bgWidth:imgWidth"
  131. :height="$isEmpty(show_image_uri)?bgHeight:imgHeight"
  132. :currentImage="show_image_uri"
  133. :bgsrc="bgsrc"
  134. >
  135. </upload-img>
  136. <view class="" style="color: #59a5f0;">
  137. <text class="cuIcon-camera padding-right-sm" style="font-size: 30rpx;"></text>
  138. <text v-if="$isEmpty(show_image_uri)">点击上传人面</text>
  139. <text style="margin-top: 40rpx;display: inline-block;" v-else>点击重新上传</text>
  140. </view>
  141. </view>
  142. <view class="category">
  143. <view v-for="(item, index) in iconArray" :key="index" class="category_item">
  144. <view class="category_item_wrap" :data-index="item.index">
  145. <view class="icon_wrap">
  146. <image :src="item.iconUrl" class="index_icon"></image>
  147. </view>
  148. <view class="category_item_text">
  149. <text>{{item.iconText}}</text>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. </form>
  156. <view @click="editApplyUser" class=" footer-fixed" >
  157. <view class="cu-btn flex text-lg bg-red-btn" style="padding: 46rpx 0;">
  158. 提交修改
  159. </view>
  160. </view>
  161. <view v-if="waitAudit" class=" footer-fixed" >
  162. <view class="flex">
  163. <view @tap="auditBtn" data-id="1" class="cu-btn flex-sub text-lg bg-red-btn" style="padding: 46rpx 0rpx;">
  164. 审核通过
  165. </view>
  166. <view @tap="auditBtn" data-id="2" class="cu-btn flex-sub text-lg" style="padding: 46rpx 0;background-color: #fd9517;color: #FFFFFF;">
  167. 审核不通过
  168. </view>
  169. </view>
  170. </view>
  171. <u-action-sheet @click="photoChecked" z-index="999999" :list="list" v-model="show"></u-action-sheet>
  172. </view>
  173. </template>
  174. <script>
  175. import uploadImg from '@/comps/uploadimg/uploadImg.vue'
  176. //获取app实例
  177. var app = getApp();
  178. export default {
  179. components:{
  180. uploadImg
  181. },
  182. data() {
  183. return {
  184. //默认点击弹出拍照模态框的是人面上传操作,1:护照,2:入境,3:人面
  185. operaType:3,
  186. //人面上传模态框,上传照片或拍照
  187. list: [{
  188. text: '相册上传',
  189. }, {
  190. text: '拍照上传'
  191. }],
  192. show: false,
  193. //背景图
  194. bgsrc:'http://139.9.103.171:1888/img/image/camera1.png',
  195. bgWidth:350,
  196. bgHeight:320,
  197. //显示图
  198. imgWidth:540,
  199. imgHeight:400,
  200. user_id: null,
  201. //修改的住户id
  202. name: null,
  203. //姓名
  204. tel: null,
  205. //电话号码
  206. room_name: null,
  207. //房间名字
  208. typeArray: ['业主', '成员', '租户'],
  209. type: 0,
  210. nationalityArray: ['中国大陆', '中国香港/澳门', '中国台湾', '海外'],
  211. nationality: 0,
  212. nationalityName: '身份证',
  213. id_card: null,
  214. //身份证
  215. sexArray: null,
  216. sex: null ,
  217. passport_img_uri: null,
  218. //护照照片
  219. show_passport_img_uri: null,
  220. //护照照片回显
  221. entry_img_uri: null,
  222. //入境证明
  223. show_entry_img_uri: null,
  224. //入境证明回显
  225. image_uri: null,
  226. //人脸图片地址
  227. show_image_uri: null,
  228. //人脸回显
  229. face_code: null,
  230. iconArray: [{
  231. "iconUrl": "http://139.9.103.171:1888/img/image/zd.png",
  232. "iconText": '不要遮挡',
  233. "index": 1
  234. }, {
  235. "iconUrl": "http://139.9.103.171:1888/img/image/mj.png",
  236. "iconText": '不戴墨镜',
  237. "index": 2
  238. }, {
  239. "iconUrl": "http://139.9.103.171:1888/img/image/zl.png",
  240. "iconText": '不能仰头俯拍',
  241. "index": 3
  242. }, {
  243. "iconUrl": "http://139.9.103.171:1888/img/image/cz.png",
  244. "iconText": '光线充足',
  245. "index": 4
  246. }, {
  247. "iconUrl": "http://139.9.103.171:1888/img/image/bg.png",
  248. "iconText": '浅色背景',
  249. "index": 5
  250. }, {
  251. "iconUrl": "http://139.9.103.171:1888/img/image/sh.png",
  252. "iconText": '物业审核生效',
  253. "index": 6
  254. }],
  255. waitAudit: false,
  256. //判断是否从审核跳过来
  257. checkOpinion: '' //审核原因
  258. ,
  259. apply_user_id: "",
  260. own_room_list_index: ""
  261. };
  262. },
  263. components: {},
  264. props: {},
  265. /**
  266. * 生命周期函数--监听页面加载
  267. */
  268. onLoad: function (options) {
  269. let apply_user_id = options.apply_user_id;
  270. let name = options.name;
  271. let tel = options.tel;
  272. let room_name = options.room_name;
  273. let type = options.type;
  274. let nationality = options.nationality;
  275. let nationalityName = '';
  276. if (nationality == 0) {
  277. nationalityName = '身份证';
  278. } else if (nationality == 1) {
  279. nationalityName = '港澳居民往来内地通行证';
  280. } else if (nationality == 2) {
  281. nationalityName = '台湾居民往来大陆通行证';
  282. } else if (nationality == 3) {
  283. nationalityName = '护照';
  284. }
  285. this.setData({
  286. nationality: nationality,
  287. nationalityName: nationalityName
  288. });
  289. let id_card = options.id_card;
  290. let sex = options.sex;
  291. let passport_img_uri = options.passport_img_uri;
  292. let entry_img_uri = options.entry_img_uri;
  293. let image_uri = options.image_uri; //选中性别
  294. let sexArray = [{
  295. name: '男',
  296. checked: false,
  297. sex: "1"
  298. }, {
  299. name: '女',
  300. checked: false,
  301. sex: "2"
  302. }];
  303. for (let i in sexArray) {
  304. if (sexArray[i].sex == sex) {
  305. sexArray[i].checked = true;
  306. }
  307. }
  308. if (options.waitAudit || options.waitAudit != undefined || options.waitAudit != null) {
  309. uni.setNavigationBarTitle({
  310. title: '住户审核'
  311. });
  312. this.setData({
  313. waitAudit: options.waitAudit
  314. });
  315. }
  316. this.setData({
  317. apply_user_id: apply_user_id,
  318. name: name,
  319. tel: tel,
  320. room_name: room_name,
  321. type: type,
  322. nationality: nationality,
  323. id_card: id_card,
  324. sex: sex,
  325. show_image_uri: image_uri,
  326. show_passport_img_uri: passport_img_uri,
  327. show_entry_img_uri: entry_img_uri,
  328. sexArray: sexArray
  329. });
  330. },
  331. onShow() {
  332. //获取当前页面的对象
  333. let currPage=this.$util.getPageCtx()
  334. if(!this.$isEmpty(currPage.data.image)){
  335. this.uploadImage(currPage.data.image)
  336. }
  337. },
  338. methods: {
  339. //点击模态框选项触发
  340. photoChecked(index){
  341. if (index==0) {
  342. //图片上传
  343. this.chooseImage()
  344. } else if(index==1){
  345. //拍照上传
  346. uni.navigateTo({
  347. url:"../../my-camera/my-camera"
  348. })
  349. }
  350. },
  351. /**
  352. * 点击上传图片事件
  353. */
  354. chooseImage: function () {
  355. var that = this;
  356. uni.chooseImage({
  357. count: 1,
  358. //最多可以选择的图片张数,默认9
  359. sourceType: ['album', 'camera'],
  360. sizeType: ['compressed'],
  361. //可选择原图或压缩后的图片
  362. success: res => {
  363. let tempFilePaths = res.tempFilePaths;
  364. that.uploadImage(tempFilePaths[0])
  365. }
  366. });
  367. },
  368. /**上传图片
  369. * @param {Object} imgUrl 图片url
  370. */
  371. uploadImage(imgUrl){
  372. console.log("operatype: ",this.operaType);
  373. console.log("imgUrl",imgUrl)
  374. var that = this;
  375. //是否需要md5加密上传人面照
  376. let is_need_md5 = false;
  377. if (this.operaType == 3) {
  378. is_need_md5 = true;
  379. }
  380. uni.getFileSystemManager().readFile({
  381. filePath: imgUrl,
  382. //选择图片返回的相对路径
  383. encoding: 'base64',
  384. //编码格式
  385. success: res => {
  386. //成功的回调
  387. app.globalData.uploadBase64('data:image/jpeg;base64,' + res.data, is_need_md5, function (result) {
  388. if (that.operaType == 1) {
  389. that.setData({
  390. passport_img_uri: result.data.uri,
  391. show_passport_img_uri: imgUrl
  392. });
  393. } else if (that.operaType == 2) {
  394. that.setData({
  395. entry_img_uri: result.data.uri,
  396. show_entry_img_uri: imgUrl
  397. });
  398. } else if (that.operaType == 3) {
  399. that.setData({
  400. image_uri: result.data.uri,
  401. show_image_uri: imgUrl,
  402. face_code: result.data.md5Hex
  403. });
  404. }
  405. });
  406. }
  407. });
  408. },
  409. //获取input的标签值
  410. nameFun: function (e) {
  411. this.setData({
  412. name: e.detail.value
  413. });
  414. },
  415. telFun: function (e) {
  416. this.setData({
  417. tel: e.detail.value
  418. });
  419. },
  420. id_cardFun: function (e) {
  421. this.setData({
  422. id_card: e.detail.value
  423. });
  424. },
  425. checkOpinionFun: function (e) {
  426. this.setData({
  427. checkOpinion: e.detail.value
  428. });
  429. },
  430. // 住户类型
  431. typeChange: function (e) {
  432. this.setData({
  433. type: e.detail.value
  434. });
  435. },
  436. // 类别选择
  437. roomIdChange: function (e) {
  438. this.setData({
  439. own_room_list_index: e.detail.value
  440. });
  441. },
  442. //性别
  443. sexChange: function (enent) {
  444. this.setData({
  445. sex: enent.detail.value
  446. });
  447. },
  448. // 国籍
  449. nationalityChange: function (e) {
  450. let nationality = e.detail.value;
  451. let nationalityName = '';
  452. if (nationality == 0) {
  453. nationalityName = '身份证';
  454. } else if (nationality == 1) {
  455. nationalityName = '港澳居民往来内地通行证';
  456. } else if (nationality == 2) {
  457. nationalityName = '台湾居民往来大陆通行证';
  458. } else if (nationality == 3) {
  459. nationalityName = '护照';
  460. }
  461. this.setData({
  462. nationality: nationality,
  463. nationalityName: nationalityName
  464. });
  465. },
  466. //编辑
  467. editApplyUser: function () {
  468. let that = this;
  469. let params = {};
  470. let apply_user_id = that.apply_user_id;
  471. params['apply_user_id'] = apply_user_id;
  472. let tel = that.tel;
  473. if (!tel) {
  474. app.globalData.autoFailHint("请填写手机");
  475. return;
  476. } //手机号码正则校验
  477. var telReg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/;
  478. if (!telReg.test(tel)) {
  479. app.globalData.autoFailHint("请填写正确手机号");
  480. return;
  481. }
  482. params['tel'] = tel;
  483. let type = that.type;
  484. params['type'] = type;
  485. let id_card = that.id_card;
  486. params['id_card'] = id_card; //业主身份时,身份证必填
  487. if (type == 0 && !id_card) {
  488. app.globalData.autoFailHint("住户类型是业主时,身份证必填");
  489. return;
  490. } //0 中国大陆 1 中国香港/澳门 2 中国台湾 3 海外
  491. let nationality = that.nationality;
  492. params['nationality'] = nationality;
  493. let passport_img_uri = that.passport_img_uri;
  494. let entry_img_uri = that.entry_img_uri;
  495. if (nationality == 3) {
  496. params['passport_img_uri'] = that.passport_img_uri;
  497. params['entry_img_uri'] = that.entry_img_uri;
  498. if (type == 0) {
  499. if (!passport_img_uri && !that.show_passport_img_uri) {
  500. app.globalData.autoFailHint("请上传护照图片");
  501. return;
  502. }
  503. if (!entry_img_uri && !that.show_entry_img_uri) {
  504. app.globalData.autoFailHint("请上传入境证明");
  505. return;
  506. }
  507. }
  508. }
  509. let image_uri = that.image_uri;
  510. let face_code = that.face_code;
  511. if (image_uri && face_code) {
  512. params['image_uri'] = that.image_uri;
  513. params['face_code'] = that.face_code;
  514. } //性别
  515. params['sex'] = that.sex; //添加了人脸
  516. params['member_id'] = app.globalData.member.id; //申请来源0-小程序添加 1-后台添加 2-后台导入 3-app添加
  517. params['create_type'] = '0';
  518. let operation = 'applyUser/editApplyUser';
  519. app.globalData.postRequest(params, operation, function (res) {
  520. //添加成功
  521. if (res.data.result_code == 1) {
  522. app.globalData.oneFailHint(res.data.result_msg, function () {
  523. uni.navigateBack({
  524. delta: 1 // 返回上一级页面。
  525. });
  526. });
  527. } else {
  528. app.globalData.oneFailHint(res.data.result_msg);
  529. }
  530. });
  531. },
  532. auditBtn(e) {
  533. let that = this;
  534. let params = {};
  535. if (e.currentTarget.dataset.id == 2 && that.checkOpinion == '') {
  536. app.globalData.autoFailHint("请先填写审核意见");
  537. return;
  538. }
  539. params['id'] = that.apply_user_id;
  540. params['checkState'] = e.currentTarget.dataset.id;
  541. params['checkOpinion'] = that.checkOpinion;
  542. let operation = 'applyUser/updateCheckState';
  543. app.globalData.postRequest(params, operation, function (res) {
  544. //添加成功
  545. if (res.data.data) {
  546. app.globalData.autoFailHint("审核成功");
  547. } else {
  548. app.globalData.autoFailHint(res.data.msg);
  549. }
  550. });
  551. }
  552. }
  553. };
  554. </script>
  555. <style lang="scss">
  556. page{
  557. overflow-y: scroll;
  558. background: #fff;
  559. }
  560. .edit_wrap {
  561. font-size: 30rpx;
  562. padding: 0rpx 20rpx 120rpx;
  563. color: #333;
  564. }
  565. .form_group {
  566. display: flex;
  567. flex-direction: row;
  568. justify-content: space-between;
  569. margin: 20rpx 20rpx;
  570. line-height: 80rpx;
  571. position: relative;
  572. font-size: 26rpx;
  573. }
  574. .form_group .red {
  575. color: red;
  576. position: absolute;
  577. left: 0;
  578. }
  579. .form_group text.sex {
  580. margin-left: 15px;
  581. text-align: left;
  582. }
  583. .form_group .radio-group {
  584. text-align: left;
  585. width: 500rpx;
  586. margin-top: 16rpx;
  587. }
  588. .form_group .radio-group .radio {
  589. margin-right: 60rpx;
  590. }
  591. .form_group input, .form_group picker {
  592. border: 1px solid #ddd;
  593. border-radius: 8rpx;
  594. height: 80rpx;
  595. line-height: 80rpx;
  596. padding: 0rpx 20rpx;
  597. color: #333;
  598. width: 460rpx;
  599. }
  600. .form_group button {
  601. font-size: 30rpx;
  602. height: 80rpx;
  603. line-height: 80rpx;
  604. border: 1px dotted #fff;
  605. background: white;
  606. padding: 0rpx;
  607. margin: 0rpx;
  608. outline: none;
  609. color: #000;
  610. }
  611. .placeholder_style {
  612. font-family: '微软雅黑';
  613. color: #adadad;
  614. }
  615. .save_btn {
  616. width: 600rpx;
  617. background: #d24a58;
  618. font-size: 32rpx;
  619. color: #fff;
  620. border-radius: 0rpx;
  621. margin: 40rpx 0rpx 10rpx;
  622. }
  623. /* 自定义 radio 样式 */
  624. radio {
  625. width: 38rpx;
  626. }
  627. radio .wx-radio-input {
  628. border-radius: 50%;
  629. width: 28rpx;
  630. height: 28rpx;
  631. }
  632. /* 选中后的样式 (可根据设计稿需求自己修改) */
  633. radio .wx-radio-input.wx-radio-input-checked::before {
  634. border-radius: 50%;
  635. width: 44rpx;
  636. height: 44rpx;
  637. line-height: 44rpx;
  638. text-align: center;
  639. font-size: 26rpx; /* 对勾大小 26rpx */
  640. color: #fff; /* 对勾颜色 */
  641. background: $base-btn-color;
  642. border-color: $base-btn-color;
  643. }
  644. .form_group .upload {
  645. padding: 0 28rpx;
  646. font-size: 26rpx;
  647. background: $base-btn-color;
  648. color: #fff;
  649. border: none;
  650. }
  651. .upload_tips {
  652. font-size: 24rpx;
  653. }
  654. .upload_bg {
  655. position: relative;
  656. text-align: center;
  657. }
  658. .mb0 {
  659. margin-bottom: 0;
  660. }
  661. .form_group .tips {
  662. margin-left: 50rpx;
  663. }
  664. .upload_bg .upload_bgImg {
  665. width: 540rpx;
  666. height: 400rpx;
  667. }
  668. .upload_bg .upload_btn {
  669. width: 120rpx;
  670. height: 120rpx;
  671. position: absolute;
  672. left: 50%;
  673. top: 50%;
  674. margin-left: -65rpx;
  675. margin-top: -60rpx;
  676. }
  677. .upload_bg .upload_btn image {
  678. width: 100%;
  679. height: 100%;
  680. }
  681. .upload_text {
  682. position: absolute;
  683. top: 70%;
  684. left: 50%;
  685. transform: translate(-50%, 0);
  686. color: $base-btn-color;
  687. }
  688. upload_bg{
  689. position: relative;
  690. text-align: center;
  691. }
  692. .upload_bg .upload_btn{
  693. width: 120rpx;
  694. height: 120rpx;
  695. position: absolute;
  696. left: 50%;
  697. top: 40%;
  698. margin-left: -65rpx;
  699. margin-top: -60rpx;
  700. }
  701. .upload_bg .upload_btn image{
  702. width: 100%;
  703. height: 100%;
  704. }
  705. .upload_text{
  706. position: absolute;
  707. top: 55%;
  708. width:100%;
  709. color:$base-btn-color;
  710. }
  711. .img_content .upload_bgImg{
  712. display: inline-block;
  713. }
  714. .reUpload{
  715. height: 60rpx;
  716. line-height: 60rpx;
  717. text-align:right;
  718. color: #333;
  719. padding-right: 100rpx;
  720. }
  721. .img_content .img_icon{
  722. width: 40rpx;
  723. height: 40rpx;
  724. vertical-align: text-top;
  725. margin-right: 6rpx;
  726. border-radius: 20rpx;
  727. }
  728. .category {
  729. padding:20px 20rpx 0;
  730. overflow: auto;
  731. background-color: #FFF;
  732. text-align:center;
  733. }
  734. .category_item {
  735. width: 33.3%;
  736. float: left;
  737. margin-bottom: 40rpx;
  738. }
  739. .icon_wrap {
  740. width: 120rpx;
  741. margin: 0 auto;
  742. margin-bottom: 5px;
  743. }
  744. .index_icon {
  745. width: 60rpx;
  746. height: 60rpx;
  747. }
  748. .category_item_text {
  749. text-align: center;
  750. font-size: 24rpx;
  751. color: #999;
  752. }
  753. .bottom_btn{
  754. width:100%;
  755. background: $base-btn-color;
  756. font-size: 32rpx;
  757. color: #fff;
  758. border-radius: 10rpx;
  759. margin: 20rpx 10rpx;
  760. height: 100rpx;
  761. text-align: center;
  762. line-height: 100rpx;
  763. }
  764. </style>