editApplyFamily.vue 21 KB

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