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