diff --git a/20250224myself.png b/20250224myself.png new file mode 100644 index 00000000..a907314b Binary files /dev/null and b/20250224myself.png differ diff --git a/dist/dev/mp-weixin/components/firstui/fui-gallery/fui-gallery.js b/dist/dev/mp-weixin/components/firstui/fui-gallery/fui-gallery.js new file mode 100644 index 00000000..9be60e9f --- /dev/null +++ b/dist/dev/mp-weixin/components/firstui/fui-gallery/fui-gallery.js @@ -0,0 +1,145 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const _sfc_main = { + name: "fui-gallery", + emits: ["change", "hide"], + props: { + urls: { + type: Array, + default() { + return []; + } + }, + srcKey: { + type: String, + default: "src" + }, + descrKey: { + type: String, + default: "descr" + }, + show: { + type: Boolean, + default: false + }, + current: { + type: [Number, String], + default: 0 + }, + //文字超出是否省略成一行 + ellipsis: { + type: Boolean, + default: false + }, + zIndex: { + type: [Number, String], + default: 1001 + }, + //是否适配底部安全区 + safeArea: { + type: Boolean, + default: true + } + }, + watch: { + urls(newVal, oldVal) { + this.initData(newVal); + }, + current(newVal) { + this.defActive = this.active; + let val = Number(newVal); + setTimeout(() => { + this.defActive = val; + this.active = val; + }, 20); + } + }, + mounted() { + let sys = common_vendor.index.getSystemInfoSync(); + this.height = sys.windowHeight; + this.top = sys.statusBarHeight + 20; + this.defActive = Number(this.current); + this.active = this.defActive; + this.initData(this.urls); + }, + data() { + let isNvue = false; + return { + isNvue, + imgUrls: [], + active: 0, + defActive: 0, + top: 20, + descr: "", + iphoneX: false, + height: 800 + }; + }, + methods: { + initData(vals) { + if (vals && vals.length > 0) { + if (typeof vals[0] === "string") { + vals = vals.map((item) => { + return { + [this.srcKey]: item + }; + }); + } + this.imgUrls = vals; + this.$nextTick(() => { + setTimeout(() => { + this.getDescr(this.active); + }, 10); + }); + } + }, + change(e) { + this.active = e.detail.current; + this.getDescr(this.active); + this.$emit("change", { + index: this.active + }); + }, + getDescr(index) { + let item = this.imgUrls[index]; + if (item) { + this.descr = item[this.descrKey] || ""; + } + }, + hideGallery() { + this.$emit("hide", {}); + } + } +}; +function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + return common_vendor.e({ + a: $props.show || !$data.isNvue + }, $props.show || !$data.isNvue ? common_vendor.e({ + b: common_vendor.f($data.imgUrls, (item, index, i0) => { + return { + a: item[$props.srcKey], + b: common_vendor.o((...args) => $options.hideGallery && $options.hideGallery(...args), index), + c: index + }; + }), + c: $data.height + "px", + d: $data.height + "px", + e: $data.height + "px", + f: $data.height + "px", + g: common_vendor.o((...args) => $options.change && $options.change(...args)), + h: $data.defActive, + i: common_vendor.t($data.active + 1), + j: common_vendor.t($data.imgUrls.length), + k: $data.top + "px", + l: $data.descr + }, $data.descr ? { + m: common_vendor.t($data.descr), + n: $props.ellipsis ? 1 : "", + o: $data.iphoneX && $props.safeArea ? 1 : "" + } : {}, { + p: $props.zIndex, + q: common_vendor.n($props.show ? "fui-gallery__show" : "fui-gallery__hidden") + }) : {}); +} +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c9e13cde"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/components/firstui/fui-gallery/fui-gallery.json b/dist/dev/mp-weixin/components/firstui/fui-gallery/fui-gallery.json new file mode 100644 index 00000000..e8cfaaf8 --- /dev/null +++ b/dist/dev/mp-weixin/components/firstui/fui-gallery/fui-gallery.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/firstui/fui-gallery/fui-gallery.wxml b/dist/dev/mp-weixin/components/firstui/fui-gallery/fui-gallery.wxml new file mode 100644 index 00000000..2964903f --- /dev/null +++ b/dist/dev/mp-weixin/components/firstui/fui-gallery/fui-gallery.wxml @@ -0,0 +1 @@ +{{i}}/{{j}}{{m}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/firstui/fui-gallery/fui-gallery.wxss b/dist/dev/mp-weixin/components/firstui/fui-gallery/fui-gallery.wxss new file mode 100644 index 00000000..b1ddff36 --- /dev/null +++ b/dist/dev/mp-weixin/components/firstui/fui-gallery/fui-gallery.wxss @@ -0,0 +1,94 @@ + +.fui-gallery__wrap.data-v-c9e13cde { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: #000; +} +.fui-gallery__img-wrap.data-v-c9e13cde { + + width: 100%; + + flex: 1; + position: relative; + font-size: 0; +} +.fui-gallery__swiper-item.data-v-c9e13cde { + + width: 100%; + display: flex; + + align-items: center; + justify-content: center; + flex-direction: column; +} +.fui-gallery__hidden.data-v-c9e13cde { + + display: none; + visibility: hidden; +} +.fui-gallery__show.data-v-c9e13cde { + + display: flex; + visibility: visible; + + flex-direction: column; +} +.fui-gallery__index-wrap.data-v-c9e13cde { + position: absolute; + left: 0; + right: 0; + + display: flex; + + align-items: center; + justify-content: center; +} +.fui-gallery__index.data-v-c9e13cde { + + display: flex; + align-items: center; + justify-content: center; + + font-size: 34rpx; + line-height: 34rpx; + color: #fff; + text-align: center; + font-weight: normal; + padding: 6rpx 20rpx; + border-radius: 100px; + background: rgba(0, 0, 0, .6); +} +.fui-gallery__descr-wrap.data-v-c9e13cde { + position: absolute; + left: 0; + right: 0; + bottom: 0; + background: rgba(17, 17, 17, .6); + + padding-bottom: constant(safe-area-inset-bottom); + padding-bottom: env(safe-area-inset-bottom); +} +.fui-gallery__descr.data-v-c9e13cde { + flex: 1; + font-size: 30rpx; + color: #fff; + font-weight: normal; + padding: 26rpx 32rpx; + + display: block; + box-sizing: border-box; + z-index: 10; +} +.fui-gallery__text-ellipsis.data-v-c9e13cde { + overflow: hidden; + text-overflow: ellipsis; + + white-space: nowrap; +} +.fui-gallery__img.data-v-c9e13cde { + + width: 100%; +} diff --git a/dist/dev/mp-weixin/pages/history/history_fui/history_fui.js b/dist/dev/mp-weixin/pages/history/history_fui/history_fui.js index 0a38c19f..f871ab2d 100644 --- a/dist/dev/mp-weixin/pages/history/history_fui/history_fui.js +++ b/dist/dev/mp-weixin/pages/history/history_fui/history_fui.js @@ -9,6 +9,7 @@ if (!Array) { const _easycom_fui_tabs2 = common_vendor.resolveComponent("fui-tabs"); const _easycom_fui_sticky2 = common_vendor.resolveComponent("fui-sticky"); const _easycom_fui_section2 = common_vendor.resolveComponent("fui-section"); + const _easycom_fui_gallery2 = common_vendor.resolveComponent("fui-gallery"); const _easycom_fui_icon2 = common_vendor.resolveComponent("fui-icon"); const _easycom_fui_load_ani2 = common_vendor.resolveComponent("fui-load-ani"); const _easycom_fui_collapse_item2 = common_vendor.resolveComponent("fui-collapse-item"); @@ -16,12 +17,13 @@ if (!Array) { const _easycom_fui_timeaxis2 = common_vendor.resolveComponent("fui-timeaxis"); const _easycom_fui_waterfall_item2 = common_vendor.resolveComponent("fui-waterfall-item"); const _easycom_fui_waterfall2 = common_vendor.resolveComponent("fui-waterfall"); - (_easycom_fui_background_image2 + _easycom_fui_tabs2 + _easycom_fui_sticky2 + _easycom_fui_section2 + _easycom_fui_icon2 + _easycom_fui_load_ani2 + _easycom_fui_collapse_item2 + _easycom_fui_timeaxis_node2 + _easycom_fui_timeaxis2 + _easycom_fui_waterfall_item2 + _easycom_fui_waterfall2)(); + (_easycom_fui_background_image2 + _easycom_fui_tabs2 + _easycom_fui_sticky2 + _easycom_fui_section2 + _easycom_fui_gallery2 + _easycom_fui_icon2 + _easycom_fui_load_ani2 + _easycom_fui_collapse_item2 + _easycom_fui_timeaxis_node2 + _easycom_fui_timeaxis2 + _easycom_fui_waterfall_item2 + _easycom_fui_waterfall2)(); } const _easycom_fui_background_image = () => "../../../components/firstui/fui-background-image/fui-background-image.js"; const _easycom_fui_tabs = () => "../../../components/firstui/fui-tabs/fui-tabs.js"; const _easycom_fui_sticky = () => "../../../components/firstui/fui-sticky/fui-sticky.js"; const _easycom_fui_section = () => "../../../components/firstui/fui-section/fui-section.js"; +const _easycom_fui_gallery = () => "../../../components/firstui/fui-gallery/fui-gallery.js"; const _easycom_fui_icon = () => "../../../components/firstui/fui-icon/fui-icon.js"; const _easycom_fui_load_ani = () => "../../../components/firstui/fui-load-ani/fui-load-ani.js"; const _easycom_fui_collapse_item = () => "../../../components/firstui/fui-collapse-item/fui-collapse-item.js"; @@ -30,7 +32,7 @@ const _easycom_fui_timeaxis = () => "../../../components/firstui/fui-timeaxis/fu const _easycom_fui_waterfall_item = () => "../../../components/firstui/fui-waterfall-item/fui-waterfall-item.js"; const _easycom_fui_waterfall = () => "../../../components/firstui/fui-waterfall/fui-waterfall.js"; if (!Math) { - (_easycom_fui_background_image + _easycom_fui_tabs + _easycom_fui_sticky + _easycom_fui_section + _easycom_fui_icon + _easycom_fui_load_ani + _easycom_fui_collapse_item + _easycom_fui_timeaxis_node + _easycom_fui_timeaxis + _easycom_fui_waterfall_item + _easycom_fui_waterfall)(); + (_easycom_fui_background_image + _easycom_fui_tabs + _easycom_fui_sticky + _easycom_fui_section + _easycom_fui_gallery + _easycom_fui_icon + _easycom_fui_load_ani + _easycom_fui_collapse_item + _easycom_fui_timeaxis_node + _easycom_fui_timeaxis + _easycom_fui_waterfall_item + _easycom_fui_waterfall)(); } const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "history_fui", @@ -113,8 +115,15 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ currentTabIndex.value = e.index; } const show = common_vendor.ref(false); - function showGallery() { + common_vendor.ref(); + const GalleryPic = common_vendor.ref(); + function showGallery(data) { show.value = true; + GalleryPic.value = data; + console.log(GalleryPic.value); + } + function hideGallery() { + show.value = false; } function linkType(url) { if (typeof url !== "string") @@ -190,12 +199,17 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ }), f: currentTabIndex.value == 0 }, currentTabIndex.value == 0 ? { - g: common_vendor.f(historyData.value, (item, index, i0) => { + g: common_vendor.o(hideGallery), + h: common_vendor.p({ + urls: GalleryPic.value, + show: show.value + }), + i: common_vendor.f(historyData.value, (item, index, i0) => { var _a, _b, _c, _d, _e; return common_vendor.e({ a: item.status == 2 }, item.status == 2 ? { - b: "56f14cc7-6-" + i0 + "," + ("56f14cc7-5-" + i0), + b: "56f14cc7-7-" + i0 + "," + ("56f14cc7-6-" + i0), c: common_vendor.p({ name: "clear-fill", size: 28, @@ -204,7 +218,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ } : {}, { d: item.status == 1 }, item.status == 1 ? { - e: "56f14cc7-7-" + i0 + "," + ("56f14cc7-5-" + i0), + e: "56f14cc7-8-" + i0 + "," + ("56f14cc7-6-" + i0), f: common_vendor.p({ name: "face", size: 28, @@ -213,96 +227,98 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ } : {}, { g: item.status == 0 }, item.status == 0 ? { - h: "56f14cc7-8-" + i0 + "," + ("56f14cc7-5-" + i0), + h: "56f14cc7-9-" + i0 + "," + ("56f14cc7-6-" + i0), i: common_vendor.p({ type: "3" }) } : {}, { j: linkType(item.output[0]) == 0 }, linkType(item.output[0]) == 0 ? { - k: "56f14cc7-9-" + i0 + "," + ("56f14cc7-5-" + i0), + k: "56f14cc7-10-" + i0 + "," + ("56f14cc7-6-" + i0), l: common_vendor.p({ title: "提示词", descr: (_a = item.params) == null ? void 0 : _a.positive, descrSize: "32", descrColor: "#000000" }), - m: common_vendor.o(showGallery, index), - n: _ctx.scaleToFill, - o: item.output[0], - p: common_vendor.o(($event) => removeHistoryRecord(item._id), index), - q: "56f14cc7-10-" + i0 + "," + ("56f14cc7-5-" + i0), - r: common_vendor.p({ + m: common_vendor.f(item.output, (pic, picIndex, i1) => { + return { + a: pic + }; + }), + n: common_vendor.o(($event) => showGallery(historyData.value[index].output)), + o: common_vendor.o(($event) => removeHistoryRecord(item.id), index), + p: "56f14cc7-11-" + i0 + "," + ("56f14cc7-6-" + i0), + q: common_vendor.p({ color: "#ff0000", name: "delete" }) } : linkType(item.output[0]) == 1 ? { - t: "56f14cc7-11-" + i0 + "," + ("56f14cc7-5-" + i0), - v: common_vendor.p({ + s: "56f14cc7-12-" + i0 + "," + ("56f14cc7-6-" + i0), + t: common_vendor.p({ title: "提示词", descr: (_b = item.params) == null ? void 0 : _b.positive }), - w: item.output[0], - x: common_vendor.o(($event) => removeHistoryRecord(item._id), index), - y: "56f14cc7-12-" + i0 + "," + ("56f14cc7-5-" + i0), - z: common_vendor.p({ + v: item.output[0], + w: common_vendor.o(($event) => removeHistoryRecord(item._id), index), + x: "56f14cc7-13-" + i0 + "," + ("56f14cc7-6-" + i0), + y: common_vendor.p({ color: "#ff0000", name: "delete" }), - A: common_vendor.o(($event) => dowonVideo(item.output[0]), index), - B: "56f14cc7-13-" + i0 + "," + ("56f14cc7-5-" + i0), - C: common_vendor.p({ + z: common_vendor.o(($event) => dowonVideo(item.output[0]), index), + A: "56f14cc7-14-" + i0 + "," + ("56f14cc7-6-" + i0), + B: common_vendor.p({ color: "#e0e0e0", name: "pulldown" }) } : { - D: "56f14cc7-14-" + i0 + "," + ("56f14cc7-5-" + i0), - E: common_vendor.p({ + C: "56f14cc7-15-" + i0 + "," + ("56f14cc7-6-" + i0), + D: common_vendor.p({ title: "提示词", descrSize: "32", descrColor: "#000000", descr: (_c = item.params) == null ? void 0 : _c.positive }), - F: ((_d = item.params) == null ? void 0 : _d.image_path_mask) || ((_e = item.params) == null ? void 0 : _e.image_path_origin) || testData, - G: common_vendor.o(($event) => removeHistoryRecord(item._id), index), - H: "56f14cc7-15-" + i0 + "," + ("56f14cc7-5-" + i0), - I: common_vendor.p({ + E: ((_d = item.params) == null ? void 0 : _d.image_path_mask) || ((_e = item.params) == null ? void 0 : _e.image_path_origin) || testData, + F: common_vendor.o(($event) => removeHistoryRecord(item.id), index), + G: "56f14cc7-16-" + i0 + "," + ("56f14cc7-6-" + i0), + H: common_vendor.p({ color: "#ff0000", name: "delete" }), - J: common_vendor.o(($event) => handleClick(item.output[0]), index), - K: common_vendor.t(item.output[0]), - L: "56f14cc7-16-" + i0 + "," + ("56f14cc7-5-" + i0), - M: common_vendor.p({ + I: common_vendor.o(($event) => handleClick(item.output[0]), index), + J: common_vendor.t(item.output[0]), + K: "56f14cc7-17-" + i0 + "," + ("56f14cc7-6-" + i0), + L: common_vendor.p({ background: "transparent " }) }, { - s: linkType(item.output[0]) == 1, - N: index, - O: "56f14cc7-5-" + i0 + ",56f14cc7-4" + r: linkType(item.output[0]) == 1, + M: index, + N: "56f14cc7-6-" + i0 + ",56f14cc7-5" }); }), - h: common_vendor.p({ + j: common_vendor.p({ padding: ["32rpx", "16rpx"] }) } : {}, { - i: currentTabIndex.value == 1 + k: currentTabIndex.value == 1 }, currentTabIndex.value == 1 ? { - j: common_vendor.f(historyData.value, (item, index, i0) => { + l: common_vendor.f(historyData.value, (item, index, i0) => { var _a, _b; return common_vendor.e({ a: linkType(item.output[0]) == 0 }, linkType(item.output[0]) == 0 ? { - b: _ctx.scaleToFill, - c: item.output[0] + b: item.output[0] } : linkType(item.output[0]) == 1 ? { - e: item.output[0] + d: item.output[0] } : { - f: ((_a = item.params) == null ? void 0 : _a.image_path_mask) || ((_b = item.params) == null ? void 0 : _b.image_path_origin) || testData + e: ((_a = item.params) == null ? void 0 : _a.image_path_mask) || ((_b = item.params) == null ? void 0 : _b.image_path_origin) || testData }, { - d: linkType(item.output[0]) == 1, - g: index, - h: "56f14cc7-18-" + i0 + ",56f14cc7-17" + c: linkType(item.output[0]) == 1, + f: index, + g: "56f14cc7-19-" + i0 + ",56f14cc7-18" }); }) } : {}); diff --git a/dist/dev/mp-weixin/pages/history/history_fui/history_fui.json b/dist/dev/mp-weixin/pages/history/history_fui/history_fui.json index 0a35c3e0..cf6273c8 100644 --- a/dist/dev/mp-weixin/pages/history/history_fui/history_fui.json +++ b/dist/dev/mp-weixin/pages/history/history_fui/history_fui.json @@ -5,6 +5,7 @@ "fui-tabs": "../../../components/firstui/fui-tabs/fui-tabs", "fui-sticky": "../../../components/firstui/fui-sticky/fui-sticky", "fui-section": "../../../components/firstui/fui-section/fui-section", + "fui-gallery": "../../../components/firstui/fui-gallery/fui-gallery", "fui-icon": "../../../components/firstui/fui-icon/fui-icon", "fui-load-ani": "../../../components/firstui/fui-load-ani/fui-load-ani", "fui-collapse-item": "../../../components/firstui/fui-collapse-item/fui-collapse-item", diff --git a/dist/dev/mp-weixin/pages/history/history_fui/history_fui.wxml b/dist/dev/mp-weixin/pages/history/history_fui/history_fui.wxml index 0e7fe1d0..59ccf79b 100644 --- a/dist/dev/mp-weixin/pages/history/history_fui/history_fui.wxml +++ b/dist/dev/mp-weixin/pages/history/history_fui/history_fui.wxml @@ -1 +1 @@ -复制{{item.K}} \ No newline at end of file +复制{{item.J}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/pages/history/history_fui/history_fui.wxss b/dist/dev/mp-weixin/pages/history/history_fui/history_fui.wxss index fd1c5068..36b01444 100644 --- a/dist/dev/mp-weixin/pages/history/history_fui/history_fui.wxss +++ b/dist/dev/mp-weixin/pages/history/history_fui/history_fui.wxss @@ -33,7 +33,6 @@ } .fui-logo.data-v-56f14cc7 { width: 300rpx; - height: 400rpx; margin-right: 24rpx; display: flex; text-align: center; diff --git a/dist/dev/mp-weixin/pages/index/index.js b/dist/dev/mp-weixin/pages/index/index.js index 302e0f5b..50315167 100644 --- a/dist/dev/mp-weixin/pages/index/index.js +++ b/dist/dev/mp-weixin/pages/index/index.js @@ -41,11 +41,10 @@ const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/ const _easycom_up_cell = () => "../../node-modules/uview-plus/components/u-cell/u-cell.js"; const _easycom_up_cell_group = () => "../../node-modules/uview-plus/components/u-cell-group/u-cell-group.js"; if (!Math) { - (_easycom_fui_tabs + _easycom_fui_nav_bar + fuiBackgroundImage + AppSwiper + _easycom_up_gap + AppTags + AppWaterFall + _easycom_up_status_bar + MyGraphicCard + BaseLayout + _easycom_fui_footer + _easycom_fui_avatar + _easycom_fui_load_ani + _easycom_fui_icon + _easycom_fui_picker + _easycom_fui_safe_area + _easycom_up_avatar + UserMemberInfo + GetUserInfoPopup + _easycom_up_icon + _easycom_up_cell + _easycom_up_cell_group + TnIcon)(); + (_easycom_fui_tabs + _easycom_fui_nav_bar + fuiBackgroundImage + AppSwiper + _easycom_up_gap + AppTags + AppWaterFall + _easycom_up_status_bar + MyGraphicCard + BaseLayout + _easycom_fui_footer + _easycom_fui_avatar + _easycom_fui_load_ani + _easycom_fui_icon + _easycom_fui_picker + _easycom_fui_safe_area + _easycom_up_avatar + UserMemberInfo + GetUserInfoPopup + _easycom_up_icon + _easycom_up_cell + _easycom_up_cell_group)(); } const BaseLayout = () => "../../layouts/BaseLayout.js"; const GetUserInfoPopup = () => "../../components/GetUserInfoPopup.js"; -const TnIcon = () => "../../node-modules/@tuniao/tnui-vue3-uniapp/components/icon/src/icon.js"; const UserMemberInfo = () => "../../components/home/UserMemberInfo.js"; const MyGraphicCard = () => "../../components/custom/MyGraphicCard/MyGraphicCard.js"; const AppSwiper = () => "../../components/home/AppSwiper.js"; @@ -132,7 +131,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ const content = common_vendor.ref(""); const msgList = common_vendor.ref([ { - "content": "你好我是Ai聊天助手,有什么问题问我吧!(温馨提示:长按消息可以复制文本哦)", + "content": "你好我是Ai聊天助手,有什么问题问我吧!(温馨提示:点击消息可以复制哦)", "role": "system" } ]); @@ -249,6 +248,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ "role": "system" }); msg.value = ""; + console.log(msgList.value); } common_vendor.onReady(() => { socketInit(); @@ -439,11 +439,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ current: pageindex.value, size: "28", fontWeight: "900", - background: true + background: "transparent" }), c: common_vendor.p({ custom: true, - background: true + background: "transparent" }), d: common_vendor.p({ src: backGroundImage @@ -451,16 +451,14 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ e: common_vendor.p({ height: "10" }), - f: common_vendor.o(img2pay), - g: common_vendor.o(handleGotoHistory), - h: common_vendor.p({ + f: common_vendor.p({ height: "10" }), - i: pageindex.value == 0, - j: common_vendor.p({ + g: pageindex.value == 0, + h: common_vendor.p({ src: backGroundImage }), - k: common_vendor.f(graphicDatas.value, (graphicData, k0, i0) => { + i: common_vendor.f(graphicDatas.value, (graphicData, k0, i0) => { return { a: "83a5a03c-11-" + i0 + ",83a5a03c-9", b: common_vendor.p({ @@ -478,18 +476,18 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ }) }; }), - l: common_vendor.p({ + j: common_vendor.p({ text: "Copyright © 2021 Fuzi-AI" }), - m: pageindex.value == 1, - n: common_vendor.p({ + k: pageindex.value == 1, + l: common_vendor.p({ src: backGroundImage }), - o: common_vendor.f(msgList.value, (item, index, i0) => { + m: common_vendor.f(msgList.value, (item, index, i0) => { return common_vendor.e({ a: "83a5a03c-14-" + i0, b: common_vendor.p({ - background: "#fff", + background: "#f9f9f9", src: item.role == "system" ? "https://wangbo0808.oss-cn-shanghai.aliyuncs.com/assets/gpt4.png" : common_vendor.unref(user).avatar_url }), c: item.content.length > 1 @@ -512,95 +510,95 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ m: index }); }), - p: common_vendor.unref(items), - q: common_vendor.t(chooseModel.value || modelList.value[0]), - r: common_vendor.o(popupMth), - s: common_vendor.p({ + n: common_vendor.unref(items), + o: common_vendor.t(chooseModel.value || modelList.value[0]), + p: common_vendor.o(popupMth), + q: common_vendor.p({ name: "message", color: "#3b3ee9" }), - t: -1, - v: common_vendor.o(msgSend), - w: content.value, - x: common_vendor.o(($event) => content.value = $event.detail.value), - y: content.value.length == 0 + r: -1, + s: common_vendor.o(msgSend), + t: content.value, + v: common_vendor.o(($event) => content.value = $event.detail.value), + w: content.value.length == 0 }, content.value.length == 0 ? { - z: common_vendor.p({ + x: common_vendor.p({ name: "clear", color: "#3b3ee9" }) } : { - A: common_vendor.o(msgSend) + y: common_vendor.o(msgSend) }, { - B: common_vendor.o(change), - C: common_vendor.o(cancel), - D: common_vendor.p({ + z: common_vendor.o(change), + A: common_vendor.o(cancel), + B: common_vendor.p({ options: modelList.value, show: popup.value }), - E: !_ctx.focus - }, !_ctx.focus ? { - F: common_vendor.p({ + C: common_vendor.p({ background: "#f8f8f8" - }) - } : {}, { - G: pageindex.value == 2, - H: common_vendor.p({ + }), + D: pageindex.value == 2, + E: common_vendor.p({ src: backGroundImage }), - I: common_vendor.p({ + F: common_vendor.p({ src: common_vendor.unref(user).avatar_url, size: "80" }), - J: !common_vendor.unref(composables_useCommon.isLogin) + G: !common_vendor.unref(composables_useCommon.isLogin) }, !common_vendor.unref(composables_useCommon.isLogin) ? {} : {}, { - K: common_vendor.unref(composables_useCommon.isLogin) + H: common_vendor.unref(composables_useCommon.isLogin) }, common_vendor.unref(composables_useCommon.isLogin) ? { - L: common_vendor.t(common_vendor.unref(user).nickname) + I: common_vendor.t(common_vendor.unref(user).nickname) } : {}, { - M: common_vendor.unref(composables_useCommon.isLogin) + J: common_vendor.unref(composables_useCommon.isLogin) }, common_vendor.unref(composables_useCommon.isLogin) ? { - N: common_vendor.t(common_vendor.unref(user).balance) + K: common_vendor.t(common_vendor.unref(user).balance) } : {}, { - O: common_vendor.p({ + L: common_vendor.p({ name: "scan", color: "#969799", size: "28" }), - P: common_vendor.o(toEmpty), - Q: common_vendor.p({ + M: common_vendor.o(toEmpty), + N: common_vendor.p({ name: "arrow-right", color: "#969799", size: "28" }), - R: common_vendor.o(toEmpty), - S: common_vendor.o(handleLogin), - T: common_vendor.o(($event) => showPay.value = true), - U: common_vendor.p({ - icon: "rmb-circle", - title: "算力充值", + O: common_vendor.o(toEmpty), + P: common_vendor.o(handleLogin), + Q: common_vendor.o(img2pay), + R: common_vendor.p({ + size: "30", + name: "https://chinahu-ai-server.oss-cn-chengdu.aliyuncs.com/Iconly_Glass_Gallery.png" + }), + S: common_vendor.o(handleGotoHistory), + T: common_vendor.p({ + border: false + }), + U: common_vendor.p({ + size: "30", + name: "https://chinahu-ai-server.oss-cn-chengdu.aliyuncs.com/Iconly_Glass_Chat.png" + }), + V: common_vendor.p({ border: false }), - V: common_vendor.o(handleGotoHistory), W: common_vendor.p({ - border: false, - icon: "photo", - title: "绘图历史" + size: "30", + name: "https://chinahu-ai-server.oss-cn-chengdu.aliyuncs.com/Iconly_Glass_Home.png" }), - X: common_vendor.p({ - name: "logout" + X: common_vendor.o(handleLoginOut), + Y: common_vendor.p({ + border: false }), - Y: common_vendor.o(handleLoginOut), Z: common_vendor.p({ - border: false, - icon: "setting", - title: "退出登录" + color: "#fff", + border: false }), - aa: common_vendor.p({ - icon: "chat-fill", - title: "微信客服" - }), - ab: pageindex.value == 3 + aa: pageindex.value == 3 }); }; } diff --git a/dist/dev/mp-weixin/pages/index/index.json b/dist/dev/mp-weixin/pages/index/index.json index 7799e3e1..93640e2d 100644 --- a/dist/dev/mp-weixin/pages/index/index.json +++ b/dist/dev/mp-weixin/pages/index/index.json @@ -18,7 +18,6 @@ "up-cell-group": "../../node-modules/uview-plus/components/u-cell-group/u-cell-group", "base-layout": "../../layouts/BaseLayout", "get-user-info-popup": "../../components/GetUserInfoPopup", - "tn-icon": "../../node-modules/@tuniao/tnui-vue3-uniapp/components/icon/src/icon", "user-member-info": "../../components/home/UserMemberInfo", "my-graphic-card": "../../components/custom/MyGraphicCard/MyGraphicCard", "app-swiper": "../../components/home/AppSwiper", diff --git a/dist/dev/mp-weixin/pages/index/index.wxml b/dist/dev/mp-weixin/pages/index/index.wxml index fa445389..4f8d96da 100644 --- a/dist/dev/mp-weixin/pages/index/index.wxml +++ b/dist/dev/mp-weixin/pages/index/index.wxml @@ -1,2 +1,2 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/Home2 (1).jpg b/dist/dev/mp-weixin/static/Home2 (1).jpg deleted file mode 100644 index f78b7a99..00000000 Binary files a/dist/dev/mp-weixin/static/Home2 (1).jpg and /dev/null differ diff --git a/dist/dev/mp-weixin/static/font/Source-Sans-Pro-Semibold-2.otf b/dist/dev/mp-weixin/static/font/Source-Sans-Pro-Semibold-2.otf deleted file mode 100644 index fffdbafe..00000000 Binary files a/dist/dev/mp-weixin/static/font/Source-Sans-Pro-Semibold-2.otf and /dev/null differ diff --git a/dist/dev/mp-weixin/static/font/SourceSansPro-Semibold.ttf b/dist/dev/mp-weixin/static/font/SourceSansPro-Semibold.ttf deleted file mode 100644 index 763cb196..00000000 Binary files a/dist/dev/mp-weixin/static/font/SourceSansPro-Semibold.ttf and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/Home.jpg b/dist/dev/mp-weixin/static/images/Home.jpg deleted file mode 100644 index 7b145873..00000000 Binary files a/dist/dev/mp-weixin/static/images/Home.jpg and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/Home2.jpg b/dist/dev/mp-weixin/static/images/Home2.jpg deleted file mode 100644 index f78b7a99..00000000 Binary files a/dist/dev/mp-weixin/static/images/Home2.jpg and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/common/icon_tabbar.png b/dist/dev/mp-weixin/static/images/common/icon_tabbar.png deleted file mode 100644 index 20b30ab5..00000000 Binary files a/dist/dev/mp-weixin/static/images/common/icon_tabbar.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/common/icon_tabbar_2x.png b/dist/dev/mp-weixin/static/images/common/icon_tabbar_2x.png deleted file mode 100644 index 1bb6afe6..00000000 Binary files a/dist/dev/mp-weixin/static/images/common/icon_tabbar_2x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/common/icon_tabbar_3x.png b/dist/dev/mp-weixin/static/images/common/icon_tabbar_3x.png deleted file mode 100644 index dac0bacf..00000000 Binary files a/dist/dev/mp-weixin/static/images/common/icon_tabbar_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/common/img_alipay.png b/dist/dev/mp-weixin/static/images/common/img_alipay.png deleted file mode 100644 index 082f69f4..00000000 Binary files a/dist/dev/mp-weixin/static/images/common/img_alipay.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/common/img_coding_3x.png b/dist/dev/mp-weixin/static/images/common/img_coding_3x.png deleted file mode 100644 index 50aa66b9..00000000 Binary files a/dist/dev/mp-weixin/static/images/common/img_coding_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/common/img_logo.png b/dist/dev/mp-weixin/static/images/common/img_logo.png deleted file mode 100644 index f69db79c..00000000 Binary files a/dist/dev/mp-weixin/static/images/common/img_logo.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/common/img_wxpay.png b/dist/dev/mp-weixin/static/images/common/img_wxpay.png deleted file mode 100644 index f1f5f4c1..00000000 Binary files a/dist/dev/mp-weixin/static/images/common/img_wxpay.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/common/logo.png b/dist/dev/mp-weixin/static/images/common/logo.png deleted file mode 100644 index b52a9b6c..00000000 Binary files a/dist/dev/mp-weixin/static/images/common/logo.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/component/empty/img_address_3x.png b/dist/dev/mp-weixin/static/images/component/empty/img_address_3x.png deleted file mode 100644 index 3d247e08..00000000 Binary files a/dist/dev/mp-weixin/static/images/component/empty/img_address_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/component/empty/img_network_3x.png b/dist/dev/mp-weixin/static/images/component/empty/img_network_3x.png deleted file mode 100644 index 9b722041..00000000 Binary files a/dist/dev/mp-weixin/static/images/component/empty/img_network_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/component/empty/img_news_3x.png b/dist/dev/mp-weixin/static/images/component/empty/img_news_3x.png deleted file mode 100644 index bd4c9aea..00000000 Binary files a/dist/dev/mp-weixin/static/images/component/empty/img_news_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/component/empty/img_order_3x.png b/dist/dev/mp-weixin/static/images/component/empty/img_order_3x.png deleted file mode 100644 index 01a4a09c..00000000 Binary files a/dist/dev/mp-weixin/static/images/component/empty/img_order_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/component/empty/img_search_3x.png b/dist/dev/mp-weixin/static/images/component/empty/img_search_3x.png deleted file mode 100644 index a035ba58..00000000 Binary files a/dist/dev/mp-weixin/static/images/component/empty/img_search_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/component/icon_moon.png b/dist/dev/mp-weixin/static/images/component/icon_moon.png deleted file mode 100644 index af39300f..00000000 Binary files a/dist/dev/mp-weixin/static/images/component/icon_moon.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/component/icon_sun.png b/dist/dev/mp-weixin/static/images/component/icon_sun.png deleted file mode 100644 index b043e0a1..00000000 Binary files a/dist/dev/mp-weixin/static/images/component/icon_sun.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/component/loading_gray.png b/dist/dev/mp-weixin/static/images/component/loading_gray.png deleted file mode 100644 index d688040c..00000000 Binary files a/dist/dev/mp-weixin/static/images/component/loading_gray.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/component/loading_white.png b/dist/dev/mp-weixin/static/images/component/loading_white.png deleted file mode 100644 index eb7c4312..00000000 Binary files a/dist/dev/mp-weixin/static/images/component/loading_white.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/cooperate/dark/img_banner_3x.png b/dist/dev/mp-weixin/static/images/cooperate/dark/img_banner_3x.png deleted file mode 100644 index 748e2527..00000000 Binary files a/dist/dev/mp-weixin/static/images/cooperate/dark/img_banner_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/cooperate/light/img_banner_3x.png b/dist/dev/mp-weixin/static/images/cooperate/light/img_banner_3x.png deleted file mode 100644 index 87389794..00000000 Binary files a/dist/dev/mp-weixin/static/images/cooperate/light/img_banner_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/qrcode/ali_qrcode.png b/dist/dev/mp-weixin/static/images/qrcode/ali_qrcode.png deleted file mode 100644 index 556bfab6..00000000 Binary files a/dist/dev/mp-weixin/static/images/qrcode/ali_qrcode.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/qrcode/h5_qrcode.png b/dist/dev/mp-weixin/static/images/qrcode/h5_qrcode.png deleted file mode 100644 index 830edf24..00000000 Binary files a/dist/dev/mp-weixin/static/images/qrcode/h5_qrcode.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/qrcode/qq_qrcode.jpg b/dist/dev/mp-weixin/static/images/qrcode/qq_qrcode.jpg deleted file mode 100644 index 03e4347d..00000000 Binary files a/dist/dev/mp-weixin/static/images/qrcode/qq_qrcode.jpg and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/qrcode/wx_qrcode.jpg b/dist/dev/mp-weixin/static/images/qrcode/wx_qrcode.jpg deleted file mode 100644 index 97c83ee2..00000000 Binary files a/dist/dev/mp-weixin/static/images/qrcode/wx_qrcode.jpg and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/tabbar/assembly_default_3x.png b/dist/dev/mp-weixin/static/images/tabbar/assembly_default_3x.png deleted file mode 100644 index 849d04fc..00000000 Binary files a/dist/dev/mp-weixin/static/images/tabbar/assembly_default_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/tabbar/assembly_selected_3x.png b/dist/dev/mp-weixin/static/images/tabbar/assembly_selected_3x.png deleted file mode 100644 index c4a60686..00000000 Binary files a/dist/dev/mp-weixin/static/images/tabbar/assembly_selected_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/tabbar/layout_default_3x.png b/dist/dev/mp-weixin/static/images/tabbar/layout_default_3x.png deleted file mode 100644 index 9d8dee82..00000000 Binary files a/dist/dev/mp-weixin/static/images/tabbar/layout_default_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/tabbar/layout_selected_3x.png b/dist/dev/mp-weixin/static/images/tabbar/layout_selected_3x.png deleted file mode 100644 index 1103449d..00000000 Binary files a/dist/dev/mp-weixin/static/images/tabbar/layout_selected_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/tabbar/mod_default_3x.png b/dist/dev/mp-weixin/static/images/tabbar/mod_default_3x.png deleted file mode 100644 index 4ffafaa1..00000000 Binary files a/dist/dev/mp-weixin/static/images/tabbar/mod_default_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/tabbar/mod_selected_3x.png b/dist/dev/mp-weixin/static/images/tabbar/mod_selected_3x.png deleted file mode 100644 index cffd0b28..00000000 Binary files a/dist/dev/mp-weixin/static/images/tabbar/mod_selected_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/tabbar/my_default_3x.png b/dist/dev/mp-weixin/static/images/tabbar/my_default_3x.png deleted file mode 100644 index 4c67a5cf..00000000 Binary files a/dist/dev/mp-weixin/static/images/tabbar/my_default_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/tabbar/my_selected_3x.png b/dist/dev/mp-weixin/static/images/tabbar/my_selected_3x.png deleted file mode 100644 index b35bcf05..00000000 Binary files a/dist/dev/mp-weixin/static/images/tabbar/my_selected_3x.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/logo.png b/dist/dev/mp-weixin/static/logo.png deleted file mode 100644 index b5771e20..00000000 Binary files a/dist/dev/mp-weixin/static/logo.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/画板 2 (1) (1).png b/dist/dev/mp-weixin/static/画板 2 (1) (1).png deleted file mode 100644 index 067be09b..00000000 Binary files a/dist/dev/mp-weixin/static/画板 2 (1) (1).png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/画板 3 (1).png b/dist/dev/mp-weixin/static/画板 3 (1).png deleted file mode 100644 index 87dfc06f..00000000 Binary files a/dist/dev/mp-weixin/static/画板 3 (1).png and /dev/null differ diff --git a/node_modules/.vue-global-types/vue_3.5_0_0_0.d.ts b/node_modules/.vue-global-types/vue_3.5_0_0_0.d.ts new file mode 100644 index 00000000..72f1004c --- /dev/null +++ b/node_modules/.vue-global-types/vue_3.5_0_0_0.d.ts @@ -0,0 +1,121 @@ +// @ts-nocheck +export {}; + +; declare global { + const __VLS_intrinsicElements: __VLS_IntrinsicElements; + const __VLS_directiveBindingRestFields: { instance: null, oldValue: null, modifiers: any, dir: any }; + const __VLS_unref: typeof import('vue').unref; + const __VLS_placeholder: any; + + type __VLS_NativeElements = __VLS_SpreadMerge; + type __VLS_IntrinsicElements = import('vue/jsx-runtime').JSX.IntrinsicElements; + type __VLS_Element = import('vue/jsx-runtime').JSX.Element; + type __VLS_GlobalComponents = import('vue').GlobalComponents; + type __VLS_GlobalDirectives = import('vue').GlobalDirectives; + type __VLS_IsAny = 0 extends 1 & T ? true : false; + type __VLS_PickNotAny = __VLS_IsAny extends true ? B : A; + type __VLS_SpreadMerge = Omit & B; + type __VLS_WithComponent = + N1 extends keyof LocalComponents ? N1 extends N0 ? Pick : { [K in N0]: LocalComponents[N1] } : + N2 extends keyof LocalComponents ? N2 extends N0 ? Pick : { [K in N0]: LocalComponents[N2] } : + N3 extends keyof LocalComponents ? N3 extends N0 ? Pick : { [K in N0]: LocalComponents[N3] } : + Self extends object ? { [K in N0]: Self } : + N1 extends keyof __VLS_GlobalComponents ? N1 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : { [K in N0]: __VLS_GlobalComponents[N1] } : + N2 extends keyof __VLS_GlobalComponents ? N2 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : { [K in N0]: __VLS_GlobalComponents[N2] } : + N3 extends keyof __VLS_GlobalComponents ? N3 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : { [K in N0]: __VLS_GlobalComponents[N3] } : + { [K in N0]: unknown }; + type __VLS_FunctionalComponentProps = + '__ctx' extends keyof __VLS_PickNotAny ? K extends { __ctx?: { props?: infer P } } ? NonNullable

: never + : T extends (props: infer P, ...args: any) => any ? P : + {}; + type __VLS_IsFunction = K extends keyof T + ? __VLS_IsAny extends false + ? unknown extends T[K] + ? false + : true + : false + : false; + type __VLS_NormalizeComponentEvent = ( + __VLS_IsFunction extends true + ? Props + : __VLS_IsFunction extends true + ? { [K in onEvent]?: Events[Event] } + : __VLS_IsFunction extends true + ? { [K in onEvent]?: Events[CamelizedEvent] } + : Props + ) & Record; + // fix https://github.com/vuejs/language-tools/issues/926 + type __VLS_UnionToIntersection = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never; + type __VLS_OverloadUnionInner = U & T extends (...args: infer A) => infer R + ? U extends T + ? never + : __VLS_OverloadUnionInner & U & ((...args: A) => R)> | ((...args: A) => R) + : never; + type __VLS_OverloadUnion = Exclude< + __VLS_OverloadUnionInner<(() => never) & T>, + T extends () => never ? never : () => never + >; + type __VLS_ConstructorOverloads = __VLS_OverloadUnion extends infer F + ? F extends (event: infer E, ...args: infer A) => any + ? { [K in E & string]: (...args: A) => void; } + : never + : never; + type __VLS_NormalizeEmits = __VLS_PrettifyGlobal< + __VLS_UnionToIntersection< + __VLS_ConstructorOverloads & { + [K in keyof T]: T[K] extends any[] ? { (...args: T[K]): void } : never + } + > + >; + type __VLS_PrettifyGlobal = { [K in keyof T]: T[K]; } & {}; + type __VLS_PickFunctionalComponentCtx = NonNullable<__VLS_PickNotAny< + '__ctx' extends keyof __VLS_PickNotAny ? K extends { __ctx?: infer Ctx } ? Ctx : never : any + , T extends (props: any, ctx: infer Ctx) => any ? Ctx : any + >>; + type __VLS_OmitStringIndex = { + [K in keyof T as string extends K ? never : K]: T[K]; + }; + type __VLS_UseTemplateRef = Readonly>; + + function __VLS_getVForSourceType>(source: T): [ + item: T extends number ? number + : T extends string ? string + : T extends any[] ? T[number] + : T extends Iterable ? T1 + : any, + index: number, + ][]; + function __VLS_getVForSourceType(source: T): [ + item: T[keyof T], + key: keyof T, + index: number, + ][]; + // @ts-ignore + function __VLS_getSlotParams(slot: T): Parameters<__VLS_PickNotAny, (...args: any[]) => any>>; + // @ts-ignore + function __VLS_getSlotParam(slot: T): Parameters<__VLS_PickNotAny, (...args: any[]) => any>>[0]; + function __VLS_asFunctionalDirective(dir: T): T extends import('vue').ObjectDirective + ? NonNullable + : T extends (...args: any) => any + ? T + : (arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown) => void; + function __VLS_makeOptional(t: T): { [K in keyof T]?: T[K] }; + function __VLS_asFunctionalComponent any ? InstanceType : unknown>(t: T, instance?: K): + T extends new (...args: any) => any + ? (props: (K extends { $props: infer Props } ? Props : any) & Record, ctx?: any) => __VLS_Element & { + __ctx?: { + attrs?: any; + slots?: K extends { $slots: infer Slots } ? Slots : any; + emit?: K extends { $emit: infer Emit } ? Emit : any; + expose?(exposed: K): void; + props?: (K extends { $props: infer Props } ? Props : any) & Record; + } + } + : T extends () => any ? (props: {}, ctx?: any) => ReturnType + : T extends (...args: any) => any ? T + : (_: {} & Record, ctx?: any) => { __ctx?: { attrs?: any, expose?: any, slots?: any, emit?: any, props?: {} & Record } }; + function __VLS_functionalComponentArgsRest any>(t: T): 2 extends Parameters['length'] ? [any] : []; + function __VLS_asFunctionalElement(tag: T, endTag?: T): (attrs: T & Record) => void; + function __VLS_asFunctionalSlot(slot: S): (props: NonNullable extends (props: infer P) => any ? P : {}) => void; + function __VLS_tryAsConstant(t: T): T; +} diff --git a/node_modules/.vue-global-types/vue_99_0_0_0.d.ts b/node_modules/.vue-global-types/vue_99_0_0_0.d.ts new file mode 100644 index 00000000..72f1004c --- /dev/null +++ b/node_modules/.vue-global-types/vue_99_0_0_0.d.ts @@ -0,0 +1,121 @@ +// @ts-nocheck +export {}; + +; declare global { + const __VLS_intrinsicElements: __VLS_IntrinsicElements; + const __VLS_directiveBindingRestFields: { instance: null, oldValue: null, modifiers: any, dir: any }; + const __VLS_unref: typeof import('vue').unref; + const __VLS_placeholder: any; + + type __VLS_NativeElements = __VLS_SpreadMerge; + type __VLS_IntrinsicElements = import('vue/jsx-runtime').JSX.IntrinsicElements; + type __VLS_Element = import('vue/jsx-runtime').JSX.Element; + type __VLS_GlobalComponents = import('vue').GlobalComponents; + type __VLS_GlobalDirectives = import('vue').GlobalDirectives; + type __VLS_IsAny = 0 extends 1 & T ? true : false; + type __VLS_PickNotAny = __VLS_IsAny extends true ? B : A; + type __VLS_SpreadMerge = Omit & B; + type __VLS_WithComponent = + N1 extends keyof LocalComponents ? N1 extends N0 ? Pick : { [K in N0]: LocalComponents[N1] } : + N2 extends keyof LocalComponents ? N2 extends N0 ? Pick : { [K in N0]: LocalComponents[N2] } : + N3 extends keyof LocalComponents ? N3 extends N0 ? Pick : { [K in N0]: LocalComponents[N3] } : + Self extends object ? { [K in N0]: Self } : + N1 extends keyof __VLS_GlobalComponents ? N1 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : { [K in N0]: __VLS_GlobalComponents[N1] } : + N2 extends keyof __VLS_GlobalComponents ? N2 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : { [K in N0]: __VLS_GlobalComponents[N2] } : + N3 extends keyof __VLS_GlobalComponents ? N3 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : { [K in N0]: __VLS_GlobalComponents[N3] } : + { [K in N0]: unknown }; + type __VLS_FunctionalComponentProps = + '__ctx' extends keyof __VLS_PickNotAny ? K extends { __ctx?: { props?: infer P } } ? NonNullable

: never + : T extends (props: infer P, ...args: any) => any ? P : + {}; + type __VLS_IsFunction = K extends keyof T + ? __VLS_IsAny extends false + ? unknown extends T[K] + ? false + : true + : false + : false; + type __VLS_NormalizeComponentEvent = ( + __VLS_IsFunction extends true + ? Props + : __VLS_IsFunction extends true + ? { [K in onEvent]?: Events[Event] } + : __VLS_IsFunction extends true + ? { [K in onEvent]?: Events[CamelizedEvent] } + : Props + ) & Record; + // fix https://github.com/vuejs/language-tools/issues/926 + type __VLS_UnionToIntersection = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never; + type __VLS_OverloadUnionInner = U & T extends (...args: infer A) => infer R + ? U extends T + ? never + : __VLS_OverloadUnionInner & U & ((...args: A) => R)> | ((...args: A) => R) + : never; + type __VLS_OverloadUnion = Exclude< + __VLS_OverloadUnionInner<(() => never) & T>, + T extends () => never ? never : () => never + >; + type __VLS_ConstructorOverloads = __VLS_OverloadUnion extends infer F + ? F extends (event: infer E, ...args: infer A) => any + ? { [K in E & string]: (...args: A) => void; } + : never + : never; + type __VLS_NormalizeEmits = __VLS_PrettifyGlobal< + __VLS_UnionToIntersection< + __VLS_ConstructorOverloads & { + [K in keyof T]: T[K] extends any[] ? { (...args: T[K]): void } : never + } + > + >; + type __VLS_PrettifyGlobal = { [K in keyof T]: T[K]; } & {}; + type __VLS_PickFunctionalComponentCtx = NonNullable<__VLS_PickNotAny< + '__ctx' extends keyof __VLS_PickNotAny ? K extends { __ctx?: infer Ctx } ? Ctx : never : any + , T extends (props: any, ctx: infer Ctx) => any ? Ctx : any + >>; + type __VLS_OmitStringIndex = { + [K in keyof T as string extends K ? never : K]: T[K]; + }; + type __VLS_UseTemplateRef = Readonly>; + + function __VLS_getVForSourceType>(source: T): [ + item: T extends number ? number + : T extends string ? string + : T extends any[] ? T[number] + : T extends Iterable ? T1 + : any, + index: number, + ][]; + function __VLS_getVForSourceType(source: T): [ + item: T[keyof T], + key: keyof T, + index: number, + ][]; + // @ts-ignore + function __VLS_getSlotParams(slot: T): Parameters<__VLS_PickNotAny, (...args: any[]) => any>>; + // @ts-ignore + function __VLS_getSlotParam(slot: T): Parameters<__VLS_PickNotAny, (...args: any[]) => any>>[0]; + function __VLS_asFunctionalDirective(dir: T): T extends import('vue').ObjectDirective + ? NonNullable + : T extends (...args: any) => any + ? T + : (arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown) => void; + function __VLS_makeOptional(t: T): { [K in keyof T]?: T[K] }; + function __VLS_asFunctionalComponent any ? InstanceType : unknown>(t: T, instance?: K): + T extends new (...args: any) => any + ? (props: (K extends { $props: infer Props } ? Props : any) & Record, ctx?: any) => __VLS_Element & { + __ctx?: { + attrs?: any; + slots?: K extends { $slots: infer Slots } ? Slots : any; + emit?: K extends { $emit: infer Emit } ? Emit : any; + expose?(exposed: K): void; + props?: (K extends { $props: infer Props } ? Props : any) & Record; + } + } + : T extends () => any ? (props: {}, ctx?: any) => ReturnType + : T extends (...args: any) => any ? T + : (_: {} & Record, ctx?: any) => { __ctx?: { attrs?: any, expose?: any, slots?: any, emit?: any, props?: {} & Record } }; + function __VLS_functionalComponentArgsRest any>(t: T): 2 extends Parameters['length'] ? [any] : []; + function __VLS_asFunctionalElement(tag: T, endTag?: T): (attrs: T & Record) => void; + function __VLS_asFunctionalSlot(slot: S): (props: NonNullable extends (props: infer P) => any ? P : {}) => void; + function __VLS_tryAsConstant(t: T): T; +} diff --git a/pic.png b/pic.png new file mode 100644 index 00000000..ec2d60c3 Binary files /dev/null and b/pic.png differ diff --git a/src/components/firstui/fui-gallery/fui-gallery.vue b/src/components/firstui/fui-gallery/fui-gallery.vue new file mode 100644 index 00000000..5f36c410 --- /dev/null +++ b/src/components/firstui/fui-gallery/fui-gallery.vue @@ -0,0 +1,284 @@ + + + + + \ No newline at end of file diff --git a/src/pages/history/history_fui/history_fui.vue b/src/pages/history/history_fui/history_fui.vue index cf32ae46..7be1b62e 100644 --- a/src/pages/history/history_fui/history_fui.vue +++ b/src/pages/history/history_fui/history_fui.vue @@ -16,10 +16,10 @@ import { isLogin - + } from "@/composables/useCommon.ts"; - - + + interface TimeLineData { @@ -34,7 +34,7 @@ } onLoad(() => { - if(!isLogin.value){ + if (!isLogin.value) { uni.showToast({ icon: 'error', title: '您还没有登录', @@ -44,7 +44,7 @@ uni.navigateBack() }, 2000) } - + }) } getHistoryData() @@ -139,12 +139,24 @@ } const show = ref(false); - function showGallery() { + const picArry = ref() + const GalleryPic = ref() + + function showGallery(data) { show.value = true; + GalleryPic.value = data; + console.log(GalleryPic.value) } + + function hideGallery() { show.value = false; + } + + + + function linkType(url) { // 如果输入不是字符串,返回 2(未知类型) if (typeof url !== 'string') return 2; @@ -176,49 +188,48 @@ } // 定义 dowonVideo 函数,并指定 url 参数的类型为 string -async function dowonVideo(url: string) { - // 替换为你的视频地址 - const videoUrl = url; + async function dowonVideo(url : string) { + // 替换为你的视频地址 + const videoUrl = url; - try { - // 下载视频到临时路径,使用 await 等待 Promise 解析 - const downloadResult = await uni.downloadFile({ - url: videoUrl, - }); + try { + // 下载视频到临时路径,使用 await 等待 Promise 解析 + const downloadResult = await uni.downloadFile({ + url: videoUrl, + }); - // 检查下载是否成功 - if (downloadResult.statusCode === 200) { - const { tempFilePath } = downloadResult; + // 检查下载是否成功 + if (downloadResult.statusCode === 200) { + const { tempFilePath } = downloadResult; - // 保存到相册 - await uni.saveVideoToPhotosAlbum({ - filePath: tempFilePath, - }); + // 保存到相册 + await uni.saveVideoToPhotosAlbum({ + filePath: tempFilePath, + }); - uni.showToast({ - title: '下载成功', - icon: 'success', - }); - } else { - console.error('下载失败,状态码:', downloadResult.statusCode); - uni.showToast({ - title: '下载失败', - icon: 'none', - }); - } - } catch (error) { - console.error('下载失败:', error); - uni.showToast({ - title: '下载失败', - icon: 'none', - }); - } -} + uni.showToast({ + title: '下载成功', + icon: 'success', + }); + } else { + console.error('下载失败,状态码:', downloadResult.statusCode); + uni.showToast({ + title: '下载失败', + icon: 'none', + }); + } + } catch (error) { + console.error('下载失败:', error); + uni.showToast({ + title: '下载失败', + icon: 'none', + }); + } + }