feat: 搭建微信小程序展示端
- 初始化小程序工程配置与类型声明 - 增加首页、律所、律师列表、详情与历史页面 - 补充公共组件、运行时配置与示例素材
This commit is contained in:
60
frontend_miniprogram/miniprogram/pages/firm/index.wxml
Normal file
60
frontend_miniprogram/miniprogram/pages/firm/index.wxml
Normal file
@@ -0,0 +1,60 @@
|
||||
<view class="container-page firm-page">
|
||||
<!-- Custom Navigation Bar with transparent background initially if possible, or just standard -->
|
||||
<app-header title="{{firm.name}}" back="{{false}}" background="rgba(255,255,255,0.9)"></app-header>
|
||||
|
||||
<scroll-view class="page-content" scroll-y="true" type="list">
|
||||
|
||||
<!-- Hero Section -->
|
||||
<view class="hero-section">
|
||||
<image wx:if="{{firm.heroImage}}" class="hero-bg" mode="aspectFill" src="{{firm.heroImage}}"></image>
|
||||
<view wx:if="{{!firm.heroImage}}" class="hero-overlay"></view>
|
||||
<view class="hero-content">
|
||||
<view class="firm-stats">
|
||||
<view class="stat-item">
|
||||
<text class="stat-num">{{firm.officeCount}}</text>
|
||||
<text class="stat-label">办公机构</text>
|
||||
</view>
|
||||
<view class="stat-divider"></view>
|
||||
<view class="stat-item">
|
||||
<text class="stat-num">{{firm.lawyerCount}}</text>
|
||||
<text class="stat-label">专业律师</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- Content Container (Overlapping) -->
|
||||
<view class="content-container">
|
||||
|
||||
<!-- Address Card -->
|
||||
<view class="card address-card" bindtap="openLocation">
|
||||
<view class="address-info">
|
||||
<text class="address-label">总部地址</text>
|
||||
<text class="address-text">{{firm.hqAddress}}</text>
|
||||
</view>
|
||||
<text class="address-icon">></text>
|
||||
</view>
|
||||
|
||||
<!-- Intro Section -->
|
||||
<view class="section">
|
||||
<view class="section-title">律所简介</view>
|
||||
<text class="intro-text">{{firm.intro}}</text>
|
||||
</view>
|
||||
|
||||
<!-- Practice Areas -->
|
||||
<view class="section">
|
||||
<view class="section-title">专业领域</view>
|
||||
<view class="tags-wrapper">
|
||||
<view class="area-tag" wx:for="{{firm.practiceAreas}}" wx:key="*this">{{item}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="safe-area-bottom" style="height: 120rpx;"></view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<!-- Bottom CTA -->
|
||||
<view class="bottom-bar safe-area-bottom">
|
||||
<button class="cta-btn" bindtap="goLawyerList">查找专业律师</button>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user