diff --git a/image/beizi2.jpg b/image/beizi2.jpg new file mode 100644 index 0000000..cc3570d Binary files /dev/null and b/image/beizi2.jpg differ diff --git a/image/beizi3.jpg b/image/beizi3.jpg new file mode 100644 index 0000000..9e7c64f Binary files /dev/null and b/image/beizi3.jpg differ diff --git a/image/beizi4.jpg b/image/beizi4.jpg new file mode 100644 index 0000000..616ef4f Binary files /dev/null and b/image/beizi4.jpg differ diff --git a/image/beizi5.jpg b/image/beizi5.jpg new file mode 100644 index 0000000..c6d6f7c Binary files /dev/null and b/image/beizi5.jpg differ diff --git a/image/beizi6.jpg b/image/beizi6.jpg new file mode 100644 index 0000000..c639833 Binary files /dev/null and b/image/beizi6.jpg differ diff --git a/image/beizi7.jpg b/image/beizi7.jpg new file mode 100644 index 0000000..40e644f Binary files /dev/null and b/image/beizi7.jpg differ diff --git a/image/zhentou1.jpg b/image/zhentou1.jpg new file mode 100644 index 0000000..488f245 Binary files /dev/null and b/image/zhentou1.jpg differ diff --git a/image/zhentou2.jpg b/image/zhentou2.jpg new file mode 100644 index 0000000..7a2f934 Binary files /dev/null and b/image/zhentou2.jpg differ diff --git a/package.json b/package.json new file mode 100644 index 0000000..c3e8488 --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "dx-wxapp", + "version": "1.0.0", + "description": "微信小程序 商城(uni-app 版本的代码请看[uni分支](https://github.com/lin-xin/wxapp-mall/tree/uni),可打包成APP、小程序、H5)", + "main": "app.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "http://62.234.217.137:3000/Big-Data-Lab/WxApp.git" + }, + "author": "", + "license": "ISC", + "dependencies": { + "@vant/weapp": "^1.11.6", + "tdesign-miniprogram": "^1.6.0" + } +} diff --git a/page/component/myOrders2/myOrder2.js b/page/component/myOrders2/myOrder2.js new file mode 100644 index 0000000..aee3e84 --- /dev/null +++ b/page/component/myOrders2/myOrder2.js @@ -0,0 +1,50 @@ +const app = getApp() +const baseUrl = app.globalData.baseUrl +// page/component/orders/orders.js +Page({ + // onLoad: function (options) { + // this.setData({ + // orders: [...this.data.orders, options] + // }); + // }, + data: { + address: {}, + hasAddress: false, + total: 0, + orders: [], + }, + onLoad() { + var self = this + // 获取statu为2的待收货订单 + wx.request({ + url: baseUrl + "/order/loadData", + method: "POST", + data: { + userId: 1, + statu: 2 + }, + success(res) { + self.setData({ + orders: res.data.data, + }) + console.log('orders',self.data.orders) + }, + }) + }, + onReady() { + }, + + onShow: function () { + const self = this + wx.getStorage({ + key: "address", + success(res) { + self.setData({ + address: res.data, + hasAddress: true, + }) + }, + }) + }, + +}) diff --git a/page/component/myOrders2/myOrder2.json b/page/component/myOrders2/myOrder2.json new file mode 100644 index 0000000..a7c2ac6 --- /dev/null +++ b/page/component/myOrders2/myOrder2.json @@ -0,0 +1,3 @@ +{ + "navigationBarTitleText": "待收货订单" +} \ No newline at end of file diff --git a/page/component/myOrders2/myOrder2.wxml b/page/component/myOrders2/myOrder2.wxml new file mode 100644 index 0000000..01b2a0e --- /dev/null +++ b/page/component/myOrders2/myOrder2.wxml @@ -0,0 +1,24 @@ + + + 退款 / 售后 + + + + + + + + + + {{item.title}} + {{item.specs}} + + + ¥{{item.price}} + ×{{item.num}} + + + + + + \ No newline at end of file diff --git a/page/component/myOrders2/myOrder2.wxss b/page/component/myOrders2/myOrder2.wxss new file mode 100644 index 0000000..c67aac0 --- /dev/null +++ b/page/component/myOrders2/myOrder2.wxss @@ -0,0 +1,80 @@ +.orders-list { + display: flex; + align-items: center; + padding: 20rpx; + height: 180rpx; + border-bottom: 10rpx solid #ededed; +} + +.orders-thumb { + width: 180rpx; + height: 180rpx; + margin-right: 20rpx; +} + +.orders-info { + flex: 1; + display: flex; + justify-content: space-between; +} + +.orders-info-left { + display: flex; + flex-direction: column; + justify-content: space-between; +} + +.orders-pro-name { + font-size: 32rpx; + font-weight: bold; +} + +.order-specs { + font-size: 28rpx; + color: #888; + margin-top: 5rpx; +} + +.orders-info-right { + text-align: right; + display: flex; + flex-direction: column; + justify-content: space-between; +} + +.orders-pro-price { + font-size: 32rpx; + font-weight: bold; + color: #AB956D; +} + +.orders-count-num { + font-size: 28rpx; + color: #888; +} + +.orders-no-refund { + height: 90rpx; + line-height: 90rpx; + font-size: 16px; + color: #f56464; + font-weight: bold; + border-bottom: 20rpx solid #ededed; + text-align: center; +} + +.orders-no-refund::after { + position: absolute; + right: 30rpx; + top: 34rpx; + content: ''; + width: 16rpx; + height: 16rpx; + border-top: 4rpx solid #7f7f7f; + border-right: 4rpx solid #7f7f7f; + transform: rotate(45deg); +} + +.orders-box { + padding-bottom: 105rpx; +} \ No newline at end of file