my.vue 20 KB

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