my.vue 20 KB

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