Commit a7caed47 authored by liubinyu's avatar liubinyu

bug

parent e137e193
...@@ -63,11 +63,12 @@ class Request { ...@@ -63,11 +63,12 @@ class Request {
baseUrl: '', // 请求的根域名 baseUrl: '', // 请求的根域名
header: {}, header: {},
method: 'POST', method: 'POST',
timeout: 60 * 1000,
dataType: 'json', dataType: 'json',
responseType: 'text', responseType: 'text',
showLoading: true, showLoading: true,
loadingText: '请求中...', loadingText: '请求中...',
loadingTime: 800, loadingTime: 100,
timer: null, timer: null,
originalData: false, originalData: false,
loadingMask: true, loadingMask: true,
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
}; };
}, },
onLoad() { onLoad() {
// this.init() this.init()
}, },
methods: { methods: {
// 初始化 // 初始化
...@@ -73,7 +73,9 @@ ...@@ -73,7 +73,9 @@
else return !!item.user !== !!this.recordList[index - 1].user else return !!item.user !== !!this.recordList[index - 1].user
}, },
confirm() { confirm() {
this.addMsg(this.inputText, true) const txt = this.inputText.trim()
if (!txt) return uni.showToast({ title: '不能发送空白消息', icon: 'none' })
this.addMsg(txt, true)
this.inputText = '' this.inputText = ''
}, },
// 新增记录 // 新增记录
...@@ -145,8 +147,8 @@ ...@@ -145,8 +147,8 @@
} }
.content { .content {
margin-left: 110rpx; margin-left: 100rpx;
margin-right: 30rpx; margin-right: 40rpx;
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 28rpx;
color: #000824; color: #000824;
...@@ -165,8 +167,8 @@ ...@@ -165,8 +167,8 @@
} }
.content { .content {
margin-left: 30rpx; margin-left: 40rpx;
margin-right: 110rpx; margin-right: 100rpx;
} }
} }
} }
......
...@@ -124,11 +124,11 @@ ...@@ -124,11 +124,11 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
gap: 16rpx; gap: 12rpx;
margin: 50rpx 0 50rpx; margin: 50rpx 0 50rpx;
.word { .word {
padding: 8rpx 20rpx 12rpx; padding: 8rpx 16rpx 12rpx;
border-radius: 100rpx; border-radius: 100rpx;
background: rgba(116, 100, 255, 0.1); background: rgba(116, 100, 255, 0.1);
font-size: 26rpx; font-size: 26rpx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment