editApplyFamily.vue 22 KB

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