Files
rlz/coupon/pages/peizhen/peizhendetail.wxml
renjianbo ea6a6087d4 fix: comprehensive mini program bug fixes - image URLs, API calls, UI issues
- Fix hospital/service/caregiver images blank by prepending baseUrl for relative paths
- Add icon name mapping and resolveIcon() for service icon fallback
- Fix login phone field: res.phone -> res.data.phoneNumber
- Fix pagination stuck at page 1 in mechanism.js and qianbao.js
- Fix response parsing to handle both {code:200} and {erro:0} formats
- Replace raw wx.request calls with unified request() utility (6+ instances)
- Fix hardcoded phone number exposure in orderdetail.js
- Fix broken privacy URL (http: -> https://)
- Fix expired date range in goddess.wxml (2025 -> 2030)
- Remove duplicate refund box in orderdetail.wxml
- Fix service icon fallback ternary logic
- Add proper error handling replacing empty .catch() blocks

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-07 10:46:31 +08:00

125 lines
4.3 KiB
Plaintext

<!--pages/goddess/goddess.wxml-->
<van-nav-bar title="下单" left-text="" right-text="" left-arrow bind:click-left="onClickLeft" bind:click-right="onClickRight" style=" position: fixed;left: 0;top: 0;width: 100%;z-index: 2;" />
<view style="margin-top: {{height+12}}px;">
<view class="card_con" wx:key="key">
<view style='display:flex;background-color: white;'>
<view class="Group">
<view class="Group-image">
<image src="{{item.icon.indexOf('http') === 0 ? item.icon : '../image/home/' + item.icon + '.png'}}"></image>
</view>
<view class="content">
<view style="display: flex; flex-direction:row;align-items : flex-end;">
<view class="title1">{{item.title}}</view>
<view class="title2"></view>
<view wx:if="{{item.sex==1}}" class="title3">{{"男"}}</view>
<view wx:if="{{item.sex==0}}" class="title3">{{"女"}}</view>
<view class="title4">{{item.price}}元/次</view>
</view>
<view class="tejia">
<view class="Price2">{{item.describe}}</view>
</view>
</view>
</view>
</view>
<view style="height: 1rpx;background: #ECECEC;"></view>
</view>
<view class="card_cont" wx:key="key" style="margin-top: 24rpx;">
<view class="title-left">
{{"完善信息"}}
</view>
<!--选择器-->
<view class="row-wrap">
<view class="xing" style="color: #FF6E6E;">*</view>
<view class="label">就诊医院</view>
<view class="label-right">
<picker bindchange="bindPickerChange2" value="{{objectIndex}}" range="{{objectArray}}" range-key="text">
<view class="picker">
{{objectArray[objectIndex].text}} >
</view>
</picker>
</view>
</view>
<!--end-->
<!-- <view class="row-wrap">
<view class="xing" style="color: #FF6E6E;">*</view>
<view class="label">就诊人姓名</view>
<view class="label-right">
<input class="input" bindinput="bindNameInput" type="text" placeholder="请输入就诊人姓名" />
</view>
</view> -->
<view class="row-wrap">
<view class="xing" style="color: #FF6E6E;">*</view>
<view class="label">就诊人电话</view>
<view class="label-right">
<input bindinput="bindPhoneInput" class="input" type="number" placeholder="请输入就诊人电话" />
</view>
</view>
<view class="row-wrap">
<view class="label" style="margin-left: 16rpx;">身份证号</view>
<view class="label-right">
<input bindinput="bindIdcardInput" class="input" type="idcard" placeholder="请输入身份证号(可选)" />
</view>
</view>
<view class="row-wrap">
<view class="label" style="margin-left: 16rpx;">报告收件地址</view>
<view class="label-right">
<input bindinput="bindAdressInput" class="input" type="text" placeholder="请输入收件地址" />
</view>
</view>
<view style="height: 1rpx;background: #ECECEC;"></view>
<view class="row-wrap">
<view class="label" style="margin-left: 16rpx;">服务时间</view>
<view class="label-right">
<picker mode="date" value="{{date}}" start="2022-01-01" end="2030-12-31" bindchange="bindDateChange">
<view class="picker">
{{seckill_start}}
</view>
</picker>
</view>
</view>
</view>
<view class="card_cont" wx:key="key" style="margin-top: 24rpx;">
<view class="title-left">
{{"特别需求"}}
</view>
<view style="height: 1rpx;background: #ECECEC;"></view>
<view class="peisong-way" style="margin-bottom: 30rpx;">
<textarea style="width: 620rpx;height: 4em;font-size: 26rpx;padding-left: 19rpx;padding-top: 19rpx;" model:value="{{beizhu}}" bindinput="input" placeholder="填写补充说明。" />
</view>
</view>
<view style="font-size: 28rpx;color: #999999;margin-top:40rpx;margin-left: 40rpx;margin-right: 20rpx;">
计费说明:陪同客户完成当天全部的诊疗流程,服务按次收费。
</view>
<view class="payment">
<view style="line-height: 56rpx;color:#333;">
<text>总计金额:</text>
<text style="font-size:40rpx;color:#FF8F1F;margin-left:20rpx;">{{item.price}}</text>
<text>元</text>
</view>
<view class="immediately" bindtap="confirm_payy">购买服务</view>
</view>
</view>