www
This commit is contained in:
parent
98c6fe4c4a
commit
d80105ab13
@ -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 = {
|
||||
|
||||
@ -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()
|
||||
}
|
||||
});
|
||||
@ -56,4 +56,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<!-- 订阅按钮 -->
|
||||
<view class="subscribe-btn" bindtap="handleSubscribe">
|
||||
<text class="subscribe-text">订阅</text>
|
||||
</view>
|
||||
</view>
|
||||
@ -368,3 +368,33 @@
|
||||
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;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user