dm-wechat-mini/pages/help/index/index.wxml
2025-04-02 16:02:12 +08:00

156 lines
6.5 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>
<view class="bg">
<image class="image" src="/assets/icon/my/login-bg.png" style="top:{{navBarHeight}}px"/>
</view>
<nav-bar class="nav-bar" id="navBar">
<image class="logo" src="/assets/icon/navbar/lanfeng.png"/>
</nav-bar>
<view class="choose-community" bind:tap="goToCommunity">
<view class="text">
{{
currentCommunity.id?currentCommunity.name:'请选择小区'
}}
</view>
<image class="arrow" src="/assets/icon/help/arrow-down.png"/>
</view>
<view class="address-panel">
<view class="ap-item send" bind:tap="goToAddress">
<view class="icon send">送</view>
<!-- <image class="icon" src="/assets/icon/help/send@2x.png"/> -->
<view class="text">
<block wx:if="{{currentAddress&&currentAddress.id}}">
<view class="title {{currentAddress.community_name?'bold':''}}">
{{currentAddress.community_name}}
{{currentAddress.community_building_name}}
{{currentAddress.address_detail}}
</view>
<view class="sub-title">
{{currentAddress.name}} {{genderKV[currentAddress.gender]}} {{currentAddress.phone}}
</view>
</block>
<block wx:else>
<view class="title">送达地址</view>
<view class="sub-title"></view>
</block>
</view>
<image class="arrow" src="/assets/icon/help/arrow-right@2x.png"/>
</view>
<view class="ap-item take" bind:tap="goToAddPackage">
<!-- <image class="icon" src="/assets/icon/help/take@2x.png"/> -->
<view class="icon get">取</view>
<view class="text" wx:if="{{package.name}}">
<view class="title {{package.name?'bold':''}}">{{package.name}}</view>
<view class="sub-title">共计 {{package.count}} 个包裹</view>
</view>
<view class="text" wx:else>
<view class="title">选择驿站取件</view>
<view class="sub-title"></view>
</view>
<image class="arrow" src="/assets/icon/help/arrow-right@2x.png"/>
</view>
<view class="bottom">
<view class="item">
<image class="icon" src="/assets/icon/help/icon1.png"/>
<view class="text">方便快捷</view>
</view>
<view class="item">
<image class="icon" src="/assets/icon/help/icon2.png"/>
<view class="text">平价亲民</view>
</view>
<view class="item">
<image class="icon" src="/assets/icon/help/icon3.png"/>
<view class="text">准时送达</view>
</view>
</view>
</view>
<button type="primary" class="order-button" bind:tap="preOrder" loading="{{preOrdering}}">立即下单</button>
<view class="login-panel" wx:if="{{!isLogin}}">
<image class="icon" src="/assets/icon/help/redpacket@2x.png"/>
<view class="text">登录后, 立享快递代取服务</view>
<navigator url="/pages/login/login">
<button class="button" size="mini">立即登录</button>
</navigator>
</view>
<view class="action-bar">
<view bind:tap="navToHowToUse" class="item left">
<image src="/assets/icon/help/newbie.png" class="icon"/>
<view class="title">新手指南</view>
<view class="sub-title">使用流程</view>
</view>
<view class="item" bind:tap="navToWXGroup">
<image src="/assets/icon/help/join-group.png" class="icon"/>
<view class="title">{{appConfig.join_group_title}}</view>
<view class="sub-title">{{appConfig.join_group_desc}}</view>
</view>
<navigator url="/pages/my/promation/share/index" class="item right share">
<image src="/assets/icon/help/share.png" class="icon"/>
<view class="title">{{appConfig.share_button_title}}</view>
<view class="sub-title">{{appConfig.share_button_mini_desc}}</view>
</navigator>
</view>
<!-- <navigator url="/pages/my/promation/wx-group/index?communityId={{currentCommunity.id}}"
class="promotion-panel" wx:if="{{currentCommunity.id}}" wx:if="{{appConfig&&appConfig.join_group_title}}">
<view class="title right-arrow">
{{appConfig.join_group_title}}
</view>
<view class="sub-title">{{appConfig.join_group_desc}}</view>
</navigator> -->
</view>
<page-container show="{{isShowOrderConfirm}}" round close-on-slide-down
bind:enter="enterPageContainer" bind:leave="leavePageContainer" wx:if="{{isShowOrderConfirm}}">
<view class="content pc-content">
<view class="head">
<view class="kv-item">
<view class="key">送达地址</view>
<view class="value">
{{currentAddress.community_name+currentAddress.address_detail}}
</view>
</view>
<view class="kv-item">
<view class="key">取件数量</view>
<view class="value">{{preOrder.price_info.package_count}}个包裹</view>
</view>
</view>
<view class="spliter"></view>
<!-- <view class="kv-item">
<view class="key">订单总金额</view>
<view class="value money money-normal">
{{preOrder.price_info.original_amount}}
</view>
</view> -->
<view class="kv-item">
<view class="key">基础配送费</view>
<view class="value money money-normal">{{preOrder.price_info.base_delivery_amount}}</view>
</view>
<view class="kv-item" wx:if="{{preOrder.price_info.more_station_price}}">
<view class="key">
<label>多驿站费</label>
<label class="station-count">{{package.stationCount}}个驿站)</label>
</view>
<view class="value money money-normal">{{preOrder.price_info.more_station_price}}</view>
</view>
<view class="kv-item" wx:if="{{preOrder.price_info.coupon_discount_amount}}">
<view class="key">优惠券</view>
<view class="value money yellow">{{preOrder.price_info.coupon_discount_amount}}</view>
</view>
<view class="kv-item" wx:if="{{preOrder.price_info.points_discount_amount}}">
<view class="key">积分抵</view>
<view class="value money yellow">{{preOrder.price_info.points_discount_amount}}</view>
</view>
<view class="kv-item">
<view class="key">
<view>应支付</view>
</view>
<view class="value money">{{preOrder.price_info.final_amount}}</view>
</view>
<text class="tips">{{preOrder.price_detail_text}}</text>
<button class="button" type="primary" bind:tap="getOrder" loading="{{ordering}}">确认下单</button>
</view>
</page-container>
<modal-view titleText="你有订单未支付!" okButtonText="去支付" show="{{isShowPayModal}}"
bind:ok="navToUnPayOrder"/>
<merchant-order id="merchantOrderComponent" bind:paySuccess="paySuccess" bind:payError="payError"/>