Initial commit: TradeMate 外贸小助手 MVP
项目结构: - backend/ Python FastAPI 后端 - uni-app/ uni-app跨端前端 - docs/ 设计文档 - docker-compose.yml Docker编排 - nginx/scripts/systemd 运维配置 已完成功能: - 用户认证 (JWT) - 智能翻译 + 回复建议 - 营销素材生成 - 客户管理 + 沉默检测 - 报价单管理 - 产品库管理 - 汇率换算 - 推送通知 (uni-push) - WhatsApp Webhook框架 - Celery定时任务
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<view class="container">
|
||||
<view class="tabs">
|
||||
<view class="tab {{activeTab === 'generate' ? 'active' : ''}}" data-tab="generate" bindtap="switchTab">生成文案</view>
|
||||
<view class="tab {{activeTab === 'keywords' ? 'active' : ''}}" data-tab="keywords" bindtap="switchTab">关键词</view>
|
||||
</view>
|
||||
|
||||
<view class="form-section">
|
||||
<view class="form-group">
|
||||
<text class="form-label">产品名称 *</text>
|
||||
<input class="form-input" placeholder="如:户外折叠椅" value="{{productName}}" data-field="productName" bindinput="onInput" />
|
||||
</view>
|
||||
|
||||
<view class="form-group">
|
||||
<text class="form-label">产品描述 *</text>
|
||||
<textarea class="form-input form-textarea" placeholder="描述产品的特点、材质、优势..." value="{{description}}" data-field="description" bindinput="onInput" auto-height />
|
||||
</view>
|
||||
|
||||
<view class="form-group">
|
||||
<text class="form-label">产品类别</text>
|
||||
<input class="form-input" placeholder="如:家具、户外用品" value="{{category}}" data-field="category" bindinput="onInput" />
|
||||
</view>
|
||||
|
||||
<view class="select-row" wx:if="{{activeTab === 'generate'}}">
|
||||
<view class="select-group">
|
||||
<text class="form-label">目标市场</text>
|
||||
<input class="form-input" placeholder="如:US importers" value="{{target}}" bindinput="onInput" data-field="target" />
|
||||
</view>
|
||||
<view class="select-group">
|
||||
<text class="form-label">风格</text>
|
||||
<input class="form-input" placeholder="如:professional" value="{{style}}" bindinput="onInput" data-field="style" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<button class="btn-generate" bindtap="{{activeTab === 'generate' ? 'generateContent' : 'generateKeywords'}}" loading="{{loading}}">
|
||||
{{activeTab === 'generate' ? '生成营销文案' : '生成关键词'}}
|
||||
</button>
|
||||
</view>
|
||||
|
||||
<view class="results" wx:if="{{activeTab === 'generate' && results.length > 0}}">
|
||||
<view class="section-title">生成结果</view>
|
||||
<view class="result-item" wx:for="{{results}}" wx:key="style">
|
||||
<view class="result-header">
|
||||
<text class="result-style">{{item.style}}</text>
|
||||
<text class="result-provider">{{item.provider}}</text>
|
||||
</view>
|
||||
<text class="result-content">{{item.content}}</text>
|
||||
<view>
|
||||
<text class="copy-btn" bindtap="copyText" data-text="{{item.content}}">复制文案</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="keywords-section" wx:if="{{activeTab === 'keywords' && keywords.length > 0}}">
|
||||
<view class="section-title">关键词建议</view>
|
||||
<view class="keyword-list">
|
||||
<view class="keyword-tag" wx:for="{{keywords}}" wx:key="index">{{item}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user