feat: login rest
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// pages/garden/add/index.js
|
||||
import { MOCK_PLANTS, CARE_TASK_ICONS } from '../../../utils/mockData';
|
||||
import { CARE_TASK_ICONS } from '../../../utils/mockData';
|
||||
import request from '../../../utils/request';
|
||||
import { requestSubscription, checkSubscriptionSettings } from '../../../utils/subscribe';
|
||||
|
||||
|
||||
@@ -126,5 +126,18 @@ Page({
|
||||
if (!this.data.isLastPage && !this.data.isLoading) {
|
||||
this.loadPlants(false);
|
||||
}
|
||||
},
|
||||
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: '我的植物花园 - Sundynix Plant',
|
||||
path: '/pages/garden/index'
|
||||
};
|
||||
},
|
||||
|
||||
onShareTimeline() {
|
||||
return {
|
||||
title: '我的植物花园 - Sundynix Plant'
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
@@ -8,6 +8,12 @@
|
||||
</view>
|
||||
<text class="subtitle">今天也要好好照顾它们哦</text>
|
||||
</view>
|
||||
<view class="share-btn-wrap">
|
||||
<button class="share-capsule" open-type="share">
|
||||
<t-icon name="share" size="32rpx" color="#558B2F" />
|
||||
<text>推荐给好友</text>
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="banner-container">
|
||||
|
||||
@@ -40,6 +40,39 @@
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.share-btn-wrap {
|
||||
position: absolute;
|
||||
top: 40rpx;
|
||||
right: 40rpx;
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
.share-capsule {
|
||||
display: flex !important;
|
||||
align-items: center;
|
||||
gap: 8rpx;
|
||||
background: #F1F8E9 !important; /* Lighter background */
|
||||
border-radius: 32rpx;
|
||||
padding: 12rpx 24rpx !important;
|
||||
margin: 0 !important;
|
||||
border: 1px solid rgba(85, 139, 47, 0.2) !important;
|
||||
box-shadow: 0 4rpx 12rpx rgba(85, 139, 47, 0.08); /* subtle shadow */
|
||||
font-size: 24rpx;
|
||||
font-weight: 600;
|
||||
color: #558B2F;
|
||||
line-height: normal !important;
|
||||
width: auto !important;
|
||||
min-height: 0 !important;
|
||||
}
|
||||
|
||||
.share-capsule::after {
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.banner-container {
|
||||
margin: 0 40rpx 24rpx;
|
||||
height: 220rpx;
|
||||
|
||||
Reference in New Issue
Block a user