diff --git a/mini-app/project.config.json b/mini-app/project.config.json
index 31600f617..3517b1361 100644
--- a/mini-app/project.config.json
+++ b/mini-app/project.config.json
@@ -134,6 +134,12 @@
"pathName": "pages/index",
"query": "",
"scene": null
+ },
+ {
+ "id": -1,
+ "name": "订单列表",
+ "pathName": "pages/mall/order/order-list",
+ "scene": null
}
]
}
diff --git a/mini-app/src/apis/orderApis.js b/mini-app/src/apis/orderApis.js
index 7bd4c76ea..35dd31847 100644
--- a/mini-app/src/apis/orderApis.js
+++ b/mini-app/src/apis/orderApis.js
@@ -20,6 +20,13 @@ class OrderApis {
})
}
+ getOrderList(data) {
+ return request.get({
+ url: baseUrl + 'winery/user_orders/list',
+ data: data
+ })
+ }
+
}
export default new OrderApis()
diff --git a/mini-app/src/app.wpy b/mini-app/src/app.wpy
index 9db0ff705..2dfe37c24 100644
--- a/mini-app/src/app.wpy
+++ b/mini-app/src/app.wpy
@@ -105,6 +105,8 @@ pages: [
'pages/mall/goods-detail',
'pages/mall/user/user-address',
'pages/mall/user/user-address-list',
+'pages/mall/order/order-list',
+'pages/mall/shopping-car/shopping-car-list',
'pages/winery/winery-detail'
],
@@ -151,6 +153,10 @@ usingComponents: {
"van-loading": "./vant/loading/index",
"van-empty": "./vant/empty/index",
"van-notice-bar": "./vant/notice-bar/index",
+"van-tabs": "./vant/tabs/index",
+"van-tab": "./vant/tab/index",
+"van-submit-bar": "./vant/submit-bar/index",
+
"van-area": "./vant/area/index"
}
}
diff --git a/mini-app/src/components/mall/order/order-list-body.wpy b/mini-app/src/components/mall/order/order-list-body.wpy
new file mode 100644
index 000000000..7ae35e157
--- /dev/null
+++ b/mini-app/src/components/mall/order/order-list-body.wpy
@@ -0,0 +1,112 @@
+
+
+
+const parseImage = (imageKey) => {
+return 'https://winery-1257413599.cos.ap-beijing.myqcloud.com/' + imageKey
+}
+module.exports.parseImage = parseImage;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 申请退款
+ 查看详情
+
+
+
+
+
+
+
+
+
+
+
+
+{
+navigationBarTitleText: ''
+}
+
diff --git a/mini-app/src/components/mall/shopping-car/shopping-car-item.wpy b/mini-app/src/components/mall/shopping-car/shopping-car-item.wpy
new file mode 100644
index 000000000..b86c2f589
--- /dev/null
+++ b/mini-app/src/components/mall/shopping-car/shopping-car-item.wpy
@@ -0,0 +1,64 @@
+
+
+
+const parseImage = (imageKey) => {
+return 'https://winery-1257413599.cos.ap-beijing.myqcloud.com/' + imageKey
+}
+module.exports.parseImage = parseImage;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{
+}
+
diff --git a/mini-app/src/components/mall/tab/mall-home.wpy b/mini-app/src/components/mall/tab/mall-home.wpy
index c883632d0..8ce674ad8 100644
--- a/mini-app/src/components/mall/tab/mall-home.wpy
+++ b/mini-app/src/components/mall/tab/mall-home.wpy
@@ -190,6 +190,8 @@ import store from '@/store'
import { mapActions, mapState } from '@wepy/x'
import defaultMix from '../../../mixins/defaultMix'
import orderApis from '../../../apis/orderApis'
+import appManager from '../../../appManager'
+import { navDefine } from '../../../store/constant/navDefine'
wepy.component({
store,
@@ -218,6 +220,9 @@ wepy.component({
methods: {
onShoppingCar() {
+ appManager.navigateTo(navDefine.SHOPPING_CAR_LIST)
+ return
+
let test = {
goodsId: '12',
goodsName: 'test',
@@ -244,7 +249,6 @@ wepy.component({
paySign: payData.paySign,
success: function(res) {
-
},
fail: function(res) {
}
diff --git a/mini-app/src/components/mall/tab/mall-my.wpy b/mini-app/src/components/mall/tab/mall-my.wpy
index c6bfff65f..2dc39a355 100644
--- a/mini-app/src/components/mall/tab/mall-my.wpy
+++ b/mini-app/src/components/mall/tab/mall-my.wpy
@@ -30,7 +30,7 @@
border: transparent 1px solid;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
- width: 660rpx;
+ width: 620rpx;
margin-top: 20px;
box-shadow: 4px 4px 10px #eeeeee;
background-color: orange;
diff --git a/mini-app/src/pages/mall/goods-detail.wpy b/mini-app/src/pages/mall/goods-detail.wpy
index 69643ae59..d1b6687f2 100644
--- a/mini-app/src/pages/mall/goods-detail.wpy
+++ b/mini-app/src/pages/mall/goods-detail.wpy
@@ -19,11 +19,11 @@ module.exports.parseImage = parseImage;
-
+
-
+
diff --git a/mini-app/src/pages/mall/order/order-list.wpy b/mini-app/src/pages/mall/order/order-list.wpy
new file mode 100644
index 000000000..67f06d39a
--- /dev/null
+++ b/mini-app/src/pages/mall/order/order-list.wpy
@@ -0,0 +1,108 @@
+
+
+
+const parseImage = (imageKey) => {
+return 'https://winery-1257413599.cos.ap-beijing.myqcloud.com/' + imageKey
+}
+module.exports.parseImage = parseImage;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{
+navigationBarTitleText: '',
+
+usingComponents: {
+'order-list-body': '../../../components/mall/order/order-list-body'
+}
+
+
+}
+
diff --git a/mini-app/src/pages/mall/shopping-car/shopping-car-list.wpy b/mini-app/src/pages/mall/shopping-car/shopping-car-list.wpy
new file mode 100644
index 000000000..622e16496
--- /dev/null
+++ b/mini-app/src/pages/mall/shopping-car/shopping-car-list.wpy
@@ -0,0 +1,166 @@
+
+
+
+const parseImage = (imageKey) => {
+return 'https://winery-1257413599.cos.ap-beijing.myqcloud.com/' + imageKey
+}
+module.exports.parseImage = parseImage;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 全选
+
+
+
+
+
+
+
+
+
+
+
+{
+navigationBarTitleText: '',
+
+usingComponents: {
+'shopping-car-item': '../../../components/mall/shopping-car/shopping-car-item'
+}
+
+
+}
+
diff --git a/mini-app/src/store/constant/nav/my.js b/mini-app/src/store/constant/nav/my.js
index b6e3376e3..feb7d88e2 100644
--- a/mini-app/src/store/constant/nav/my.js
+++ b/mini-app/src/store/constant/nav/my.js
@@ -4,16 +4,16 @@ export const myMenuList1 = [
{
name: '全部订单',
icon: imgbaseUrl + 'doctor.png',
- path: '/pages/mail/order/orderList'
+ path: '/pages/mall/order/order-list'
},
{
name: '待付款',
icon: imgbaseUrl + 'doctor.png',
- path: '/pages/mail/order/orderList?orderStatus=1'
+ path: '/pages/mall/order/order-list?orderStatus=1'
}, {
name: '待收货',
icon: imgbaseUrl + 'doctor.png',
- path: '/pages/mail/order/orderList?orderStatus=2'
+ path: '/pages/mall/order/order-list?orderStatus=2'
}
]
export const myMenuList2 = [
diff --git a/mini-app/src/store/constant/navDefine.js b/mini-app/src/store/constant/navDefine.js
index 9322916f9..fcc29ba10 100644
--- a/mini-app/src/store/constant/navDefine.js
+++ b/mini-app/src/store/constant/navDefine.js
@@ -13,7 +13,8 @@ export const navDefine = {
MY_MENU1: myMenuList1,
MY_MENU2: myMenuList2,
- MY_MENU3: myMenuList3
+ MY_MENU3: myMenuList3,
+
+ SHOPPING_CAR_LIST: '/pages/mall/shopping-car/shopping-car-list'
}
-