优化页面
This commit is contained in:
@@ -3,8 +3,8 @@ export default function request(urldata) {
|
||||
const { url, data, method, header, userInfo } = urldata;
|
||||
// const baseUrl = "http://49.235.115.212:8086/"+ url;
|
||||
// const baseUrl = "https://pk.zhukeping.com/"+ url;
|
||||
const baseUrl = "http://120.26.251.180:8086/"+ url;
|
||||
// const baseUrl = "http://192.168.0.218:8086/"+ url;
|
||||
// const baseUrl = "http://120.26.251.180:8086/"+ url;
|
||||
const baseUrl = "http://192.168.0.218:8086/"+ url;
|
||||
if (userInfo) {
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.getStorage({
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
<view @touchmove.stop.prevent="disabledScroll"> </view>
|
||||
<NewAddedPk class="createModule" ref="createModule"></NewAddedPk>
|
||||
<NewAddedPk class="createModule" ref="createModule" @publishSuccess="publishSuccesss"></NewAddedPk>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -57,6 +57,10 @@ function onConversationListUpdated(list) {
|
||||
Unread.value = calculateUnreadCount(list);
|
||||
|
||||
}
|
||||
const emit = defineEmits(['publishSucces']);
|
||||
function publishSuccesss() {
|
||||
emit('publishSucces');
|
||||
}
|
||||
// 计算未读消息总数
|
||||
function calculateUnreadCount(arr) {
|
||||
let total = 0;
|
||||
@@ -290,6 +294,7 @@ function handlePush(item, index) {
|
||||
}
|
||||
}
|
||||
.Unreadcss{
|
||||
position: absolute;
|
||||
background-color: #ff0000;
|
||||
margin-top: -65rpx;
|
||||
width: 30rpx;
|
||||
|
||||
Reference in New Issue
Block a user