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
+35
View File
@@ -0,0 +1,35 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const composables_useCommon = require("../../composables/useCommon.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "AppSwiper",
setup(__props) {
common_vendor.ref(0);
const pageContent = common_vendor.ref();
common_vendor.onLoad(async () => {
pageContent.value = await composables_useCommon.getPageContent();
});
const swiperData = common_vendor.computed(() => {
var _a;
return (_a = pageContent.value) == null ? void 0 : _a.home_banner.map((item) => {
return {
url: item.src,
title: item.label
};
});
});
return (_ctx, _cache) => {
return {
a: common_vendor.f(swiperData.value, (item, index, i0) => {
return {
a: "url(" + item.url + ")",
b: common_vendor.t(item.title),
c: index
};
})
};
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-115bd473"]]);
wx.createComponent(Component);
+4
View File
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
+1
View File
@@ -0,0 +1 @@
<view class="{{['data-v-115bd473', virtualHostClass]}}" style="{{'margin-top:0%' + ';' + virtualHostStyle}}"><swiper easing-function="default" previous-margin="20rpx" next-margin="60rpx" class="fui-banner__wrap2 data-v-115bd473" circular indicator-dots="{{false}}" autoplay><swiper-item wx:for="{{a}}" wx:for-item="item" wx:key="c" class="data-v-115bd473"><view class="fui-banner__item2 data-v-115bd473" style="{{'background-image:' + item.a}}"></view><view class="SwTitle2 data-v-115bd473">{{item.b}}</view></swiper-item></swiper></view>
+45
View File
@@ -0,0 +1,45 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.fui-banner__wrap2.data-v-115bd473 {
background-color: transparent;
align-items: center;
width: 780rpx;
height: 450rpx;
margin-left: 0%;
margin-right: 0%;
}
.fui-banner__item2.data-v-115bd473 {
background-size: cover;
height: 450rpx;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
font-size: 34rpx;
font-weight: 600;
border-radius: 25rpx;
margin-left: 2%;
}
+55
View File
@@ -0,0 +1,55 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const stores_appStore = require("../../stores/appStore.js");
if (!Array) {
const _easycom_up_tabs2 = common_vendor.resolveComponent("up-tabs");
_easycom_up_tabs2();
}
const _easycom_up_tabs = () => "../../node-modules/uview-plus/components/u-tabs/u-tabs.js";
if (!Math) {
_easycom_up_tabs();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "AppTags",
setup(__props) {
const { workflows_all, home_tagActiveIndex, home_tagsList } = common_vendor.storeToRefs(stores_appStore.useAppStore());
const tabsData = common_vendor.computed(() => {
var _a;
const tagsTemp = [];
tagsTemp.push({ name: "全部", count: 0 });
(_a = workflows_all.value) == null ? void 0 : _a.forEach((item) => {
item == null ? void 0 : item.tags.forEach((tas) => {
if (!tagsTemp.find((tag) => {
return tag.name === tas;
})) {
tagsTemp.push({ name: tas, count: 1 });
} else {
const index = tagsTemp.findIndex((tag) => {
return tag.name === tas;
});
tagsTemp[index].count++;
}
});
tagsTemp[0].count++;
});
tagsTemp.sort((a, b) => {
return b.count - a.count;
});
home_tagsList.value = [...tagsTemp];
return tagsTemp;
});
const handleTabClick = (item) => {
console.log(item);
home_tagActiveIndex.value = item.index;
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(handleTabClick),
b: common_vendor.p({
list: tabsData.value
})
};
};
}
});
wx.createComponent(_sfc_main);
+6
View File
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"up-tabs": "../../node-modules/uview-plus/components/u-tabs/u-tabs"
}
}
+1
View File
@@ -0,0 +1 @@
<up-tabs wx:if="{{b}}" bindclick="{{a}}" u-i="7228dc28-0" bind:__l="__l" u-p="{{b}}" class="{{[virtualHostClass]}}" virtualHostClass="{{[virtualHostClass]}}" style="{{virtualHostStyle}}" virtualHostStyle="{{virtualHostStyle}}"></up-tabs>
View File
+93
View File
@@ -0,0 +1,93 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const stores_appStore = require("../../stores/appStore.js");
const utils_common = require("../../utils/common.js");
if (!Math) {
TnWaterFall();
}
const TnWaterFall = () => "../../node-modules/@tuniao/tnui-vue3-uniapp/components/water-fall/src/water-fall.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "AppWaterFall",
setup(__props) {
common_vendor.onMounted(() => {
stores_appStore.useAppStore().initWorkFlows_All().then(() => getshowApps());
});
const { workflows_all, home_tagActiveIndex, home_tagsList } = common_vendor.storeToRefs(stores_appStore.useAppStore());
const waterfallElement = common_vendor.ref();
const showApps = common_vendor.ref();
const getshowApps = () => {
console.log("home_tagActiveIndex", home_tagActiveIndex.value);
if (home_tagActiveIndex.value === 0) {
showApps.value = [...workflows_all.value];
return;
}
const result = workflows_all.value.filter((item) => {
var _a;
return (_a = item.tags) == null ? void 0 : _a.includes(home_tagsList.value[home_tagActiveIndex.value].name);
});
console.log("result", result);
showApps.value = [...result];
};
common_vendor.watch(home_tagActiveIndex, () => {
if (waterfallElement.value) {
waterfallElement.value.reset();
}
getshowApps();
});
const appStore = stores_appStore.useAppStore();
const handleNavigate = (item) => {
appStore.tabbarIndex = null;
common_vendor.index.navigateTo({ url: "/pages/draw/draw_info/draw_info?id=" + item._id });
};
return (_ctx, _cache) => {
return {
a: common_vendor.w(({
item
}, s0, i0) => {
return common_vendor.e({
a: common_vendor.unref(utils_common.isVideo)(item.cover)
}, common_vendor.unref(utils_common.isVideo)(item.cover) ? {
b: item.cover
} : {
c: item.cover
}, {
d: common_vendor.o(($event) => handleNavigate(item)),
e: i0,
f: s0
});
}, {
name: "left",
path: "a",
vueId: "f26ed2f2-0"
}),
b: common_vendor.w(({
item
}, s0, i0) => {
return common_vendor.e({
a: common_vendor.unref(utils_common.isVideo)(item.cover)
}, common_vendor.unref(utils_common.isVideo)(item.cover) ? {
b: item.cover
} : {
c: item.cover
}, {
d: common_vendor.o(($event) => handleNavigate(item)),
e: i0,
f: s0
});
}, {
name: "right",
path: "b",
vueId: "f26ed2f2-0"
}),
c: common_vendor.sr(waterfallElement, "f26ed2f2-0", {
"k": "waterfallElement"
}),
d: common_vendor.p({
data: showApps.value
})
};
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f26ed2f2"]]);
wx.createComponent(Component);
+6
View File
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"tn-water-fall": "../../node-modules/@tuniao/tnui-vue3-uniapp/components/water-fall/src/water-fall"
}
}
+1
View File
@@ -0,0 +1 @@
<tn-water-fall wx:if="{{d}}" u-s="{{['left','right']}}" u-r="waterfallElement" u-i="f26ed2f2-0" bind:__l="__l" u-p="{{d}}" class="{{['r', 'data-v-f26ed2f2', virtualHostClass]}}" virtualHostClass="{{['r', 'data-v-f26ed2f2', virtualHostClass]}}" style="{{'margin-bottom:130rpx' + ';' + virtualHostStyle}}" virtualHostStyle="{{'margin-bottom:130rpx' + ';' + virtualHostStyle}}"><view wx:for="{{a}}" wx:for-item="v0" wx:key="e" slot="{{v0.f}}"><view class="waterfall-data data-v-f26ed2f2" bindtap="{{v0.d}}"><video wx:if="{{v0.a}}" class="video data-v-f26ed2f2" autoplay loop muted style="width:100%" object-fit="cover" controls="{{false}}" src="{{v0.b}}"/><image wx:else class="image data-v-f26ed2f2" src="{{v0.c}}" mode="widthFix"/></view></view><view wx:for="{{b}}" wx:for-item="v0" wx:key="e" slot="{{v0.f}}"><view class="waterfall-data data-v-f26ed2f2" bindtap="{{v0.d}}"><video wx:if="{{v0.a}}" class="video data-v-f26ed2f2" autoplay loop muted style="width:100%" object-fit="cover" controls="{{false}}" src="{{v0.b}}"/><image wx:else class="image data-v-f26ed2f2" src="{{v0.c}}" mode="widthFix"/></view></view></tn-water-fall>
+38
View File
@@ -0,0 +1,38 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.waterfall-data.data-v-f26ed2f2 {
width: calc(100% - 20rpx);
margin: 10rpx;
border-radius: 15rpx;
box-shadow: #c8c7cc;
}
.waterfall-data .image.data-v-f26ed2f2 {
width: 100%;
height: auto;
}
.waterfall-data .video.data-v-f26ed2f2 {
border-radius: 15rpx;
}
+140
View File
@@ -0,0 +1,140 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const types_index = require("../../types/index.js");
const composables_useCommon = require("../../composables/useCommon.js");
const composables_usePayment = require("../../composables/usePayment.js");
const composables_useWorkFlow = require("../../composables/useWorkFlow.js");
const stores_appStore = require("../../stores/appStore.js");
const utils_emitter = require("../../utils/emitter.js");
const types_event_types = require("../../types/event.types.js");
const utils_common = require("../../utils/common.js");
if (!Array) {
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
_easycom_up_button2();
}
const _easycom_up_button = () => "../../node-modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(TnIcon + TnScrollList + _easycom_up_button + TnPopup)();
}
const TnPopup = () => "../../node-modules/@tuniao/tnui-vue3-uniapp/components/popup/src/popup.js";
const TnScrollList = () => "../../node-modules/@tuniao/tnui-vue3-uniapp/components/scroll-list/src/scroll-list.js";
const TnIcon = () => "../../node-modules/@tuniao/tnui-vue3-uniapp/components/icon/src/icon.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "PaymentPopup",
props: {
title: { default: "请选择充值套餐" }
},
emits: ["showPay"],
setup(__props) {
const { showPay } = common_vendor.storeToRefs(stores_appStore.useAppStore());
const showPopup = common_vendor.computed({
set: (newValue) => {
showPay.value = newValue;
if (!newValue) {
selectedIndex.value = 0;
}
},
get: () => {
const { osName } = common_vendor.index.getSystemInfoSync();
if (showPay.value && (osName === "ios" || osName === "macos")) {
common_vendor.index.showToast({
title: "IOS暂不支持在线支付",
icon: "none"
});
showPay.value = false;
}
return showPay.value;
}
});
common_vendor.watch(showPopup, () => {
if (showPopup.value) {
socketInit();
}
});
const products = common_vendor.ref([]);
const handleInitData = async () => {
const res = await composables_useCommon.getProductList();
if (res) {
products.value = res;
}
};
const selectedIndex = common_vendor.ref(0);
common_vendor.watch(selectedIndex, () => {
console.log(selectedIndex.value);
});
const { socketInit } = composables_useWorkFlow.useWorkFlow();
common_vendor.onReady(() => {
handleInitData();
socketInit({
params: {
type: types_index.IWebsocketSceneType.payStatusPush
},
onMessage: (msg) => {
console.log("handle pay success message");
const msgObj = utils_common.parseJSONToObject(msg);
const { type } = msgObj;
if (type === "pay_success") {
showPay.value = false;
utils_emitter.emit(types_event_types.EventType.PAY_SUCCESS, { order_id: msgObj.order_id });
}
}
});
});
const handlePayment = async () => {
if (!composables_useCommon.isLogin.value) {
common_vendor.index.switchTab({
url: "/pages/setting/setting"
});
common_vendor.index.showToast({
title: "请先登录",
icon: "none"
});
return;
}
await socketInit({
params: {
type: types_index.IWebsocketSceneType.payStatusPush
}
});
composables_usePayment.usePayHandlePayment(products.value[selectedIndex.value]);
};
return (_ctx, _cache) => {
return {
a: common_vendor.t(_ctx.title),
b: common_vendor.f(products.value, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.name),
b: common_vendor.t(item.amount / 100),
c: common_vendor.t(item.desc),
d: index === selectedIndex.value
}, index === selectedIndex.value ? {
e: "b88e62c2-2-" + i0 + ",b88e62c2-1",
f: common_vendor.p({
name: "check"
})
} : {}, {
g: common_vendor.o(($event) => selectedIndex.value = index, item._id),
h: selectedIndex.value === index ? 1 : "",
i: item._id,
j: selectedIndex.value === index ? 1 : "",
k: common_vendor.o(($event) => selectedIndex.value = index, item._id)
});
}),
c: common_vendor.o(handlePayment),
d: common_vendor.p({
type: "primary",
shape: "circle"
}),
e: common_vendor.o(($event) => showPopup.value = $event),
f: common_vendor.p({
["close-btn"]: true,
height: "66%",
["open-direction"]: "bottom",
modelValue: showPopup.value
})
};
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b88e62c2"]]);
wx.createComponent(Component);
+9
View File
@@ -0,0 +1,9 @@
{
"component": true,
"usingComponents": {
"up-button": "../../node-modules/uview-plus/components/u-button/u-button",
"tn-popup": "../../node-modules/@tuniao/tnui-vue3-uniapp/components/popup/src/popup",
"tn-scroll-list": "../../node-modules/@tuniao/tnui-vue3-uniapp/components/scroll-list/src/scroll-list",
"tn-icon": "../../node-modules/@tuniao/tnui-vue3-uniapp/components/icon/src/icon"
}
}
+1
View File
@@ -0,0 +1 @@
<tn-popup wx:if="{{f}}" u-s="{{['d']}}" u-i="b88e62c2-0" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}" class="{{['data-v-b88e62c2', virtualHostClass]}}" virtualHostClass="{{['data-v-b88e62c2', virtualHostClass]}}" style="{{virtualHostStyle}}" virtualHostStyle="{{virtualHostStyle}}"><view class="popup-container data-v-b88e62c2"><view class="tn-text-center title tn-text-xl tn-gray-dark_text data-v-b88e62c2"><text class="data-v-b88e62c2">{{a}}</text></view><view class="data-v-b88e62c2"><tn-scroll-list class="data-v-b88e62c2" virtualHostClass="data-v-b88e62c2" u-s="{{['d']}}" u-i="b88e62c2-1,b88e62c2-0" bind:__l="__l"><view class="item-container data-v-b88e62c2"><view wx:for="{{b}}" wx:for-item="item" wx:key="i" class="{{[item.j && 'selected', 'scroll-item', 'tn-flex-center', 'tn-flex-column', 'data-v-b88e62c2']}}" bindtap="{{item.k}}"><view bindtap="{{item.g}}" class="{{[item.h && 'selected', 'empty', 'data-v-b88e62c2']}}"><view class="tn-text data-v-b88e62c2" style="margin-bottom:10rpx">{{item.a}}</view><view class="data-v-b88e62c2"><label class="tn-text-sm data-v-b88e62c2">¥</label><label class="tn-text-bold tn-text-xl data-v-b88e62c2">{{item.b}}</label></view><view class="tn-text-xs data-v-b88e62c2" style="margin-top:20rpx">{{item.c}}</view><view class="selected-icon data-v-b88e62c2"><tn-icon wx:if="{{item.d}}" class="data-v-b88e62c2" virtualHostClass="data-v-b88e62c2" u-i="{{item.e}}" bind:__l="__l" u-p="{{item.f}}"/></view></view></view></view></tn-scroll-list></view><view class="data-v-b88e62c2" style="margin:10rpx 10%;width:80%"><up-button wx:if="{{d}}" u-s="{{['d']}}" bindclick="{{c}}" class="button-pay data-v-b88e62c2" virtualHostClass="button-pay data-v-b88e62c2" u-i="b88e62c2-3,b88e62c2-0" bind:__l="__l" u-p="{{d}}">立即购买</up-button></view><view class="data-v-b88e62c2"></view></view></tn-popup>
+77
View File
@@ -0,0 +1,77 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.popup-container.data-v-b88e62c2 {
height: 100%;
padding: 20rpx;
box-sizing: border-box;
}
.popup-container .title.data-v-b88e62c2 {
margin: 20rpx 0;
}
.item-container.data-v-b88e62c2 {
position: relative;
width: -moz-fit-content;
width: fit-content;
display: flex;
flex-wrap: nowrap;
}
.item-container .scroll-item.data-v-b88e62c2 {
flex-grow: 1;
flex-shrink: 0;
}
.item-container .scroll-item .empty.data-v-b88e62c2 {
margin: 10rpx 10rpx;
width: 220rpx;
height: 300rpx;
border-radius: 15rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #F2F4F6;
transition: all 0.3s ease;
}
.item-container .scroll-item .empty.selected.data-v-b88e62c2 {
background: linear-gradient(to bottom, #FDF8F0, #F2E1C9);
border: 2rpx solid #D6AE70;
transform: scale(1.05);
}
.item-container .scroll-item .title.data-v-b88e62c2 {
margin-top: 10rpx;
}
.button-pay.data-v-b88e62c2 {
background: linear-gradient(to right, #857ed1, #4338CA);
border-radius: 50px;
box-shadow: 0 3px 5px var(--primary-color-light);
}
.selected-icon.data-v-b88e62c2 {
position: absolute;
bottom: 0;
right: 0;
-moz-border-radius-bottomright: 15rpx;
background-color: #CB9749;
color: white;
}
+26
View File
@@ -0,0 +1,26 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_search2 = common_vendor.resolveComponent("up-search");
_easycom_up_search2();
}
const _easycom_up_search = () => "../../node-modules/uview-plus/components/u-search/u-search.js";
if (!Math) {
_easycom_up_search();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "Search",
setup(__props) {
const searchValue = common_vendor.ref("");
return (_ctx, _cache) => {
return {
a: common_vendor.o(($event) => searchValue.value = $event),
b: common_vendor.p({
placeholder: "搜应用搜创意,一键直达",
modelValue: searchValue.value
})
};
};
}
});
wx.createComponent(_sfc_main);
+6
View File
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"up-search": "../../node-modules/uview-plus/components/u-search/u-search"
}
}
+1
View File
@@ -0,0 +1 @@
<view class="{{['searchColor', virtualHostClass]}}" style="{{virtualHostStyle}}"><up-search wx:if="{{b}}" u-i="239718ca-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></up-search></view>
+9
View File
@@ -0,0 +1,9 @@
.search{
/* margin: 0 50rpx 0 50rpx; */
border-color:gray;
}
.searchColor{
margin-left: 5%;
margin-right: 5%;
}
+66
View File
@@ -0,0 +1,66 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const composables_useCommon = require("../../composables/useCommon.js");
const utils_common = require("../../utils/common.js");
const utils_emitter = require("../../utils/emitter.js");
const types_event_types = require("../../types/event.types.js");
if (!Math) {
TnIcon();
}
const TnIcon = () => "../../node-modules/@tuniao/tnui-vue3-uniapp/components/icon/src/icon.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "UserMemberInfo",
setup(__props) {
const vipInfo = common_vendor.ref();
const handleInit = async () => {
if (!composables_useCommon.isLogin.value) {
return;
}
const res = await composables_useCommon.getUserVipInfo();
if (res) {
vipInfo.value = res;
}
};
handleInit();
common_vendor.watch(composables_useCommon.isLogin, () => {
if (composables_useCommon.isLogin.value) {
handleInit();
}
});
const userInfor = common_vendor.computed(() => {
var _a, _b;
if (!composables_useCommon.isLogin.value) {
return null;
}
return {
vipName: (_a = vipInfo.value) == null ? void 0 : _a.org_id.name,
expire_date: utils_common.formatDateTime(new Date((_b = vipInfo.value) == null ? void 0 : _b.expire_date), "YYYY-MM-DD")
};
});
common_vendor.onLoad(() => {
utils_emitter.on(types_event_types.EventType.PAY_SUCCESS, () => {
handleInit();
});
});
common_vendor.onUnload(() => {
utils_emitter.off(types_event_types.EventType.PAY_SUCCESS);
});
return (_ctx, _cache) => {
var _a, _b;
return common_vendor.e({
a: vipInfo.value
}, vipInfo.value ? {
b: common_vendor.p({
name: "vip-diamond"
}),
c: common_vendor.t((_a = userInfor.value) == null ? void 0 : _a.vipName)
} : {}, {
d: vipInfo.value
}, vipInfo.value ? {
e: common_vendor.t((_b = userInfor.value) == null ? void 0 : _b.expire_date)
} : {});
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-df2edbd0"]]);
wx.createComponent(Component);
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"tn-icon": "../../node-modules/@tuniao/tnui-vue3-uniapp/components/icon/src/icon"
}
}
@@ -0,0 +1 @@
<view wx:if="{{a}}" class="data-v-df2edbd0"><slot name="username"></slot><label class="tag data-v-df2edbd0"><tn-icon wx:if="{{b}}" class="data-v-df2edbd0" virtualHostClass="data-v-df2edbd0" u-i="df2edbd0-0" bind:__l="__l" u-p="{{b}}"/>{{c}}</label></view><view wx:if="{{d}}" class="data-v-df2edbd0"><label class="tn-text-sm tn-gray_text data-v-df2edbd0">有效期{{e}}</label></view>
+31
View File
@@ -0,0 +1,31 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.tag.data-v-df2edbd0 {
background-color: goldenrod;
color: white;
padding: 0 20rpx;
border-radius: 20rpx;
}