优化页面
This commit is contained in:
@@ -3,7 +3,7 @@ const common_vendor = require("../common/vendor.js");
|
||||
const components_addPrefixToHeaderIcon = require("./addPrefixToHeaderIcon.js");
|
||||
function request(urldata) {
|
||||
const { url, data, method, header, userInfo } = urldata;
|
||||
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) => {
|
||||
common_vendor.index.getStorage({
|
||||
|
||||
@@ -10,7 +10,8 @@ const _sfc_main = {
|
||||
props: {
|
||||
tabIndex: Number
|
||||
},
|
||||
setup(__props) {
|
||||
emits: ["publishSucces"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
require.async("../../TUIKit/components/TUIConversation/entry.js");
|
||||
let showMiddleButton = common_vendor.ref(false);
|
||||
const conversationList = common_vendor.ref([]);
|
||||
@@ -29,6 +30,10 @@ const _sfc_main = {
|
||||
conversationList.value = list;
|
||||
Unread.value = calculateUnreadCount(list);
|
||||
}
|
||||
const emit = __emit;
|
||||
function publishSuccesss() {
|
||||
emit("publishSucces");
|
||||
}
|
||||
function calculateUnreadCount(arr) {
|
||||
let total = 0;
|
||||
for (const item of arr) {
|
||||
@@ -154,7 +159,8 @@ const _sfc_main = {
|
||||
c: common_vendor.o$1(disabledScroll),
|
||||
d: common_vendor.sr(createModule, "c497a889-0", {
|
||||
"k": "createModule"
|
||||
})
|
||||
}),
|
||||
e: common_vendor.o$1(publishSuccesss)
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="tab-block data-v-c497a889"><view class="{{['tab-list', 'flex', 'flex-center', 'data-v-c497a889', b]}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="h" class="{{['data-v-c497a889', item.f]}}" bindtap="{{item.g}}"><view class="item-img-box data-v-c497a889"><image class="item-img data-v-c497a889" src="{{item.a}}"/><view wx:if="{{item.b}}" class="Unreadcss data-v-c497a889">{{item.c}}</view></view><view class="item-text font-20 data-v-c497a889" style="{{'color:' + item.e}}">{{item.d}}</view></view></view><view class="data-v-c497a889" catchtouchmove="{{c}}"></view><new-added-pk class="createModule r data-v-c497a889" u-r="createModule" u-i="c497a889-0" bind:__l="__l"></new-added-pk></view>
|
||||
<view class="tab-block data-v-c497a889"><view class="{{['tab-list', 'flex', 'flex-center', 'data-v-c497a889', b]}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="h" class="{{['data-v-c497a889', item.f]}}" bindtap="{{item.g}}"><view class="item-img-box data-v-c497a889"><image class="item-img data-v-c497a889" src="{{item.a}}"/><view wx:if="{{item.b}}" class="Unreadcss data-v-c497a889">{{item.c}}</view></view><view class="item-text font-20 data-v-c497a889" style="{{'color:' + item.e}}">{{item.d}}</view></view></view><view class="data-v-c497a889" catchtouchmove="{{c}}"></view><new-added-pk class="createModule r data-v-c497a889" u-r="createModule" bindpublishSuccess="{{e}}" u-i="c497a889-0" bind:__l="__l"></new-added-pk></view>
|
||||
@@ -113,6 +113,7 @@
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.Unreadcss.data-v-c497a889 {
|
||||
position: absolute;
|
||||
background-color: #ff0000;
|
||||
margin-top: -65rpx;
|
||||
width: 30rpx;
|
||||
|
||||
Reference in New Issue
Block a user