tree.vue 18 KB

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