优化页面
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello"
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b94d73cb"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/Advertisement/Advertisement.js.map
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="advertisement data-v-b94d73cb">广告</view>
|
||||
@@ -1,9 +0,0 @@
|
||||
|
||||
.advertisement.data-v-b94d73cb {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
background: #ffffff;
|
||||
border: 1px solid #e5e5e5;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
/* 样式定义 */
|
||||
@@ -1,263 +0,0 @@
|
||||
"use strict";
|
||||
const NationalDictionary = {
|
||||
AD: "安道尔",
|
||||
AE: "阿拉伯联合酋长国",
|
||||
AF: "阿富汗",
|
||||
AG: "安提瓜和巴布达",
|
||||
AI: "安圭拉",
|
||||
AL: "阿尔巴尼亚",
|
||||
AM: "亚美尼亚",
|
||||
AO: "安哥拉",
|
||||
AQ: "南极洲",
|
||||
AR: "阿根廷",
|
||||
AS: "美属萨摩亚",
|
||||
AT: "奥地利",
|
||||
AU: "澳大利亚",
|
||||
AW: "阿鲁巴",
|
||||
AX: "奥兰群岛",
|
||||
AZ: "阿塞拜疆",
|
||||
BA: "波斯尼亚和黑塞哥维那",
|
||||
BB: "巴巴多斯",
|
||||
BD: "孟加拉国",
|
||||
BE: "比利时",
|
||||
BF: "布基纳法索",
|
||||
BG: "保加利亚",
|
||||
BH: "巴林",
|
||||
BI: "布隆迪",
|
||||
BJ: "贝宁",
|
||||
BL: "圣巴泰勒米",
|
||||
BM: "百慕大群岛",
|
||||
BN: "文莱达鲁萨兰国",
|
||||
BO: "玻利维亚",
|
||||
BQ: "博奈尔、圣尤斯特歇斯和萨巴",
|
||||
BR: "巴西",
|
||||
BS: "巴哈马",
|
||||
BT: "不丹",
|
||||
BV: "布韦岛",
|
||||
BW: "博茨瓦纳",
|
||||
BY: "白俄罗斯",
|
||||
BZ: "伯利兹",
|
||||
CA: "加拿大",
|
||||
CC: "科科斯(基林)群岛",
|
||||
CD: "刚果民主共和国",
|
||||
CF: "中非共和国",
|
||||
CG: "刚果共和国",
|
||||
CH: "瑞士",
|
||||
CI: "科特迪瓦",
|
||||
CK: "库克群岛",
|
||||
CL: "智利",
|
||||
CM: "喀麦隆",
|
||||
CN: "中国",
|
||||
CO: "哥伦比亚",
|
||||
CR: "哥斯达黎加",
|
||||
CU: "古巴",
|
||||
CV: "佛得角",
|
||||
CW: "库拉索",
|
||||
CX: "圣诞岛",
|
||||
CY: "塞浦路斯",
|
||||
CZ: "捷克共和国",
|
||||
DE: "德国",
|
||||
DG: "迪戈加西亚岛",
|
||||
DJ: "吉布提",
|
||||
DK: "丹麦",
|
||||
DM: "多米尼克",
|
||||
DO: "多米尼加共和国",
|
||||
DZ: "阿尔及利亚",
|
||||
EC: "厄瓜多尔",
|
||||
EE: "爱沙尼亚",
|
||||
EG: "埃及",
|
||||
EH: "西撒哈拉",
|
||||
ER: "厄立特里亚",
|
||||
ES: "西班牙",
|
||||
ET: "埃塞俄比亚",
|
||||
FI: "芬兰",
|
||||
FJ: "斐济",
|
||||
FK: "福克兰群岛",
|
||||
FM: "密克罗尼西亚",
|
||||
FO: "法罗群岛",
|
||||
FR: "法国",
|
||||
GA: "加蓬",
|
||||
GB: "英国",
|
||||
GD: "格林纳达",
|
||||
GE: "格鲁吉亚",
|
||||
GF: "法属圭亚那",
|
||||
GG: "根西岛",
|
||||
GH: "加纳",
|
||||
GI: "直布罗陀",
|
||||
GL: "格陵兰",
|
||||
GM: "冈比亚",
|
||||
GN: "几内亚",
|
||||
GP: "瓜德罗普",
|
||||
GQ: "赤道几内亚",
|
||||
GR: "希腊",
|
||||
GS: "南乔治亚和南桑德威奇群岛",
|
||||
GT: "危地马拉",
|
||||
GU: "关岛",
|
||||
GW: "几内亚比绍",
|
||||
GY: "圭亚那",
|
||||
HK: "中国香港特别行政区",
|
||||
HM: "赫德岛和麦克唐纳群岛",
|
||||
HN: "洪都拉斯",
|
||||
HR: "克罗地亚",
|
||||
HT: "海地",
|
||||
HU: "匈牙利",
|
||||
ID: "印度尼西亚",
|
||||
IE: "爱尔兰",
|
||||
IL: "以色列",
|
||||
IM: "马恩岛",
|
||||
IN: "印度",
|
||||
IO: "英属印度洋领地",
|
||||
IQ: "伊拉克",
|
||||
IR: "伊朗",
|
||||
IS: "冰岛",
|
||||
IT: "意大利",
|
||||
JE: "泽西岛",
|
||||
JM: "牙买加",
|
||||
JO: "约旦",
|
||||
JP: "日本",
|
||||
KE: "肯尼亚",
|
||||
KG: "吉尔吉斯斯坦",
|
||||
KH: "柬埔寨",
|
||||
KI: "基里巴斯",
|
||||
KM: "科摩罗",
|
||||
KN: "圣基茨和尼维斯",
|
||||
KP: "朝鲜",
|
||||
KR: "韩国",
|
||||
KW: "科威特",
|
||||
KY: "开曼群岛",
|
||||
KZ: "哈萨克斯坦",
|
||||
LA: "老挝",
|
||||
LB: "黎巴嫩",
|
||||
LC: "圣卢西亚",
|
||||
LI: "列支敦士登",
|
||||
LK: "斯里兰卡",
|
||||
LR: "利比里亚",
|
||||
LS: "莱索托",
|
||||
LT: "立陶宛",
|
||||
LU: "卢森堡",
|
||||
LV: "拉脱维亚",
|
||||
LY: "利比亚",
|
||||
MA: "摩洛哥",
|
||||
MC: "摩纳哥",
|
||||
MD: "摩尔多瓦",
|
||||
ME: "黑山",
|
||||
MF: "圣马丁",
|
||||
MG: "马达加斯加",
|
||||
MH: "马绍尔群岛",
|
||||
MK: "北马其顿",
|
||||
ML: "马里",
|
||||
MM: "缅甸",
|
||||
MN: "蒙古",
|
||||
MO: "中国澳门特别行政区",
|
||||
MP: "北马里亚纳群岛",
|
||||
MQ: "马提尼克",
|
||||
MR: "毛里塔尼亚",
|
||||
MS: "蒙特塞拉特",
|
||||
MT: "马耳他",
|
||||
MU: "毛里求斯",
|
||||
MV: "马尔代夫",
|
||||
MW: "马拉维",
|
||||
MX: "墨西哥",
|
||||
MY: "马来西亚",
|
||||
MZ: "莫桑比克",
|
||||
NA: "纳米比亚",
|
||||
NC: "新喀里多尼亚",
|
||||
NE: "尼日尔",
|
||||
NF: "诺福克岛",
|
||||
NG: "尼日利亚",
|
||||
NI: "尼加拉瓜",
|
||||
NL: "荷兰",
|
||||
NO: "挪威",
|
||||
NP: "尼泊尔",
|
||||
NR: "瑙鲁",
|
||||
NU: "纽埃",
|
||||
NZ: "新西兰",
|
||||
OM: "阿曼",
|
||||
PA: "巴拿马",
|
||||
PE: "秘鲁",
|
||||
PF: "法属玻利尼西亚",
|
||||
PG: "巴布亚新几内亚",
|
||||
PH: "菲律宾",
|
||||
PK: "巴基斯坦",
|
||||
PL: "波兰",
|
||||
PM: "圣皮埃尔和密克隆群岛",
|
||||
PN: "皮特凯恩群岛",
|
||||
PR: "波多黎各",
|
||||
PS: "巴勒斯坦",
|
||||
PT: "葡萄牙",
|
||||
PW: "帕劳",
|
||||
PY: "巴拉圭",
|
||||
QA: "卡塔尔",
|
||||
RE: "留尼汪",
|
||||
RO: "罗马尼亚",
|
||||
RS: "塞尔维亚",
|
||||
RU: "俄罗斯",
|
||||
RW: "卢旺达",
|
||||
SA: "沙特阿拉伯",
|
||||
SB: "索罗门群岛",
|
||||
SC: "塞舌尔",
|
||||
SD: "苏丹",
|
||||
SE: "瑞典",
|
||||
SG: "新加坡",
|
||||
SI: "斯洛文尼亚",
|
||||
SJ: "斯瓦尔巴和扬马延",
|
||||
SK: "斯洛伐克",
|
||||
SL: "塞拉利昂",
|
||||
SM: "圣马利诺",
|
||||
SN: "塞内加尔",
|
||||
SO: "索马里",
|
||||
SR: "苏里南",
|
||||
SS: "南苏丹",
|
||||
ST: "圣多美和普林西比",
|
||||
SV: "萨尔瓦多",
|
||||
SX: "荷属圣马丁",
|
||||
SY: "叙利亚",
|
||||
SZ: "斯威士兰",
|
||||
TC: "特克斯和凯科斯群岛",
|
||||
TD: "乍得",
|
||||
TF: "法属南部领地",
|
||||
TG: "多哥",
|
||||
TH: "泰国",
|
||||
TJ: "塔吉克斯坦",
|
||||
TK: "托克劳群岛",
|
||||
TL: "东帝汶",
|
||||
TM: "土库曼斯坦",
|
||||
TN: "突尼斯",
|
||||
TO: "汤加",
|
||||
TR: "土耳其",
|
||||
TT: "特立尼达和多巴哥",
|
||||
TV: "图瓦卢",
|
||||
TW: "台湾",
|
||||
TZ: "坦桑尼亚",
|
||||
UA: "乌克兰",
|
||||
UG: "乌干达",
|
||||
UM: "美国本土外小岛屿",
|
||||
US: "美国",
|
||||
UY: "乌拉圭",
|
||||
UZ: "乌兹别克斯坦",
|
||||
VA: "梵蒂冈",
|
||||
VC: "圣文森特",
|
||||
VE: "委内瑞拉",
|
||||
VG: "英属维尔京群岛",
|
||||
VI: "美属维尔京群岛",
|
||||
VN: "越南",
|
||||
VU: "瓦努阿图",
|
||||
WS: "萨摩亚",
|
||||
YE: "也门",
|
||||
YT: "马约特岛",
|
||||
ZA: "南非",
|
||||
ZM: "赞比亚",
|
||||
ZW: "津巴布韦",
|
||||
UK: "英国",
|
||||
WF: "瓦利斯"
|
||||
};
|
||||
function convertNationalDictToOptions(dict) {
|
||||
return Object.entries(dict).map(([code, name]) => ({
|
||||
label: name,
|
||||
value: name
|
||||
// 将 value 改为国家名称
|
||||
}));
|
||||
}
|
||||
const optionsArray = convertNationalDictToOptions(NationalDictionary);
|
||||
exports.optionsArray = optionsArray;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/NationalDictionary.js.map
|
||||
@@ -1,20 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../common/vendor.js");
|
||||
function TUIlogin(chatInfo, info, userSig) {
|
||||
common_vendor.index.$SDKAppID = chatInfo;
|
||||
common_vendor.index.$userID = String(info);
|
||||
common_vendor.index.__f__("log", "at components/TUILogin.js:9", "TUIlogin", chatInfo, info, userSig);
|
||||
common_vendor.index.$userSig = userSig;
|
||||
common_vendor.A.login({
|
||||
SDKAppID: common_vendor.index.$SDKAppID,
|
||||
userID: common_vendor.index.$userID,
|
||||
userSig: common_vendor.index.$userSig,
|
||||
useUploadPlugin: true,
|
||||
// If you need to send rich media messages, please set to true.
|
||||
framework: `vue3`
|
||||
// framework used vue2 / vue3
|
||||
}).catch(() => {
|
||||
});
|
||||
}
|
||||
exports.TUIlogin = TUIlogin;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/TUILogin.js.map
|
||||
@@ -1,13 +0,0 @@
|
||||
"use strict";
|
||||
function TimeFormatting(timestamp) {
|
||||
const date = new Date(timestamp * 1e3);
|
||||
date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, "0");
|
||||
const day = String(date.getDate()).padStart(2, "0");
|
||||
const hour = String(date.getHours()).padStart(2, "0");
|
||||
const minute = String(date.getMinutes()).padStart(2, "0");
|
||||
String(date.getSeconds()).padStart(2, "0");
|
||||
return `${month}-${day} ${hour}:${minute}`;
|
||||
}
|
||||
exports.TimeFormatting = TimeFormatting;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/TimeFormatting.js.map
|
||||
@@ -1,20 +0,0 @@
|
||||
"use strict";
|
||||
function addPrefixToHeaderIcon(data) {
|
||||
if (Array.isArray(data)) {
|
||||
data.forEach((item) => addPrefixToHeaderIcon(item));
|
||||
return;
|
||||
}
|
||||
if (typeof data === "object" && data !== null) {
|
||||
for (const key in data) {
|
||||
if (key === "headerIcon" || key === "anchorIcon" && data.hasOwnProperty(key)) {
|
||||
const value = data[key];
|
||||
data[key] = "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/headerIcon/" + (typeof value === "string" ? value : value != null ? String(value) : "");
|
||||
} else if (typeof data[key] === "object" && data[key] !== null) {
|
||||
addPrefixToHeaderIcon(data[key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
return data;
|
||||
}
|
||||
exports.addPrefixToHeaderIcon = addPrefixToHeaderIcon;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/addPrefixToHeaderIcon.js.map
|
||||
@@ -1,14 +0,0 @@
|
||||
"use strict";
|
||||
const components_debug_libGenerateTestUsersigEs_min = require("./lib-generate-test-usersig-es.min.js");
|
||||
function genTestUserSig(config) {
|
||||
const { SDKAPPID, SECRETKEY, userID } = config;
|
||||
const EXPIRETIME = 604800;
|
||||
const generator = new components_debug_libGenerateTestUsersigEs_min.LibGenerateTestUserSig(SDKAPPID, SECRETKEY, EXPIRETIME);
|
||||
const userSig = generator.genTestUserSig(userID);
|
||||
return {
|
||||
sdkAppID: SDKAPPID,
|
||||
userSig
|
||||
};
|
||||
}
|
||||
exports.genTestUserSig = genTestUserSig;
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/debug/GenerateTestUserSig.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,13 +0,0 @@
|
||||
"use strict";
|
||||
function formatDate(timestamp) {
|
||||
const date = new Date(timestamp * 1e3);
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, "0");
|
||||
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}`;
|
||||
}
|
||||
exports.formatDate = formatDate;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/formatDate.js.map
|
||||
@@ -1,16 +0,0 @@
|
||||
"use strict";
|
||||
function generateRandomString(length = 6) {
|
||||
const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||
let result = "";
|
||||
for (let i = 0; i < length; i++) {
|
||||
result += chars[Math.floor(Math.random() * chars.length)];
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function generateFileName() {
|
||||
const randomPart = generateRandomString();
|
||||
const timestamp = Date.now();
|
||||
return `${randomPart}${timestamp}.jpg`;
|
||||
}
|
||||
exports.generateFileName = generateFileName;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/generateFileName.js.map
|
||||
@@ -1,16 +0,0 @@
|
||||
"use strict";
|
||||
function generateRandomString(length = 6) {
|
||||
const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||
let result = "";
|
||||
for (let i = 0; i < length; i++) {
|
||||
result += chars[Math.floor(Math.random() * chars.length)];
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function generateMsgId() {
|
||||
const randomPart = generateRandomString();
|
||||
const timestamp = Date.now();
|
||||
return `${randomPart}${timestamp}`;
|
||||
}
|
||||
exports.generateMsgId = generateMsgId;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/generateMsgId.js.map
|
||||
@@ -1,38 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../common/vendor.js");
|
||||
const cos = new common_vendor.COS({
|
||||
SecretId: "AKID4KPIyQgjjnkWJzSnwtfHj281tcBZo28v",
|
||||
// 推荐使用环境变量获取;用户的 SecretId,建议使用子账号密钥,授权遵循最小权限指引,降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
|
||||
SecretKey: "kQvMjuscBWgfSCqeHiGfx3vc7PUP7ctx"
|
||||
// 推荐使用环境变量获取;用户的 SecretKey,建议使用子账号密钥,授权遵循最小权限指引,降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
|
||||
});
|
||||
const uploadFile = function(file) {
|
||||
return new Promise((resolve, reject) => {
|
||||
cos.uploadFile({
|
||||
Bucket: "vv-1317974657",
|
||||
// 填入您自己的存储桶,必须字段
|
||||
Region: "ap-shanghai",
|
||||
// 存储桶所在地域,例如 ap-beijing,必须字段
|
||||
Key: "headerIcon/" + file.name,
|
||||
// 存储在桶里的对象键(例如1.jpg,a/b/test.txt),必须字段文件名
|
||||
FilePath: file.path,
|
||||
// 必须
|
||||
FileSize: "",
|
||||
// v1.4.3之前的版本必须,v1.4.3及以后的版本非必须
|
||||
SliceSize: 1024 * 1024 * 2,
|
||||
// 触发分块上传的阈值,超过2MB使用分块上传,非必须,按需调整,最小支持1MB
|
||||
// 支持自定义 headers 非必须
|
||||
Headers: {
|
||||
"x-cos-meta-test": 123
|
||||
}
|
||||
}, function(err, data) {
|
||||
if (err) {
|
||||
reject(err);
|
||||
} else {
|
||||
resolve(data.Location);
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
exports.uploadFile = uploadFile;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/postFile.js.map
|
||||
@@ -1,62 +0,0 @@
|
||||
"use strict";
|
||||
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;
|
||||
if (userInfo) {
|
||||
return new Promise((resolve, reject) => {
|
||||
common_vendor.index.getStorage({
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
if (res.data) {
|
||||
if (res.data.nickName) {
|
||||
common_vendor.index.request({
|
||||
url: baseUrl,
|
||||
data,
|
||||
method,
|
||||
header,
|
||||
success: function(res2) {
|
||||
common_vendor.index.__f__("log", "at components/request.js:19", "请求成功1", res2.data);
|
||||
resolve(components_addPrefixToHeaderIcon.addPrefixToHeaderIcon(res2.data));
|
||||
},
|
||||
fail: function(res2) {
|
||||
reject(res2);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
|
||||
common_vendor.index.reLaunch({ url: "/pages/UserInformation/UserInformation" });
|
||||
}
|
||||
} else {
|
||||
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
|
||||
common_vendor.index.navigateTo({ url: "/pages/login/login" });
|
||||
}
|
||||
},
|
||||
fail: function(res) {
|
||||
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
|
||||
common_vendor.index.navigateTo({ url: "/pages/login/login" });
|
||||
reject(res);
|
||||
}
|
||||
});
|
||||
});
|
||||
} else {
|
||||
return new Promise((resolve, reject) => {
|
||||
common_vendor.index.request({
|
||||
url: baseUrl,
|
||||
data,
|
||||
method,
|
||||
header,
|
||||
success: function(res) {
|
||||
common_vendor.index.__f__("log", "at components/request.js:51", "请求成功2", res);
|
||||
resolve(components_addPrefixToHeaderIcon.addPrefixToHeaderIcon(res.data));
|
||||
},
|
||||
fail: function(res) {
|
||||
reject(res);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.request = request;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/request.js.map
|
||||
@@ -1,114 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
if (!Math) {
|
||||
NewAddedPk();
|
||||
}
|
||||
const NewAddedPk = () => "../../pages/NewAddedPk/NewAddedPk2.js";
|
||||
const _sfc_main = {
|
||||
__name: "tabBar",
|
||||
props: {
|
||||
tabIndex: Number
|
||||
},
|
||||
setup(__props) {
|
||||
let showMiddleButton = common_vendor.ref(false);
|
||||
let tabList = common_vendor.reactive([
|
||||
{
|
||||
iconPath: "../../static/Pk.png",
|
||||
selectedIconPath: "../../static/PkClick.png",
|
||||
text: "PK",
|
||||
pagePath: "/pages/Home/Home",
|
||||
middleClass: ""
|
||||
},
|
||||
{
|
||||
iconPath: "../../static/Forum.png",
|
||||
selectedIconPath: "../../static/Forumclick.png",
|
||||
text: "论坛",
|
||||
pagePath: "/pages/Forum/Forum",
|
||||
middleClass: ""
|
||||
},
|
||||
{
|
||||
iconPath: "../../static/jiahao.png",
|
||||
selectedIconPath: "../../static/jiahao.png",
|
||||
text: "",
|
||||
pagePath: "/pages/c/c",
|
||||
middleClass: ""
|
||||
},
|
||||
{
|
||||
iconPath: "../../static/Message.png",
|
||||
selectedIconPath: "../../static/Messageclick.png",
|
||||
text: "消息"
|
||||
},
|
||||
{
|
||||
iconPath: "../../static/Mine.png",
|
||||
selectedIconPath: "../../static/Mineclick.png",
|
||||
text: "我的",
|
||||
pagePath: "/pages/Mine/Mine",
|
||||
middleClass: ""
|
||||
}
|
||||
]);
|
||||
common_vendor.onMounted(() => {
|
||||
setTabBar();
|
||||
});
|
||||
common_vendor.index.getSystemInfo({
|
||||
success: function(res) {
|
||||
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:82", "机型", res.deviceType);
|
||||
if (res.safeArea.top > 40) {
|
||||
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:84", "苹果的底部栏大小", res.safeArea.top);
|
||||
}
|
||||
}
|
||||
});
|
||||
function setTabBar() {
|
||||
let tabLength = tabList.length;
|
||||
if (tabLength % 2) {
|
||||
showMiddleButton.value = true;
|
||||
let middleIndex = Math.floor(tabLength / 2);
|
||||
tabList[middleIndex].middleClass = "mid-button";
|
||||
}
|
||||
}
|
||||
const createModule = common_vendor.ref();
|
||||
function openPopupQuantity() {
|
||||
createModule.value.open();
|
||||
}
|
||||
const disabledScroll = () => {
|
||||
return false;
|
||||
};
|
||||
function handlePush(item, index) {
|
||||
if (index === 2) {
|
||||
openPopupQuantity();
|
||||
return;
|
||||
}
|
||||
if (item.text === "消息") {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/TUIKit/components/TUIConversation/index",
|
||||
animationType: "none"
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.switchTab({
|
||||
url: item.pagePath
|
||||
});
|
||||
}
|
||||
}
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.f(common_vendor.unref(tabList), (item, index, i0) => {
|
||||
return {
|
||||
a: __props.tabIndex == index ? item.selectedIconPath : item.iconPath,
|
||||
b: common_vendor.t(item.text),
|
||||
c: __props.tabIndex == index ? "#1DD2F9" : "#A7A3A3",
|
||||
d: common_vendor.n("list-item flex flex-column flex-middle " + item.middleClass),
|
||||
e: common_vendor.o$1(($event) => handlePush(item, index), index),
|
||||
f: index
|
||||
};
|
||||
}),
|
||||
b: common_vendor.n(common_vendor.unref(showMiddleButton) === true ? "tab-list-middle" : "tab-list-default"),
|
||||
c: common_vendor.o$1(disabledScroll),
|
||||
d: common_vendor.sr(createModule, "c497a889-0", {
|
||||
"k": "createModule"
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c497a889"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/tabBar/tabBar.js.map
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"new-added-pk": "../../pages/NewAddedPk/NewAddedPk"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<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="f" class="{{['data-v-c497a889', item.d]}}" bindtap="{{item.e}}"><view class="item-img-box data-v-c497a889"><image class="item-img data-v-c497a889" src="{{item.a}}"/></view><view class="item-text font-20 data-v-c497a889" style="{{'color:' + item.c}}">{{item.b}}</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>
|
||||
@@ -1,114 +0,0 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.flex.data-v-c497a889 {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
}
|
||||
.flex-center.data-v-c497a889 {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.flex-column.data-v-c497a889 {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.flex-middle.data-v-c497a889 {
|
||||
align-items: center;
|
||||
}
|
||||
.font-20.data-v-c497a889 {
|
||||
font-size: 20rpx;
|
||||
}
|
||||
.tab-block.data-v-c497a889 {
|
||||
position: relative;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
z-index: 999;
|
||||
background-size: contain;
|
||||
width: 100vw;
|
||||
background-color: #ffffff;
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
.tab-block .tab-list.data-v-c497a889 {
|
||||
height: 100rpx;
|
||||
padding: 0;
|
||||
z-index: 0;
|
||||
}
|
||||
.tab-block .createModule.data-v-c497a889 {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: 998;
|
||||
width: 100vw;
|
||||
}
|
||||
.tab-block .tab-list-default.data-v-c497a889 {
|
||||
background-color: #ffffff;
|
||||
border-top: 1px #dddddd solid;
|
||||
}
|
||||
.tab-block .tab-list-middle.data-v-c497a889 {
|
||||
position: relative;
|
||||
background-size: cover;
|
||||
}
|
||||
.tab-block .list-item.data-v-c497a889 {
|
||||
flex: 1;
|
||||
}
|
||||
.tab-block .list-item .item-img-box.data-v-c497a889 {
|
||||
width: 38rpx;
|
||||
height: 38rpx;
|
||||
margin-bottom: 9rpx;
|
||||
position: relative;
|
||||
}
|
||||
.tab-block .list-item .item-img.data-v-c497a889 {
|
||||
width: 38rpx;
|
||||
height: 38rpx;
|
||||
color: red;
|
||||
}
|
||||
.tab-block .mid-button.data-v-c497a889 {
|
||||
position: relative;
|
||||
}
|
||||
.tab-block .mid-button .item-img-box.data-v-c497a889 {
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
margin-bottom: 9rpx;
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
top: -104rpx;
|
||||
}
|
||||
.tab-block .mid-button .item-img.data-v-c497a889 {
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
}
|
||||
.tab-block .mid-button .item-text.data-v-c497a889 {
|
||||
font-size: 20rpx;
|
||||
position: absolute;
|
||||
z-index: 1002;
|
||||
bottom: -40rpx;
|
||||
color: #393a41;
|
||||
}
|
||||
.tab-block .tab-bar.data-v-c497a889 {
|
||||
height: 30rpx;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
Select: false
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
},
|
||||
methods: {
|
||||
MakeAppointmentPK() {
|
||||
this.Select = false;
|
||||
this.$emit("MakeAppointmentPK");
|
||||
},
|
||||
RealTimePk() {
|
||||
this.Select = true;
|
||||
this.$emit("RealTimePk");
|
||||
},
|
||||
screening() {
|
||||
this.$emit("screening");
|
||||
},
|
||||
Search() {
|
||||
this.$emit("Search");
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o$1((...args) => $options.MakeAppointmentPK && $options.MakeAppointmentPK(...args)),
|
||||
b: !$data.Select ? 1 : "",
|
||||
c: $data.Select ? 1 : "",
|
||||
d: common_vendor.o$1((...args) => $options.RealTimePk && $options.RealTimePk(...args)),
|
||||
e: $data.Select ? 1 : "",
|
||||
f: !$data.Select ? 1 : ""
|
||||
};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ce2f6748"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/topNavigation/topNavigation.js.map
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="topNavigation data-v-ce2f6748"><view bindtap="{{a}}" class="{{[b && 'Selectcss', c && 'NoSelectcss', 'RealTime', 'data-v-ce2f6748']}}">今日PK</view><view bindtap="{{d}}" class="{{[e && 'Selectcss', f && 'NoSelectcss', 'MakeAppointment', 'data-v-ce2f6748']}}">PK大厅</view></view>
|
||||
@@ -1,42 +0,0 @@
|
||||
|
||||
.topNavigation.data-v-ce2f6748 {
|
||||
width: 100%;
|
||||
height: 114.5rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.Screening.data-v-ce2f6748 {
|
||||
width: 93rpx;
|
||||
height: 50rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 4rpx;
|
||||
font-size: 23rpx;
|
||||
color: #3b3b3b;
|
||||
text-align: center;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
.filter-icon.data-v-ce2f6748 {
|
||||
width: 33rpx;
|
||||
height: 33rpx;
|
||||
}
|
||||
.RealTime.data-v-ce2f6748 {
|
||||
margin: 0 39rpx 0 41rpx;
|
||||
}
|
||||
.MakeAppointment.data-v-ce2f6748 {
|
||||
margin-right: 233rpx;
|
||||
}
|
||||
.Screening.data-v-ce2f6748 {
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.Selectcss.data-v-ce2f6748 {
|
||||
width: 146rpx;
|
||||
height: 39rpx;
|
||||
font-size: 42rpx;
|
||||
color: #0e1011;
|
||||
font-weight: 600;
|
||||
}
|
||||
.NoSelectcss.data-v-ce2f6748 {
|
||||
font-weight: 600;
|
||||
height: 29rpx;
|
||||
color: #727a7b;
|
||||
}
|
||||
Reference in New Issue
Block a user