first commit
This commit is contained in:
+78
@@ -0,0 +1,78 @@
|
||||
"use strict";
|
||||
var common_vendor = require("../../common/vendor.js");
|
||||
require("../../api/modules/AI.js");
|
||||
var api_modules_ZhouYi = require("../../api/modules/ZhouYi.js");
|
||||
require("../../api/modules/config.js");
|
||||
require("../../utils/request.js");
|
||||
require("../../config/api.config.js");
|
||||
require("../../stores/index.js");
|
||||
require("../../stores/modules/tabIndex.js");
|
||||
require("../../stores/modules/user.js");
|
||||
require("../../stores/modules/AIResponse.js");
|
||||
require("../../stores/modules/rateLimit.js");
|
||||
if (!Array) {
|
||||
const _easycom_wd_text2 = common_vendor.resolveComponent("wd-text");
|
||||
const _easycom_ua_markdown2 = common_vendor.resolveComponent("ua-markdown");
|
||||
const _easycom_wd_status_tip2 = common_vendor.resolveComponent("wd-status-tip");
|
||||
(_easycom_wd_text2 + _easycom_ua_markdown2 + _easycom_wd_status_tip2)();
|
||||
}
|
||||
const _easycom_wd_text = () => "../../uni_modules/wot-design-uni/components/wd-text/wd-text.js";
|
||||
const _easycom_ua_markdown = () => "../../components/ua-markdown/ua-markdown.js";
|
||||
const _easycom_wd_status_tip = () => "../../uni_modules/wot-design-uni/components/wd-status-tip/wd-status-tip.js";
|
||||
if (!Math) {
|
||||
(NavBar + _easycom_wd_text + _easycom_ua_markdown + _easycom_wd_status_tip)();
|
||||
}
|
||||
const NavBar = () => "../../components/NavBar.js";
|
||||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
__name: "detail",
|
||||
setup(__props) {
|
||||
const info = common_vendor.ref(null);
|
||||
common_vendor.onLoad((e) => {
|
||||
if (e.id) {
|
||||
api_modules_ZhouYi.getZhouDetail({
|
||||
id: e.id
|
||||
}).then((res) => {
|
||||
info.value = res.data;
|
||||
});
|
||||
}
|
||||
if (e.name) {
|
||||
api_modules_ZhouYi.getZhouDetail({
|
||||
name: e.name
|
||||
}).then((res) => {
|
||||
info.value = res.data[0];
|
||||
});
|
||||
}
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
title: "\u5B66\u4E60\u5366\u8F9E"
|
||||
}),
|
||||
b: info.value
|
||||
}, info.value ? {
|
||||
c: common_vendor.p({
|
||||
text: info.value.symbol,
|
||||
size: "96rpx",
|
||||
bold: true,
|
||||
color: "#333"
|
||||
}),
|
||||
d: common_vendor.p({
|
||||
text: info.value.name,
|
||||
size: "48rpx",
|
||||
bold: true,
|
||||
color: "#333"
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
source: info.value.desc
|
||||
})
|
||||
} : {
|
||||
f: common_vendor.p({
|
||||
image: "https://asstes.snhaenigseal.cn/images/wot/content.png",
|
||||
tip: "\u6682\u65E0\u5185\u5BB9"
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
});
|
||||
var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7c7d69f0"], ["__file", "D:/\u7F51\u6291\u4E91Time/\u79C1\u6D3B/2000\u7B97\u5366/src/pages/ZhouYi/detail.vue"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-text": "../../uni_modules/wot-design-uni/components/wd-text/wd-text",
|
||||
"ua-markdown": "../../components/ua-markdown/ua-markdown",
|
||||
"wd-status-tip": "../../uni_modules/wot-design-uni/components/wd-status-tip/wd-status-tip",
|
||||
"nav-bar": "../../components/NavBar"
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
<nav-bar wx:if="{{a}}" class="data-v-7c7d69f0" u-i="7c7d69f0-0" bind:__l="__l" u-p="{{a}}"/><view wx:if="{{b}}" class="content data-v-7c7d69f0"><view class="symbol data-v-7c7d69f0"><wd-text wx:if="{{c}}" class="data-v-7c7d69f0" u-i="7c7d69f0-1" bind:__l="__l" u-p="{{c}}"/><wd-text wx:if="{{d}}" class="data-v-7c7d69f0" u-i="7c7d69f0-2" bind:__l="__l" u-p="{{d}}"/></view><view class="desc data-v-7c7d69f0"><ua-markdown wx:if="{{e}}" class="data-v-7c7d69f0" u-i="7c7d69f0-3" bind:__l="__l" u-p="{{e}}"/></view></view><view wx:else class="page data-v-7c7d69f0"><wd-status-tip wx:if="{{f}}" class="data-v-7c7d69f0" u-i="7c7d69f0-4" bind:__l="__l" u-p="{{f}}"/></view>
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.content.data-v-7c7d69f0 {
|
||||
height: auto;
|
||||
}
|
||||
.symbol.data-v-7c7d69f0 {
|
||||
display: flex;
|
||||
flex-flow: column nowrap;
|
||||
gap: 16rpx;
|
||||
align-items: center;
|
||||
margin: 16rpx 0;
|
||||
}
|
||||
.desc.data-v-7c7d69f0 {
|
||||
border-radius: 16rpx;
|
||||
margin: 32rpx;
|
||||
padding: 32rpx;
|
||||
background-color: #fff;
|
||||
}
|
||||
Reference in New Issue
Block a user