tree.vue 19 KB

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