diff --git a/pages.json b/pages.json index 5ecd202..51badd3 100644 --- a/pages.json +++ b/pages.json @@ -1022,14 +1022,22 @@ "navigationBarTitleText": "我的小店" } }, - //****************** 通知消息 ****************** { - "path": "message/index", + "path": "futures/order", "style": { // #ifdef H5 "navigationStyle": "custom", // #endif - "navigationBarTitleText": "消息中心" + "navigationBarTitleText": "我的订单" + } + }, + { + "path": "futures/order_details", + "style": { + // #ifdef H5 + "navigationStyle": "custom", + // #endif + "navigationBarTitleText": "订单详情" } }, { @@ -1040,6 +1048,16 @@ // #endif "navigationBarTitleText": "交易下单" } + }, + //****************** 通知消息 ****************** + { + "path": "message/index", + "style": { + // #ifdef H5 + "navigationStyle": "custom", + // #endif + "navigationBarTitleText": "消息中心" + } } ] }, diff --git a/pages_promotion/futures/my_shop.vue b/pages_promotion/futures/my_shop.vue index fb08d94..10df25a 100644 --- a/pages_promotion/futures/my_shop.vue +++ b/pages_promotion/futures/my_shop.vue @@ -5,9 +5,9 @@ - - 187****4859的小店 - + + {{ info.nickname || info.username }}的小店 + 点击完善信息 @@ -16,7 +16,7 @@ 小店订单 - + @@ -41,27 +41,30 @@ export default { data() { return { + // 菜单列表 (all:全部,stock:库存,release:已上架,sold:已售卖) menu: [ { image: 'public/static/img/futures/my_shop_order_sell.png', title: '小店销售订单', desc: '显示当前全部正在出售中的订单', background: '#eaebff', + status: 'release', },{ image: 'public/static/img/futures/my_shop_order_buy.png', title: '小店采购订单', desc: '显示当前全部已采购的订单', background: '#fbebeb', + status: 'all', },{ image: 'public/static/img/futures/my_shop_order_stock.png', title: '小店库存订单', desc: '显示当前全部正在库存中的订单', background: '#e2fdf8', + status: 'stock', } ], - - - + // 用户信息 + info: {} }; }, components: {}, @@ -71,20 +74,26 @@ export default { onReady(){ // 判断是否登录 if (!uni.getStorageSync('token')) this.$refs.login.open('/pages_promotion/futures/seckill'); - - - if (this.$refs.loadingCover) this.$refs.loadingCover.hide(); + this.getMemberInfo(); }, methods: { + // 获取个人信息 + getMemberInfo() { + this.$api.sendRequest({ + url: '/api/member/info', + success: res => { + if(parseInt(res.code) === 0){ + this.info = res.data; + console.log(this.info); + } - - - - - - - - + if (this.$refs.loadingCover) this.$refs.loadingCover.hide(); + }, + fail: res => { + if (this.$refs.loadingCover) this.$refs.loadingCover.hide(); + } + }); + }, }, onBackPress(options) { if (options.from === 'navigateBack') return false; diff --git a/pages_promotion/futures/order.vue b/pages_promotion/futures/order.vue new file mode 100644 index 0000000..c4495fb --- /dev/null +++ b/pages_promotion/futures/order.vue @@ -0,0 +1,322 @@ + + + + + diff --git a/pages_promotion/futures/order_details.vue b/pages_promotion/futures/order_details.vue new file mode 100644 index 0000000..a47c9dd --- /dev/null +++ b/pages_promotion/futures/order_details.vue @@ -0,0 +1,73 @@ + + + + +