my.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. <template>
  2. <view class="page">
  3. <view class="topBody">
  4. <!-- <view class="header" :class="{ 'header-isvip': !isRecharge }"> -->
  5. <view class="header">
  6. <view class="reserveASeat"></view>
  7. <view class="card-box">
  8. <view class="card-top">
  9. <view class="top-box">
  10. <view class="hello-box"> Hello! </view>
  11. <view class="settingBtn-box">
  12. <image @click="clickShare()" src="@/static/me/wd_icon_fenxian.png" mode=""></image>
  13. <image src="@/static/me/wd_icon_shezhi.png" mode="" @click="navigateToSettings"></image>
  14. </view>
  15. </view>
  16. <view class="userinfo-box" @click="goPage('/pages/my/editInfo')">
  17. <view class="userinfo-left">
  18. <CircleAvatar class="avator" :src="myinfo.avator"></CircleAvatar>
  19. </view>
  20. <view class="userinfo-right">
  21. <view class="nickname">
  22. <text class="one-omit">{{ myinfo.nickname }}</text>
  23. <image src="../../static/icon/wd_icon_nan.png" mode="widthFix"
  24. v-if="myinfo.sex_id == 1"></image>
  25. <image src="../../static/icon/wd_icon_nv.png" mode="widthFix"
  26. v-else-if="myinfo.sex_id == 2"></image>
  27. <view class="level">Lv{{ myinfo.my_level }}</view>
  28. </view>
  29. <view class="label">
  30. <view v-for="(item, index) in aihao_tags" :key="index + item">
  31. {{ item }}
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="intro_row">
  37. <block v-if="myinfo.content == ''">
  38. <text class="intro_text two-omit">添加简介</text>
  39. <image src="@/static/icon/wd_icon_edit.png" mode="widthFix" class="add_icon"></image>
  40. </block>
  41. <uv-text v-else :text="myinfo.content" class="intro_text two-omit">
  42. </uv-text>
  43. </view>
  44. <view class="bom">
  45. <view class="follow_info" @click="navigateToFollow">
  46. <view class="follow-box">
  47. <view class="num">{{ myinfo.num_attention }}</view>
  48. <view class="label">关注</view>
  49. </view>
  50. <view class="separator"></view>
  51. <view class="follow-box">
  52. <view class="num">{{ myinfo.num_fans }}</view>
  53. <view class="label">粉丝</view>
  54. </view>
  55. <view class="separator"></view>
  56. <view class="follow-box">
  57. <view class="num">{{ myinfo.num_like }}</view>
  58. <view class="label">获赞</view>
  59. </view>
  60. </view>
  61. <view class="points-box">
  62. <view class="points" @click="isRecharge ? goPage('/pages/vip/M_purchase') : ''">
  63. <image src="@/static/icon/wd_icon_coin.png" mode=""></image>
  64. {{ myinfo.num_gmm | formatNumberToK }}
  65. <view class="money-add" v-if="isRecharge">+</view>
  66. </view>
  67. <view class="points" @click="isRecharge ? goPage('/pages/my/job?type=recharge') : ''">
  68. <image src="@/static/icon/coin_cd.png" mode=""></image>
  69. {{ myinfo.num_gmd | formatNumberToK }}
  70. <view class="money-add" v-if="isRecharge">+</view>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. <!-- <view class="card-bom" v-if="isRecharge" @click="goPage('/pages/vip/index')"> -->
  76. <view class="card-bom" @click="isRecharge ? goPage('/pages/vip/index') : ''">
  77. <view class="content-box">
  78. <image v-if="false" src="@/static/me/icon-vip2.png" mode=""></image>
  79. <image v-else-if="0" src="@/static/me/icon-vip1.png" mode=""></image>
  80. <image v-else src="@/static/me/icon-vip0.png" mode=""></image>
  81. <text v-if="myinfo.is_vip == 0">开启专属会员权益</text>
  82. <text v-else style="font-size: 24rpx;">会员权益生效中&emsp13;
  83. </text>
  84. </view>
  85. <!-- <view class=""> -->
  86. <text style="color: rgba(172 ,249 ,52, .5);">
  87. {{myinfo.vip_date}}
  88. </text>
  89. <image v-if="isRecharge" src="@/static/me/wd_icon_jiantou.png" mode=""></image>
  90. <!-- </view> -->
  91. </view>
  92. </view>
  93. </view>
  94. <view class="myinfo">
  95. <!-- <view class="line"></view> -->
  96. <view class="tablist">
  97. <view class="item" :class="{ active: firstLevelNavActive === 0 }"
  98. @click="firstLevelNavActiveSwitch(0)">我的作品
  99. <view class="indicator-triangle"> </view>
  100. </view>
  101. <view class="item" :class="{ active: firstLevelNavActive === 1 }"
  102. @click="firstLevelNavActiveSwitch(1)">我的帖子
  103. <view class="indicator-triangle"> </view>
  104. </view>
  105. </view>
  106. <!-- 作品列表 -->
  107. <template v-if="firstLevelNavActive == 0">
  108. <view class="line"></view>
  109. <view class="subtitle">
  110. <view class="item" :class="{ active: activeTab === 0 }" @click="switchTab(0)">
  111. 作品
  112. </view>
  113. <view class="item" :class="{ active: activeTab === 1 }" @click="switchTab(1)">
  114. 生成中
  115. </view>
  116. </view>
  117. <view class="numlist1" v-if="activeTab === 0" style="margin-top: 30rpx">
  118. <WorkItem v-for="(item, index) in worksList" :secrecy="true" :subtitle="true" :key="index"
  119. :item="item" @click="goWork(item)" />
  120. <!-- 暂无内容提示 -->
  121. <view v-if="worksList.length === 0" class="empty-state">
  122. <image src="@/static/icon/xx_img_zanwuxiaoxi.png" mode="aspectFit" class="empty-image">
  123. </image>
  124. <text class="empty-text">暂无作品</text>
  125. <text class="empty-subtext">快来创作你的第一个作品吧~</text>
  126. </view>
  127. </view>
  128. <view class="numlist2" v-if="activeTab === 1" style="margin-top: 30rpx">
  129. <view class="item" v-for="(item, index) in worksList" :key="index" style="margin-bottom: 28rpx;">
  130. <view class="num" @click="goWork(item)" :class="{'clickable': item.status !== 3 && item.status !== 4}">
  131. <WorkItem :item="item" style="margin-bottom: 12rpx" />
  132. <image class="incomplete-bg" v-if="item.status != 9"
  133. src="@/static/me/wd_bg_zhizuozhong.png"></image>
  134. <view class="maskLayer"></view>
  135. <!-- 当activeTab为1时显示队列状态 -->
  136. <view class="queue-status">
  137. <!-- 排队中 -->
  138. <view v-if="item.status === 1" class="status-text">
  139. <image class="state-img" src="@/static/me/wd_icon_paiduizhong.png"></image>
  140. </view>
  141. <!-- 生成失败 -->
  142. <view v-if="item.status === 3 || item.status === 4" class="status-text">
  143. <image class="state-img" src="@/static/me/wd_icon_zhizuoshibai.png"></image>
  144. </view>
  145. <!-- 制作中 -->
  146. <view v-else-if="item.status < 9" class="status-text">
  147. <image class="state-img" src="@/static/me/wd_icon_zhizuozhong.png"></image>
  148. </view>
  149. <!-- 创作完成 -->
  150. <view v-else-if="item.status === 9" class="status-text">
  151. <image class="state-img" src="@/static/me/wd_icon_chuangzuowancheng.png">
  152. </image>
  153. </view>
  154. </view>
  155. <view class="name" style="
  156. font-family: 'PingFang SC-Medium';
  157. font-weight: 500;
  158. font-size: 28rpx;
  159. color: #1a4d2e;
  160. ">
  161. {{ item.title || item.description || "作品" + index }}
  162. </view>
  163. <!-- 显示任务类型标签 -->
  164. <view class="task-type-tag">
  165. <image style="width: 120rpx; height: 36rpx" v-if="item.task_type === 1"
  166. src="@/static/me/wd_icon_lingganchuangzuo.png"></image>
  167. <image style="width: 82rpx; height: 36rpx" v-else-if="item.task_type === 2"
  168. src="@/static/me/wd_icon_yinyue.png"></image>
  169. <!-- <text v-if="item.task_type === 1">灵感创作</text>
  170. <text v-else-if="item.task_type === 2">音乐</text> -->
  171. </view>
  172. </view>
  173. </view>
  174. <!-- 暂无内容提示 -->
  175. <view v-if="worksList.length === 0" class="empty-state">
  176. <image src="@/static/icon/xx_img_zanwuxiaoxi.png" mode="aspectFit" class="empty-image">
  177. </image>
  178. <text class="empty-text">暂无生成中的作品</text>
  179. <text class="empty-subtext">快去创作新作品吧~</text>
  180. </view>
  181. </view>
  182. </template>
  183. <template v-else>
  184. <view class="numlist2" style="margin-top: 30rpx">
  185. <view class="item" v-for="(item, index) in worksList" :key="index" style="margin-bottom: 15rpx">
  186. <view class="num" @click="goWork2(item)" :class="{'clickable': item.status !== 3 && item.status !== 4}">
  187. <WorkItem :item="item" style="margin-bottom: 20rpx" />
  188. <view class="incomplete-bg" style="background: #f8f9fa"></view>
  189. <image class="incomplete-bg" v-if="item.status != 1"
  190. src="@/static/me/wd_bg_zhizuozhong.png"></image>
  191. <image class="incomplete-bg2" v-else-if="item.status == 1" :src="item.image"
  192. mode="aspectFill" style="max-height: 520rpx;"></image>
  193. <view class="maskLayer" v-if="item.status != 1"></view>
  194. <!-- 当activeTab为1时显示队列状态 -->
  195. <view class="queue-status">
  196. <!-- 已发布 -->
  197. <view v-if="item.status == 1" class="status-text">
  198. </view>
  199. <!-- 待审核 -->
  200. <view v-if="item.status == 2 || item.status === 4" class="status-text">
  201. <image class="state-img" src="@/static/me/wd_icon_shenhezhong.png"></image>
  202. </view>
  203. <!-- 审核失败 -->
  204. <view v-else-if="item.status == 3" class="status-text">
  205. <image class="state-img" src="@/static/me/wd_icon_fabushibai.png"></image>
  206. </view>
  207. </view>
  208. <view class="name" style="
  209. font-family: 'PingFang SC-Medium';
  210. font-weight: 500;
  211. font-size: 28rpx;
  212. color: #1a4d2e;
  213. ">
  214. {{ item.title || item.description || "作品" + index }}
  215. </view>
  216. </view>
  217. </view>
  218. <!-- 暂无内容提示 -->
  219. <view v-if="worksList.length === 0" class="empty-state">
  220. <image src="@/static/icon/xx_img_zanwuxiaoxi.png" mode="aspectFit" class="empty-image">
  221. </image>
  222. <text class="empty-text">暂无帖子</text>
  223. <text class="empty-subtext">快来发布你的第一个帖子吧~</text>
  224. </view>
  225. </view>
  226. </template>
  227. <!-- 加载更多提示 -->
  228. <!-- <view class="loading-more" v-if="isLoading">加载中...</view>
  229. <view class="no-more" v-if="!hasMore && worksList.length > 0">没有更多作品了</view>
  230. <view class="no-more" v-if="!hasMore && worksList.length === 0">暂无作品</view> -->
  231. </view>
  232. <view class="blankHeight"></view>
  233. </view>
  234. <view class="reserveASeatBom"></view>
  235. <!-- 确认框 -->
  236. <CustomConfirm ref="customConfirm"></CustomConfirm>
  237. <!-- 提示框 -->
  238. <DialogBox ref="DialogBox"></DialogBox>
  239. <tabbar-view :tabbars="tabbars" :currentIndex="4" ref="tabbar"></tabbar-view>
  240. <!-- SharePopup组件 -->
  241. <SharePopup :visible="showShare" :userId="userId" :share-title="shareTitle" :share-desc="shareDesc"
  242. :share-img="shareImg" view="makeDetail" @close="showShare = false" />
  243. </view>
  244. </template>
  245. <script>
  246. import tabbarView from "@/components/tabbar/tabbar.vue";
  247. import tabbar from "@/mixins/tabbar";
  248. import CustomConfirm from "@/components/custome-confirm/customeConfirm.vue";
  249. import CircleAvatar from "@/components/CircleAvatar/CircleAvatar.vue";
  250. import meCard from "@/components/meCard/meCard.vue";
  251. import WorkItem from "@/components/WorkItem/WorkItem.vue";
  252. import { mapState } from 'vuex'
  253. export default {
  254. components: {
  255. tabbarView,
  256. CustomConfirm,
  257. CircleAvatar,
  258. meCard,
  259. WorkItem,
  260. },
  261. mixins: [tabbar],
  262. data() {
  263. return {
  264. title: "",
  265. sel: 1,
  266. firstLevelNavActive: 0,
  267. myinfo: {
  268. avator: "../../static/logo.png",
  269. nickname: "",
  270. join_name: "",
  271. num_1: 0,
  272. num_2: 0,
  273. num_3: 0,
  274. num_4: 0,
  275. is_login: "no",
  276. num_history: 0,
  277. num_collection: 0,
  278. },
  279. aihao_tags: [],
  280. menu_list: [],
  281. data_list: [],
  282. activeTab: 0,
  283. offset: 0,
  284. hasMore: true,
  285. isLoading: false,
  286. worksList: [],
  287. showShare: false,
  288. shareTitle: "",
  289. shareDesc: "",
  290. shareImg: "",
  291. userId: 0,
  292. };
  293. },
  294. onLoad(e) {
  295. // setTimeout(function() {
  296. // uni.setNavigationBarColor({
  297. // frontColor: '#ffffff',
  298. // backgroundColor: '#00000000',
  299. // animation: {
  300. // duration: 400,
  301. // timingFunc: 'easeIn'
  302. // }
  303. // })
  304. // }, 200);
  305. uni.$on('switchToMyPage', (data) => {
  306. if (data.type === 'article') {
  307. this.firstLevelNavActiveSwitch(1);
  308. } else if (data.type === 'generatingInProgress') {
  309. this.firstLevelNavActiveSwitch(0)
  310. this.switchTab(1);
  311. } else {
  312. this.firstLevelNavActiveSwitch(0)
  313. this.switchTab(0);
  314. }
  315. });
  316. },
  317. onUnload() {
  318. // 移除事件监听
  319. uni.$off('switchToMyPage');
  320. },
  321. computed: {
  322. ...mapState('switchingModule', ['isRecharge'])
  323. },
  324. onShow() {
  325. uni.$emit("check_login", () => { });
  326. // this.loadData();
  327. this.offset = 0;
  328. this.hasMore = true;
  329. this.worksList = [];
  330. this.loadInfo();
  331. // 检查全局变量,如果需要切换到生成中标签
  332. if (getApp().globalData.needSwitchToGenerating) {
  333. setTimeout(() => {
  334. this.switchTab(1);
  335. // 重置全局变量
  336. getApp().globalData.needSwitchToGenerating = false;
  337. }, 300);
  338. } else {
  339. this.loadWorksList();
  340. }
  341. },
  342. onReachBottom() {
  343. if (this.hasMore && !this.isLoading) {
  344. this.loadMoreWorks();
  345. }
  346. },
  347. methods: {
  348. clickShare(item) {
  349. this.showShare = true;
  350. },
  351. async showConfirm() {
  352. let that = this;
  353. this.$refs["customConfirm"]
  354. .confirm({
  355. title: "确认解绑",
  356. content: "解绑微信账号后将无法继续使用它登录该App账号?",
  357. DialogType: "inquiry",
  358. btn1: "再考虑一下",
  359. btn2: "确认解绑",
  360. animation: 0,
  361. })
  362. .then((res) => { });
  363. },
  364. onBack() { },
  365. chkSel() {
  366. if (this.sel == 1) {
  367. this.sel = 0;
  368. } else {
  369. this.sel = 1;
  370. }
  371. },
  372. goPage(page) {
  373. uni.navigateTo({
  374. url: page,
  375. });
  376. },
  377. loadInfo() {
  378. console.log({
  379. uuid: getApp().globalData.uuid,
  380. skey: getApp().globalData.skey,
  381. });
  382. uni.request({
  383. url: this.$apiHost + "/User/getinfo",
  384. data: {
  385. uuid: getApp().globalData.uuid,
  386. skey: getApp().globalData.skey,
  387. },
  388. header: {
  389. "content-type": "application/json",
  390. sign: getApp().globalData.headerSign,
  391. },
  392. success: (res) => {
  393. console.log("----:", JSON.parse(JSON.stringify(res.data)));
  394. if (res.data) {
  395. this.shareTitle = res.data.nickname
  396. this.shareDesc = res.data.content
  397. this.shareImg = res.data.avator
  398. this.userId = res.data.user_id
  399. }
  400. if (res.data.need_login == "yes") {
  401. // getApp().globalData.skey = "";
  402. // getApp().globalData.uuid = "";
  403. uni.removeStorageSync("wapptoken");
  404. uni.redirectTo({
  405. url: "/pages/login/login",
  406. });
  407. return;
  408. }
  409. if (res.data.aihao) {
  410. this.aihao_tags = res.data.aihao.split(",");
  411. }
  412. this.myinfo = res.data;
  413. },
  414. complete: (com) => {
  415. // uni.hideLoading();
  416. },
  417. fail: (e) => {
  418. console.log("----e:", e);
  419. },
  420. });
  421. },
  422. onLogout() {
  423. let that = this;
  424. this.$refs["DialogBox"]
  425. .confirm({
  426. title: "提示",
  427. content: "确定退出吗?",
  428. DialogType: "inquiry",
  429. btn1: "取消",
  430. btn2: "退出",
  431. animation: 0,
  432. })
  433. .then((res) => {
  434. uni.request({
  435. url: that.$apiHost + "/My/logout",
  436. data: {
  437. uuid: getApp().globalData.uuid,
  438. skey: getApp().globalData.skey,
  439. },
  440. header: {
  441. "content-type": "application/json",
  442. sign: getApp().globalData.headerSign,
  443. },
  444. success: (res) => {
  445. console.log("----:", res.data);
  446. // getApp().globalData.skey = "";
  447. // getApp().globalData.uuid = "";
  448. uni.removeStorageSync("wapptoken");
  449. uni.redirectTo({
  450. url: "/pages/login/login",
  451. });
  452. },
  453. complete: (com) => {
  454. // uni.hideLoading();
  455. },
  456. fail: (e) => {
  457. console.log("----e:", e);
  458. },
  459. });
  460. });
  461. },
  462. switchTab(index) {
  463. this.activeTab = index;
  464. this.offset = 0;
  465. this.hasMore = true;
  466. this.worksList = [];
  467. this.loadWorksList();
  468. },
  469. loadWorksList() {
  470. if (this.isLoading) return;
  471. this.isLoading = true;
  472. // 根据activeTab选择不同的API
  473. let apiUrl = "";
  474. if (this.firstLevelNavActive == 0) {
  475. if (this.activeTab === 0) {
  476. apiUrl = "/Work/getlist";
  477. } else {
  478. apiUrl = "/WorkAI/getMyQueueList";
  479. }
  480. } else if (this.firstLevelNavActive == 1) {
  481. apiUrl = "/Article/getlist";
  482. }
  483. uni.request({
  484. url: this.$apiHost + apiUrl,
  485. data: {
  486. uuid: getApp().globalData.uuid,
  487. skey: getApp().globalData.skey,
  488. type: "my", // 固定为my,表示获取自己的作品
  489. offset: this.offset,
  490. status: this.activeTab === 0 ? 1 : undefined, // 只有我的作品需要status参数
  491. },
  492. header: {
  493. "content-type": "application/json",
  494. sign: getApp().globalData.headerSign,
  495. },
  496. success: (res) => {
  497. console.log("列表数据:", JSON.parse(JSON.stringify(res.data)));
  498. if (res.data.success == "yes" && res.data.list) {
  499. if (res.data.list.length > 0) {
  500. this.worksList = [...this.worksList, ...res.data.list];
  501. this.offset += res.data.list.length;
  502. }
  503. if (res.data.list.length < 20) {
  504. this.hasMore = false;
  505. }
  506. } else {
  507. this.hasMore = false;
  508. }
  509. // 只有在"我的作品"标签下才更新data_list
  510. if (this.activeTab === 0) {
  511. this.updateDataList();
  512. }
  513. console.log("作品列表数据:", this.worksList);
  514. },
  515. complete: () => {
  516. this.isLoading = false;
  517. },
  518. fail: (e) => {
  519. console.log("请求列表失败:", e);
  520. this.isLoading = false;
  521. },
  522. });
  523. },
  524. firstLevelNavActiveSwitch(n) {
  525. this.firstLevelNavActive = n;
  526. this.offset = 0;
  527. this.hasMore = true;
  528. this.worksList = [];
  529. if (this.firstLevelNavActive == 0) {
  530. this.activeTab = 0;
  531. }
  532. this.loadWorksList();
  533. },
  534. loadMoreWorks() {
  535. if (this.hasMore && !this.isLoading) {
  536. this.loadWorksList();
  537. }
  538. },
  539. updateDataList() {
  540. this.data_list = this.worksList.map((item) => {
  541. return {
  542. url: item.images || item.img_url || item.url || "../../static/logo.png",
  543. title: item.title || item.description || "作品",
  544. id: item.id,
  545. };
  546. });
  547. },
  548. goWork(item) {
  549. uni.$emit("check_login", () => { });
  550. // , //任务状态(1:排队中,3:生成失败,4:生成失败,9:创作完成)
  551. if (this.activeTab == 0) {
  552. uni.navigateTo({
  553. // url: "/pages/index/workDetail?id=" + item.id,
  554. url: "/pages/makedetail/makeDetail?id=" +
  555. item.queue_id +
  556. "&queueId=" +
  557. item.id,
  558. });
  559. } else {
  560. if (item.status >= 9) {
  561. uni.navigateTo({
  562. url: "/pages/makedetail/makeDetail?id=" + item.id,
  563. });
  564. }
  565. if (item.status < 9 && item.status != 3 && item.status != 4) {
  566. // <!-- <text v-if="item.task_type === 1">灵感创作</text>
  567. // <text v-else-if="item.task_type === 2">音乐</text> -->
  568. var url = "";
  569. if (item.task_type === 1) {
  570. url = "/makedetail/makeImgDetail";
  571. }
  572. if (item.task_type === 2) {
  573. url = "/makedetail/makeMusicDetail";
  574. }
  575. if (url) {
  576. uni.navigateTo({
  577. url: "/pages" + url + "?id=" + item.id,
  578. });
  579. }
  580. }
  581. }
  582. },
  583. goWork2(item) {
  584. uni.navigateTo({
  585. // url: "/pages/index/workDetail?id=" + item.id,
  586. url: "/pages/index/articleDetail?id=" + item.id,
  587. });
  588. },
  589. navigateToSettings() {
  590. uni.$emit("check_login", () => {
  591. uni.navigateTo({
  592. url: "/pages/my/setting",
  593. });
  594. });
  595. },
  596. navigateToFollow() {
  597. uni.navigateTo({
  598. url: "/pages/my/follow",
  599. });
  600. },
  601. },
  602. };
  603. </script>
  604. <style scoped lang="scss">
  605. @import "my.scss";
  606. .empty-state {
  607. display: flex;
  608. flex-direction: column;
  609. align-items: center;
  610. justify-content: center;
  611. padding: 60rpx 0;
  612. margin-top: 40rpx;
  613. background: #FFFFFF;
  614. border-radius: 20rpx;
  615. width: 710rpx;
  616. .empty-image {
  617. width: 240rpx;
  618. height: 240rpx;
  619. margin-bottom: 30rpx;
  620. }
  621. .empty-text {
  622. font-size: 32rpx;
  623. color: #333333;
  624. margin-bottom: 16rpx;
  625. font-weight: 500;
  626. }
  627. .empty-subtext {
  628. font-size: 28rpx;
  629. color: #999999;
  630. }
  631. }
  632. </style>