editApplyFamily.vue 22 KB

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