Commit dffc4a15 by 高淑倩

add: 订单列表跳订单详情

parent add05e5f
......@@ -73,6 +73,10 @@ wxService.page({
onShow: function () {
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) {
wx.showLoading({
title: '加载中',
......
......@@ -27,7 +27,7 @@
</view>
<text class="order-status">待付款</text>
</view>
<view class="pro-list">
<view class="pro-list" data-id="{{item.id}}" bindtap="handelDetail">
<scroll-view scroll-x="true">
<view class="uploadWrap" scroll-x="true">
<block wx:for='{{item.skuVOList}}' wx:for-item="sub" wx:key="s" >
......
// 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