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
@@ -0,0 +1,133 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "up-text",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.value, common_vendor.buttonMixin, common_vendor.openType, common_vendor.props$7],
emits: ["click"],
computed: {
wrapStyle() {
let style = {
margin: this.margin,
justifyContent: this.align === "left" ? "flex-start" : this.align === "center" ? "center" : "flex-end"
};
if (this.flex1) {
style.flex = 1;
style.width = "100%";
}
return style;
},
valueStyle() {
const style = {
textDecoration: this.decoration,
fontWeight: this.bold ? "bold" : "normal",
wordWrap: this.wordWrap,
fontSize: common_vendor.addUnit(this.size)
};
!this.type && (style.color = this.color);
this.isNvue && this.lines && (style.lines = this.lines);
this.lineHeight && (style.lineHeight = common_vendor.addUnit(this.lineHeight));
!this.isNvue && this.block && (style.display = "block");
return common_vendor.deepMerge(style, common_vendor.addStyle(this.customStyle));
},
isNvue() {
let nvue = false;
return nvue;
},
isMp() {
let mp = false;
mp = true;
return mp;
}
},
data() {
return {};
},
methods: {
addStyle: common_vendor.addStyle,
clickHandler(e) {
if (this.call && this.mode === "phone") {
common_vendor.index.makePhoneCall({
phoneNumber: this.text
});
}
this.$emit("click", e);
}
}
};
if (!Array) {
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
const _easycom_u_link2 = common_vendor.resolveComponent("u-link");
(_easycom_u_icon2 + _easycom_u_link2)();
}
const _easycom_u_icon = () => "../u-icon/u-icon.js";
const _easycom_u_link = () => "../u-link/u-link.js";
if (!Math) {
(_easycom_u_icon + _easycom_u_link)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: _ctx.show
}, _ctx.show ? common_vendor.e({
b: _ctx.mode === "price"
}, _ctx.mode === "price" ? {
c: common_vendor.n(_ctx.type && `u-text__value--${_ctx.type}`),
d: common_vendor.s($options.valueStyle)
} : {}, {
e: _ctx.prefixIcon
}, _ctx.prefixIcon ? {
f: common_vendor.p({
name: _ctx.prefixIcon,
customStyle: $options.addStyle(_ctx.iconStyle)
})
} : {}, {
g: _ctx.mode === "link"
}, _ctx.mode === "link" ? {
h: $options.valueStyle.fontWeight,
i: $options.valueStyle.wordWrap,
j: $options.valueStyle.fontSize,
k: common_vendor.n(_ctx.type && `u-text__value--${_ctx.type}`),
l: common_vendor.n(_ctx.lines && `u-line-${_ctx.lines}`),
m: common_vendor.p({
text: _ctx.value,
href: _ctx.href,
underLine: true
})
} : _ctx.openType && $options.isMp ? {
o: common_vendor.t(_ctx.value),
p: common_vendor.s($options.valueStyle),
q: _ctx.index,
r: _ctx.openType,
s: common_vendor.o((...args) => _ctx.onGetUserInfo && _ctx.onGetUserInfo(...args)),
t: common_vendor.o((...args) => _ctx.onContact && _ctx.onContact(...args)),
v: common_vendor.o((...args) => _ctx.onGetPhoneNumber && _ctx.onGetPhoneNumber(...args)),
w: common_vendor.o((...args) => _ctx.onError && _ctx.onError(...args)),
x: common_vendor.o((...args) => _ctx.onLaunchApp && _ctx.onLaunchApp(...args)),
y: common_vendor.o((...args) => _ctx.onOpenSetting && _ctx.onOpenSetting(...args)),
z: _ctx.lang,
A: _ctx.sessionFrom,
B: _ctx.sendMessageTitle,
C: _ctx.sendMessagePath,
D: _ctx.sendMessageImg,
E: _ctx.showMessageCard,
F: _ctx.appParameter
} : {
G: common_vendor.t(_ctx.value),
H: common_vendor.s($options.valueStyle),
I: common_vendor.n(_ctx.type && `u-text__value--${_ctx.type}`),
J: common_vendor.n(_ctx.lines && `u-line-${_ctx.lines}`)
}, {
n: _ctx.openType && $options.isMp,
K: _ctx.suffixIcon
}, _ctx.suffixIcon ? {
L: common_vendor.p({
name: _ctx.suffixIcon,
customStyle: $options.addStyle(_ctx.iconStyle)
})
} : {}, {
M: common_vendor.n(_ctx.customClass),
N: common_vendor.s($options.wrapStyle),
O: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args))
}) : {});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5fec1d8b"]]);
wx.createComponent(Component);
@@ -0,0 +1,7 @@
{
"component": true,
"usingComponents": {
"u-icon": "../u-icon/u-icon",
"u-link": "../u-link/u-link"
}
}
@@ -0,0 +1 @@
<view wx:if="{{a}}" class="{{['u-text', 'data-v-5fec1d8b', M, virtualHostClass]}}" style="{{N + ';' + virtualHostStyle}}" bindtap="{{O}}"><text wx:if="{{b}}" class="{{['data-v-5fec1d8b', 'u-text__price', c]}}" style="{{d}}">¥</text><view wx:if="{{e}}" class="u-text__prefix-icon data-v-5fec1d8b"><u-icon wx:if="{{f}}" class="data-v-5fec1d8b" virtualHostClass="data-v-5fec1d8b" u-i="5fec1d8b-0" bind:__l="__l" u-p="{{f}}"></u-icon></view><u-link wx:if="{{g}}" style="{{'font-weight:' + h + ';' + ('word-wrap:' + i) + ';' + ('font-size:' + j)}}" virtualHostStyle="{{'font-weight:' + h + ';' + ('word-wrap:' + i) + ';' + ('font-size:' + j)}}" class="{{['u-text__value', 'data-v-5fec1d8b', k, l]}}" virtualHostClass="{{['u-text__value', 'data-v-5fec1d8b', k, l]}}" u-i="5fec1d8b-1" bind:__l="__l" u-p="{{m}}"></u-link><block wx:elif="{{n}}"><button class="u-reset-button u-text__value data-v-5fec1d8b" style="{{p}}" data-index="{{q}}" openType="{{r}}" bindgetuserinfo="{{s}}" bindcontact="{{t}}" bindgetphonenumber="{{v}}" binderror="{{w}}" bindlaunchapp="{{x}}" bindopensetting="{{y}}" lang="{{z}}" session-from="{{A}}" send-message-title="{{B}}" send-message-path="{{C}}" send-message-img="{{D}}" show-message-card="{{E}}" app-parameter="{{F}}">{{o}}</button></block><text wx:else style="{{H}}" class="{{['u-text__value', 'data-v-5fec1d8b', I, J]}}">{{G}}</text><view wx:if="{{K}}" class="u-text__suffix-icon data-v-5fec1d8b"><u-icon wx:if="{{L}}" class="data-v-5fec1d8b" virtualHostClass="data-v-5fec1d8b" u-i="5fec1d8b-2" bind:__l="__l" u-p="{{L}}"></u-icon></view></view>
@@ -0,0 +1,95 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-empty.data-v-5fec1d8b,
.u-empty__wrap.data-v-5fec1d8b,
.u-tabs.data-v-5fec1d8b,
.u-tabs__wrapper.data-v-5fec1d8b,
.u-tabs__wrapper__scroll-view-wrapper.data-v-5fec1d8b,
.u-tabs__wrapper__scroll-view.data-v-5fec1d8b,
.u-tabs__wrapper__nav.data-v-5fec1d8b,
.u-tabs__wrapper__nav__line.data-v-5fec1d8b,
.up-empty.data-v-5fec1d8b,
.up-empty__wrap.data-v-5fec1d8b,
.up-tabs.data-v-5fec1d8b,
.up-tabs__wrapper.data-v-5fec1d8b,
.up-tabs__wrapper__scroll-view-wrapper.data-v-5fec1d8b,
.up-tabs__wrapper__scroll-view.data-v-5fec1d8b,
.up-tabs__wrapper__nav.data-v-5fec1d8b,
.up-tabs__wrapper__nav__line.data-v-5fec1d8b {
display: flex;
flex-direction: column;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
.u-text.data-v-5fec1d8b {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: nowrap;
}
.u-text__price.data-v-5fec1d8b {
font-size: 14px;
color: #606266;
}
.u-text__value.data-v-5fec1d8b {
font-size: 14px;
display: flex;
flex-direction: row;
color: #606266;
flex-wrap: wrap;
text-overflow: ellipsis;
align-items: center;
}
.u-text__value--primary.data-v-5fec1d8b {
color: #4338CA;
}
.u-text__value--warning.data-v-5fec1d8b {
color: #f9ae3d;
}
.u-text__value--success.data-v-5fec1d8b {
color: #5ac725;
}
.u-text__value--info.data-v-5fec1d8b {
color: #909399;
}
.u-text__value--error.data-v-5fec1d8b {
color: #f56c6c;
}
.u-text__value--main.data-v-5fec1d8b {
color: #303133;
}
.u-text__value--content.data-v-5fec1d8b {
color: #606266;
}
.u-text__value--tips.data-v-5fec1d8b {
color: #909193;
}
.u-text__value--light.data-v-5fec1d8b {
color: #c0c4cc;
}