refactor: 退役运行时视觉模块并泛化模板门禁
This commit is contained in:
1 parent
25d1fe983c
commit
e2e2340bfe
56 files changed
+290
-1037
No files matched your search
@@ -1,8 +0,0 @@
|
||||
Component({
|
||||
properties: { hero: { type: Object, value: {} }, variant: { type: String, value: "default" } },
|
||||
methods: {
|
||||
explore() {
|
||||
this.triggerEvent("explore");
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -1 +0,0 @@
|
||||
{ "component": true }
|
||||
@@ -1 +0,0 @@
|
||||
<view class="hero"><image class="hero-image" src="{{hero.image}}" mode="aspectFill"/><view class="hero-shade"/><view class="hero-copy"><text class="eyebrow">{{hero.eyebrow}}</text><text class="hero-title">{{hero.title}}</text><text class="hero-slogan">{{hero.slogan}}</text><button class="hero-button" bindtap="explore">{{hero.cta}}</button></view></view>
|
||||
@@ -1,51 +0,0 @@
|
||||
.hero {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin-top: 22rpx;
|
||||
height: 560rpx;
|
||||
border-radius: 16rpx;
|
||||
background: #202221;
|
||||
}
|
||||
.hero-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.hero-shade {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(180deg, transparent 30%, rgba(32, 34, 33, 0.9));
|
||||
}
|
||||
.hero-copy {
|
||||
position: absolute;
|
||||
left: 28rpx;
|
||||
right: 28rpx;
|
||||
bottom: 28rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.eyebrow {
|
||||
display: block;
|
||||
color: #d9c8b2;
|
||||
font-size: 20rpx;
|
||||
letter-spacing: 3rpx;
|
||||
}
|
||||
.hero-title {
|
||||
display: block;
|
||||
margin-top: 14rpx;
|
||||
font: 40rpx serif;
|
||||
}
|
||||
.hero-slogan {
|
||||
display: block;
|
||||
margin-top: 10rpx;
|
||||
color: #ddd5cb;
|
||||
font-size: 23rpx;
|
||||
}
|
||||
.hero-button {
|
||||
margin: 24rpx 0 0 0;
|
||||
padding: 0 22rpx;
|
||||
border: 1rpx solid #d9c8b2;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: #fff;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
Component({
|
||||
properties: {
|
||||
brand: { type: Object, value: {} },
|
||||
presentation: { type: Object, value: {} },
|
||||
variant: { type: String, value: "default" },
|
||||
},
|
||||
});
|
||||
@@ -1 +0,0 @@
|
||||
{ "component": true }
|
||||
@@ -1 +0,0 @@
|
||||
<view class="founder"><image wx:if="{{brand.avatarUrl}}" class="avatar" src="{{brand.avatarUrl}}"/><view wx:else class="avatar avatar-placeholder">{{brand.founder}}</view><view><text class="founder-name">{{brand.founder}}</text><text class="founder-title">{{brand.title}}</text><text class="quote">“{{brand.slogan}}”</text></view><text wx:if="{{presentation.founderBadge}}" class="badge">{{presentation.founderBadge}}</text></view>
|
||||
@@ -1,47 +0,0 @@
|
||||
.founder {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 18rpx;
|
||||
padding: 24rpx;
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.avatar {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
border-radius: 50%;
|
||||
object-fit: cover;
|
||||
}
|
||||
.avatar-placeholder {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
background: #eee;
|
||||
color: #777;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.founder-name {
|
||||
display: block;
|
||||
font: 34rpx serif;
|
||||
}
|
||||
.founder-title {
|
||||
display: block;
|
||||
margin-top: 6rpx;
|
||||
color: #77736b;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.quote {
|
||||
display: block;
|
||||
margin-top: 8rpx;
|
||||
color: #8a6846;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.badge {
|
||||
margin-left: auto;
|
||||
padding: 8rpx 12rpx;
|
||||
border: 1rpx solid #d9c8b2;
|
||||
color: #8a6846;
|
||||
font-size: 20rpx;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
Component({
|
||||
properties: {
|
||||
offerings: { type: Array, value: [] },
|
||||
presentation: { type: Object, value: {} },
|
||||
variant: { type: String, value: "default" },
|
||||
},
|
||||
methods: {
|
||||
open(e) {
|
||||
this.triggerEvent("open", { id: e.currentTarget.dataset.id });
|
||||
},
|
||||
more() {
|
||||
this.triggerEvent("more");
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -1 +0,0 @@
|
||||
{ "component": true }
|
||||
@@ -1 +0,0 @@
|
||||
<view class="section"><view class="section-head"><view><text class="eyebrow dark">{{presentation.worksEyebrow}}</text><text class="section-title">{{presentation.worksTitle}}</text></view><text class="more" bindtap="more">{{presentation.worksAction}}</text></view><view wx:for="{{offerings}}" wx:key="id" class="work-card" data-id="{{item.id}}" bindtap="open"><image src="{{item.image}}" mode="aspectFill"/><view class="work-info"><text class="work-category">{{item.category}} · {{item.area}}</text><text class="work-name">{{item.name}}</text><text class="work-desc">{{item.series}} · {{item.keywords[0]}} · {{item.keywords[1]}}</text></view></view></view>
|
||||
@@ -1,53 +0,0 @@
|
||||
.section {
|
||||
margin-top: 22rpx;
|
||||
padding: 28rpx;
|
||||
background: #fff;
|
||||
}
|
||||
.section-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.eyebrow {
|
||||
display: block;
|
||||
color: #8a6846;
|
||||
font-size: 20rpx;
|
||||
letter-spacing: 3rpx;
|
||||
}
|
||||
.section-title {
|
||||
display: block;
|
||||
margin-top: 10rpx;
|
||||
font: 40rpx serif;
|
||||
}
|
||||
.more {
|
||||
color: #8a6846;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.work-card {
|
||||
margin-top: 22rpx;
|
||||
overflow: hidden;
|
||||
border: 1rpx solid #e6ded5;
|
||||
}
|
||||
.work-card image {
|
||||
width: 100%;
|
||||
height: 300rpx;
|
||||
display: block;
|
||||
}
|
||||
.work-info {
|
||||
padding: 18rpx;
|
||||
}
|
||||
.work-category {
|
||||
display: block;
|
||||
color: #8a6846;
|
||||
font-size: 21rpx;
|
||||
}
|
||||
.work-name {
|
||||
display: block;
|
||||
margin-top: 8rpx;
|
||||
font: 30rpx serif;
|
||||
}
|
||||
.work-desc {
|
||||
display: block;
|
||||
margin-top: 8rpx;
|
||||
color: #77736b;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
Component({
|
||||
properties: {
|
||||
brand: { type: Object, value: {} },
|
||||
presentation: { type: Object, value: {} },
|
||||
recordsCount: { type: Number, value: 0 },
|
||||
},
|
||||
methods: {
|
||||
call() {
|
||||
this.triggerEvent("call");
|
||||
},
|
||||
copy() {
|
||||
this.triggerEvent("copy");
|
||||
},
|
||||
records() {
|
||||
this.triggerEvent("records");
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -1 +0,0 @@
|
||||
{ "component": true }
|
||||
@@ -1 +0,0 @@
|
||||
<view class="profile"><view class="contact-card"><view class="identity"><image wx:if="{{brand.avatarUrl}}" class="avatar" src="{{brand.avatarUrl}}" mode="aspectFill"/><view wx:else class="avatar">{{brand.founder}}</view><view><text class="founder">{{brand.founder}}</text><text class="role">{{brand.title}}</text></view></view><view class="line"><text>{{presentation.phoneLabel || '联系电话'}}</text><view><text>{{brand.phone}}</text><button bindtap="call">{{presentation.callAction || '呼叫'}}</button></view></view><view class="line"><text>{{presentation.wechatLabel || '微信'}}</text><view><text>{{brand.wechat}}</text><button bindtap="copy">{{presentation.copyAction || '复制'}}</button></view></view><view class="line"><text>{{presentation.addressLabel || '工作地址'}}</text><text>{{brand.studioAddress}}</text></view></view><view class="entry" bindtap="records"><text>{{presentation.recordsTitle || '我的咨询记录'}}</text><text>{{recordsCount}} {{presentation.recordsCountUnit || '条记录'}} ›</text></view></view>
|
||||
@@ -1,71 +0,0 @@
|
||||
.profile {
|
||||
margin-top: 22rpx;
|
||||
}
|
||||
.contact-card {
|
||||
padding: 34rpx 30rpx;
|
||||
background: #202221;
|
||||
color: #fff;
|
||||
border-radius: 18rpx;
|
||||
}
|
||||
.identity {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20rpx;
|
||||
}
|
||||
.avatar {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
border: 2rpx solid #8a6846;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #d9c8b2;
|
||||
font: 42rpx serif;
|
||||
}
|
||||
.founder {
|
||||
display: block;
|
||||
font: 34rpx serif;
|
||||
}
|
||||
.role {
|
||||
display: block;
|
||||
margin-top: 8rpx;
|
||||
color: #d9c8b2;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.line {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 22rpx;
|
||||
padding-top: 18rpx;
|
||||
border-top: 1rpx solid rgba(255, 255, 255, 0.12);
|
||||
color: #aaa;
|
||||
font-size: 23rpx;
|
||||
}
|
||||
.line > view {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.line button {
|
||||
margin: 0;
|
||||
padding: 0 14rpx;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: #d9c8b2;
|
||||
font-size: 21rpx;
|
||||
}
|
||||
.entry {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 20rpx;
|
||||
padding: 28rpx;
|
||||
background: #fff;
|
||||
border: 1rpx solid #e6ded5;
|
||||
border-radius: 16rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.entry text:last-child {
|
||||
color: #8a6846;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
Component({
|
||||
properties: {
|
||||
content: { type: Object, value: {} },
|
||||
presentation: { type: Object, value: {} },
|
||||
variant: { type: String, value: "default" },
|
||||
},
|
||||
});
|
||||
@@ -1 +0,0 @@
|
||||
{ "component": true }
|
||||
@@ -1 +0,0 @@
|
||||
<view class="trust"><text class="eyebrow">{{presentation.manifestoEyebrow}}</text><text class="section-title light">{{presentation.manifestoTitle}}</text><view wx:for="{{content.pillars}}" wx:key="title"><text class="work-name light">{{item.title}}</text><text class="body light-body">{{item.desc}}</text></view></view>
|
||||
@@ -1,36 +0,0 @@
|
||||
.trust {
|
||||
margin-top: 22rpx;
|
||||
padding: 32rpx;
|
||||
background: #202221;
|
||||
color: #fff;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.eyebrow {
|
||||
display: block;
|
||||
color: #d9c8b2;
|
||||
font-size: 20rpx;
|
||||
letter-spacing: 3rpx;
|
||||
}
|
||||
.section-title {
|
||||
display: block;
|
||||
margin-top: 12rpx;
|
||||
font: 42rpx serif;
|
||||
}
|
||||
.light {
|
||||
color: #fff;
|
||||
}
|
||||
.work-name {
|
||||
display: block;
|
||||
margin-top: 24rpx;
|
||||
font: 29rpx serif;
|
||||
}
|
||||
.body {
|
||||
display: block;
|
||||
margin-top: 8rpx;
|
||||
color: #77736b;
|
||||
font-size: 24rpx;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.light-body {
|
||||
color: #c8c5bf;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
Component({
|
||||
properties: {
|
||||
content: { type: Object, value: {} },
|
||||
presentation: { type: Object, value: {} },
|
||||
variant: { type: String, value: "default" },
|
||||
},
|
||||
});
|
||||
@@ -1 +0,0 @@
|
||||
{ "component": true }
|
||||
@@ -1,11 +0,0 @@
|
||||
<view class="trust-section">
|
||||
<view class="trust-head"><text class="eyebrow">{{presentation.proofEyebrow || '信任凭证'}}</text></view>
|
||||
<view class="stats">
|
||||
<view wx:for="{{content.stats}}" wx:key="value" class="stat-card"><text class="stat-value">{{item.value}}</text><text class="stat-label">{{item.label}}</text><text class="stat-sub">{{item.sub}}</text></view>
|
||||
</view>
|
||||
<view class="manifesto">
|
||||
<view class="manifesto-head"><text>{{presentation.manifestoEyebrow}}</text><text>{{presentation.manifestoTitle}}</text></view>
|
||||
<view wx:for="{{content.pillars}}" wx:key="title" class="pillar"><view class="pillar-icon">{{item.icon === 'tree' ? '木' : item.icon === 'ruler' ? '尺' : '盾'}}</view><view><text class="pillar-title">{{item.title}}</text><text class="pillar-desc">{{item.desc}}</text></view></view>
|
||||
</view>
|
||||
<view class="flow-card"><text class="flow-eyebrow">{{presentation.flowEyebrow}}</text><text class="flow-title">{{presentation.flowTitle}}</text><view class="flow-grid"><view wx:for="{{content.serviceFlow}}" wx:key="step" class="flow-item"><text class="flow-step">{{item.step}}</text><text class="flow-name">{{item.name}}</text><text class="flow-desc">{{item.desc}}</text></view></view></view>
|
||||
</view>
|
||||
@@ -1,159 +0,0 @@
|
||||
.trust-section {
|
||||
padding: 0 40rpx 42rpx;
|
||||
}
|
||||
.trust-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.eyebrow {
|
||||
display: block;
|
||||
color: #8a6846;
|
||||
font-size: 20rpx;
|
||||
letter-spacing: 3rpx;
|
||||
}
|
||||
.trust-link {
|
||||
color: #8a6846;
|
||||
font-size: 21rpx;
|
||||
}
|
||||
.stats {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16rpx;
|
||||
margin-bottom: 18rpx;
|
||||
}
|
||||
.stat-card {
|
||||
padding: 22rpx;
|
||||
background: #fff;
|
||||
border: 1rpx solid #e6ded5;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.stat-value {
|
||||
display: block;
|
||||
color: #8a6846;
|
||||
font: 38rpx serif;
|
||||
}
|
||||
.stat-label {
|
||||
display: block;
|
||||
font-size: 22rpx;
|
||||
margin-top: 4rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
.stat-sub {
|
||||
display: block;
|
||||
margin-top: 6rpx;
|
||||
color: #77736b;
|
||||
font-size: 18rpx;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.manifesto {
|
||||
padding: 28rpx;
|
||||
border-radius: 20rpx;
|
||||
background: #202221;
|
||||
color: #fff;
|
||||
}
|
||||
.manifesto-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding-bottom: 18rpx;
|
||||
margin-bottom: 20rpx;
|
||||
border-bottom: 1rpx solid rgba(255, 255, 255, 0.12);
|
||||
color: #d9c8b2;
|
||||
font-size: 20rpx;
|
||||
}
|
||||
.manifesto-head text:last-child {
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
font-size: 18rpx;
|
||||
}
|
||||
.pillar {
|
||||
display: flex;
|
||||
gap: 16rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.pillar-icon {
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
flex: 0 0 44rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 8rpx;
|
||||
background: rgba(138, 104, 70, 0.3);
|
||||
color: #d9c8b2;
|
||||
font-size: 18rpx;
|
||||
}
|
||||
.pillar-title,
|
||||
.pillar-desc {
|
||||
display: block;
|
||||
}
|
||||
.pillar-title {
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.pillar-desc {
|
||||
margin-top: 5rpx;
|
||||
color: rgba(255, 255, 255, 0.62);
|
||||
font-size: 18rpx;
|
||||
line-height: 1.55;
|
||||
}
|
||||
.flow-card {
|
||||
margin-top: 22rpx;
|
||||
padding: 32rpx 24rpx;
|
||||
border: 1rpx solid #e6ded5;
|
||||
border-radius: 20rpx;
|
||||
background: #efece6;
|
||||
text-align: center;
|
||||
}
|
||||
.flow-eyebrow,
|
||||
.flow-title,
|
||||
.flow-sub {
|
||||
display: block;
|
||||
}
|
||||
.flow-eyebrow {
|
||||
color: #8a6846;
|
||||
font-size: 18rpx;
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
.flow-title {
|
||||
margin-top: 6rpx;
|
||||
font: 30rpx serif;
|
||||
}
|
||||
.flow-sub {
|
||||
margin-top: 8rpx;
|
||||
color: #77736b;
|
||||
font-size: 18rpx;
|
||||
}
|
||||
.flow-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16rpx;
|
||||
margin-top: 26rpx;
|
||||
text-align: left;
|
||||
}
|
||||
.flow-item {
|
||||
padding: 18rpx;
|
||||
border: 1rpx solid #e6ded5;
|
||||
border-radius: 14rpx;
|
||||
background: #fff;
|
||||
}
|
||||
.flow-step,
|
||||
.flow-name,
|
||||
.flow-desc {
|
||||
display: block;
|
||||
}
|
||||
.flow-step {
|
||||
color: #8a6846;
|
||||
font-size: 18rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.flow-name {
|
||||
margin-top: 5rpx;
|
||||
font-size: 21rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
.flow-desc {
|
||||
margin-top: 6rpx;
|
||||
color: #77736b;
|
||||
font-size: 17rpx;
|
||||
line-height: 1.5;
|
||||
}
|
||||
Reference in new issue
Block a user