Commit dffc4a15 by 高淑倩

add: 订单列表跳订单详情

parent add05e5f
...@@ -73,6 +73,10 @@ wxService.page({ ...@@ -73,6 +73,10 @@ wxService.page({
onShow: function () { onShow: function () {
this.initOrderList(this.data.pageNo, this.data.pageSize, this.data.trade) this.initOrderList(this.data.pageNo, this.data.pageSize, this.data.trade)
}, },
handelDetail(e) {
const {id} = e.currentTarget.dataset
wxService.router(`/pages/orderDetail/orderDetail?id=${id}`)
},
initOrderList(pageNo, pageSize,trade) { initOrderList(pageNo, pageSize,trade) {
wx.showLoading({ wx.showLoading({
title: '加载中', title: '加载中',
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</view> </view>
<text class="order-status">待付款</text> <text class="order-status">待付款</text>
</view> </view>
<view class="pro-list"> <view class="pro-list" data-id="{{item.id}}" bindtap="handelDetail">
<scroll-view scroll-x="true"> <scroll-view scroll-x="true">
<view class="uploadWrap" scroll-x="true"> <view class="uploadWrap" scroll-x="true">
<block wx:for='{{item.skuVOList}}' wx:for-item="sub" wx:key="s" > <block wx:for='{{item.skuVOList}}' wx:for-item="sub" wx:key="s" >
......
// pages/orderDetail/orderDetail.js // pages/orderDetail/orderDetail.js
Page({ const app = getApp()
const wxService = require('../../utils/wxService')
const utils = require('../../utils/util')
const envInfo = require('../../config/index').envInfo
wxService.page({
/** /**
* 页面的初始数据 * 页面的初始数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment