Files
persionalBrand/apps/miniapp/pages/booking/index.wxml
T

8 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="page">
<view class="product"><view class="product-image"><image wx:if="{{service.coverUrl}}" src="{{service.coverUrl}}" mode="aspectFill"/><view wx:else class="dish-placeholder"></view></view><view class="product-copy"><text class="name">{{service.name || '选择服务'}}</text><text class="price">{{service.priceText || '沟通报价'}}</text></view><text class="available">{{template.available}}</text></view>
<view class="quantity"><text>数量</text><view class="stepper"><button bindtap="decrease">−</button><text>{{quantity}} 份</text><button bindtap="increase">+</button></view></view>
<view class="fulfillment"><text class="field-title">{{template.modeLabel}}</text><view class="choices"><button class="choice {{fulfillment === 'pickup' ? 'active' : ''}}" data-value="pickup" bindtap="chooseFulfillment">{{template.modeA}}</button><button class="choice {{fulfillment === 'delivery' ? 'active' : ''}}" data-value="delivery" bindtap="chooseFulfillment">{{template.modeB}}</button></view></view>
<view class="form"><label>怎么称呼<input name="customerName" placeholder="请输入你的称呼" bindinput="input" data-key="customerName"/></label><label>联系方式<input name="wechatId" placeholder="手机号或微信号" bindinput="input" data-key="wechatId"/></label><label>期望时间<input name="requestedTime" placeholder="例如:下周三 14:00" bindinput="input" data-key="requestedTime"/></label><label wx:if="{{fulfillment === 'delivery'}}">{{template.locationLabel}}<input name="deliveryAddress" placeholder="{{template.locationPlaceholder}}" bindinput="input" data-key="deliveryAddress"/></label><label>{{template.requestType === 'package' ? '备注' : '需求说明'}}<textarea placeholder="{{template.notePlaceholder}}" bindinput="input" data-key="note"></textarea></label></view>
<view class="notice">● {{template.submitNotice}}</view><button class="submit" loading="{{submitting}}" disabled="{{submitting}}" bindtap="submit">{{submitting ? '提交中...' : template.submitLabel}}</button>
</view>