diff --git a/Utils/Api.js b/Utils/Api.js index 8443901..7cd973d 100644 --- a/Utils/Api.js +++ b/Utils/Api.js @@ -326,6 +326,12 @@ export const getListOutRechargePrice = params => { export const orderToUNionPay = params => { return POST('POST', `${base}/outRechargeOrder/orderToPay`, params).then(res => res.data); } +//工会卡支付 export const hltUnionCardPayUnion = params => { return POST('POST', `${base}/outRechargeOrder/hltUnionCardPay`, params).then(res => res.data); } +//话费列表 +export const getUserOrderListhuafei = params => { + return POST('GET', `${base}/outRechargeOrder/getUserOrderList`, params).then(res => res.data); +} + diff --git a/pages.json b/pages.json index 8719eb2..8f4e9cb 100644 --- a/pages.json +++ b/pages.json @@ -511,6 +511,16 @@ "backgroundColorTop": "#0083f5", "navigationBarTextStyle": "white" } + },{ + "path": "unionPay-orderList/unionPay-orderList", + "style": { + "enablePullDownRefresh": false, + "navigationBarTitleText": "话费订单", + "backgroundTextStyle": "light", + "navigationBarBackgroundColor": "#0083f5", + "backgroundColorTop": "#0083f5", + "navigationBarTextStyle": "white" + } } ] }], diff --git a/pages/tabBar/user/user.vue b/pages/tabBar/user/user.vue index 6d1d977..a91d0a4 100644 --- a/pages/tabBar/user/user.vue +++ b/pages/tabBar/user/user.vue @@ -54,6 +54,21 @@ + + + + 话费充值 + + + + + + + {{row.text}} + + + 卡券中心 @@ -164,6 +179,26 @@ icon: "pingjia" } ], + huafeiList:[ + { + text: '待支付', + icon: "fukuan" + }, + { + text: '已支付', + icon: "fahuo" + }, + { + text: '已完成', + icon: "shouhuo" + }, { + text: '已取消', + icon: "pingjia" + }, { + text: '已退款', + icon: "tuihuo" + } + ], // 工具栏列表 mytoolbarList: [{ url: '/pages/goods/recording/recording?id=1', @@ -349,6 +384,12 @@ url: '../../user/order_list/order_list?tbIndex=' + index }) }, + //话费充值 + toOrdehuafeirList(index) { + uni.navigateTo({ + url: '../../../subPages/unionPay-orderList/unionPay-orderList?tbIndex=' + index + }) + }, toLogin() { uni.showToast({ title: '请登录', diff --git a/subPages/unionPay-orderList/unionPay-orderList.vue b/subPages/unionPay-orderList/unionPay-orderList.vue new file mode 100644 index 0000000..7cd5161 --- /dev/null +++ b/subPages/unionPay-orderList/unionPay-orderList.vue @@ -0,0 +1,396 @@ + + + +