优化页面
This commit is contained in:
8
unpackage/dist/dev/mp-weixin/components/DifferenceArray.js
vendored
Normal file
8
unpackage/dist/dev/mp-weixin/components/DifferenceArray.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
function DifferenceArray(targetTimestamp) {
|
||||
const now = Date.now() / 1e3;
|
||||
const diffHours = Math.ceil((targetTimestamp - now) / 3600);
|
||||
return Array.from({ length: diffHours }, (_, i) => String(i + 1));
|
||||
}
|
||||
exports.DifferenceArray = DifferenceArray;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/DifferenceArray.js.map
|
||||
@@ -6,8 +6,8 @@ function formatDate(timestamp) {
|
||||
const day = String(date.getDate()).padStart(2, "0");
|
||||
const hour = String(date.getHours()).padStart(2, "0");
|
||||
const minute = String(date.getMinutes()).padStart(2, "0");
|
||||
const second = String(date.getSeconds()).padStart(2, "0");
|
||||
return `${year}-${month}-${day} ${hour}:${minute}:${second}`;
|
||||
String(date.getSeconds()).padStart(2, "0");
|
||||
return `${year}-${month}-${day} ${hour}:${minute}`;
|
||||
}
|
||||
exports.formatDate = formatDate;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/formatDate.js.map
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -12,6 +12,21 @@ const _sfc_main = {
|
||||
},
|
||||
setup(__props) {
|
||||
let showMiddleButton = common_vendor.ref(false);
|
||||
const conversationList = common_vendor.ref([]);
|
||||
common_vendor.onMounted(() => {
|
||||
common_vendor.Jt.watch(common_vendor.o.CONV, {
|
||||
conversationList: onConversationListUpdated
|
||||
});
|
||||
});
|
||||
common_vendor.onUnmounted(() => {
|
||||
common_vendor.Jt.unwatch(common_vendor.o.CONV, {
|
||||
conversationList: onConversationListUpdated
|
||||
});
|
||||
});
|
||||
function onConversationListUpdated(list) {
|
||||
conversationList.value = list;
|
||||
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:51", "conversationList", list);
|
||||
}
|
||||
let tabList = common_vendor.reactive([
|
||||
{
|
||||
iconPath: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Pk.png",
|
||||
@@ -52,9 +67,9 @@ const _sfc_main = {
|
||||
});
|
||||
common_vendor.index.getSystemInfo({
|
||||
success: function(res) {
|
||||
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:83", "机型", res.deviceType);
|
||||
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:99", "机型", res.deviceType);
|
||||
if (res.safeArea.top > 40) {
|
||||
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:85", "苹果的底部栏大小", res.safeArea.top);
|
||||
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:101", "苹果的底部栏大小", res.safeArea.top);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
margin: 0 39rpx 0 41rpx;
|
||||
}
|
||||
.MakeAppointment.data-v-ce2f6748 {
|
||||
margin-right: 280rpx;
|
||||
margin-right: 270rpx;
|
||||
}
|
||||
.Screening.data-v-ce2f6748 {
|
||||
margin-right: 20rpx;
|
||||
|
||||
Reference in New Issue
Block a user