tree.vue 18 KB

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