first commit

This commit is contained in:
SnhAenIgseAl
2026-03-31 16:44:41 +08:00
parent dd513eda30
commit 7bde226505
219 changed files with 33046 additions and 9 deletions
+105
View File
@@ -0,0 +1,105 @@
"use strict";
var common_vendor = require("../../common/vendor.js");
var api_modules_ZhouYi = require("../../api/modules/ZhouYi.js");
var utils_common = require("../../utils/common.js");
require("../../utils/request.js");
require("../../config/api.config.js");
require("../../stores/modules/rateLimit.js");
if (!Array) {
const _easycom_wd_text2 = common_vendor.resolveComponent("wd-text");
const _easycom_wd_col2 = common_vendor.resolveComponent("wd-col");
const _easycom_wd_row2 = common_vendor.resolveComponent("wd-row");
(_easycom_wd_text2 + _easycom_wd_col2 + _easycom_wd_row2)();
}
const _easycom_wd_text = () => "../../uni_modules/wot-design-uni/components/wd-text/wd-text.js";
const _easycom_wd_col = () => "../../uni_modules/wot-design-uni/components/wd-col/wd-col.js";
const _easycom_wd_row = () => "../../uni_modules/wot-design-uni/components/wd-row/wd-row.js";
if (!Math) {
(NavBar + _easycom_wd_text + _easycom_wd_col + _easycom_wd_row)();
}
const NavBar = () => "../../components/NavBar.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "home",
setup(__props) {
const list = common_vendor.ref([]);
const \u4E0A\u7ECF = common_vendor.ref([]);
const \u4E0B\u7ECF = common_vendor.ref([]);
api_modules_ZhouYi.getZhouList().then((res) => {
list.value = res.data;
\u4E0A\u7ECF.value = list.value.filter((item) => item.index >= 1 && item.index <= 30);
\u4E0B\u7ECF.value = list.value.filter((item) => item.index >= 31 && item.index <= 64);
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
title: "\u5B66\u6613"
}),
b: common_vendor.p({
text: "\u4E0A\u7ECF",
size: "36rpx",
bold: true,
color: "#333"
}),
c: list.value.length
}, list.value.length ? {
d: common_vendor.f(\u4E0A\u7ECF.value, (item, index, i0) => {
return {
a: "087d42bb-4-" + i0 + "," + ("087d42bb-3-" + i0),
b: common_vendor.p({
text: item.symbol,
size: "90rpx",
color: "#333"
}),
c: "087d42bb-5-" + i0 + "," + ("087d42bb-3-" + i0),
d: common_vendor.p({
text: item.name,
bold: true,
size: "28rpx",
color: "#333"
}),
e: common_vendor.o(($event) => common_vendor.unref(utils_common.goTo)("/pages/ZhouYi/detail?id=" + item.documentId)),
f: index,
g: "087d42bb-3-" + i0 + ",087d42bb-2"
};
}),
e: common_vendor.p({
span: 6
})
} : {}, {
f: common_vendor.p({
text: "\u4E0B\u7ECF",
size: "36rpx",
bold: true,
color: "#333"
}),
g: list.value.length
}, list.value.length ? {
h: common_vendor.f(\u4E0B\u7ECF.value, (item, index, i0) => {
return {
a: "087d42bb-9-" + i0 + "," + ("087d42bb-8-" + i0),
b: common_vendor.p({
text: item.symbol,
size: "90rpx",
color: "#333"
}),
c: "087d42bb-10-" + i0 + "," + ("087d42bb-8-" + i0),
d: common_vendor.p({
text: item.name,
bold: true,
size: "28rpx",
color: "#333"
}),
e: common_vendor.o(($event) => common_vendor.unref(utils_common.goTo)("/pages/ZhouYi/detail?id=" + item.documentId)),
f: index,
g: "087d42bb-8-" + i0 + ",087d42bb-7"
};
}),
i: common_vendor.p({
span: 6
})
} : {});
};
}
});
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-087d42bb"], ["__file", "D:/\u7F51\u6291\u4E91Time/\u79C1\u6D3B/2000\u7B97\u5366/src/pages/home/home.vue"]]);
wx.createComponent(Component);
+9
View File
@@ -0,0 +1,9 @@
{
"component": true,
"usingComponents": {
"wd-text": "../../uni_modules/wot-design-uni/components/wd-text/wd-text",
"wd-col": "../../uni_modules/wot-design-uni/components/wd-col/wd-col",
"wd-row": "../../uni_modules/wot-design-uni/components/wd-row/wd-row",
"nav-bar": "../../components/NavBar"
}
}
+1
View File
@@ -0,0 +1 @@
<nav-bar wx:if="{{a}}" class="data-v-087d42bb" u-i="087d42bb-0" bind:__l="__l" u-p="{{a}}"/><view class="data-v-087d42bb" style="margin:16rpx"><view class="title data-v-087d42bb"><wd-text wx:if="{{b}}" class="data-v-087d42bb" u-i="087d42bb-1" bind:__l="__l" u-p="{{b}}"/></view><wd-row class="data-v-087d42bb" u-s="{{['d']}}" u-i="087d42bb-2" bind:__l="__l"><block wx:if="{{c}}"><wd-col wx:for="{{d}}" wx:for-item="item" wx:key="f" class="data-v-087d42bb" u-s="{{['d']}}" u-i="{{item.g}}" bind:__l="__l" u-p="{{e}}"><view class="item data-v-087d42bb" bindtap="{{item.e}}"><wd-text wx:if="{{item.b}}" class="data-v-087d42bb" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"/><wd-text wx:if="{{item.d}}" class="data-v-087d42bb" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"/></view></wd-col></block></wd-row><view class="title data-v-087d42bb"><wd-text wx:if="{{f}}" class="data-v-087d42bb" u-i="087d42bb-6" bind:__l="__l" u-p="{{f}}"/></view><wd-row class="data-v-087d42bb" u-s="{{['d']}}" u-i="087d42bb-7" bind:__l="__l"><block wx:if="{{g}}"><wd-col wx:for="{{h}}" wx:for-item="item" wx:key="f" class="data-v-087d42bb" u-s="{{['d']}}" u-i="{{item.g}}" bind:__l="__l" u-p="{{i}}"><view class="item data-v-087d42bb" bindtap="{{item.e}}"><wd-text wx:if="{{item.b}}" class="data-v-087d42bb" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"/><wd-text wx:if="{{item.d}}" class="data-v-087d42bb" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"/></view></wd-col></block></wd-row></view>
+39
View File
@@ -0,0 +1,39 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.title.data-v-087d42bb {
margin: 36rpx 16rpx;
}
.item.data-v-087d42bb {
display: flex;
flex-flow: column nowrap;
align-items: center;
gap: 16rpx;
margin: 16rpx;
padding: 32rpx 16rpx;
border-radius: 16rpx;
background-color: #fff;
box-sizing: border-box;
}