You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<view class="container">
|
|
|
|
|
<view class="header">
|
|
|
|
|
<text class="title">{{productName}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="content">
|
|
|
|
|
<view class="spec-card">
|
|
|
|
|
<view class="spec-item">
|
|
|
|
|
<text class="label">规格:</text>
|
|
|
|
|
<text class="value">{{specification}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="spec-item">
|
|
|
|
|
<text class="label">单价:</text>
|
|
|
|
|
<text class="value price">¥{{price || 0}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="spec-info">
|
|
|
|
|
<text>您已选择此规格进行估价</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="quantity-section">
|
|
|
|
|
<text class="label">件数:</text>
|
|
|
|
|
<input
|
|
|
|
|
class="quantity-input"
|
|
|
|
|
type="number"
|
|
|
|
|
value="{{quantity}}"
|
|
|
|
|
bindinput="onQuantityChange"
|
|
|
|
|
min="1"
|
|
|
|
|
/>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="calculate-section">
|
|
|
|
|
<button bindtap="calculatePrice" type="primary" class="calculate-button">计算价格</button>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="result-section">
|
|
|
|
|
<text class="result-label">预估:</text>
|
|
|
|
|
<text class="result-value">¥{{totalPrice > 0 ? totalPrice : ''}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="action">
|
|
|
|
|
<button bindtap="goBack" type="default">返回</button>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|