This commit is contained in:
@zuopngfei 2025-11-13 14:08:22 +08:00
parent 98c6fe4c4a
commit d80105ab13
4 changed files with 40 additions and 5 deletions

View File

@ -1,4 +1,4 @@
const baseUrl = 'https://dsjhd9s.tbmw.cn/api/' const baseUrl = 'https://mini-chat.1024tool.vip/api/'
function request(url, method = 'GET', data = {}) { function request(url, method = 'GET', data = {}) {
const header = { const header = {

View File

@ -403,7 +403,6 @@ Page({
const text = this.data.inputText && this.data.inputText.trim(); const text = this.data.inputText && this.data.inputText.trim();
if (!text) return; if (!text) return;
const res = await this.dingyue()
const now = new Date(); const now = new Date();
const id = 'u' + Date.now(); const id = 'u' + Date.now();
const msg = { const msg = {
@ -445,8 +444,6 @@ Page({
}, },
async chooseImage() { async chooseImage() {
const resDy = await this.dingyue()
console.log(resDy);
const that = this; const that = this;
wx.chooseImage({ wx.chooseImage({
count: 1, count: 1,
@ -572,5 +569,8 @@ Page({
}, },
onReachBottom() { }, onReachBottom() { },
onShareAppMessage() { } onShareAppMessage() { },
handleSubscribe() {
this.dingyue()
}
}); });

View File

@ -56,4 +56,9 @@
</view> </view>
</view> </view>
</block> </block>
<!-- 订阅按钮 -->
<view class="subscribe-btn" bindtap="handleSubscribe">
<text class="subscribe-text">订阅</text>
</view>
</view> </view>

View File

@ -367,4 +367,34 @@
60% { 60% {
transform: translateY(-3rpx); transform: translateY(-3rpx);
} }
}
/* 订阅按钮样式 */
.subscribe-btn {
align-items: center;
backdrop-filter: blur(10rpx);
background: rgba(0, 0, 0, .15);
border-radius: 50%;
bottom: 180rpx;
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, .1);
display: flex;
height: 88rpx;
justify-content: center;
position: fixed;
right: 40rpx;
width: 88rpx;
z-index: 999;
color: #fff;
font-size: 26rpx;
}
.subscribe-btn:active {
transform: scale(.95);
transition: all .2s ease;
}
.subscribe-btn .subscribe-text {
color: #fff;
font-size: 28rpx;
font-weight: 600;
} }