初始化参股
This commit is contained in:
31
前端/unpackage/dist/dev/mp-weixin/components/service-card/service-card.js
vendored
Normal file
31
前端/unpackage/dist/dev/mp-weixin/components/service-card/service-card.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
__name: "service-card",
|
||||
props: {
|
||||
id: {},
|
||||
name: {},
|
||||
icon: {}
|
||||
},
|
||||
emits: ["click"],
|
||||
setup(__props, _a) {
|
||||
var __emit = _a.emit;
|
||||
const props = __props;
|
||||
const emit = __emit;
|
||||
const handleClick = () => {
|
||||
emit("click", props.id);
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
"raw js";
|
||||
const __returned__ = {
|
||||
a: _ctx.icon,
|
||||
b: common_vendor.t(_ctx.name),
|
||||
c: common_vendor.sei(common_vendor.gei(_ctx, ""), "view"),
|
||||
d: common_vendor.o(handleClick)
|
||||
};
|
||||
return __returned__;
|
||||
};
|
||||
}
|
||||
});
|
||||
wx.createComponent(_sfc_main);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/service-card/service-card.js.map
|
||||
4
前端/unpackage/dist/dev/mp-weixin/components/service-card/service-card.json
vendored
Normal file
4
前端/unpackage/dist/dev/mp-weixin/components/service-card/service-card.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
前端/unpackage/dist/dev/mp-weixin/components/service-card/service-card.wxml
vendored
Normal file
1
前端/unpackage/dist/dev/mp-weixin/components/service-card/service-card.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view bindtap="{{d}}" id="{{c}}" change:eS="{{uV.sS}}" eS="{{$eS[c]}}" change:eA="{{uV.sA}}" eA="{{$eA[c]}}" class="{{['service-card', virtualHostClass]}}" style="{{virtualHostStyle}}" hidden="{{virtualHostHidden || false}}"><view class="service-icon-wrapper"><image class="service-icon" src="{{a}}" mode="aspectFit"></image></view><text class="service-name">{{b}}</text></view><wxs src="/common/uniView.wxs" module="uV"/>
|
||||
51
前端/unpackage/dist/dev/mp-weixin/components/service-card/service-card.wxss
vendored
Normal file
51
前端/unpackage/dist/dev/mp-weixin/components/service-card/service-card.wxss
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
:host{display:flex;flex-direction:column}
|
||||
/**
|
||||
* 优艺家沙发翻新 - 全局样式变量
|
||||
*/
|
||||
/* ========== 项目主题色 ========== */
|
||||
/* 辅助色 */
|
||||
/* 文字颜色 */
|
||||
/* 背景色 */
|
||||
/* 边框颜色 */
|
||||
/* 间距 */
|
||||
/* 圆角 */
|
||||
/* 阴影 */
|
||||
/* ========== uni-app 内置变量 ========== */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.service-card {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24rpx 16rpx;
|
||||
background-color: #ffffff;
|
||||
border-radius: 16rpx;
|
||||
width: 160rpx;
|
||||
}
|
||||
.service-icon-wrapper {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
background-color: #FDF6EE;
|
||||
border-radius: 50%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
.service-icon {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
}
|
||||
.service-name {
|
||||
font-size: 26rpx;
|
||||
color: #333333;
|
||||
text-align: center;
|
||||
}
|
||||
Reference in New Issue
Block a user