refactor: 抽取首页标准模块

This commit is contained in:
que01 committed 2026-09-22 22:39:16 +08:00
1 parent 777bdaa766
commit 0c4efdef1a
15 files changed
+17 -5

No files matched your search

@@ -0,0 +1 @@
Component({ properties: { brand: { type: Object, value: {} } } });
@@ -0,0 +1 @@
{"component":true}
@@ -0,0 +1 @@
<view class="founder"><image class="avatar" src="{{brand.avatarUrl || 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=240&h=240&q=80'}}"/><view><text class="founder-name">{{brand.founder}}</text><text class="founder-title">{{brand.title}}</text><text class="quote">“{{brand.slogan}}”</text></view><text class="badge">亲自主理量房</text></view>
@@ -0,0 +1 @@
.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}.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}