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

8 lines
1.9 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">今日可订</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">取餐方式</text><view class="choices"><button class="choice {{fulfillment === 'pickup' ? 'active' : ''}}" data-value="pickup" bindtap="chooseFulfillment">自取</button><button class="choice {{fulfillment === 'delivery' ? 'active' : ''}}" data-value="delivery" bindtap="chooseFulfillment">配送</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="例如:今天 12:30" bindinput="input" data-key="requestedTime"/></label><label wx:if="{{fulfillment === 'delivery'}}">配送地址<input name="deliveryAddress" placeholder="请输入配送地址" bindinput="input" data-key="deliveryAddress"/></label><label>备注<textarea placeholder="口味、餐具或其他说明" bindinput="input" data-key="note"></textarea></label></view>
<view class="notice">● 提交后由摊主人工确认,确认后再安排制作。</view><button class="submit" loading="{{submitting}}" disabled="{{submitting}}" bindtap="submit">{{submitting ? '提交中...' : '提交预约'}}</button>
</view>