tree.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  1. <template>
  2. <view class="page-container">
  3. <view class="base-container">
  4. <member-level :treeData="treeData">
  5. <view class="toogle" @click="handleShow">切换 {{name}}<up-icon class="icon" name="arrow-down" color="#fff"
  6. size="12"></up-icon></view>
  7. </member-level>
  8. <view class="tree-cont">
  9. <!-- 弹幕组件 -->
  10. <view class="danmaku-wrapper">
  11. <danmakuManager
  12. ref="danmakuRef"
  13. :danmakuList="danmakuList"
  14. :height="100"
  15. :infinite="true"
  16. :speed="80"
  17. @danmakuComplete="onDanmakuComplete"
  18. ></danmakuManager>
  19. </view>
  20. <view class="dialogue-tips">
  21. <view class="tips-name">
  22. <image class="tip-img" :src="`${config.BASIC_IMG}img/treePage/sun-icon.png`"></image>
  23. <text>亲爱的主人!</text>
  24. </view>
  25. <view class="tips-cont">今天是我开花的日子,我很开心!</view>
  26. </view>
  27. <view class="tree-name">
  28. <view>{{treeName}}</view>
  29. <image v-if="userInfo.tel" @click="handleEditName" class="edit-icon" :src="`${config.BASIC_IMG}img/edit-icon.png`">
  30. </image>
  31. </view>
  32. <image class="drone-icon" :src="`${config.BASIC_IMG}img/treePage/drone-icon.png`"></image>
  33. <view class="tool-wrap">
  34. <view class="tool-left">
  35. <view :class="['tool-item',item.className]" v-for="(item,index) in toolLeftList" :key="index"
  36. @click="handleToolItem(item)">
  37. <image class="icon" :src="`${config.BASIC_IMG}img/treePage/l-tree-icon-${index+1}.png`">
  38. </image>
  39. <view class="name">{{item.name}}</view>
  40. </view>
  41. </view>
  42. <view class="tool-right">
  43. <view :class="['tool-item',item.className]" v-for="(item,index) in toolRightList" :key="index"
  44. @click="handleToolItem(item)">
  45. <image class="icon" :src="`${config.BASIC_IMG}img/treePage/r-tree-icon-${index+1}.png`">
  46. </image>
  47. <view class="name">{{item.name}}</view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="tree-footer">
  53. <template v-if="userInfo.tel">
  54. <view class="footer-item" v-for="(item,index) in footerList" :key="index" @click="handleItem(index)">
  55. <view @click="requestSubscribe">
  56. <button class="share-btn" open-type="share" v-if="index === 2">
  57. <image class="icon" :src="`${config.BASIC_IMG}img/treePage/b-tree-icon-${index+1}.png`">
  58. </image>
  59. </button>
  60. <image v-else class="icon" :class="{small:index === 0}" :src="`${config.BASIC_IMG}img/treePage/b-tree-icon-${index+1}.png`">
  61. </image>
  62. <view class="name">{{item}}</view>
  63. </view>
  64. </view>
  65. </template>
  66. <view v-else class="button" @click="handlePage">开启我的守护</view>
  67. </view>
  68. </view>
  69. <!-- 引导弹窗 -->
  70. <view class="guide-bg" v-if="showMask" @click="handleClose">
  71. <image class="guide-icon" :src="`${config.BASIC_IMG}img/treePage/guide-1.png`"></image>
  72. </view>
  73. <!-- 切换 -->
  74. <up-picker :show="showPicker" :columns="columns" :defaultIndex="[0]" @cancel="handleCancel"
  75. @confirm="handleConfirm" keyName="name" valueName="speciesId"></up-picker>
  76. <!-- 签到打卡 -->
  77. <checkinPopup @closedCheckPopup="closedCheckPopup"></checkinPopup>
  78. <!-- 编辑树名称 -->
  79. <editNamePopup ref="editNameRef" @editEnd="getBySampleId"></editNamePopup>
  80. <!-- 海报弹窗 -->
  81. <posterPopup
  82. :showPoster="showPoster"
  83. :farmBuyId="farmBuyId"
  84. :treeName="treeName"
  85. :sampleId="sampleId"
  86. @download-poster="handleDownloadPoster"
  87. ></posterPopup>
  88. <!-- 果树成功弹窗 -->
  89. <guardSuccessPopup :show="showGuardSuccess" :treeData="treeData" @closedGuardSuccessPopup="featchIsLookedGuide"></guardSuccessPopup>
  90. <!-- 果树相册弹窗 -->
  91. <tree-album-popup :show="showAlbum" :farmBuyId="farmBuyId" :sampleId="sampleId"></tree-album-popup>
  92. <!-- 等级升级成功弹窗 -->
  93. <levelSuccessPopup :show="showUpgradePopup"></levelSuccessPopup>
  94. <!-- 祝福弹窗 -->
  95. <blessingsPopup :show="showBlessingsPopup" :showSuccess="showSuccess" :farmBuyId="farmBuyId"
  96. :clockinType="clockinType" @clockinCallback="getBySampleId" @closeBlessings="closeBlessings"></blessingsPopup>
  97. <!-- canvas生成图片 - 隐藏的canvas元素 -->
  98. <canvas id="posterCanvas" canvas-id="posterCanvas" style="width: 1380rpx;height: 2280rpx;position: fixed;left: 750rpx;top: 2000rpx;z-index: 9999;"></canvas>
  99. </view>
  100. </template>
  101. <script setup>
  102. import config from "@/api/config.js"
  103. import {
  104. onLoad,
  105. onShareAppMessage,
  106. onShow,
  107. onHide,
  108. onUnload
  109. } from '@dcloudio/uni-app'
  110. import memberLevel from "./components/memberLevel.vue"
  111. import treeAlbumPopup from "./components/treeAlbumPopup.vue"
  112. import blessingsPopup from "./components/blessingsPopup.vue"
  113. import checkinPopup from "@/components/checkinPopup/checkinPopup.vue"
  114. import editNamePopup from "@/components/editNamePopup/editNamePopup.vue"
  115. import guardSuccessPopup from "@/components/guardSuccessPopup/guardSuccessPopup.vue"
  116. import levelSuccessPopup from "@/components/levelSuccessPopup/levelSuccessPopup.vue"
  117. import danmakuManager from "@/components/danmakuManager/danmakuManager.vue"
  118. import posterPopup from "@/components/posterPopup/posterPopup.vue"
  119. import TREE from '@/api/tree.js'
  120. import USER from '@/api/user.js'
  121. import { CanvasUtils } from '@/utils/canvasUtils.js'
  122. import {
  123. ref
  124. } from 'vue';
  125. const name = ref('荔枝')
  126. const showPicker = ref(false)
  127. const columns = ref([[{name:'荔枝',speciesId:'1'}]]);
  128. const speciesId = ref('')
  129. const handleShow = () => {
  130. showPicker.value = true
  131. }
  132. const handleCancel = () => {
  133. showPicker.value = false
  134. }
  135. const handleConfirm = (e) => {
  136. name.value = e.value[0].name
  137. speciesId.value = e.value[0].speciesId
  138. handleCancel()
  139. }
  140. const toolLeftList = [{
  141. name: "相册",
  142. clickName: 'album'
  143. },
  144. {
  145. name: "日记",
  146. path: 'diary'
  147. },
  148. {
  149. name: "海报",
  150. className: 'blue',
  151. clickName: 'poster'
  152. },
  153. {
  154. name: "礼物",
  155. className: 'gift',
  156. path: 'gift'
  157. }
  158. ]
  159. const toolRightList = [{
  160. name: "好友",
  161. className: 'friend',
  162. path: 'rank'
  163. },
  164. {
  165. name: "认养",
  166. },
  167. {
  168. name: "果园",
  169. },
  170. {
  171. name: "动态",
  172. className: 'dynamic',
  173. path: 'dynamic',
  174. params: 'farmBuyId'
  175. }
  176. ]
  177. const showGuardSuccess = ref(false)
  178. const editNameRef = ref(null)
  179. const formatDate = (dateStr) => {
  180. return dateStr.split(" ")[0].replace(/-/g, ".");
  181. };
  182. const handleEditName = () => {
  183. editNameRef.value.showPopup({
  184. id: farmBuyId.value,
  185. treeName: treeName.value,
  186. nickname: treeData.value.buyList[0].nickname,
  187. showName: treeData.value.buyList[0].showName,
  188. createDate: formatDate(treeData.value.buyList[0].createDate),
  189. })
  190. }
  191. const userInfo = ref({})
  192. // onLoad(() => {
  193. // featchCategoryList()
  194. // })
  195. onShow(()=>{
  196. userInfo.value = uni.getStorageSync('userInfo')
  197. featchLightTree()
  198. featchSessionStore()
  199. })
  200. onHide(() => {
  201. // 页面隐藏时停止弹幕
  202. stopDanmaku()
  203. })
  204. onUnload(() => {
  205. // 页面卸载时停止弹幕
  206. stopDanmaku()
  207. })
  208. //品类查询所有
  209. const featchCategoryList = () =>{
  210. TREE.categoryList().then(({
  211. data
  212. }) => {
  213. columns.value[0] = data || []
  214. speciesId.value = data[0].speciesId
  215. featchLightTree()
  216. })
  217. }
  218. const showMask = ref(false)
  219. const featchIsLookedGuide = () => {
  220. USER.isLookedGuide({
  221. type: 1
  222. }).then(({
  223. data
  224. }) => {
  225. if (data == false) {
  226. showMask.value = true
  227. }
  228. })
  229. }
  230. const handleClose = async () =>{
  231. const {code} = await USER.lookedGuide({type:1})
  232. if(code === 0){
  233. showMask.value = false
  234. }
  235. }
  236. const featchSessionStore = () => {
  237. USER.getSessionStore({
  238. key: 'successTree',
  239. miniUserId: userInfo.value.id
  240. }).then((({data}) => {
  241. if(data?.text === 'orderSuccess'){
  242. clockinType.value = 4
  243. showSuccess.value = !showSuccess.value
  244. treeSetSessionStore()
  245. }else{
  246. if (data?.val == 0) {
  247. showGuardSuccess.value = !showGuardSuccess.value
  248. treeSetSessionStore()
  249. }else{
  250. featchIsLookedGuide()
  251. }
  252. }
  253. }))
  254. }
  255. const treeSetSessionStore = () =>{
  256. USER.setSessionStore({
  257. key: 'successTree',
  258. miniUserId: userInfo.value.id,
  259. val:1,
  260. text:'1'
  261. })
  262. }
  263. // 得到200分弹窗关闭
  264. function closeBlessings() {
  265. TREE.fetchClaimAward({buyId: farmBuyId.value, levelAwardId: 1}).then(({data}) => {
  266. showUpgradePopup.value = true
  267. })
  268. }
  269. const closedCheckPopup = () =>{
  270. showPoster.value = !showPoster.value
  271. }
  272. const sampleId = ref('')
  273. //通过品类查询当前树
  274. const featchLightTree = () =>{
  275. TREE.getLightTreeList().then((res =>{
  276. sampleId.value = res.data[0].sampleId
  277. getBySampleId()
  278. }))
  279. }
  280. const treeData = ref({})
  281. const farmBuyId = ref('')
  282. const treeName = ref('')
  283. const getBySampleId = () => {
  284. TREE.getBySampleId({
  285. sampleId: sampleId.value
  286. }).then(({
  287. data
  288. }) => {
  289. treeData.value = data || {}
  290. if (userInfo.value.tel) {
  291. treeName.value = data.buyList[0].treeName || (data.buyList[0].nickname.length ? data.buyList[0]
  292. .nickname.slice(0, 3) + "荔" : data.buyList[0].owner.slice(0, 3) + "荔")
  293. } else {
  294. treeName.value = '飞鸟守护'
  295. }
  296. farmBuyId.value = data.buyList[0].id
  297. featchSessionStore()
  298. // 获取能量记录
  299. featchEnergyRecords()
  300. })
  301. }
  302. const handlePage = () =>{
  303. uni.navigateTo({
  304. url: `/pages/login/index`
  305. });
  306. }
  307. const showPoster = ref(false)
  308. const showAlbum = ref(false)
  309. const handleToolItem = ({
  310. path,
  311. clickName,
  312. params
  313. }) => {
  314. if (clickName === 'album') {
  315. showAlbum.value = !showAlbum.value
  316. } else if (clickName === 'poster') {
  317. showPoster.value = !showPoster.value
  318. } else {
  319. uni.navigateTo({
  320. url: `/pages/tabBar/tree/subPages/${path}?farmBuyId=${farmBuyId.value}&sampleId=${sampleId.value}`
  321. });
  322. }
  323. }
  324. const footerList = ["每日阳光", "送ta祝福", "分享转发", "水果订购"]
  325. const showBlessingsPopup = ref(false)
  326. const showSuccess = ref(false)
  327. const showUpgradePopup = ref(false)
  328. const clockinType = ref('1')
  329. // 弹幕相关数据
  330. const danmakuList = ref([])
  331. const featchEnergyRecords = () => {
  332. TREE.getEnergyRecords({
  333. page: 1,
  334. limit: 9999,
  335. onlyOther:1,
  336. farmBuyId: farmBuyId.value
  337. }).then(({
  338. data
  339. }) => {
  340. // 将接口返回的数据转换为弹幕组件期望的格式
  341. const formattedData = (data || []).map(item => ({
  342. msg: item.desc || item.text || item.content || '守护果树,收获美好', // 使用desc字段作为消息内容
  343. icon: item.icon || `${config.BASIC_IMG}img/treePage/drone-icon.png` // 使用icon字段作为头像
  344. }))
  345. danmakuList.value = formattedData
  346. if(formattedData.length > 0){
  347. // 页面显示时启动弹幕
  348. setTimeout(() => {
  349. startDanmaku()
  350. }, 1000)
  351. }
  352. }).catch(error => {
  353. console.error('获取能量记录失败:', error)
  354. })
  355. }
  356. // 弹幕组件引用
  357. const danmakuRef = ref(null)
  358. // 弹幕完成回调
  359. const onDanmakuComplete = (id) => {
  360. // 弹幕播放完成处理
  361. }
  362. // 启动弹幕
  363. const startDanmaku = () => {
  364. if (danmakuRef.value) {
  365. danmakuRef.value.startDanmakuAnimation()
  366. }
  367. }
  368. // 停止弹幕
  369. const stopDanmaku = () => {
  370. if (danmakuRef.value) {
  371. danmakuRef.value.stopDanmakuAnimation()
  372. }
  373. }
  374. // 创建canvas工具类实例
  375. const canvasUtils = new CanvasUtils('posterCanvas')
  376. // 处理海报下载
  377. const handleDownloadPoster = async (data) => {
  378. // 检查数据完整性
  379. if (!data || !data.treeObj) {
  380. uni.showToast({
  381. title: '数据不完整,无法生成海报',
  382. icon: 'none'
  383. });
  384. return;
  385. }
  386. try {
  387. uni.showLoading({
  388. title: '正在生成海报...',
  389. mask: true
  390. });
  391. const success = await canvasUtils.generateAndSave(data);
  392. uni.hideLoading();
  393. } catch (error) {
  394. uni.hideLoading();
  395. console.error('海报处理出错:', error);
  396. uni.showToast({
  397. title: '海报生成失败: ' + error.message,
  398. icon: 'none'
  399. });
  400. }
  401. }
  402. const handleItem = (index) => {
  403. if (index === 0) {
  404. clockinType.value = 1
  405. if (treeData.value.buyList[0].level.clockinMap['1']) {
  406. uni.showToast({
  407. title: '今日已守护',
  408. icon: 'none',
  409. duration: 2000
  410. });
  411. } else {
  412. showSuccess.value = !showSuccess.value
  413. }
  414. } else if (index === 1) {
  415. clockinType.value = 3
  416. if (treeData.value.buyList[0].level.clockinMap['3']) {
  417. uni.showToast({
  418. title: '今日已送过祝福',
  419. icon: 'none',
  420. duration: 2000
  421. });
  422. } else {
  423. showBlessingsPopup.value = !showBlessingsPopup.value
  424. }
  425. } else if (index === 2) {
  426. clockinType.value = 2
  427. if (!treeData.value.buyList[0].level.clockinMap['2']) {
  428. showSuccess.value = !showSuccess.value
  429. }
  430. } else {
  431. uni.navigateTo({
  432. url: `/pages/tabBar/home/subPages/gardenItem`
  433. });
  434. }
  435. }
  436. function requestSubscribe() {
  437. // #ifdef MP-WEIXIN
  438. //订阅模板
  439. TREE.getSubscribeTemplate({
  440. id: 1
  441. }).then(({
  442. data
  443. }) => {
  444. uni.requestSubscribeMessage({
  445. tmplIds: [data.templateId], // 模板ID
  446. success(res) {
  447. if (res[data.templateId] === 'accept') {
  448. TREE.addSubscribe({
  449. templateId: 1
  450. })
  451. } else if (res[data.templateId] === 'reject') {
  452. console.log('用户拒绝订阅模板');
  453. }
  454. },
  455. fail(err) {
  456. uni.openSetting({
  457. withSubscriptions: true, // 显示订阅消息开关
  458. });
  459. },
  460. });
  461. })
  462. // #endif
  463. }
  464. onShareAppMessage((res) => {
  465. return {
  466. title: '我分享了我的果树,快来查看吧~',
  467. path: `/pages/tabBar/tree/subPages/friendTree?sampleId=${sampleId.value}`, // 分享的小程序页面路径
  468. imageUrl: `http://birdseye-api.feiniaotech.sysuimars.cn/mini/z_farm_buy/genImage/${farmBuyId.value}?key=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9&x1=25&y1=220&fontSize1=40&x2=55&y2=250&fontSize2=16&timestamp=${Date.now()}`,
  469. }
  470. })
  471. </script>
  472. <style lang="scss" scoped>
  473. @import "@/static/style/mixin.scss";
  474. .guide-bg{
  475. position: fixed;
  476. top: 0;
  477. width: 100%;
  478. height: 107vh;
  479. @include ossBg("treePage/guide-bg.png");
  480. z-index: 999;
  481. display: flex;
  482. align-items: center;
  483. justify-content: center;
  484. .guide-icon{
  485. width: 360rpx;
  486. height: 236rpx
  487. }
  488. }
  489. /* #ifdef H5 */
  490. .guide-bg{
  491. height: 102vh;
  492. }
  493. /* #endif */
  494. .base-container {
  495. @include ossBg("tree-bg.png");
  496. // background-position: top left;
  497. padding: 22rpx 0;
  498. position: relative;
  499. .danmaku-wrapper {
  500. position: absolute;
  501. top: 21%;
  502. left: 0;
  503. right: 0;
  504. z-index: 100;
  505. pointer-events: none;
  506. }
  507. .toogle {
  508. position: absolute;
  509. right: 0;
  510. top: calc(50% - 32rpx);
  511. font-size: 24rpx;
  512. color: #fff;
  513. border-radius: 50rpx 0 0 50rpx;
  514. background: rgba(0, 0, 0, 0.2);
  515. padding: 12rpx 20rpx;
  516. display: flex;
  517. .icon {
  518. margin-left: 10rpx;
  519. }
  520. }
  521. .tree-cont {
  522. width: 100%;
  523. margin-top: 10rpx;
  524. .dialogue-tips{
  525. position: absolute;
  526. top: 31.5%;
  527. right: 80rpx;
  528. font-size: 24rpx;
  529. @include ossBg("treePage/tips-bg.png");
  530. padding: 10rpx 10rpx 30rpx 20rpx;
  531. .tips-name{
  532. font-size: 28rpx;
  533. font-weight: 500;
  534. margin-bottom: 6rpx;
  535. display: flex;
  536. align-items: center;
  537. .tip-img{
  538. width: 40rpx;
  539. height: 40rpx;
  540. margin-right: 4rpx;
  541. }
  542. }
  543. }
  544. .tree-name {
  545. position: absolute;
  546. top: 60.45%;
  547. left: calc(50% - 32rpx);
  548. z-index: 2;
  549. font-size: 22rpx;
  550. font-family: 'SweiSpringCJKtc';
  551. text-align: center;
  552. width: 88rpx;
  553. .edit-icon {
  554. width: 44rpx;
  555. height: 44rpx;
  556. margin-top: 14rpx;
  557. }
  558. }
  559. .drone-icon {
  560. width: 376rpx;
  561. height: 384rpx;
  562. margin-left: 26rpx;
  563. }
  564. .tool-wrap {
  565. width: 100%;
  566. padding: 14rpx;
  567. box-sizing: border-box;
  568. position: absolute;
  569. bottom: calc(50% - 350rpx);
  570. display: flex;
  571. justify-content: space-between;
  572. .tool-left,
  573. .tool-right {
  574. .tool-item {
  575. color: #fff;
  576. font-size: 24rpx;
  577. font-weight: 500;
  578. text-align: center;
  579. width: 100rpx;
  580. margin-bottom: 16rpx;
  581. text-shadow:
  582. 0 0 3rpx #D7660A,
  583. 0 0 3rpx #D7660A,
  584. 0 0 3rpx #D7660A,
  585. 0 0 3rpx #D7660A;
  586. &.blue {
  587. text-shadow:
  588. 0 0 3rpx #2199F8,
  589. 0 0 3rpx #2199F8,
  590. 0 0 3rpx #2199F8,
  591. 0 0 3rpx #2199F8;
  592. }
  593. .icon {
  594. width: 100%;
  595. height: 82rpx;
  596. position: relative;
  597. }
  598. .name {
  599. margin-top: -24rpx;
  600. position: relative;
  601. z-index: 2;
  602. }
  603. &.gift {
  604. .icon {
  605. height: 114rpx;
  606. margin-top: -5rpx;
  607. }
  608. .name {
  609. margin-top: -44rpx;
  610. }
  611. }
  612. &.friend {
  613. .icon {
  614. height: 90rpx;
  615. }
  616. .name {
  617. margin-top: -35rpx;
  618. }
  619. }
  620. &.dynamic {
  621. .icon {
  622. height: 96rpx;
  623. }
  624. .name {
  625. margin-top: -32rpx;
  626. }
  627. }
  628. }
  629. }
  630. }
  631. }
  632. .tree-footer {
  633. position: absolute;
  634. left: 0;
  635. bottom: 76rpx;
  636. width: 100%;
  637. display: flex;
  638. justify-content: center;
  639. .button {
  640. padding: 26rpx 80rpx;
  641. border-radius: 50rpx;
  642. border: 2rpx solid #fff;
  643. background-image: linear-gradient(120deg, #FFD887, #ED9E1E);
  644. margin-top: 20rpx;
  645. color: #fff;
  646. }
  647. .footer-item {
  648. width: 18%;
  649. text-align: center;
  650. .icon {
  651. width: 96rpx;
  652. height: 96rpx;
  653. }
  654. .share-btn {
  655. background: transparent;
  656. display: inline-flex;
  657. .icon {
  658. width: 90rpx;
  659. height: 90rpx;
  660. margin-top: 6rpx;
  661. }
  662. &::after {
  663. border: none;
  664. }
  665. }
  666. .small{
  667. width: 90rpx;
  668. height: 90rpx;
  669. margin-top: 6rpx;
  670. }
  671. .name {
  672. font-size: 24rpx;
  673. font-weight: 500;
  674. padding: 2rpx 16rpx;
  675. background-image: linear-gradient(0deg, #FFFFFF, #FFE079);
  676. border-radius: 50rpx;
  677. border: 2rpx solid #fff;
  678. }
  679. }
  680. .footer-item+.footer-item {
  681. margin-left: 30rpx;
  682. }
  683. }
  684. }
  685. </style>