tree.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  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></levelSuccessPopup>
  94. <!-- 祝福弹窗 -->
  95. <blessingsPopup :show="showBlessingsPopup" :showSuccess="showSuccess" :farmBuyId="farmBuyId"
  96. :clockinType="clockinType" @clockinCallback="getBySampleId"></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([]);
  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. const isUpdateName = uni.getStorageSync('isUpdateName')
  198. if(isUpdateName === 'true'){
  199. featchLightTree()
  200. uni.setStorageSync('isUpdateName','false')
  201. }
  202. featchSessionStore()
  203. // 页面显示时启动弹幕
  204. startDanmaku()
  205. })
  206. onHide(() => {
  207. // 页面隐藏时停止弹幕
  208. stopDanmaku()
  209. })
  210. onUnload(() => {
  211. // 页面卸载时停止弹幕
  212. stopDanmaku()
  213. })
  214. //品类查询所有
  215. const featchCategoryList = () =>{
  216. TREE.categoryList().then(({
  217. data
  218. }) => {
  219. columns.value[0] = data || []
  220. speciesId.value = data[0].speciesId
  221. featchLightTree()
  222. })
  223. }
  224. const showMask = ref(false)
  225. const featchIsLookedGuide = () => {
  226. USER.isLookedGuide({
  227. type: 1
  228. }).then(({
  229. data
  230. }) => {
  231. if (data == false) {
  232. showMask.value = true
  233. }
  234. })
  235. }
  236. const handleClose = async () =>{
  237. const {code} = await USER.lookedGuide({type:1})
  238. if(code === 0){
  239. showMask.value = false
  240. }
  241. }
  242. const featchSessionStore = () => {
  243. USER.getSessionStore({
  244. key: 'successTree',
  245. miniUserId: userInfo.value.id
  246. }).then((({data}) => {
  247. if(data?.text === 'orderSuccess'){
  248. clockinType.value = 4
  249. showSuccess.value = !showSuccess.value
  250. treeSetSessionStore()
  251. }else{
  252. if (data?.val == 0) {
  253. showGuardSuccess.value = !showGuardSuccess.value
  254. treeSetSessionStore()
  255. }else{
  256. featchIsLookedGuide()
  257. }
  258. }
  259. }))
  260. }
  261. const treeSetSessionStore = () =>{
  262. USER.setSessionStore({
  263. key: 'successTree',
  264. miniUserId: userInfo.value.id,
  265. val:1,
  266. text:'1'
  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. }
  300. const handlePage = () =>{
  301. uni.navigateTo({
  302. url: `/pages/login/index`
  303. });
  304. }
  305. const showPoster = ref(false)
  306. const showAlbum = ref(false)
  307. const handleToolItem = ({
  308. path,
  309. clickName,
  310. params
  311. }) => {
  312. if (clickName === 'album') {
  313. showAlbum.value = !showAlbum.value
  314. } else if (clickName === 'poster') {
  315. showPoster.value = !showPoster.value
  316. } else {
  317. uni.navigateTo({
  318. url: `/pages/tabBar/tree/subPages/${path}?farmBuyId=${farmBuyId.value}&sampleId=${sampleId.value}`
  319. });
  320. }
  321. }
  322. const footerList = ["每日阳光", "送ta祝福", "分享转发", "水果订购"]
  323. const showBlessingsPopup = ref(false)
  324. const showSuccess = ref(false)
  325. const clockinType = ref('1')
  326. // 弹幕相关数据
  327. const danmakuList = ref([
  328. {
  329. text: "晨曦微露,阳光洒满大地",
  330. avatar: `${userInfo.value.icon}`
  331. },
  332. {
  333. text: "守护果树,收获美好",
  334. avatar: `${userInfo.value.icon}`
  335. },
  336. {
  337. text: "今天也要给果树浇水哦",
  338. avatar: `${userInfo.value.icon}`
  339. },
  340. {
  341. text: "果树长得好快啊",
  342. avatar: `${config.BASIC_IMG}img/treePage/drone-icon.png`
  343. },
  344. {
  345. text: "期待果实成熟的那一天",
  346. avatar: `${config.BASIC_IMG}img/treePage/drone-icon.png`
  347. },
  348. {
  349. text: "和好友一起守护果树",
  350. avatar: `${config.BASIC_IMG}img/treePage/drone-icon.png`
  351. },
  352. {
  353. text: "每日签到,果树茁壮成长",
  354. avatar: `${config.BASIC_IMG}img/treePage/drone-icon.png`
  355. },
  356. {
  357. text: "分享给更多朋友",
  358. avatar: `${config.BASIC_IMG}img/treePage/drone-icon.png`
  359. }
  360. ])
  361. // 弹幕组件引用
  362. const danmakuRef = ref(null)
  363. // 弹幕完成回调
  364. const onDanmakuComplete = (id) => {
  365. // console.log('弹幕播放完成:', id)
  366. }
  367. // 启动弹幕
  368. const startDanmaku = () => {
  369. if (danmakuRef.value) {
  370. danmakuRef.value.startDanmakuAnimation()
  371. }
  372. }
  373. // 停止弹幕
  374. const stopDanmaku = () => {
  375. if (danmakuRef.value) {
  376. danmakuRef.value.stopDanmakuAnimation()
  377. }
  378. }
  379. // 创建canvas工具类实例
  380. const canvasUtils = new CanvasUtils('posterCanvas')
  381. // 处理海报下载
  382. const handleDownloadPoster = async (data) => {
  383. // 检查数据完整性
  384. if (!data || !data.treeObj) {
  385. uni.showToast({
  386. title: '数据不完整,无法生成海报',
  387. icon: 'none'
  388. });
  389. return;
  390. }
  391. try {
  392. uni.showLoading({
  393. title: '正在生成海报...',
  394. mask: true
  395. });
  396. const success = await canvasUtils.generateAndSave(data);
  397. uni.hideLoading();
  398. } catch (error) {
  399. uni.hideLoading();
  400. console.error('海报处理出错:', error);
  401. uni.showToast({
  402. title: '海报生成失败: ' + error.message,
  403. icon: 'none'
  404. });
  405. }
  406. }
  407. const handleItem = (index) => {
  408. if (index === 0) {
  409. clockinType.value = 1
  410. if (treeData.value.buyList[0].level.clockinMap['1']) {
  411. uni.showToast({
  412. title: '今日已守护',
  413. icon: 'none',
  414. duration: 2000
  415. });
  416. } else {
  417. showSuccess.value = !showSuccess.value
  418. }
  419. } else if (index === 1) {
  420. clockinType.value = 3
  421. if (treeData.value.buyList[0].level.clockinMap['3']) {
  422. uni.showToast({
  423. title: '今日已送过祝福',
  424. icon: 'none',
  425. duration: 2000
  426. });
  427. } else {
  428. showBlessingsPopup.value = !showBlessingsPopup.value
  429. }
  430. } else if (index === 2) {
  431. clockinType.value = 2
  432. if (!treeData.value.buyList[0].level.clockinMap['2']) {
  433. showSuccess.value = !showSuccess.value
  434. }
  435. } else {
  436. uni.navigateTo({
  437. url: `/pages/tabBar/home/subPages/gardenItem`
  438. });
  439. }
  440. }
  441. function requestSubscribe() {
  442. // #ifdef MP-WEIXIN
  443. //订阅模板
  444. TREE.getSubscribeTemplate({
  445. id: 1
  446. }).then(({
  447. data
  448. }) => {
  449. uni.requestSubscribeMessage({
  450. tmplIds: [data.templateId], // 模板ID
  451. success(res) {
  452. if (res[data.templateId] === 'accept') {
  453. TREE.addSubscribe({
  454. templateId: 1
  455. })
  456. } else if (res[data.templateId] === 'reject') {
  457. console.log('用户拒绝订阅模板');
  458. }
  459. },
  460. fail(err) {
  461. uni.openSetting({
  462. withSubscriptions: true, // 显示订阅消息开关
  463. });
  464. },
  465. });
  466. })
  467. // #endif
  468. }
  469. onShareAppMessage((res) => {
  470. return {
  471. title: '我分享了我的果树,快来查看吧~',
  472. path: `/pages/tabBar/tree/subPages/friendTree?sampleId=${sampleId.value}`, // 分享的小程序页面路径
  473. 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()}`,
  474. }
  475. })
  476. </script>
  477. <style lang="scss" scoped>
  478. @import "@/static/style/mixin.scss";
  479. .guide-bg{
  480. position: fixed;
  481. top: 0;
  482. width: 100%;
  483. height: 107vh;
  484. @include ossBg("treePage/guide-bg.png");
  485. z-index: 999;
  486. display: flex;
  487. align-items: center;
  488. justify-content: center;
  489. .guide-icon{
  490. width: 360rpx;
  491. height: 236rpx
  492. }
  493. }
  494. /* #ifdef H5 */
  495. .guide-bg{
  496. height: 102vh;
  497. }
  498. /* #endif */
  499. .base-container {
  500. @include ossBg("tree-bg.png");
  501. // background-position: top left;
  502. padding: 22rpx 0;
  503. position: relative;
  504. .danmaku-wrapper {
  505. position: absolute;
  506. top: 21%;
  507. left: 0;
  508. right: 0;
  509. z-index: 100;
  510. pointer-events: none;
  511. }
  512. .toogle {
  513. position: absolute;
  514. right: 0;
  515. top: calc(50% - 32rpx);
  516. font-size: 24rpx;
  517. color: #fff;
  518. border-radius: 50rpx 0 0 50rpx;
  519. background: rgba(0, 0, 0, 0.2);
  520. padding: 12rpx 20rpx;
  521. display: flex;
  522. .icon {
  523. margin-left: 10rpx;
  524. }
  525. }
  526. .tree-cont {
  527. width: 100%;
  528. margin-top: 10rpx;
  529. .dialogue-tips{
  530. position: absolute;
  531. top: 31.5%;
  532. right: 80rpx;
  533. font-size: 24rpx;
  534. @include ossBg("treePage/tips-bg.png");
  535. padding: 10rpx 10rpx 30rpx 20rpx;
  536. .tips-name{
  537. font-size: 28rpx;
  538. font-weight: 500;
  539. margin-bottom: 6rpx;
  540. display: flex;
  541. align-items: center;
  542. .tip-img{
  543. width: 40rpx;
  544. height: 40rpx;
  545. margin-right: 4rpx;
  546. }
  547. }
  548. }
  549. .tree-name {
  550. position: absolute;
  551. top: 60.45%;
  552. left: calc(50% - 32rpx);
  553. z-index: 2;
  554. font-size: 22rpx;
  555. font-family: 'SweiSpringCJKtc';
  556. text-align: center;
  557. width: 88rpx;
  558. .edit-icon {
  559. width: 44rpx;
  560. height: 44rpx;
  561. margin-top: 14rpx;
  562. }
  563. }
  564. .drone-icon {
  565. width: 376rpx;
  566. height: 384rpx;
  567. margin-left: 26rpx;
  568. }
  569. .tool-wrap {
  570. width: 100%;
  571. padding: 14rpx;
  572. box-sizing: border-box;
  573. position: absolute;
  574. bottom: calc(50% - 350rpx);
  575. display: flex;
  576. justify-content: space-between;
  577. .tool-left,
  578. .tool-right {
  579. .tool-item {
  580. color: #fff;
  581. font-size: 24rpx;
  582. font-weight: 500;
  583. text-align: center;
  584. width: 100rpx;
  585. margin-bottom: 16rpx;
  586. text-shadow:
  587. 0 0 3rpx #D7660A,
  588. 0 0 3rpx #D7660A,
  589. 0 0 3rpx #D7660A,
  590. 0 0 3rpx #D7660A;
  591. &.blue {
  592. text-shadow:
  593. 0 0 3rpx #2199F8,
  594. 0 0 3rpx #2199F8,
  595. 0 0 3rpx #2199F8,
  596. 0 0 3rpx #2199F8;
  597. }
  598. .icon {
  599. width: 100%;
  600. height: 82rpx;
  601. position: relative;
  602. }
  603. .name {
  604. margin-top: -24rpx;
  605. position: relative;
  606. z-index: 2;
  607. }
  608. &.gift {
  609. .icon {
  610. height: 114rpx;
  611. margin-top: -5rpx;
  612. }
  613. .name {
  614. margin-top: -44rpx;
  615. }
  616. }
  617. &.friend {
  618. .icon {
  619. height: 90rpx;
  620. }
  621. .name {
  622. margin-top: -35rpx;
  623. }
  624. }
  625. &.dynamic {
  626. .icon {
  627. height: 96rpx;
  628. }
  629. .name {
  630. margin-top: -32rpx;
  631. }
  632. }
  633. }
  634. }
  635. }
  636. }
  637. .tree-footer {
  638. position: absolute;
  639. left: 0;
  640. bottom: 76rpx;
  641. width: 100%;
  642. display: flex;
  643. justify-content: center;
  644. .button {
  645. padding: 26rpx 80rpx;
  646. border-radius: 50rpx;
  647. border: 2rpx solid #fff;
  648. background-image: linear-gradient(120deg, #FFD887, #ED9E1E);
  649. margin-top: 20rpx;
  650. color: #fff;
  651. }
  652. .footer-item {
  653. width: 18%;
  654. text-align: center;
  655. .icon {
  656. width: 96rpx;
  657. height: 96rpx;
  658. }
  659. .share-btn {
  660. background: transparent;
  661. display: inline-flex;
  662. .icon {
  663. width: 90rpx;
  664. height: 90rpx;
  665. margin-top: 6rpx;
  666. }
  667. &::after {
  668. border: none;
  669. }
  670. }
  671. .small{
  672. width: 90rpx;
  673. height: 90rpx;
  674. margin-top: 6rpx;
  675. }
  676. .name {
  677. font-size: 24rpx;
  678. font-weight: 500;
  679. padding: 2rpx 16rpx;
  680. background-image: linear-gradient(0deg, #FFFFFF, #FFE079);
  681. border-radius: 50rpx;
  682. border: 2rpx solid #fff;
  683. }
  684. }
  685. .footer-item+.footer-item {
  686. margin-left: 30rpx;
  687. }
  688. }
  689. }
  690. </style>