index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792
  1. <template>
  2. <view class="user-info-wrap">
  3. <view class="nav-bar">
  4. <view class="nav-content">
  5. <view class="nav-info">
  6. <view class="nav-desc">
  7. <view class="nav-name">
  8. <!-- <view class="">宝贝头像</view>-->
  9. </view>
  10. </view>
  11. <view class="arrow-right">
  12. <view class="head-img" @click="uploadImg1(1)">
  13. <image v-if="userInfo.facePhotoUrl" :src="userInfo.facePhotoUrl" mode="aspectFill"></image>
  14. <image v-else src="../../static/me/u1796.png" mode=""></image>
  15. </view>
  16. <!-- <u-icon name="arrow-right" color="#666" size="26"></u-icon> -->
  17. </view>
  18. </view>
  19. </view>
  20. <view class="custom-line"></view>
  21. <view class="nav-content">
  22. <view class="nav-info">
  23. <view class="nav-desc">
  24. <view class="nav-name">
  25. <view class="">宝贝昵称</view>
  26. </view>
  27. </view>
  28. <view class="arrow-right">
  29. <input class="custom-input" v-model="userInfo.nickName" type="text" placeholder="请输入昵称">
  30. </view>
  31. </view>
  32. </view>
  33. <view class="custom-line"></view>
  34. <view class="nav-content">
  35. <view class="nav-info">
  36. <view class="nav-desc">
  37. <view class="nav-name">
  38. <view class="">宝贝性别</view>
  39. </view>
  40. </view>
  41. <view @click="chooseGender()" class="arrow-right">
  42. <view class="change-store">
  43. <text v-if="userInfo.sex == 0">男</text>
  44. <text v-else-if="userInfo.sex == 1">女</text>
  45. <text v-else-if="userInfo.sex == 2">未知</text>
  46. <text v-else>请选择性别</text>
  47. </view>
  48. <u-icon name="arrow-right" color="#666" size="16"></u-icon>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="custom-line"></view>
  53. <view class="nav-content">
  54. <view class="nav-info">
  55. <view class="nav-desc">
  56. <view class="nav-name">
  57. <view class="">宝贝生日</view>
  58. </view>
  59. </view>
  60. <view class="arrow-right">
  61. <!-- <picker mode="date" :value="date" :start="date" @change="bindDateChange">-->
  62. <!-- <view class="picker-change-store">-->
  63. <!-- <text v-if="userInfo.birthday">{{ userInfo.birthday }}</text>-->
  64. <!-- <text v-else>请选择生日</text>-->
  65. <!-- <u-icon name="arrow-right" color="#666" size="16"></u-icon>-->
  66. <!-- </view>-->
  67. <!-- </picker>-->
  68. <picker @change="bindDateChange" mode='date' :disabled="isAuthUpdate ? false : true " range-key="label">
  69. <view class="flex-row justify-end picker-change-store">
  70. <text>{{ userInfo.birthday ? userInfo.birthday.substring(0, 10) : '请选择出生日期' }}</text>
  71. <u-icon name="arrow-right" color="#666" size="16"></u-icon>
  72. </view>
  73. </picker>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="custom-line"></view>
  78. <view class="nav-content">
  79. <view class="nav-info">
  80. <view class="nav-desc">
  81. <view class="nav-name">
  82. <view class="">是否双胞胎</view>
  83. </view>
  84. </view>
  85. <view class="arrow-right">
  86. <view class="change-store">
  87. <u-radio-group
  88. v-model="userInfo.ranks"
  89. size="14"
  90. @change="handleRankChange"
  91. placement="row">
  92. <u-radio activeColor="#eac00f" name="0" label="否"></u-radio>
  93. <u-radio activeColor="#eac00f" name="1" label="是"></u-radio>
  94. </u-radio-group>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. <view v-if="userInfo.ranksState == '1'" class="custom-line"></view>
  100. <view v-if="userInfo.ranksState == '1'" class="nav-content">
  101. <view class="nav-info">
  102. <view class="nav-desc">
  103. <view class="nav-name">
  104. <view class="">宝贝排行</view>
  105. </view>
  106. </view>
  107. <view class="arrow-right button-group">
  108. <text class="button" @click="decrement">-</text>
  109. <input class="custom-input-ranks" v-model="userInfo.ranks" type="number">
  110. <text class="button" @click="increment">+</text>
  111. </view>
  112. <!-- <view @click="gotoRealNameAuth()" class="arrow-right">
  113. <view class="change-store">
  114. <u-radio-group
  115. v-model="userInfo.ranks"
  116. size="14"
  117. placement="row">
  118. <u-radio activeColor="#eac00f" name="1" label="老大"></u-radio>
  119. <u-radio activeColor="#eac00f" name="2" label="老二"></u-radio>
  120. <u-radio activeColor="#eac00f" name="3" label="老三"></u-radio>
  121. <u-radio activeColor="#eac00f" name="4" label="老四"></u-radio>
  122. </u-radio-group>
  123. </view>
  124. </view> -->
  125. </view>
  126. </view>
  127. <view class="custom-line"></view>
  128. <!-- <view class="nav-content">
  129. <view class="nav-info">
  130. <view class="nav-desc">
  131. <view class="nav-name">
  132. <view class="">服务对象编号</view>
  133. </view>
  134. </view>
  135. <view @click="gotoRealNameAuth()" class="arrow-right">
  136. <view class="change-store">
  137. <text>NTML0801</text>
  138. </view>
  139. </view>
  140. </view>
  141. </view>
  142. <view class="custom-line"></view> -->
  143. <view class="nav-content">
  144. <view class="nav-info">
  145. <view class="nav-desc">
  146. <view class="nav-name">
  147. <view class="">关系</view>
  148. </view>
  149. </view>
  150. <view class="arrow-right">
  151. <input class="custom-input" v-model="userInfo.blood" type="text" placeholder="请输入关系">
  152. </view>
  153. </view>
  154. </view>
  155. <view class="custom-line"></view>
  156. <view class="nav-content">
  157. <view class="nav-info">
  158. <view class="nav-desc">
  159. <view class="nav-name">
  160. <view class="">是否监护人</view>
  161. </view>
  162. </view>
  163. <view class="arrow-right">
  164. <view class="change-store">
  165. <u-radio-group
  166. size="14"
  167. v-model="userInfo.wardship"
  168. placement="row">
  169. <u-radio class="radio-item" activeColor="#eac00f" name="2" label="否"></u-radio>
  170. <u-radio class="radio-item" activeColor="#eac00f" name="1" label="是"></u-radio>
  171. </u-radio-group>
  172. </view>
  173. </view>
  174. </view>
  175. </view>
  176. <view class="custom-line"></view>
  177. <view class="nav-content">
  178. <view class="nav-info">
  179. <view class="nav-desc">
  180. <view class="nav-name">
  181. <view class="">备注</view>
  182. </view>
  183. </view>
  184. <view class="arrow-right">
  185. <input class="custom-input" v-model="userInfo.remark" type="text" placeholder="请输入备注">
  186. </view>
  187. </view>
  188. </view>
  189. <view class="custom-line"></view>
  190. <view class="nav-content" v-if="userInfo.minMainCardStatus">
  191. <view class="nav-info" style="align-items: normal">
  192. <view class="nav-desc">
  193. <view class="nav-name">
  194. <view class="">服务项目</view>
  195. </view>
  196. </view>
  197. <view class="arrow-right">
  198. <uni-data-checkbox mode="button" multiple v-model="userInfo.serviceProjectId"
  199. :localdata="serviceProjectList"/>
  200. </view>
  201. </view>
  202. </view>
  203. </view>
  204. <view @click="saveUserInfo()" class="sure-btn">
  205. <view class="btn">保存</view>
  206. </view>
  207. <view v-if="userInfo.id && userInfo.isSelf != 1 " @click="unbindServiceObject" class="sure-btn">
  208. <view class="btn1">解绑</view>
  209. </view>
  210. <!-- 性别选择 -->
  211. <u-picker :show="genderShow" keyName="gender" @confirm="sureChooseGender" :columns="genderList"></u-picker>
  212. <cropper selWidth="660rpx" selHeight="660rpx" ref="cropper" quality="0.5" @uploadImg="uploadCropImg"
  213. @upload="userInfo.facePhotoUrl"/>
  214. </view>
  215. </template>
  216. <script>
  217. import cropper from '@/components/lxiaoxiao-cropper/lxiaoxiao-cropper.vue';
  218. export default {
  219. components: {
  220. cropper
  221. },
  222. data() {
  223. return {
  224. accessToken: null,
  225. isAuthUpdate: true,
  226. serviceProjectList: [],
  227. userInfo: {
  228. auth: true,
  229. nickName: '',
  230. sex: '1',
  231. birthday: '',
  232. selfPhoto: '',
  233. memberType: '',
  234. facePhotos: '',
  235. facePhoto: '',
  236. ranks: 0,
  237. wardship: '1',
  238. blood: '',
  239. ranksState: '0',
  240. facePhotoUrl: '',
  241. name: '',
  242. authBook: '',
  243. signPhoto: '',
  244. remark: '',
  245. serviceProjectId: []
  246. },
  247. genderShow: false,
  248. date: Number(new Date()),
  249. // 服务时间
  250. genderList: [
  251. [{gender: '男', id: '0'},
  252. {gender: '女', id: '1'},
  253. {gender: '未知', id: '2'}
  254. ],
  255. ],
  256. imgUrl1: '',
  257. requestStatus: false,
  258. };
  259. },
  260. mounted() {
  261. },
  262. onLoad(option) {
  263. this.accessToken = uni.getStorageSync("accessToken");
  264. this.getServiceObjectList()
  265. if (option.data) {
  266. const data = JSON.parse(option.data);
  267. console.log('+++++++JSON.parse(option.data)++++++', option.data)
  268. if (data.authServiceIds) {
  269. this.userInfo.serviceProjectId = data.authServiceIds.split(',');
  270. }
  271. this.userInfo.facePhotoUrl = data.facePhotoUrl;
  272. this.userInfo.isSelf = data.isSelf;
  273. this.userInfo.minMainCardStatus = data.minMainCardStatus;
  274. this.userInfo.facePhoto = data.facePhoto;
  275. this.userInfo.facePhotos = data.facePhoto;
  276. this.userInfo.birthday = data.birthday;
  277. this.userInfo.memberType = data.memberType;
  278. this.userInfo.ranks = data.ranks;
  279. this.userInfo.wardship = data.wardship;
  280. this.userInfo.blood = data.blood;
  281. this.userInfo.ranksState = data.ranksState;
  282. this.userInfo.name = data.name;
  283. this.userInfo.authBook = data.authBook;
  284. this.userInfo.signPhoto = data.signPhoto;
  285. this.userInfo.sex = data.sex;
  286. this.userInfo.nickName = data.nickName;
  287. this.userInfo.remark = data.remark;
  288. this.userInfo.id = data.id;
  289. if (this.userInfo.id && this.userInfo.isSelf != 1) {
  290. this.getServiceObjectPhotoRecord(this.userInfo.id)
  291. }
  292. console.log('+++++++JSON.parse(option.data)++++++', this.userInfo)
  293. }
  294. },
  295. methods: {
  296. unbindServiceObject() {
  297. let that = this
  298. uni.showModal({
  299. title: '温馨提示',
  300. content: '解绑后您将无法看到该服务对象的信息!确定解绑?',
  301. success: function (res) {
  302. if (res.confirm) {
  303. console.log('用户点击确定');
  304. that.$api.unbindServiceObject({
  305. id: that.userInfo.id
  306. }).then(res => {
  307. uni.showToast({
  308. icon: 'none',
  309. title: '解绑成功!'
  310. })
  311. uni.navigateBack({
  312. delta: 1
  313. })
  314. })
  315. } else if (res.cancel) {
  316. console.log('用户点击取消');
  317. }
  318. }
  319. })
  320. },
  321. uploadCropImg(e) {
  322. uni.compressImage({
  323. src: e,
  324. success: res => {
  325. uni.uploadFile({
  326. url: this.$baseUrl + '/resource/oss/upload',
  327. filePath: res.tempFilePath,
  328. name: 'file',
  329. header: {
  330. 'Authorization': 'Bearer ' + uni.getStorageInfo('accessToken'),
  331. },
  332. success: (uploadFileRes) => {
  333. let res = JSON.parse(uploadFileRes.data)
  334. console.log(res, '成功回调')
  335. if (res.code !== 200) {
  336. uni.showToast({
  337. icon: 'none',
  338. duration: 3000,
  339. title: res.msg || '系统繁忙,请重试!'
  340. });
  341. }
  342. res.data.url.replace("http", "https");
  343. this.verifyFace(res.data)
  344. this.userInfo.facePhotoUrl = res.data.url.replace("http", "https");
  345. }
  346. });
  347. }
  348. })
  349. },
  350. getServiceObjectPhotoRecord(serviceObjectId) {
  351. this.$api.getServiceObjectPhotoRecord(
  352. {
  353. serviceObjectId: serviceObjectId
  354. }).then(res => {
  355. console.log(res)
  356. if (res.data.data) {
  357. uni.showModal({
  358. title: "温馨提示",
  359. content: "当前服务对象已授权,照片可修改",
  360. showCancel: false,
  361. success: function (res) {
  362. if (res.confirm) {
  363. console.log('用户点击确定');
  364. } else if (res.cancel) {
  365. console.log('用户点击取消');
  366. }
  367. }
  368. })
  369. }
  370. this.isAuthUpdate = res.data.data
  371. })
  372. },
  373. // 验证人象
  374. verifyFace(data) {
  375. let that = this;
  376. uni.showLoading({
  377. title: '人脸识别中'
  378. })
  379. if (this.requestStatus) {
  380. return;
  381. }
  382. this.requestStatus = true
  383. console.log(this.userInfo,'传入数据')
  384. // 保存原来的照片信息,用于识别失败时恢复
  385. const originalFacePhoto = this.userInfo.facePhoto;
  386. const originalFacePhotoUrl = this.userInfo.facePhotoUrl;
  387. this.$api.verifyFace({
  388. auth: true,
  389. facePath: data.ossId,
  390. businessId: ''
  391. }).then((res) => {
  392. this.requestStatus = false
  393. uni.hideLoading();
  394. console.log(this.userInfo.id, 'this.userInfo.id')
  395. console.log(res.data, 'res.data')
  396. // 情况1: code === 500,查无此人,直接通过
  397. if (res.data.data.code === 500) {
  398. this.userInfo.facePhoto = data.ossId
  399. this.userInfo.facePhotoUrl = data.url
  400. return;
  401. }
  402. // 情况2: 存在 id,需要判断回调中的 id 是否等于原服务对象 id
  403. if (res.data.data && res.data.data.id) {
  404. if (this.userInfo.id && res.data.data.id !== this.userInfo.id) {
  405. // 识别到的服务对象与当前服务对象不一致
  406. uni.showModal({
  407. title: '温馨提示',
  408. content: '人脸识别的服务对象与当前服务对象不一致,不允许修改照片!',
  409. showCancel: false,
  410. success: function (modalRes) {
  411. if (modalRes.confirm) {
  412. console.log('用户点击确定');
  413. // 恢复原来的照片信息,不允许保存新照片
  414. that.userInfo.facePhoto = originalFacePhoto;
  415. that.userInfo.facePhotoUrl = originalFacePhotoUrl;
  416. }
  417. }
  418. })
  419. return;
  420. }
  421. // id 一致或当前是新服务对象,允许修改
  422. this.userInfo.facePhoto = data.ossId
  423. this.userInfo.facePhotoUrl = data.url
  424. }
  425. }).catch((err) => {
  426. this.requestStatus = false
  427. // 识别失败时也恢复原来的照片
  428. this.userInfo.facePhoto = originalFacePhoto;
  429. this.userInfo.facePhotoUrl = originalFacePhotoUrl;
  430. uni.$u.toast(err.data.msg || '识别失败,请重新上传照片')
  431. });
  432. },
  433. //修改数组属性名
  434. changeKey(arr, newName, oldName) {
  435. arr.forEach(item => {
  436. item[newName] = item[oldName]
  437. delete item[oldName]
  438. })
  439. return arr
  440. },
  441. getServiceObjectList() {
  442. this.$api.serviceProjectList().then(res => {
  443. this.serviceProjectList = res.data.data
  444. console.log()
  445. this.changeKey(this.serviceProjectList, 'value', 'id')
  446. this.changeKey(this.serviceProjectList, 'text', 'serviceName')
  447. })
  448. },
  449. increment() {
  450. this.userInfo.ranks++;
  451. },
  452. decrement() {
  453. if (this.userInfo.ranks > 1) {
  454. this.userInfo.ranks--;
  455. }
  456. },
  457. handleRankChange(value) {
  458. console.log('Rank changed:', value);
  459. this.userInfo.ranks = value;
  460. // 在这里处理值改变事件的逻辑
  461. },
  462. // 选择性别
  463. chooseGender() {
  464. this.genderShow = true;
  465. },
  466. // 选择值
  467. sureChooseGender(e) {
  468. this.genderShow = false;
  469. this.userInfo.sex = e.value[0].id;
  470. },
  471. // 确定选择的服务日期
  472. bindDateChange(e) {
  473. console.log(e)
  474. this.userInfo.birthday = e.detail.value
  475. },
  476. // 保存用户信息
  477. saveUserInfo() {
  478. console.log(this.userInfo)
  479. if (!this.userInfo.nickName) {
  480. uni.showToast({
  481. title: "请认真填写宝贝昵称",
  482. icon: "none"
  483. })
  484. return;
  485. }
  486. if (!this.userInfo.blood) {
  487. uni.showToast({
  488. title: "请认真填写关系",
  489. icon: "none"
  490. })
  491. return;
  492. }
  493. if (!this.userInfo.birthday) {
  494. uni.showToast({
  495. title: "请认真填写宝贝生日",
  496. icon: "none"
  497. })
  498. return;
  499. }
  500. if (this.requestStatus) {
  501. return;
  502. }
  503. this.requestStatus = true
  504. this.userInfo.auth = true;
  505. this.userInfo.authServiceIds = this.userInfo.serviceProjectId.join()
  506. if (this.userInfo.id) {
  507. // 修改数据
  508. this.$api.updateServiceObject(this.userInfo).then((res) => {
  509. console.log(res)
  510. uni.showToast({
  511. title: "修改成功"
  512. })
  513. setTimeout(() => {
  514. this.requestStatus = false
  515. // uni.reLaunch({
  516. // url: '/myPages/ServiceObjectManagement/index'
  517. // });
  518. uni.navigateBack({
  519. delta: 1
  520. });
  521. }, 2000)
  522. }).catch(() => {
  523. this.requestStatus = false
  524. })
  525. } else {
  526. // 保存数据
  527. this.$api.saveServiceObject(this.userInfo).then((res) => {
  528. console.log(res)
  529. uni.showToast({
  530. title: "保存成功"
  531. })
  532. setTimeout(() => {
  533. this.requestStatus = false
  534. // uni.reLaunch({
  535. // url: '/myPages/ServiceObjectManagement/index'
  536. // });
  537. uni.navigateBack({
  538. delta: 1
  539. });
  540. }, 2000)
  541. }).catch(() => {
  542. this.requestStatus = false
  543. })
  544. }
  545. },
  546. //头像上传
  547. uploadImg1(imgIndex) {
  548. console.log(this.isAuthUpdate)
  549. if (!this.isAuthUpdate) {
  550. return //关闭头像上传
  551. }
  552. this.$refs.cropper.fSelect();
  553. // let that = this;
  554. // uni.chooseImage({
  555. // count: 1,
  556. // success: (chooseImageRes) => {
  557. // const tempFilePaths = chooseImageRes.tempFilePaths;
  558. // console.log(tempFilePaths)
  559. // uni.uploadFile({
  560. // url: that.$baseUrl + '/resource/oss/upload',
  561. // filePath: tempFilePaths[0],
  562. // name: 'file',
  563. //
  564. // header: {
  565. // // "Content-Type": "multipart/form-data",
  566. // // 'X-Access-Token': uni.getStorageSync('token'),
  567. // 'Authorization': 'Bearer ' + this.accessToken,
  568. // },
  569. // success: (uploadFileRes) => {
  570. // let res = JSON.parse(uploadFileRes.data)
  571. // console.log(res)
  572. // this.verifyFace(res.data)
  573. // },
  574. // fail: (err)=> {
  575. // console.log(err)
  576. // }
  577. // });
  578. // }
  579. // });
  580. }
  581. }
  582. };
  583. </script>
  584. <style lang="scss">
  585. .user-info-wrap {
  586. margin-left: 12px;
  587. margin-right: 12px;
  588. /* 导航菜单 */
  589. .nav-bar {
  590. background: #fff;
  591. border-radius: 10px;
  592. margin-top: 12px;
  593. /* 商店信息 */
  594. .nav-content {
  595. padding-right: 6px;
  596. padding-top: 10px;
  597. padding-bottom: 6px;
  598. .nav-info {
  599. display: flex;
  600. padding-left: 10px;
  601. align-items: center;
  602. .logo {
  603. width: 12%;
  604. text-align: center;
  605. image {
  606. width: 24px;
  607. height: 24px;
  608. }
  609. }
  610. .nav-desc {
  611. width: 46%;
  612. display: flex;
  613. line-height: 30px;
  614. font-family: PingFangSC-Regular, PingFang SC;
  615. font-weight: 400;
  616. align-items: center;
  617. .custom-input {
  618. font-size: 12px;
  619. }
  620. .nav-name {
  621. width: 60%;
  622. font-size: 14px;
  623. color: #333333;
  624. line-height: 22px;
  625. }
  626. .change-store {
  627. text-align: right;
  628. width: 40%;
  629. font-size: 12px;
  630. color: #333333;
  631. line-height: 22px;
  632. }
  633. }
  634. .arrow-right {
  635. width: 64%;
  636. /*text-align: right;*/
  637. margin: 0 auto;
  638. padding-top: 3px;
  639. display: flex;
  640. justify-content: flex-end;
  641. align-items: center;
  642. image {
  643. width: 18px;
  644. height: 18px;
  645. }
  646. .custom-input {
  647. font-size: 12px;
  648. width: 200rpx;
  649. /*border: 1px solid red;*/
  650. }
  651. .head-img {
  652. width: 50px;
  653. height: 50px;
  654. border-radius: 25px;
  655. text-align: center;
  656. padding-right: 20px;
  657. image {
  658. width: 50px;
  659. height: 50px;
  660. border-radius: 25px;
  661. }
  662. }
  663. .change-store {
  664. font-size: 14px;
  665. color: #999;
  666. line-height: 22px;
  667. }
  668. }
  669. }
  670. }
  671. }
  672. .sure-btn {
  673. margin-top: 20px;
  674. width: 100%;
  675. .btn {
  676. text-align: center;
  677. height: 42px;
  678. background: #FFE05C;
  679. border-radius: 27px;
  680. color: #333333;
  681. line-height: 42px;
  682. margin-top: 12px;
  683. font-size: 14px;
  684. }
  685. .btn1 {
  686. text-align: center;
  687. height: 42px;
  688. background: red;
  689. border-radius: 27px;
  690. color: #ffffff;
  691. line-height: 42px;
  692. margin-top: 12px;
  693. font-size: 14px;
  694. }
  695. }
  696. }
  697. .button-group {
  698. display: flex;
  699. align-items: center;
  700. }
  701. .button {
  702. padding: 6px 12px;
  703. font-size: 14px;
  704. background-color: #e6e6e6;
  705. border: none;
  706. border-radius: 4px;
  707. cursor: pointer;
  708. }
  709. .custom-input-ranks {
  710. width: 30px;
  711. font-size: 12px;
  712. text-align: center;
  713. }
  714. .radio-item {
  715. padding-right: 6px;
  716. }
  717. .picker-change-store {
  718. font-size: 14px;
  719. //color: #999;
  720. line-height: 22px;
  721. display: flex;
  722. flex-direction: row;
  723. }
  724. </style>