modelrz.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  1. <template>
  2. <view class="content ">
  3. <view class="item-name">
  4. 上传头像
  5. </view>
  6. <view class="con_box">
  7. <view class="con_image">
  8. <image class="img" @click="navCroper(400,400,'one')"
  9. :src="updata.avatar||`../../../static/image/upImg.png`">
  10. </image>
  11. </view>
  12. </view>
  13. <view class="item-name">
  14. 基本信息
  15. </view>
  16. <view class="listBox">
  17. <view class="list">
  18. <view class="flex listItem">
  19. <view class="flex titleBox">
  20. <text class="font-color-red font-size-sm">✲</text> <text class="title">真实姓名</text>
  21. </view>
  22. <view class="right flex">
  23. <input class="input" v-model="updata.name" type="text" placeholder="请填写真实姓名"
  24. placeholder-class="placeholder" />
  25. </view>
  26. </view>
  27. <view class="flex listItem">
  28. <view class="flex titleBox">
  29. <text class="font-color-red font-size-sm">✲</text><text class="title">手机号</text>
  30. </view>
  31. <view class="right flex">
  32. <input class="input" v-model="updata.phone" type="text" placeholder="请填写手机号"
  33. placeholder-class="placeholder" />
  34. </view>
  35. </view>
  36. <view class="flex listItem">
  37. <view class="flex titleBox">
  38. <text class="font-color-red font-size-sm">✲</text><text class="title">身份证号</text>
  39. </view>
  40. <view class="right flex">
  41. <input class="input" v-model="updata.cardId" type="text" placeholder="请填写身份证号"
  42. placeholder-class="placeholder" />
  43. </view>
  44. </view>
  45. <view class="flex listItem">
  46. <view class="flex titleBox">
  47. <text class="title">从业时长</text>
  48. </view>
  49. <view class="right flex">
  50. <input class="input" v-model="updata.work_year" type="number" placeholder="请填写从业时长"
  51. placeholder-class="placeholder" />
  52. </view>
  53. </view>
  54. <view class="flex listItem">
  55. <view class="flex titleBox">
  56. <text class="title">籍贯</text>
  57. </view>
  58. <view class="right flex">
  59. <input class="input" v-model="updata.ancestral_place" type="text" placeholder="请填写籍贯"
  60. placeholder-class="placeholder" />
  61. </view>
  62. </view>
  63. <view class="flex listItem">
  64. <view class="flex titleBox">
  65. <text class="title">学历</text>
  66. </view>
  67. <view class="right flex">
  68. <input class="input" v-model="updata.education" type="text" placeholder="请填写学历"
  69. placeholder-class="placeholder" />
  70. </view>
  71. </view>
  72. <view class="flex listItem">
  73. <view class="flex titleBox">
  74. <text class="title">民族</text>
  75. </view>
  76. <view class="right flex">
  77. <input class="input" v-model="updata.minority" type="text" placeholder="请填写民族"
  78. placeholder-class="placeholder" />
  79. </view>
  80. </view>
  81. <view class="flex listItem">
  82. <view class="flex titleBox">
  83. <text class="title">出生日期</text>
  84. </view>
  85. <view class="right flex">
  86. <picker class="input" value='2000-01-01' mode="date" @change="changetime">
  87. <view>
  88. {{updata.time||'请选择日期'}}
  89. </view>
  90. </picker>
  91. </view>
  92. </view>
  93. <view class="flex listItem">
  94. <view class="flex titleBox">
  95. <text class="font-color-red font-size-sm">✲</text><text class="title">职业</text>
  96. </view>
  97. <view class="right flex">
  98. <picker class="input" :range='workTypeList' range-key='title' mode="selector"
  99. @change="changeWorkType">
  100. <view>
  101. {{updata.word.title||'选择职业'}}
  102. </view>
  103. </picker>
  104. </view>
  105. </view>
  106. <view class="flex listItem">
  107. <view class="flex titleBox">
  108. <text class="font-color-red font-size-sm">✲</text><text class="title">收费类型</text>
  109. </view>
  110. <view class="right flex">
  111. <picker class="input" :value="updata.timetype.ind" :range='timeTypeList' range-key='title'
  112. mode="selector" @change="changetimetype">
  113. <view>
  114. {{updata.timetype.title||'收费时间类型'}}
  115. </view>
  116. </picker>
  117. </view>
  118. </view>
  119. <view class="flex listItem">
  120. <view class="flex titleBox">
  121. <text class="font-color-red font-size-sm">✲</text><text class="title">最低价</text>
  122. </view>
  123. <view class="right flex">
  124. <input class="input" v-model="updata.minMoney" type="number" placeholder="请输入最低收费价"
  125. placeholder-class="placeholder" />
  126. </view>
  127. </view>
  128. <view class="flex listItem">
  129. <view class="flex titleBox">
  130. <text class="font-color-red font-size-sm">✲</text><text class="title">最高价</text>
  131. </view>
  132. <view class="right flex">
  133. <input class="input" v-model="updata.maxMoney" type="number" placeholder="请输入最高收费价"
  134. placeholder-class="placeholder" />
  135. </view>
  136. </view>
  137. <view class="flex listItem">
  138. <view class="flex titleBox">
  139. <text class="font-color-red font-size-sm">✲</text><text class="title">服务区域</text>
  140. </view>
  141. <view class="right">
  142. <view class="citylist">
  143. <view class="flex margin-b-20" v-for="(item,ind) in updata.onCity" :key="ind">
  144. <view></view>
  145. <view>
  146. {{item.province+item.city+item.district}}
  147. <text class="margin-l-10 del" @click="updata.onCity.splice(ind,1)">
  148. 删除
  149. </text>
  150. </view>
  151. </view>
  152. <view class="flex">
  153. <view></view>
  154. <pickerAddress class="buttom" @change="onCityClick">添加地区</pickerAddress>
  155. </view>
  156. </view>
  157. </view>
  158. </view>
  159. <view class="flex listItem">
  160. <view class="flex titleBox">
  161. <text class="font-color-red font-size-sm">✲</text><text class="title">服务内容</text>
  162. </view>
  163. <view class="right">
  164. <checkbox-group @change="checkTypeChange">
  165. <label class="flex timetype margin-b-10" v-for="(item,ind) in typeList" :key="item.id">
  166. <view class="margin-r-10">{{item.title}}</view>
  167. <view>
  168. <checkbox :value="`${item.id}`" :checked="item.checked" />
  169. </view>
  170. </label>
  171. </checkbox-group>
  172. </view>
  173. </view>
  174. </view>
  175. </view>
  176. <view class="item-name">
  177. 自评
  178. </view>
  179. <view class="listBox">
  180. <view class="list">
  181. <view class="listItem">
  182. <textarea auto-height :maxlength='-1' v-model="updata.mymask" type="text" placeholder="请填写自评内容"
  183. placeholder-class="placeholder" />
  184. </view>
  185. </view>
  186. <view class="con_box">
  187. <view class="con_image" v-for="(item,ind) in updata.imageList">
  188. <image class="img" @click="navCroper(400,400,'tab',ind)" :src="item"></image>
  189. <image @click="updata.imageList.splice(ind,1)" class="tip" src="../../../static/icon/goodsExit.png"
  190. mode="scaleToFill"></image>
  191. </view>
  192. <view class="con_image">
  193. <image class="img" @click="navCroper(400,400,'all')" src="../../../static/image/upImg.png"></image>
  194. </view>
  195. </view>
  196. </view>
  197. <view class="item-name">
  198. 我的证书
  199. </view>
  200. <view class="listBox">
  201. <view class="con_box">
  202. <view class="con_image" v-for="(item,ind) in updata.service_audit_imgs">
  203. <image class="img" @click="navCroper(400,400,'audit',ind)" :src="item"></image>
  204. <image @click="updata.service_audit_imgs.splice(ind,1)" class="tip"
  205. src="../../../static/icon/goodsExit.png" mode="scaleToFill"></image>
  206. </view>
  207. <view class="con_image">
  208. <image class="img" @click="navCroper(400,400,'auditall')" src="../../../static/image/upImg.png">
  209. </image>
  210. </view>
  211. </view>
  212. </view>
  213. <view class="item-name">
  214. 服务展示
  215. </view>
  216. <view class="listBox">
  217. <view class="con_box">
  218. <view class="con_image" v-for="(item,ind) in updata.service_imgs">
  219. <image class="img" @click="navCroper(400,400,'service',ind)" :src="item"></image>
  220. <image @click="updata.service_imgs.splice(ind,1)" class="tip"
  221. src="../../../static/icon/goodsExit.png" mode="scaleToFill"></image>
  222. </view>
  223. <view class="con_image">
  224. <image class="img" @click="navCroper(400,400,'serviceall')" src="../../../static/image/upImg.png">
  225. </image>
  226. </view>
  227. </view>
  228. </view>
  229. <view class="base-buttom" :class="{ 'bg-gray': loding }" @click="loding ? '' : confirm()">提交</view>
  230. </view>
  231. </template>
  232. <script>
  233. import {
  234. getServiceTimeTypeList,
  235. getServiceTypeList,
  236. subInfoAudit,
  237. getUserWorkTypeList,
  238. getUserCardInfo
  239. } from '@/api/model.js';
  240. import {
  241. isCardNo
  242. } from '@/utils/rocessor.js';
  243. import {
  244. mapState
  245. } from "vuex"
  246. import pickerAddress from '@/components/wangding-pickerAddress/wangding-pickerAddress.vue';
  247. export default {
  248. components: {
  249. pickerAddress
  250. },
  251. data() {
  252. return {
  253. // 上传数据
  254. updata: {
  255. avatar: '', //用户头像
  256. name: '', //用户名称
  257. phone: '', //手机号
  258. cardId: '', //身份证号
  259. minMoney: '', //最低价
  260. maxMoney: '', //最高价
  261. checkedType: [], //选中的服务类型
  262. time: '', //出生日期
  263. timetype: {
  264. title: '',
  265. code: '',
  266. ind: 0 //默认0
  267. }, //选中的时间类型
  268. onCity: [], //选中的城市
  269. mymask: '', //自评
  270. imageList: [], //自评上传图片列表
  271. ancestral_place: '', //籍贯
  272. education: '', //学历
  273. minority: '', //民族
  274. work_year: '', //从业时长
  275. word: {
  276. title: '',
  277. id: ''
  278. },
  279. service_audit_imgs: [], //我的证书
  280. service_imgs: [], //服务展示
  281. },
  282. typeList: [], //服务类型
  283. timeTypeList: [], //时间类型
  284. workTypeList: [], //工作类型
  285. loding: false, //是否载入中
  286. type: 0, //0为新增,1为修改
  287. userModelData: {} //保存获取的用户模板
  288. };
  289. },
  290. async onLoad(options) {
  291. if (options.type == 1) {
  292. this.type = 1;
  293. await this.getUserCardInfo()
  294. }
  295. this.init()
  296. },
  297. computed: {
  298. // #ifdef H5
  299. ...mapState(['urlFile']),
  300. // #endif
  301. ...mapState(['baseURL']),
  302. },
  303. methods: {
  304. // 初始化
  305. init() {
  306. const that = this;
  307. getServiceTimeTypeList().then(
  308. (res) => {
  309. that.timeTypeList = res.data.list.map((arr) => {
  310. return arr
  311. })
  312. if (that.type == 0) {
  313. that.updata.timetype = that.timeTypeList[0];
  314. } else
  315. if (that.type == 1) {
  316. for (let i = 0; i < that.timeTypeList.length; i++) {
  317. if (that.timeTypeList[i].code == that.userModelData.service_type) {
  318. that.updata.timetype = that.timeTypeList[i]
  319. that.updata.timetype.ind = i;
  320. break
  321. }
  322. }
  323. }
  324. }
  325. ).catch(
  326. (res) => {
  327. console.log(res);
  328. }
  329. )
  330. getServiceTypeList().then(
  331. (res) => {
  332. that.typeList = res.data.list
  333. if (that.type == 1) {
  334. console.log(that.userModelData.service_project_ar,'that.userModelData.service_project');
  335. for (let i = 0; i < that.userModelData.service_project_ar.length; i++) {
  336. for (let a = 0; a < that.typeList.length; a++) {
  337. if (+that.typeList[a].id == +that.userModelData.service_project_ar[i].id) {
  338. that.typeList[a].checked = true;
  339. }
  340. }
  341. }
  342. }
  343. console.log(res,'服务');
  344. }
  345. ).catch(
  346. (res) => {
  347. console.log(res);
  348. }
  349. )
  350. getUserWorkTypeList().then(
  351. (res) => {
  352. console.log(res);
  353. that.workTypeList = res.data.list
  354. if (that.type == 0) {
  355. that.updata.word = that.workTypeList[0];
  356. } else if (that.type == 1) {
  357. for (let i = 0; i < that.workTypeList.length; i++) {
  358. console.log(that.userModelData.user_work_type_id,'word',that.workTypeList[i].id);
  359. if (that.workTypeList[i].id == that.userModelData.user_work_type_id) {
  360. that.updata.word = that.workTypeList[i];
  361. break
  362. }
  363. }
  364. }
  365. }
  366. ).catch(
  367. (res) => {
  368. console.log(res);
  369. }
  370. )
  371. },
  372. getUserCardInfo() {
  373. const that = this;
  374. return new Promise((resolve,reject) => {
  375. getUserCardInfo().then(
  376. (data) => {
  377. const res = data.data;
  378. // 存储返回用户数据
  379. that.userModelData = res;
  380. that.updata = Object.assign(that.updata, {
  381. avatar: res.avatar, //用户头像
  382. name: res.name, //用户名称
  383. phone: res.mobile, //手机号
  384. cardId: res.idcard, //身份证号
  385. minMoney: res.service_min_price, //最低价
  386. maxMoney: res.service_max_price, //最高价
  387. time: res.birthday, //出生日期
  388. onCity: res.service_area_all.map((arr) => {
  389. return {
  390. province: arr[0].name,
  391. city: arr[1].name,
  392. district: arr[2].name
  393. }
  394. }), //选中的城市
  395. mymask: res.service_intro_content, //自评
  396. imageList: res.service_intro_imgs, //自评上传图片列表
  397. ancestral_place: res.ancestral_place, //籍贯
  398. education: res.education, //学历
  399. minority: res.minority, //民族
  400. work_year: res.work_year, //从业时长
  401. service_audit_imgs: res.service_audit_imgs, //我的证书
  402. service_imgs: res.service_imgs, //服务展示
  403. })
  404. console.log(that.updata,'that.updata');
  405. resolve('初始化数据成功')
  406. }
  407. ).catch(
  408. (res) => {
  409. reject(res)
  410. }
  411. )
  412. })
  413. },
  414. // 选中的服务类型
  415. checkTypeChange(type) {
  416. this.updata.checkedType = type.detail.value;
  417. console.log(type)
  418. },
  419. // 选中的工作类型
  420. changeWorkType(type) {
  421. this.updata.word = this.workTypeList[type.detail.value];
  422. console.log(this.updata.word)
  423. },
  424. // 选择时间类型
  425. changetimetype(res) {
  426. this.updata.timetype = this.timeTypeList[res.detail.value];
  427. },
  428. // 时间选择
  429. changetime(time) {
  430. this.updata.time = time.detail.value;
  431. console.log(time);
  432. },
  433. // 选择省市区
  434. onCityClick({
  435. data
  436. }) {
  437. let address = {};
  438. address.province = data[0];
  439. address.city = data[1];
  440. address.district = data[2];
  441. this.updata.onCity.push(address)
  442. console.log(this.onCity, 'cs');
  443. },
  444. upLoad(path) {
  445. // #ifdef H5
  446. console.log(path, 'h5');
  447. // #endif
  448. uni.showLoading({
  449. title: '图片上传中',
  450. mask: true
  451. });
  452. return new Promise((resolve, error) => {
  453. uni.uploadFile({
  454. url: this.baseURL + '/api/user/qiniuUpload', //仅为示例,非真实的接口地址
  455. filePath: path,
  456. name: 'file',
  457. header: {
  458. "token": uni.getStorageSync('token')
  459. },
  460. success: (uploadFileRes) => {
  461. if ("string" === typeof uploadFileRes.data) {
  462. resolve(JSON.parse(uploadFileRes.data).data)
  463. } else {
  464. resolve(uploadFileRes.data.data)
  465. }
  466. },
  467. complete() {
  468. uni.hideLoading()
  469. }
  470. });
  471. })
  472. },
  473. // 图片裁切
  474. /**
  475. * @param {Number} w 裁切宽度比例
  476. * @param {Number} h 裁切高度比例
  477. * @param {Number} mw 图片最小宽度
  478. * @param {Number} mh 图片最小高度
  479. * @param {String} url url修改
  480. */
  481. navCroper(w, h, type, ind) {
  482. let that = this;
  483. let tt = (type == 'upimg' ? 2 : 1)
  484. this.onImg(tt).then((url) => {
  485. uni.navigateTo({
  486. url: `../realName/cropper?width=${w}&height=${h}`,
  487. events: {
  488. uploadSuccess(res) {
  489. that.upLoad(res).then((urldata) => {
  490. console.log(urldata);
  491. if (type == 'one') {
  492. that.updata.avatar = urldata.img
  493. } else if (type == 'all') {
  494. that.updata.imageList.push(urldata.img)
  495. } else if (type == 'tab') {
  496. that.updata.imageList.splice(ind, 1, urldata.img)
  497. } else if (type == 'audit') {
  498. that.updata.service_audit_imgs.splice(ind, 1, urldata.img)
  499. } else if (type == 'auditall') {
  500. that.updata.service_audit_imgs.push(urldata.img)
  501. } else if (type == 'service') {
  502. that.updata.service_imgs.splice(ind, 1, urldata.img)
  503. } else if (type == 'serviceall') {
  504. that.updata.service_imgs.push(urldata.img)
  505. }
  506. })
  507. }
  508. },
  509. success: function(res) {
  510. // 通过eventChannel向被打开页面传送数据
  511. res.eventChannel.emit('urlNext', {
  512. url
  513. })
  514. }
  515. })
  516. })
  517. },
  518. onImg(type) {
  519. const _this = this
  520. return new Promise((ok, erro) => {
  521. // 判断是否需要选择
  522. if (type == 1) {
  523. uni.showActionSheet({
  524. itemList: ['拍照', '选择一张照片'],
  525. success: function(res) {
  526. _this.chooseImage(res.tapIndex).then((url) => {
  527. ok(url)
  528. }).catch((res) => {
  529. erro(res)
  530. })
  531. },
  532. fail: function(res) {
  533. erro(res)
  534. console.log(res.errMsg);
  535. }
  536. });
  537. }
  538. // 判断是否只需要拍照
  539. if (type == 2) {
  540. _this.chooseImage(0).then((url) => {
  541. ok(url)
  542. }).catch((res) => {
  543. erro(res)
  544. })
  545. }
  546. })
  547. },
  548. chooseImage: function(index) {
  549. const _this = this
  550. return new Promise((ok, error) => {
  551. // 从相册/相机选择
  552. // 如需直接开相机或直接选相册,请只使用一个选项
  553. const sourceType = index === 0 ? ['camera'] : ['album']
  554. uni.chooseImage({
  555. count: 1, //默认9
  556. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  557. sourceType: sourceType,
  558. success: function(res) {
  559. ok(res.tempFilePaths[0])
  560. },
  561. fail(e) {
  562. uni.showModal({
  563. title: '文件打开错误',
  564. content: '请设置授权文件存储权限',
  565. showCancel: false,
  566. });
  567. error(e)
  568. }
  569. });
  570. })
  571. },
  572. // 实名认证
  573. confirm(e) {
  574. const that = this;
  575. if (!that.updata.avatar) {
  576. uni.showModal({
  577. title: '错误',
  578. content: '请上传头像',
  579. showCancel: false,
  580. });
  581. return
  582. }
  583. if (!that.updata.name) {
  584. uni.showModal({
  585. title: '错误',
  586. content: '请填写姓名',
  587. showCancel: false,
  588. });
  589. return
  590. }
  591. if (!that.updata.cardId) {
  592. uni.showModal({
  593. title: '错误',
  594. content: '请填写身份证号',
  595. showCancel: false,
  596. });
  597. return
  598. } else if (!isCardNo(that.updata.cardId)) {
  599. uni.showModal({
  600. title: '错误',
  601. content: '请填写正确的身份证号',
  602. showCancel: false,
  603. });
  604. return
  605. }
  606. if (!that.updata.phone) {
  607. uni.showModal({
  608. title: '错误',
  609. content: '请填写手机号',
  610. showCancel: false,
  611. });
  612. return
  613. }
  614. if (!that.updata.timetype.code) {
  615. uni.showModal({
  616. title: '错误',
  617. content: '请选择收费时间类型',
  618. showCancel: false,
  619. });
  620. return
  621. }
  622. if (!that.updata.minMoney) {
  623. uni.showModal({
  624. title: '错误',
  625. content: '请填写最低收费价',
  626. showCancel: false,
  627. });
  628. return
  629. }
  630. if (!that.updata.maxMoney) {
  631. uni.showModal({
  632. title: '错误',
  633. content: '请填写最高收费价',
  634. showCancel: false,
  635. });
  636. return
  637. }
  638. if (that.updata.onCity.length == 0) {
  639. uni.showModal({
  640. title: '错误',
  641. content: '请选择服务区域',
  642. showCancel: false,
  643. });
  644. return
  645. }
  646. if (that.updata.checkedType.length == 0) {
  647. uni.showModal({
  648. title: '错误',
  649. content: '请选择服务内容',
  650. showCancel: false,
  651. });
  652. return
  653. }
  654. that.loding = true;
  655. subInfoAudit({
  656. avatar: that.updata.avatar,
  657. name: that.updata.name,
  658. mobile: that.updata.phone,
  659. idcard: that.updata.cardId,
  660. service_type: that.updata.timetype.code,
  661. service_min_price: that.updata.minMoney,
  662. service_max_price: that.updata.maxMoney,
  663. service_area: that.updata.onCity.map((arr) => {
  664. return arr.district
  665. }),
  666. service_project: that.updata.checkedType,
  667. service_intro_content: that.updata.mymask,
  668. service_intro_imgs: that.updata.imageList,
  669. work_year: that.updata.work_year,
  670. ancestral_place: that.updata.ancestral_place,
  671. education: that.updata.education,
  672. minority: that.updata.minority,
  673. service_audit_imgs: that.updata.service_audit_imgs,
  674. service_imgs: that.updata.service_imgs,
  675. user_work_type_id: that.updata.word.id,
  676. })
  677. .then((e) => {
  678. that.loding = false;
  679. this.$api.msg(e.msg);
  680. })
  681. .catch(err => {
  682. this.loding = false;
  683. console.log(err);
  684. });
  685. }
  686. }
  687. };
  688. </script>
  689. <style lang="scss">
  690. .content,
  691. page {
  692. min-height: 100%;
  693. }
  694. .content {
  695. padding-bottom: 150rpx;
  696. }
  697. .item-name {
  698. margin: $page-row-spacing;
  699. font-size: $font-lg;
  700. font-weight: bold;
  701. color: $font-color-dark;
  702. }
  703. .con_box {
  704. margin: $page-row-spacing;
  705. .con_image {
  706. width: 150rpx;
  707. height: 150rpx;
  708. display: inline-block;
  709. margin-right: 20rpx;
  710. position: relative;
  711. .img {
  712. width: 100%;
  713. height: 100%;
  714. }
  715. .tip {
  716. position: absolute;
  717. top: -10rpx;
  718. right: -10rpx;
  719. width: 30rpx;
  720. height: 30rpx;
  721. background-color: #FFF;
  722. border-radius: 99rpx;
  723. }
  724. }
  725. }
  726. .listBox {
  727. margin: $page-row-spacing;
  728. margin-top: 30rpx;
  729. border-radius: 20rpx;
  730. overflow: hidden;
  731. background-color: #FFFFFF;
  732. }
  733. .list {
  734. .input {
  735. text-align: right;
  736. font-size: $font-base;
  737. color: $color-gray;
  738. width: 100%;
  739. }
  740. .listItem {
  741. padding: 35rpx 40rpx;
  742. border-bottom: 1px solid $page-color-light;
  743. }
  744. .listIconImg {
  745. width: 36rpx;
  746. }
  747. .right {
  748. color: $font-color-light;
  749. font-size: $font-base;
  750. flex-grow: 1;
  751. justify-content: flex-end;
  752. .timetype {
  753. width: 100%;
  754. justify-content: flex-end;
  755. }
  756. .citylist {
  757. .del {
  758. color: $color-red;
  759. font-size: $font-sm;
  760. border: 1px solid $color-red;
  761. border-radius: 10rpx;
  762. line-height: 1;
  763. padding: 5rpx 15rpx;
  764. }
  765. }
  766. .img {
  767. width: 26rpx;
  768. }
  769. .buttom {
  770. color: $base-color;
  771. border: 1px solid $base-color;
  772. border-radius: 10rpx;
  773. line-height: 1;
  774. padding: 10rpx 20rpx;
  775. }
  776. }
  777. .titleBox {
  778. .title {
  779. color: $font-color-base;
  780. font-size: $font-base;
  781. }
  782. }
  783. }
  784. .bg-gray {
  785. background-color: $color-gray;
  786. }
  787. .base-buttom {
  788. position: fixed;
  789. bottom: 30rpx;
  790. right: 0rpx;
  791. left: 0rpx;
  792. }
  793. </style>