Files
Yeomai 7d5db6a867 新增「我的订单」页面(订单中心)
- 微信审核要求交易类小程序提交订单中心 path,之前小程序没有订单页
- 新页面 pages/orders/orders:列表展示商品名 / 状态 / 订单号 / 金额 / 下单时间,接 GET /v1/orders
- 我的页新增「我的订单」入口,文案走后台配置 profile.menu.orders
- utils/api.js 补 getOrders(),utils/format.js 补 toDateTimeString()
2026-10-01 12:22:11 +08:00

60 lines
1.9 KiB
Plaintext

<!--pages/wode/wode.wxml-->
<van-popup show="{{ showCode }}" bind:close="onCodeClose">
<view class="code-container">
<text wx:if="{{text6}}" class="tip-text">{{text6}}</text>
<van-image
show-menu-by-longpress="true"
use-loading-slot
use-error-slot
width="600rpx"
height="816rpx"
src="{{qrcodeUrl}}"
/>
<van-loading slot="loading" type="spinner" size="20" vertical />
</view>
</van-popup>
<scroll-view class="container" scroll-y enable-flex type="custom">
<view class="login">
<view class="touxiangimg">
<image class="loginuserimg" src="{{headiconUrl}}" mode="aspectFill" />
</view>
<view class="userinfo_name">
<text>{{userNameText}}</text>
<button class="loginbtn" bindtap="toLoginOrOut" plain>{{loginBtnText}}</button>
</view>
</view>
<button wx:if="{{isLoggedIn}}" class="functions2" bind:tap="toChangeUserInfo">
<text class="zuobianwenzi">{{text2}}</text>
<text class="jiantou"> > </text>
</button>
<button class="functions2" bind:tap="toOrders">
<text class="zuobianwenzi">{{ordersText}}</text>
<text class="jiantou"> > </text>
</button>
<button class="functions2" open-type="share">
<text class="zuobianwenzi">{{text3}}</text>
<text class="jiantou"> > </text>
</button>
<button class="functions2" open-type="contact">
<text class="zuobianwenzi">{{text4}}</text>
<text class="jiantou"> > </text>
</button>
<button class="functions2" bind:tap="showQrcode">
<text class="zuobianwenzi">{{text5}}</text>
<text class="jiantou"> > </text>
</button>
<view class="version">
<text style="display: block;">Version {{version}}</text>
<text style="font-size: 20rpx;display: block;">Copyright<text style="font-size: 15rpx;position: relative;top: -10rpx;right: 0rpx;">©</text> 2026 YelayMaths. All Rights Reserved.</text>
</view>
</scroll-view>