From d80105ab13fcb65ffed9ad696b8558997ffbb8d0 Mon Sep 17 00:00:00 2001 From: "@zuopngfei" Date: Thu, 13 Nov 2025 14:08:22 +0800 Subject: [PATCH] www --- api/request.js | 2 +- pages/contact/index.js | 8 ++++---- pages/contact/index.wxml | 5 +++++ pages/contact/index.wxss | 30 ++++++++++++++++++++++++++++++ 4 files changed, 40 insertions(+), 5 deletions(-) diff --git a/api/request.js b/api/request.js index c57de1e..6f8aa06 100644 --- a/api/request.js +++ b/api/request.js @@ -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 = {}) { const header = { diff --git a/pages/contact/index.js b/pages/contact/index.js index c752b81..2094910 100644 --- a/pages/contact/index.js +++ b/pages/contact/index.js @@ -403,7 +403,6 @@ Page({ const text = this.data.inputText && this.data.inputText.trim(); if (!text) return; - const res = await this.dingyue() const now = new Date(); const id = 'u' + Date.now(); const msg = { @@ -445,8 +444,6 @@ Page({ }, async chooseImage() { - const resDy = await this.dingyue() - console.log(resDy); const that = this; wx.chooseImage({ count: 1, @@ -572,5 +569,8 @@ Page({ }, onReachBottom() { }, - onShareAppMessage() { } + onShareAppMessage() { }, + handleSubscribe() { + this.dingyue() + } }); \ No newline at end of file diff --git a/pages/contact/index.wxml b/pages/contact/index.wxml index c89bcfc..67a6ccc 100644 --- a/pages/contact/index.wxml +++ b/pages/contact/index.wxml @@ -56,4 +56,9 @@ + + + + + \ No newline at end of file diff --git a/pages/contact/index.wxss b/pages/contact/index.wxss index b8b7b8e..e7cccbc 100644 --- a/pages/contact/index.wxss +++ b/pages/contact/index.wxss @@ -367,4 +367,34 @@ 60% { 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; } \ No newline at end of file