editApplyFamily.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855
  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. that.$http.uploadFile(imgUrl).then(res =>{
  388. if (that.operaType == 1) {
  389. that.setData({
  390. passport_img_uri: res.data.name,
  391. show_passport_img_uri: imgUrl
  392. });
  393. } else if (that.operaType == 2) {
  394. that.setData({
  395. entry_img_uri: res.data.name,
  396. show_entry_img_uri: imgUrl
  397. });
  398. } else if (that.operaType == 3) {
  399. that.setData({
  400. image_uri: res.data.name,
  401. show_image_uri: imgUrl,
  402. face_code: res.data.imgMd5
  403. });
  404. }
  405. })
  406. },
  407. //获取input的标签值
  408. nameFun: function (e) {
  409. this.setData({
  410. name: e.detail.value
  411. });
  412. },
  413. telFun: function (e) {
  414. this.setData({
  415. tel: e.detail.value
  416. });
  417. },
  418. id_cardFun: function (e) {
  419. this.setData({
  420. id_card: e.detail.value
  421. });
  422. },
  423. checkOpinionFun: function (e) {
  424. this.setData({
  425. checkOpinion: e.detail.value
  426. });
  427. },
  428. // 住户类型
  429. typeChange: function (e) {
  430. this.setData({
  431. type: e.detail.value
  432. });
  433. },
  434. // 类别选择
  435. roomIdChange: function (e) {
  436. this.setData({
  437. own_room_list_index: e.detail.value
  438. });
  439. },
  440. //性别
  441. sexChange: function (enent) {
  442. this.setData({
  443. sex: enent.detail.value
  444. });
  445. },
  446. // 国籍
  447. nationalityChange: function (e) {
  448. let nationality = e.detail.value;
  449. let nationalityName = '';
  450. if (nationality == 0) {
  451. nationalityName = '身份证';
  452. } else if (nationality == 1) {
  453. nationalityName = '港澳居民往来内地通行证';
  454. } else if (nationality == 2) {
  455. nationalityName = '台湾居民往来大陆通行证';
  456. } else if (nationality == 3) {
  457. nationalityName = '护照';
  458. }
  459. this.setData({
  460. nationality: nationality,
  461. nationalityName: nationalityName
  462. });
  463. },
  464. //编辑
  465. editApplyUser: function () {
  466. let that = this;
  467. let params = {};
  468. let apply_user_id = that.apply_user_id;
  469. params['apply_user_id'] = apply_user_id;
  470. let tel = that.tel;
  471. if (!tel) {
  472. app.globalData.autoFailHint("请填写手机");
  473. return;
  474. } //手机号码正则校验
  475. if (!this.$u.test.mobile(tel)) {
  476. app.globalData.autoFailHint("请填写正确手机号");
  477. return;
  478. }
  479. params['tel'] = tel;
  480. let type = that.type;
  481. params['type'] = type;
  482. let id_card = that.id_card;
  483. params['id_card'] = id_card; //业主身份时,身份证必填
  484. if (type == 0 && !id_card) {
  485. app.globalData.autoFailHint("住户类型是业主时,身份证必填");
  486. return;
  487. } //0 中国大陆 1 中国香港/澳门 2 中国台湾 3 海外
  488. if (!this.$isEmpty(id_card)) {
  489. //如果身份证号不为空,就校验身份证号
  490. if (!this.$u.test.idCard(id_card)) {
  491. app.globalData.autoFailHint("请输入正确的身份证号");
  492. return;
  493. }
  494. }
  495. let nationality = that.nationality;
  496. params['nationality'] = nationality;
  497. let passport_img_uri = that.passport_img_uri;
  498. let entry_img_uri = that.entry_img_uri;
  499. if (nationality == 3) {
  500. params['passport_img_uri'] = that.passport_img_uri;
  501. params['entry_img_uri'] = that.entry_img_uri;
  502. if (type == 0) {
  503. if (!passport_img_uri && !that.show_passport_img_uri) {
  504. app.globalData.autoFailHint("请上传护照图片");
  505. return;
  506. }
  507. if (!entry_img_uri && !that.show_entry_img_uri) {
  508. app.globalData.autoFailHint("请上传入境证明");
  509. return;
  510. }
  511. }
  512. }
  513. let image_uri = that.image_uri;
  514. let face_code = that.face_code;
  515. if (image_uri && face_code) {
  516. params['image_uri'] = that.image_uri;
  517. params['face_code'] = that.face_code;
  518. } //性别
  519. params['sex'] = that.sex; //添加了人脸
  520. params['member_id'] = app.globalData.member.id; //申请来源0-小程序添加 1-后台添加 2-后台导入 3-app添加
  521. params['create_type'] = '0';
  522. let operation = 'applyUser/editApplyUser';
  523. app.globalData.postRequest(params, operation, function (res) {
  524. //添加成功
  525. if (res.data.result_code == 1) {
  526. app.globalData.oneFailHint(res.data.result_msg, function () {
  527. uni.navigateBack({
  528. delta: 1 // 返回上一级页面。
  529. });
  530. });
  531. } else {
  532. app.globalData.oneFailHint(res.data.result_msg);
  533. }
  534. });
  535. },
  536. auditBtn(e) {
  537. let that = this;
  538. let params = {};
  539. if (e.currentTarget.dataset.id == 2 && that.checkOpinion == '') {
  540. app.globalData.autoFailHint("请先填写审核意见");
  541. return;
  542. }
  543. params['id'] = that.apply_user_id;
  544. params['checkState'] = e.currentTarget.dataset.id;
  545. params['checkOpinion'] = that.checkOpinion;
  546. params['name'] = that.name;
  547. params['idCard'] = that.id_card;
  548. params['operatorId'] = that.vuex_member.id;
  549. params['operatorName'] = that.vuex_member.name;
  550. // let operation = 'applyUser/updateCheckState';
  551. that.$http.updateCheckState(params).then (res =>{
  552. //添加成功
  553. if (res.data.result_code==1) {
  554. that.$refs.uToast.show({
  555. title: '审核成功',
  556. type: 'success',
  557. url: '/pages/myFamily/myFamily',
  558. position:'top'
  559. })
  560. } else {
  561. app.globalData.autoFailHint(res.data.msg);
  562. }
  563. });
  564. }
  565. }
  566. };
  567. </script>
  568. <style lang="scss">
  569. page{
  570. overflow-y: scroll;
  571. background: #fff;
  572. }
  573. .edit_wrap {
  574. background-color: #FFFFFF;
  575. font-size: 30rpx;
  576. padding: 0rpx 20rpx 120rpx;
  577. color: #333;
  578. }
  579. .form_group {
  580. display: flex;
  581. flex-direction: row;
  582. justify-content: space-between;
  583. margin: 20rpx 20rpx;
  584. line-height: 80rpx;
  585. position: relative;
  586. font-size: 26rpx;
  587. }
  588. .form_group .red {
  589. color: red;
  590. position: absolute;
  591. left: 0;
  592. }
  593. .form_group text.sex {
  594. margin-left: 15px;
  595. text-align: left;
  596. }
  597. .form_group .radio-group {
  598. text-align: left;
  599. width: 500rpx;
  600. margin-top: 16rpx;
  601. }
  602. .form_group .radio-group .radio {
  603. margin-right: 60rpx;
  604. }
  605. .form_group input, .form_group picker {
  606. border: 1px solid #ddd;
  607. border-radius: 8rpx;
  608. height: 80rpx;
  609. line-height: 80rpx;
  610. padding: 0rpx 20rpx;
  611. color: #333;
  612. width: 460rpx;
  613. }
  614. .form_group button {
  615. font-size: 30rpx;
  616. height: 80rpx;
  617. line-height: 80rpx;
  618. border: 1px dotted #fff;
  619. background: white;
  620. padding: 0rpx;
  621. margin: 0rpx;
  622. outline: none;
  623. color: #000;
  624. }
  625. .placeholder_style {
  626. font-family: '微软雅黑';
  627. color: #adadad;
  628. }
  629. .save_btn {
  630. width: 600rpx;
  631. background: #d24a58;
  632. font-size: 32rpx;
  633. color: #fff;
  634. border-radius: 0rpx;
  635. margin: 40rpx 0rpx 10rpx;
  636. }
  637. /* 自定义 radio 样式 */
  638. radio {
  639. width: 38rpx;
  640. }
  641. radio .wx-radio-input {
  642. border-radius: 50%;
  643. width: 28rpx;
  644. height: 28rpx;
  645. }
  646. /* 选中后的样式 (可根据设计稿需求自己修改) */
  647. radio .wx-radio-input.wx-radio-input-checked::before {
  648. border-radius: 50%;
  649. width: 44rpx;
  650. height: 44rpx;
  651. line-height: 44rpx;
  652. text-align: center;
  653. font-size: 26rpx; /* 对勾大小 26rpx */
  654. color: #fff; /* 对勾颜色 */
  655. background: $base-btn-color;
  656. border-color: $base-btn-color;
  657. }
  658. .form_group .upload {
  659. padding: 0 28rpx;
  660. font-size: 26rpx;
  661. background: $base-btn-color;
  662. color: #fff;
  663. border: none;
  664. }
  665. .upload_tips {
  666. font-size: 24rpx;
  667. }
  668. .upload_bg {
  669. position: relative;
  670. text-align: center;
  671. }
  672. .mb0 {
  673. margin-bottom: 0;
  674. }
  675. .form_group .tips {
  676. margin-left: 50rpx;
  677. }
  678. .upload_bg .upload_bgImg {
  679. width: 540rpx;
  680. height: 400rpx;
  681. }
  682. .upload_bg .upload_btn {
  683. width: 120rpx;
  684. height: 120rpx;
  685. position: absolute;
  686. left: 50%;
  687. top: 50%;
  688. margin-left: -65rpx;
  689. margin-top: -60rpx;
  690. }
  691. .upload_bg .upload_btn image {
  692. width: 100%;
  693. height: 100%;
  694. }
  695. .upload_text {
  696. position: absolute;
  697. top: 70%;
  698. left: 50%;
  699. transform: translate(-50%, 0);
  700. color: $base-btn-color;
  701. }
  702. upload_bg{
  703. position: relative;
  704. text-align: center;
  705. }
  706. .upload_bg .upload_btn{
  707. width: 120rpx;
  708. height: 120rpx;
  709. position: absolute;
  710. left: 50%;
  711. top: 40%;
  712. margin-left: -65rpx;
  713. margin-top: -60rpx;
  714. }
  715. .upload_bg .upload_btn image{
  716. width: 100%;
  717. height: 100%;
  718. }
  719. .upload_text{
  720. position: absolute;
  721. top: 55%;
  722. width:100%;
  723. color:$base-btn-color;
  724. }
  725. .img_content .upload_bgImg{
  726. display: inline-block;
  727. }
  728. .reUpload{
  729. height: 60rpx;
  730. line-height: 60rpx;
  731. text-align:right;
  732. color: #333;
  733. padding-right: 100rpx;
  734. }
  735. .img_content .img_icon{
  736. width: 40rpx;
  737. height: 40rpx;
  738. vertical-align: text-top;
  739. margin-right: 6rpx;
  740. border-radius: 20rpx;
  741. }
  742. .category {
  743. padding:20px 20rpx 0;
  744. overflow: auto;
  745. background-color: #FFF;
  746. text-align:center;
  747. }
  748. .category_item {
  749. width: 33.3%;
  750. float: left;
  751. margin-bottom: 40rpx;
  752. }
  753. .icon_wrap {
  754. width: 120rpx;
  755. margin: 0 auto;
  756. margin-bottom: 5px;
  757. }
  758. .index_icon {
  759. width: 60rpx;
  760. height: 60rpx;
  761. }
  762. .category_item_text {
  763. text-align: center;
  764. font-size: 24rpx;
  765. color: #999;
  766. }
  767. .bottom_btn{
  768. width:100%;
  769. background: $base-btn-color;
  770. font-size: 32rpx;
  771. color: #fff;
  772. border-radius: 10rpx;
  773. margin: 20rpx 10rpx;
  774. height: 100rpx;
  775. text-align: center;
  776. line-height: 100rpx;
  777. }
  778. </style>