editInfo.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  1. <template>
  2. <view class="page">
  3. <PageHeader title="" class="PageHeader">
  4. <template slot="center">
  5. 基本资料
  6. </template>
  7. </PageHeader>
  8. <view class="reserveASeat"></view>
  9. <!-- <view style="height: 90rpx;"></view> -->
  10. <view class="list_info">
  11. <view class="bcenter">
  12. <view class="avator" @click="chooseAvatar">
  13. <!-- <image class="img" :src="avator" mode="aspectFill" /> -->
  14. <CircleAvatar class="avator" :src="avator" style="width: 200rpx; height: 200rpx;"></CircleAvatar>
  15. <image class="photo" src="../../static/me/photo.png" mode="widthFix" />
  16. </view>
  17. </view>
  18. <view class="section_title">基本信息</view>
  19. <view class="info_card">
  20. <view class="info_item" @click="openNicknamePopUpWindow">
  21. <text class="label">昵称</text>
  22. <view class="content">
  23. <text v-if="nickname" class="textContent">{{ nickname }}</text>
  24. <text v-else class="textPrompt">请输入昵称</text>
  25. <image class="arrow" src="../../static/me/arrow_right_gray.png" mode="widthFix" />
  26. </view>
  27. </view>
  28. <view class="info_item" @click="SetSex">
  29. <text class="label">性别</text>
  30. <view class="content">
  31. <input type="text" placeholder="选择你的性别" v-model="sexText" disabled="true" />
  32. <image class="arrow" src="../../static/me/arrow_right_gray.png" mode="widthFix" />
  33. </view>
  34. </view>
  35. <view class="info_item">
  36. <text class="label">生日</text>
  37. <view class="content">
  38. <picker mode="date" :value="birthday" :end="endDate" @change="onBirthdayChange">
  39. <input type="text" placeholder="选择你的生日" v-model="birthday" disabled="true" />
  40. </picker>
  41. <image class="arrow" src="../../static/me/arrow_right_gray.png" mode="widthFix" />
  42. </view>
  43. </view>
  44. <view class="info_item">
  45. <text class="label">星座</text>
  46. <view class="content">
  47. <input type="text" placeholder="根据你的生日自动匹配" :value="xinzuo_sel" disabled="true"
  48. style="padding-right: 43rpx;" />
  49. <!-- <image class="arrow" src="../../static/me/arrow_right_gray.png" mode="widthFix" /> -->
  50. </view>
  51. </view>
  52. <view class="info_item" @click="openContentPopUpWindow">
  53. <text class="label">简介</text>
  54. <view class="content">
  55. <!-- <input type="text" placeholder="做个自我介绍吧~" v-model="content" maxlength="32" /> -->
  56. <text v-if="content" class="textContent one-omit">{{ content }}</text>
  57. <text v-else class="textPrompt">做个自我介绍吧</text>
  58. <image class="arrow" src="../../static/me/arrow_right_gray.png" mode="widthFix" />
  59. </view>
  60. </view>
  61. </view>
  62. <view class="section_title">个性标签</view>
  63. <view class="info_card">
  64. <view class="item_tag">
  65. <view class="tag" v-for="(item, index) in sel_tags" :key="index">
  66. {{ item }}
  67. <image class="close" src="../../static/me/close.png" mode="widthFix" @click="delTag(item)" />
  68. </view>
  69. <view class="addNew" @click="showPop = true;">+ 添加</view>
  70. </view>
  71. </view>
  72. <view class="blankHeight"></view>
  73. </view>
  74. <view class="btn_submit" @click="submitData(true)">保存</view>
  75. <DialogBox ref="DialogBox"></DialogBox>
  76. <view class="popSel" v-if="showPop" @tap.stop="onPreview">
  77. <PageHeader title="添加标签" @back="showPop = false" :isBack="false" style="background: #f2f6f2;" />
  78. <view class="reserveASeat"></view>
  79. <view class="headLabel">
  80. <view class="avator-box">
  81. <CircleAvatar class="avator" :src="avator"></CircleAvatar>
  82. <view class="one-omit">{{ nickname }}</view>
  83. </view>
  84. <view class="tag-box">
  85. <view class="tag" v-for="(item, index) in sel_tags" :key="index">
  86. {{ item }}
  87. <image class="close" src="../../static/me/close.png" mode="widthFix" @click="delTag(item)" />
  88. </view>
  89. </view>
  90. </view>
  91. <view class="list_info">
  92. <view class="name">你的兴趣爱好是?</view>
  93. <view class="desc">提示:最多选择5个兴趣爱好标签</view>
  94. <view style="height: 700rpx; overflow-y: scroll; margin-top: 20rpx; padding-bottom: 100rpx;">
  95. <view class="add-tag-box" style="color: #000;" v-if="showAddTag">
  96. <input
  97. class="add-tag-input"
  98. v-model="newTag"
  99. placeholder="请输入标签名称"
  100. maxlength="10"
  101. @confirm="addCustomTag"
  102. />
  103. <view class="add-tag-btns">
  104. <text class="cancel-btn" @tap="cancelAddTag">取消</text>
  105. <text class="confirm-btn" @tap="addCustomTag">确定</text>
  106. </view>
  107. </view>
  108. <view class="item_tag">
  109. <view class="tag add-tag" @tap="showAddTagInput">
  110. <text>+ 自定义</text>
  111. </view>
  112. <view @tap.stop="chkTag(item)" class="tag" :class="selTags(item) ? 'active' : ''"
  113. v-for="(item, index) in list_tag" :key="index">
  114. {{ item }}
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. <view class="btn_submit" @click="showPop = false;">提交选择</view>
  120. </view>
  121. <ToastW3 ref="ToastW3"></ToastW3>
  122. <!-- <view v-if="showRights"
  123. style="width:100%;height:300rpx;background-color: rgba(255,255,255,0.9);position: fixed;top:0;display: flex;flex-direction: column;justify-content: center;align-items: center;">
  124. <text
  125. style="width:90%;color:#000000;font-size:38rpx;text-align: left;padding:10rpx 20rpx;padding-top:10rpx;">正在获取相机、存储权限</text>
  126. <text
  127. style="width:90%;color:#666666;font-size:28rpx;text-align: left;padding:10rpx 20rpx;">该权限用于获取设备拍摄或获取本地应用相册,进行头像或图片上传。</text>
  128. </view> -->
  129. <view>
  130. <NicknamePopup title="编辑昵称" subtitle="" class="openNicknamePopUpWindow" ref="openNicknamePopUpWindow">
  131. <template slot="content">
  132. <view class="input-box">
  133. <uv-input placeholder="请输入昵称" border="surround" v-model="nickname" maxlength="20"></uv-input>
  134. <view class="length-indicator">{{ nickname.length }}/20</view>
  135. </view>
  136. <view class="btn-box" @click="submitData">保存</view>
  137. </template>
  138. </NicknamePopup>
  139. <NicknamePopup title="专属于你的简介" subtitle="好的简介让你在社区更受关注" class="openContentPopUpWindow"
  140. ref="openContentPopUpWindow">
  141. <template slot="content">
  142. <uv-textarea v-model="content" maxlength="50" count placeholder="请输入内容"></uv-textarea>
  143. <view class="btn-box" @click="submitData">保存</view>
  144. </template>
  145. </NicknamePopup>
  146. </view>
  147. </view>
  148. </template>
  149. <script>
  150. import PageHeader from '@/components/PageHeader/PageHeader.vue';
  151. import CircleAvatar from '@/components/CircleAvatar/CircleAvatar.vue';
  152. import NicknamePopup from '@/components/NicknamePopup/NicknamePopup.vue';
  153. import permission from '@/common/permission.js';
  154. export default {
  155. components: {
  156. PageHeader,
  157. CircleAvatar,
  158. NicknamePopup
  159. },
  160. data() {
  161. return {
  162. showRights: false,
  163. title: '',
  164. sel: 1,
  165. info: {},
  166. showPop: false,
  167. nickname: '',
  168. content: '',
  169. sex: 1,
  170. age: 18,
  171. height: 160,
  172. weight: 50,
  173. avator: '../../static/me/avator.png',
  174. ziye: '',
  175. qianmin: '',
  176. xinzuo_sel: '',
  177. xinzuo: ['水瓶座', '双鱼座', '白羊座', '金牛座', '双子座', '巨蟹座', '狮子座', '处女座', '天秤座', '天蝎座', '射手座', '摩羯座'],
  178. list_tag: [],
  179. sel_tags: [],
  180. sexText: '',
  181. birthday: '',
  182. sexOptions: ['男', '女', '其他'],
  183. endDate: new Date().toISOString().split('T')[0],
  184. showAddTag: false,
  185. newTag: '',
  186. }
  187. },
  188. onLoad() {
  189. let tagStr =
  190. "老二次元了、coser、沉迷音乐、网游小达人、AJ控、白日梦想家、撸铁狂魔、古风汉服、爱画画、数码极客、盲盒玩家、三坑玩家、动漫达人、独立设计师、爱卡通、兜风去、爱夜跑、街头滑板、球类运动、lo娘、rapper、时尚达人、机甲狂潮、养宠物、风轻云淡、养多肉、热爱自然、赛博朋克、骨子里高冷、爱唠嗑、资深中二、天然呆、思想家、极度抽象、学院派、平平无奇、热情奔放、博古通今、labubu粉、玛特收藏家";
  191. this.list_tag = tagStr.split("、");
  192. this.getInfoData();
  193. },
  194. onShow() {},
  195. methods: {
  196. openNicknamePopUpWindow() {
  197. this.$refs.openNicknamePopUpWindow.open();
  198. },
  199. openContentPopUpWindow() {
  200. this.$refs.openContentPopUpWindow.open();
  201. },
  202. closePropUp() {
  203. this.$refs.openNicknamePopUpWindow.close();
  204. this.$refs.openContentPopUpWindow.close();
  205. },
  206. onBack() {},
  207. onPreview() {},
  208. chkSel() {
  209. if (this.sel == 1) {
  210. this.sel = 0;
  211. } else {
  212. this.sel = 1;
  213. }
  214. },
  215. chkSex(sex) {
  216. this.sex = sex;
  217. },
  218. delTag(tg) {
  219. let list_tag2 = [];
  220. for (let i = 0; i < this.sel_tags.length; i++) {
  221. if (this.sel_tags[i] != tg) {
  222. list_tag2.push(this.sel_tags[i]);
  223. }
  224. }
  225. this.sel_tags = list_tag2;
  226. },
  227. selTags(itm) {
  228. let isIn = false;
  229. for (let entry of this.sel_tags) {
  230. if (entry == itm) {
  231. isIn = true;
  232. break;
  233. }
  234. }
  235. return isIn;
  236. },
  237. chkTag(itm) {
  238. if (this.selTags(itm)) {
  239. let tmpTags = [];
  240. for (let entry of this.sel_tags) {
  241. if (entry != itm) {
  242. tmpTags.push(entry);
  243. }
  244. }
  245. this.sel_tags = tmpTags;
  246. } else {
  247. if (this.sel_tags.length <= 4) {
  248. this.sel_tags.push(itm);
  249. } else {
  250. uni.showToast({
  251. title: "最多选择5个标签",
  252. icon: "none"
  253. });
  254. }
  255. }
  256. },
  257. sliderChange1(e) {
  258. this.age = e.detail.value;
  259. },
  260. sliderChange2(e) {
  261. this.height = e.detail.value;
  262. },
  263. sliderChange3(e) {
  264. this.weight = e.detail.value;
  265. },
  266. SetSex() {
  267. let that = this;
  268. uni.showActionSheet({
  269. itemColor: '#000000',
  270. itemList: this.sexOptions,
  271. success: function(res) {
  272. that.sexText = that.sexOptions[res.tapIndex];
  273. that.sex = res.tapIndex + 1;
  274. },
  275. fail: function(res) {
  276. console.log(res.errMsg);
  277. }
  278. });
  279. },
  280. getInfoData() {
  281. uni.request({
  282. url: this.$apiHost + '/Member/getinfoData',
  283. data: {
  284. uuid: getApp().globalData.uuid
  285. },
  286. header: {
  287. 'content-type': 'application/json'
  288. },
  289. success: (res) => {
  290. console.log(res.data);
  291. this.nickname = res.data.nickname;
  292. this.wechat = res.data.wechat;
  293. this.sex = res.data.sex;
  294. this.sexText = this.sexOptions[res.data.sex - 1] || '';
  295. this.birthday = res.data.birthday;
  296. this.content = res.data.content;
  297. this.xinzuo_sel = this.getConstellation(this.birthday);
  298. if (res.data.avator != "") {
  299. this.avator = res.data.avator;
  300. }
  301. if (res.data.aihao) {
  302. this.sel_tags = res.data.aihao.split(",");
  303. }
  304. }
  305. });
  306. },
  307. submitData(isBack) {
  308. let aihao = this.sel_tags.join(',')
  309. let obj2 = {
  310. uuid: getApp().globalData.uuid,
  311. avator: this.avator,
  312. nickname: this.nickname,
  313. content: this.content,
  314. sex: this.sex,
  315. birthday: this.birthday,
  316. xinzuo: this.xinzuo_sel,
  317. ziye: this.ziye,
  318. qianmin: this.qianmin,
  319. aihao: aihao
  320. }
  321. uni.request({
  322. url: this.$apiHost + '/Member/setinfoData',
  323. data: obj2,
  324. method: 'POST',
  325. header: {
  326. 'Content-Type': 'application/x-www-form-urlencoded',
  327. 'sign': getApp().globalData.headerSign
  328. },
  329. dataType: 'json',
  330. success: (res) => {
  331. console.log("res", res.data)
  332. uni.showToast({
  333. title: res.data.str,
  334. animation: 0,
  335. icon: "none"
  336. });
  337. if ( res.data.success == 'yes' && isBack == true) {
  338. if (this.nickname) {
  339. getApp().globalData.nickname = this.nickname
  340. uni.removeStorageSync("nickname");
  341. uni.setStorageSync("nickname", this.nickname);
  342. }
  343. if (this.avator) {
  344. getApp().globalData.avator = this.avator
  345. uni.removeStorageSync("avator");
  346. uni.setStorageSync("avator", this.avator);
  347. }
  348. setTimeout(function() {
  349. uni.navigateBack()
  350. }, 800)
  351. } else {
  352. this.closePropUp()
  353. }
  354. this.getInfoData()
  355. }
  356. });
  357. },
  358. chooseAvatar() {
  359. uni.showActionSheet({
  360. itemList: ['拍照', '从相册选择'],
  361. success: (res) => {
  362. const sourceType = res.tapIndex === 0 ? 'camera' : 'album';
  363. this.chooseImage(sourceType);
  364. }
  365. });
  366. },
  367. async chooseImage(sourceType) {
  368. try {
  369. let hasPermission = false;
  370. if (sourceType === 'camera') {
  371. hasPermission = await this.checkCameraPermission();
  372. } else if (sourceType === 'album') {
  373. hasPermission = await this.checkPhotoLibraryPermission();
  374. }
  375. if (!hasPermission) {
  376. uni.showToast({
  377. title: '未获得权限',
  378. icon: 'none'
  379. });
  380. return;
  381. }
  382. uni.chooseImage({
  383. count: 1,
  384. sizeType: ['compressed'],
  385. sourceType: [sourceType],
  386. success: async (res) => {
  387. console.log('res:', res)
  388. if (res.tempFilePaths.length > 0) {
  389. const tempFilePath = res.tempFilePaths[0];
  390. console.log('tempFilePaths:', tempFilePath);
  391. await this.uploadImage(tempFilePath);
  392. }
  393. },
  394. fail: (err) => {
  395. console.error('选择图片失败:', err);
  396. uni.showToast({
  397. title: '选择图片失败',
  398. icon: 'none'
  399. });
  400. }
  401. });
  402. } catch (error) {
  403. console.error('权限检查失败:', error);
  404. uni.showToast({
  405. title: '权限检查失败',
  406. icon: 'none'
  407. });
  408. }
  409. },
  410. async checkCameraPermission() {
  411. const hasPermission = await permission.request(permission.PermissionType.CAMERA, {
  412. title: '相机权限申请',
  413. describe: '需要使用相机拍摄照片,用于帮助您完成图片制作、图片拍摄、图片上传等功能'
  414. });
  415. return hasPermission;
  416. },
  417. async checkPhotoLibraryPermission() {
  418. const hasPermission = await permission.request(permission.PermissionType.PHOTO_LIBRARY, {
  419. title: '相册权限申请',
  420. describe: '需要访问相册选择照片,用于帮助您完成图片制作、图片拍摄、图片上传等功能'
  421. });
  422. return hasPermission;
  423. },
  424. uploadImage(tempFilePath) {
  425. var _self = this;
  426. const uploadTask = uni.uploadFile({
  427. url: _self.$apiHost + '/Xweb/upload_img?skey=' + _self.skey,
  428. filePath: tempFilePath,
  429. name: 'file',
  430. success: function(uploadFileRes) {
  431. let resdata = JSON.parse(uploadFileRes.data)
  432. console.log('Success11:', uploadFileRes);
  433. console.log('Success21:', resdata);
  434. if (resdata.success == 'yes') {
  435. _self.showRights = false;
  436. _self.avator = resdata.url;
  437. }
  438. },
  439. fail: function(uploadFileFail) {
  440. console.log('Error:', uploadFileFail.data);
  441. },
  442. complete: () => {
  443. console.log('Complete:');
  444. }
  445. });
  446. },
  447. onBirthdayChange(e) {
  448. this.birthday = e.detail.value;
  449. this.xinzuo_sel = this.getConstellation(this.birthday);
  450. },
  451. getConstellation(birthday) {
  452. if (!birthday) return '';
  453. const month = parseInt(birthday.split('-')[1]);
  454. const day = parseInt(birthday.split('-')[2]);
  455. // 星座日期数组
  456. const constellationDates = [
  457. [1, 20, "水瓶座"],
  458. [2, 19, "双鱼座"],
  459. [3, 21, "白羊座"],
  460. [4, 20, "金牛座"],
  461. [5, 21, "双子座"],
  462. [6, 22, "巨蟹座"],
  463. [7, 23, "狮子座"],
  464. [8, 23, "处女座"],
  465. [9, 23, "天秤座"],
  466. [10, 24, "天蝎座"],
  467. [11, 23, "射手座"],
  468. [12, 22, "摩羯座"]
  469. ];
  470. let constellation = "";
  471. if (day < constellationDates[month - 1][1]) {
  472. constellation = constellationDates[month - 1][2];
  473. } else {
  474. constellation = constellationDates[month % 12][2];
  475. }
  476. return constellation;
  477. },
  478. showAddTagInput() {
  479. this.showAddTag = true;
  480. this.newTag = '';
  481. },
  482. cancelAddTag() {
  483. this.showAddTag = false;
  484. this.newTag = '';
  485. },
  486. addCustomTag() {
  487. if (!this.newTag.trim()) {
  488. uni.showToast({
  489. title: '请输入标签名称',
  490. icon: 'none'
  491. });
  492. return;
  493. }
  494. if (this.list_tag.includes(this.newTag)) {
  495. uni.showToast({
  496. title: '该标签已存在',
  497. icon: 'none'
  498. });
  499. return;
  500. }
  501. this.list_tag.unshift(this.newTag);
  502. this.showAddTag = false;
  503. this.newTag = '';
  504. },
  505. }
  506. }
  507. </script>
  508. <style scoped lang="scss">
  509. @import 'normal.scss';
  510. page {
  511. font-family: PingFang SC-Medium;
  512. }
  513. .popSel {
  514. position: fixed;
  515. z-index: 101;
  516. top: 0;
  517. left: 0;
  518. background-color: #f2f6f2;
  519. width: 100vh;
  520. min-height: 100vh;
  521. .headLabel {
  522. width: 686rpx;
  523. margin: 28rpx 32rpx;
  524. min-height: 222rpx;
  525. background: #fff;
  526. box-sizing: border-box;
  527. padding: 30rpx 40rpx 46rpx 20rpx;
  528. border-radius: 20rpx;
  529. .avator-box {
  530. display: flex;
  531. align-items: center;
  532. .avator {
  533. width: 80rpx;
  534. height: 80rpx;
  535. margin-right: 20rpx;
  536. }
  537. }
  538. .tag-box {
  539. display: flex;
  540. flex-direction: row;
  541. justify-content: flex-start;
  542. align-items: center;
  543. flex-wrap: wrap;
  544. font-size: 24rpx;
  545. .tag {
  546. margin-right: 16rpx;
  547. margin-top: 20rpx;
  548. padding: 6rpx 10rpx;
  549. border: 2rpx solid #DCE1DC;
  550. color: #9E9E9E;
  551. display: flex;
  552. justify-content: center;
  553. align-items: center;
  554. border-radius: 42rpx;
  555. line-height: 1;
  556. .close {
  557. width: 20rpx;
  558. margin-left: 12rpx;
  559. position: relative;
  560. }
  561. }
  562. }
  563. }
  564. }
  565. .openNicknamePopUpWindow {
  566. .length-indicator {
  567. font-size: 24rpx;
  568. color: #999;
  569. text-align: right;
  570. margin-top: 10rpx;
  571. margin-right: 20rpx;
  572. position: absolute;
  573. right: 24rpx;
  574. top: 24rpx;
  575. }
  576. }
  577. .popSel {
  578. .item_tag {
  579. display: flex;
  580. flex-direction: row;
  581. justify-content: flex-start;
  582. align-items: center;
  583. flex-wrap: wrap;
  584. width: 690rpx;
  585. padding: 20rpx;
  586. .tag {
  587. border-radius: 94rpx;
  588. margin-right: 10rpx;
  589. margin-top: 10rpx;
  590. padding: 8rpx 16rpx;
  591. font-size: 28rpx;
  592. color: #333;
  593. display: flex;
  594. flex-direction: row;
  595. justify-content: center;
  596. align-items: center;
  597. background: #fff;
  598. border-width: 0;
  599. .close {
  600. width: 28rpx;
  601. margin-left: 2rpx;
  602. position: relative;
  603. }
  604. }
  605. .active {
  606. border-width: 0;
  607. background: #ACF934;
  608. }
  609. .addNew {
  610. margin-right: 10rpx;
  611. margin-top: 10rpx;
  612. padding: 0rpx 20rpx;
  613. height: 60rpx;
  614. border-radius: 12rpx;
  615. background: #1f1f1f;
  616. color: #fff;
  617. display: flex;
  618. flex-direction: row;
  619. justify-content: center;
  620. align-items: center;
  621. }
  622. }
  623. }
  624. .reserveASeat {
  625. width: 100%;
  626. height: calc(var(--status-bar-height) + 50rpx);
  627. }
  628. .page {
  629. background: url("../../static/me/wd_bg_bianjiziliao.png") top center/ 100% auto no-repeat,
  630. #f2f6f2;
  631. }
  632. .PageHeader {
  633. background: url("../../static/me/wd_bg_bianjiziliao.png") center top / 100% auto no-repeat,
  634. #f2f6f2;
  635. background-position-y: var(--status-bar-height);
  636. }
  637. .add-tag-box {
  638. background: #fff;
  639. padding: 20rpx;
  640. margin: 20rpx;
  641. border-radius: 12rpx;
  642. .add-tag-input {
  643. width: 100%;
  644. height: 80rpx;
  645. background: #f5f5f5;
  646. border-radius: 8rpx;
  647. padding: 0 20rpx;
  648. font-size: 28rpx;
  649. margin-bottom: 20rpx;
  650. }
  651. .add-tag-btns {
  652. display: flex;
  653. justify-content: flex-end;
  654. gap: 20rpx;
  655. .cancel-btn, .confirm-btn {
  656. padding: 10rpx 30rpx;
  657. border-radius: 8rpx;
  658. font-size: 28rpx;
  659. }
  660. .cancel-btn {
  661. background: #f5f5f5;
  662. color: #666;
  663. }
  664. .confirm-btn {
  665. background: #1f1f1f;
  666. color: #fff;
  667. }
  668. }
  669. }
  670. .item_tag {
  671. .add-tag {
  672. background: #f5f5f5;
  673. color: #666;
  674. border: 2rpx dashed #ddd;
  675. &:active {
  676. background: #e5e5e5;
  677. }
  678. }
  679. }
  680. </style>