feat:初始提交uni-app项目
This commit is contained in:
56
unpackage/dist/dev/mp-weixin/components/theme-item/theme-item.js
vendored
Normal file
56
unpackage/dist/dev/mp-weixin/components/theme-item/theme-item.js
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const utils_common = require("../../utils/common.js");
|
||||
if (!Array) {
|
||||
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
||||
_easycom_uni_icons2();
|
||||
}
|
||||
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
||||
if (!Math) {
|
||||
_easycom_uni_icons();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "theme-item",
|
||||
props: {
|
||||
isMore: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
item: {
|
||||
type: Object,
|
||||
default() {
|
||||
return {
|
||||
name: "默认名称",
|
||||
picurl: "/common/images/classify1.jpg",
|
||||
updateTime: Date.now()
|
||||
};
|
||||
}
|
||||
}
|
||||
},
|
||||
setup(__props) {
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: !__props.isMore
|
||||
}, !__props.isMore ? common_vendor.e({
|
||||
b: __props.item.picurl,
|
||||
c: common_vendor.t(__props.item.name),
|
||||
d: common_vendor.unref(utils_common.compareTimestamp)(__props.item.updateTime)
|
||||
}, common_vendor.unref(utils_common.compareTimestamp)(__props.item.updateTime) ? {
|
||||
e: common_vendor.t(common_vendor.unref(utils_common.compareTimestamp)(__props.item.updateTime))
|
||||
} : {}, {
|
||||
f: "/pages/classlist/classlist?id=" + __props.item._id + "&name=" + __props.item.name
|
||||
}) : {
|
||||
g: common_assets._imports_0$1,
|
||||
h: common_vendor.p({
|
||||
type: "more-filled",
|
||||
size: "34",
|
||||
color: "#fff"
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f4eafbca"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/theme-item/theme-item.js.map
|
||||
6
unpackage/dist/dev/mp-weixin/components/theme-item/theme-item.json
vendored
Normal file
6
unpackage/dist/dev/mp-weixin/components/theme-item/theme-item.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/components/theme-item/theme-item.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/components/theme-item/theme-item.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="themeItem data-v-f4eafbca"><navigator wx:if="{{a}}" url="{{f}}" class="box data-v-f4eafbca"><image class="pic data-v-f4eafbca" src="{{b}}" mode="aspectFill"></image><view class="mask data-v-f4eafbca">{{c}}</view><view wx:if="{{d}}" class="tab data-v-f4eafbca">{{e}}前更新</view></navigator><navigator wx:else url="/pages/classify/classify" open-type="reLaunch" class="box more data-v-f4eafbca"><image class="pic data-v-f4eafbca" src="{{g}}" mode="aspectFill"></image><view class="mask data-v-f4eafbca"><uni-icons wx:if="{{h}}" class="data-v-f4eafbca" u-i="f4eafbca-0" bind:__l="__l" u-p="{{h}}"></uni-icons><view class="text data-v-f4eafbca">更多</view></view></navigator></view>
|
||||
73
unpackage/dist/dev/mp-weixin/components/theme-item/theme-item.wxss
vendored
Normal file
73
unpackage/dist/dev/mp-weixin/components/theme-item/theme-item.wxss
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.themeItem .box.data-v-f4eafbca {
|
||||
height: 340rpx;
|
||||
border-radius: 10rpx;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
.themeItem .box .pic.data-v-f4eafbca {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.themeItem .box .mask.data-v-f4eafbca {
|
||||
width: 100%;
|
||||
height: 70rpx;
|
||||
position: absolute;
|
||||
font-size: 40rpx;
|
||||
font-weight: 600;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
-webkit-backdrop-filter: blur(20rpx);
|
||||
backdrop-filter: blur(20rpx);
|
||||
}
|
||||
.themeItem .box .tab.data-v-f4eafbca {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
background: rgba(250, 129, 90, 0.7);
|
||||
-webkit-backdrop-filter: blur(20rpx);
|
||||
backdrop-filter: blur(20rpx);
|
||||
color: #fff;
|
||||
font-size: 22rpx;
|
||||
border-radius: 0 0 20rpx 0;
|
||||
padding: 6rpx 12rpx;
|
||||
transform: scale(0.8);
|
||||
transform-origin: left top;
|
||||
}
|
||||
.themeItem .box.more .mask.data-v-f4eafbca {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
flex-direction: column;
|
||||
}
|
||||
.themeItem .box.more .text.data-v-f4eafbca {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user