2025/2/8第一次更新

This commit is contained in:
爱吃咸鱼小猫咪
2025-02-08 18:50:38 +08:00
commit d7af560866
26519 changed files with 5046029 additions and 0 deletions
+132
View File
@@ -0,0 +1,132 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const composables_useCommon = require("../../../composables/useCommon.js");
const composables_useWorkFlow = require("../../../composables/useWorkFlow.js");
const stores_appStore = require("../../../stores/appStore.js");
if (!Array) {
const _easycom_fui_icon2 = common_vendor.resolveComponent("fui-icon");
const _easycom_fui_nav_bar2 = common_vendor.resolveComponent("fui-nav-bar");
const _easycom_fui_background_image2 = common_vendor.resolveComponent("fui-background-image");
const _easycom_fui_section2 = common_vendor.resolveComponent("fui-section");
const _easycom_fui_button2 = common_vendor.resolveComponent("fui-button");
(_easycom_fui_icon2 + _easycom_fui_nav_bar2 + _easycom_fui_background_image2 + _easycom_fui_section2 + _easycom_fui_button2)();
}
const _easycom_fui_icon = () => "../../../components/firstui/fui-icon/fui-icon.js";
const _easycom_fui_nav_bar = () => "../../../components/firstui/fui-nav-bar/fui-nav-bar.js";
const _easycom_fui_background_image = () => "../../../components/firstui/fui-background-image/fui-background-image.js";
const _easycom_fui_section = () => "../../../components/firstui/fui-section/fui-section.js";
const _easycom_fui_button = () => "../../../components/firstui/fui-button/fui-button.js";
if (!Math) {
(_easycom_fui_icon + _easycom_fui_nav_bar + _easycom_fui_background_image + _easycom_fui_section + _easycom_fui_button)();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "draw_info",
setup(__props) {
const {
workflow,
handleGetWorkFlwById,
workFlowParamLists,
bindParam,
params_component_list,
socketInit,
handleFindComponentName,
handleSubmitTaskTask
} = composables_useWorkFlow.useWorkFlow();
console.log("-------------useWorkFlow()----------------", composables_useWorkFlow.useWorkFlow());
const workflowId = common_vendor.ref("");
common_vendor.onLoad(async () => {
const currentPage = getCurrentPages().pop();
const query = currentPage == null ? void 0 : currentPage.options;
workflowId.value = query.id;
handleGetWorkFlwById(query.id).then(() => console.log("///////////////////", workflow.value));
socketInit();
});
function to_apps(item_id) {
if (!composables_useCommon.isLogin.value) {
console.log("-------------isLogin-----------", composables_useCommon.isLogin);
common_vendor.index.showToast(
{
icon: "error",
title: "您还没有登录",
duration: 2e3,
complete() {
setTimeout(() => {
common_vendor.index.navigateBack();
}, 2e3);
}
}
);
} else {
console.log("我点击啦~~~~~~~~", item_id);
common_vendor.index.navigateTo({ url: "/pages/draw/apps/apps?id=" + item_id });
}
}
common_vendor.ref(false);
const { localTasks } = common_vendor.storeToRefs(stores_appStore.useAppStore());
common_vendor.computed(() => {
const excuTask = localTasks.value.find((item) => item.status === 4);
if (!excuTask) {
return "空闲";
}
return excuTask.progress + "%";
});
common_vendor.ref({ x: 0, y: 0 });
common_vendor.ref([]);
common_vendor.ref([]);
function leftClick() {
common_vendor.index.redirectTo({ url: "/pages/index/index" });
}
function linkType(url) {
if (typeof url !== "string")
return 2;
const imageExtensions = /\.(jpg|jpeg|png|gif|bmp|webp)$/i;
const videoExtensions = /\.(mp4|avi|mov|mkv|flv|wmv)$/i;
if (imageExtensions.test(url))
return 0;
if (videoExtensions.test(url))
return 1;
return 2;
}
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
name: "arrowleft"
}),
b: common_vendor.o(leftClick),
c: common_vendor.p({
background: "transparent",
title: common_vendor.unref(workflow).title
}),
d: common_vendor.p({
src: "@/src/static/Home2 (1).jpgHome2(1).jpg"
}),
e: linkType(common_vendor.unref(workflow).cover) == 0
}, linkType(common_vendor.unref(workflow).cover) == 0 ? {
f: common_vendor.o(
//@ts-ignore
(...args) => _ctx.showGallery && _ctx.showGallery(...args)
),
g: _ctx.scaleToFill,
h: common_vendor.unref(workflow).cover
} : {}, {
i: linkType(common_vendor.unref(workflow).cover) == 1
}, linkType(common_vendor.unref(workflow).cover) == 1 ? {
j: common_vendor.unref(workflow).cover
} : {}, {
k: common_vendor.p({
title: common_vendor.unref(workflow).title,
descr: common_vendor.unref(workflow).description,
descrColor: "#000000"
}),
l: common_vendor.t(common_vendor.unref(workflow).power || 0),
m: common_vendor.o(($event) => to_apps(common_vendor.unref(workflow)._id)),
n: common_vendor.p({
width: "300",
radius: "96rpx"
})
});
};
}
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1bef2961"]]);
wx.createPage(MiniProgramPage);
+10
View File
@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"fui-icon": "../../../components/firstui/fui-icon/fui-icon",
"fui-nav-bar": "../../../components/firstui/fui-nav-bar/fui-nav-bar",
"fui-background-image": "../../../components/firstui/fui-background-image/fui-background-image",
"fui-section": "../../../components/firstui/fui-section/fui-section",
"fui-button": "../../../components/firstui/fui-button/fui-button"
}
}
@@ -0,0 +1 @@
<view class="{{['data-v-1bef2961', virtualHostClass]}}" style="{{virtualHostStyle}}"><fui-nav-bar wx:if="{{c}}" class="data-v-1bef2961" virtualHostClass="data-v-1bef2961" u-s="{{['d']}}" bindleftClick="{{b}}" u-i="1bef2961-0" bind:__l="__l" u-p="{{c}}"><fui-icon wx:if="{{a}}" class="data-v-1bef2961" virtualHostClass="data-v-1bef2961" u-i="1bef2961-1,1bef2961-0" bind:__l="__l" u-p="{{a}}"></fui-icon></fui-nav-bar><fui-background-image wx:if="{{d}}" class="data-v-1bef2961" virtualHostClass="data-v-1bef2961" u-i="1bef2961-2" bind:__l="__l" u-p="{{d}}"></fui-background-image><view class="data-v-1bef2961" style="text-align:center;margin-top:15%"><view wx:if="{{e}}" class="data-v-1bef2961"><view class="data-v-1bef2961" style="margin-top:6%"><image class="data-v-1bef2961" bindtap="{{f}}" style="width:50%;height:300px;background-color:transparent" mode="{{g}}" src="{{h}}" show-menu-by-longpress="{{true}}"></image></view></view><view wx:if="{{i}}" class="data-v-1bef2961"><view class="data-v-1bef2961" style="margin-top:6%"><video class="data-v-1bef2961" object-fit="fill" controls="{{false}}" style="width:50%;height:300px;background-color:transparent" id="myVideo" src="{{j}}" controls></video></view></view></view><view class="data-v-1bef2961" style="margin-left:10%;margin-top:5%;margin-right:10%"><fui-section wx:if="{{k}}" class="data-v-1bef2961" virtualHostClass="data-v-1bef2961" u-i="1bef2961-3" bind:__l="__l" u-p="{{k}}"></fui-section></view><view class="data-v-1bef2961" style="margin-top:30%;width:100%"><view class="data-v-1bef2961" style="width:500rpx;margin-left:16%"><fui-button wx:if="{{n}}" class="data-v-1bef2961" virtualHostClass="data-v-1bef2961" u-s="{{['d']}}" bindclick="{{m}}" u-i="1bef2961-4" bind:__l="__l" u-p="{{n}}">消耗{{l}}算力点</fui-button></view></view></view>
+107
View File
@@ -0,0 +1,107 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.fui-vip__icon.data-v-1bef2961 {
width: 48rpx;
height: 48rpx;
margin-left: 16rpx;
}
/* 页面样式 */
.page.data-v-1bef2961 {
background-color: transparent;
position: relative;
min-height: 100vh;
/* 确保页面内容撑满屏幕 */
}
.container.data-v-1bef2961 {
position: relative;
padding-top: 80rpx;
/* 顶部导航栏的高度 + 小间距 */
padding-bottom: 120px;
/* 底部导航栏的高度 + 小间距 */
}
/* 居中按钮样式 */
.floating-button.data-v-1bef2961 {
width: 80%;
position: fixed;
bottom: 70px;
/* 底部导航栏的高度 + 小间距 */
left: 50%;
transform: translateX(-50%);
z-index: 10;
/* 确保按钮在底部导航栏上方 */
}
.submit-button.data-v-1bef2961 {
background: linear-gradient(to right, #857ed1, #4338CA);
border-radius: 50px;
box-shadow: 0 3px 5px var(--primary-color-light);
}
.cart.data-v-1bef2961 {
position: absolute;
top: 50px;
right: 30px;
background-color: #f0f0f0;
padding: 10px;
}
.add-icon.data-v-1bef2961 {
position: absolute;
background-color: #4338CA;
color: white;
width: 40px;
height: 40px;
text-align: center;
line-height: 40px;
border-radius: 50%;
animation: moveAnimation 1s ease-in-out forwards;
}
.content-default.data-v-1bef2961 {
width: 100rpx;
height: 100rpx;
background: linear-gradient(360deg, #857ed1 0%, #4338CA 100%);
box-shadow: 0 4rpx 12rpx 0 #ADC3F8;
border-radius: 50rpx;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
animation: verticalMove-1bef2961 2s ease-in-out infinite;
}
/* 上下移动动画 */
@keyframes verticalMove-1bef2961 {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
/* 上移 */
}
100% {
transform: translateY(0);
/* 恢复到原位 */
}
}