editApplyFamily.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  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'] = that.user_id;
  524. params['oper_user_type'] = that.operUserType;
  525. params['operatorName'] = app.globalData.member.name;
  526. params['name'] = that.name;
  527. let operation = 'applyUser/editApplyUser';
  528. this.$http.editFamily(params)
  529. .then(res => {
  530. //添加成功
  531. if (res.data.result_code == 1) {
  532. app.globalData.oneFailHint(res.data.result_msg, function () {
  533. uni.navigateBack({
  534. delta: 1 // 返回上一级页面。
  535. });
  536. });
  537. } else {
  538. app.globalData.oneFailHint(res.data.result_msg);
  539. }
  540. });
  541. // app.globalData.postRequest(params, operation, function (res) {
  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['checkState'] = 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. //添加成功
  561. if (res.data.result_code==1) {
  562. that.$refs.uToast.show({
  563. title: '审核成功',
  564. type: 'success',
  565. url: '/pages/myFamily/myFamily',
  566. position:'top'
  567. })
  568. } else {
  569. app.globalData.autoFailHint(res.data.msg);
  570. }
  571. });
  572. }
  573. }
  574. };
  575. </script>
  576. <style lang="scss">
  577. page{
  578. overflow-y: scroll;
  579. background: #fff;
  580. }
  581. .edit_wrap {
  582. background-color: #FFFFFF;
  583. font-size: 30rpx;
  584. padding: 0rpx 20rpx 120rpx;
  585. color: #333;
  586. }
  587. .form_group {
  588. display: flex;
  589. flex-direction: row;
  590. justify-content: space-between;
  591. margin: 20rpx 20rpx;
  592. line-height: 80rpx;
  593. position: relative;
  594. font-size: 26rpx;
  595. }
  596. .form_group .red {
  597. color: red;
  598. position: absolute;
  599. left: 0;
  600. }
  601. .form_group text.sex {
  602. margin-left: 15px;
  603. text-align: left;
  604. }
  605. .form_group .radio-group {
  606. text-align: left;
  607. width: 500rpx;
  608. margin-top: 16rpx;
  609. }
  610. .form_group .radio-group .radio {
  611. margin-right: 60rpx;
  612. }
  613. .form_group input, .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. radio {
  647. width: 38rpx;
  648. }
  649. radio .wx-radio-input {
  650. border-radius: 50%;
  651. width: 28rpx;
  652. height: 28rpx;
  653. }
  654. /* 选中后的样式 (可根据设计稿需求自己修改) */
  655. radio .wx-radio-input.wx-radio-input-checked::before {
  656. border-radius: 50%;
  657. width: 44rpx;
  658. height: 44rpx;
  659. line-height: 44rpx;
  660. text-align: center;
  661. font-size: 26rpx; /* 对勾大小 26rpx */
  662. color: #fff; /* 对勾颜色 */
  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>