diff --git a/api/order.js b/api/order.js
index 7e04004..b8dcf97 100644
--- a/api/order.js
+++ b/api/order.js
@@ -9,6 +9,10 @@ export const createOrderApi = (data) => {
export const orderListApi = (data) => {
return request.get('/order/order/order_list', data);
}
+//门店订单列表
+export const storeOrderListApi = (data) => {
+ return request.get('/order/order/store_order_list', data);
+}
//订单详情
export const orderDetailApi = (data) => {
diff --git a/config/app.js b/config/app.js
index 971d6b2..f1f7802 100644
--- a/config/app.js
+++ b/config/app.js
@@ -3,9 +3,9 @@ let WSS_URL
import store from "@/store/user.js"
// 环境
// let env = "dev"
-// let env = "prod"
+let env = "prod"
// let env = "release";
-let env = "local";
+// let env = "local";
switch (env) {
case 'dev':
@@ -17,7 +17,7 @@ switch (env) {
WSS_URL = 'wss://ceshi-multi-store.lihaink.cn/pull'
break;
case 'local':
- BASE_URL = 'http://192.168.1.231:8545';
+ BASE_URL = 'http://192.168.1.22:8545';
WSS_URL = 'wss://ceshi-multi-store.lihaink.cn/pull'
break;
default:
diff --git a/pages.json b/pages.json
index e30cb07..5c4b519 100644
--- a/pages.json
+++ b/pages.json
@@ -202,7 +202,7 @@
"path" : "delivery/index",
"style" :
{
- "navigationBarTitleText" : "配送员订单"
+ "navigationBarTitleText" : "门店订单"
}
}
]
diff --git a/pages/my/my.vue b/pages/my/my.vue
index 6fbab3d..16cc26c 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -123,7 +123,7 @@
-
+
diff --git a/pages/product/product.vue b/pages/product/product.vue
index 2163cc4..e44bdbf 100644
--- a/pages/product/product.vue
+++ b/pages/product/product.vue
@@ -55,7 +55,7 @@
const frequentlyList = ref([]);
let text = '没有商品'
let status = ref('loadmore')
- let list1 = ['零售', '商户', '会员']
+ let list1 = ['零售', '商户', '供货价']
let keyword = ref('');
let enable_flex=ref(true)
const where = ref({
diff --git a/pagesOrder/delivery/component/goods.vue b/pagesOrder/delivery/component/goods.vue
new file mode 100644
index 0000000..29d7c4c
--- /dev/null
+++ b/pagesOrder/delivery/component/goods.vue
@@ -0,0 +1,220 @@
+
+
+
+ {{order_id}}
+
+ 待付款
+
+
+ 待核销
+ 待核销
+ 已完成
+
+
+
+
+
+
+
+
+
+
+ {{item.store_name}}
+
+
+ ¥{{item.price}}
+
+
+
+
+ {{item.unit_name}}
+
+
+ x{{item.cart_num}}
+
+
+
+
+
+
+
+
+
+ 共 {{datas.goods_count}} 件商品, 总金额 ¥{{datas.pay_price}}
+
+
+
+
+
+ 查看详情
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pagesOrder/delivery/index.vue b/pagesOrder/delivery/index.vue
index 39dbecb..fcfad0e 100644
--- a/pagesOrder/delivery/index.vue
+++ b/pagesOrder/delivery/index.vue
@@ -1,10 +1,6 @@
-
-
- 订单
-
-
+
{
- showCancel.value = false;
- cancelOrderApi({
- order_id: cancelId,
- value: e.name
- }).then(res => {
- uni.showToast({
- title: '取消成功',
- icon: 'none'
- })
- orderList.value[1] = orderList.value[1].filter(item => item.id !== cancelId)
- })
- }
-
- // 取消订单
- const cancleOrder = (e) => {
- cancelId = e.id;
- showCancel.value = true;
- }
// 确认收货
const showTake = ref(false);
@@ -151,17 +131,7 @@
})
}
- // 再次购买
- const purchaseAgain = (e) => {
- purchaseAgainApi({
- order_id: e.id
- }).then(res => {
- uni.$u.toast('已加入购物车');
- uni.navigateTo({
- url: '/pages/cart/cart'
- })
- })
- }
+
// 申请售后
const refundShow = ref(false);
@@ -215,78 +185,14 @@
}
}
- const pay_type = ref('3')
- const rePay = async (e) => {
- payFn(e)
- return
- if (!pay_type.value) return uni.$u.toast('请选择支付方式');
- if (pay_type.value == 3 || pay_type.value == 18) {
- let res = await userInfoApi()
- return res.data.pay_password ? passwordBoardVisible.value = true : showModal.value = true
- }
- }
- // 支付密码
- const password = ref(''); // 支付密码
- const passwordBoardVisible = ref(false);
- const passwordBoardProps = {
- title: '输入支付密码',
- onComplete(value) {
- password.value = value
- passwordBoardVisible.value = false
- console.log(password.value)
- // payFn()
- }
- };
+
+
const closeKeyBord = () => {
password.value = ''
}
- const payFn = (e) => {
- rePaymentApi({
- order_id: e.id,
- address_id: e.address_id,
- mer_id: e.merchant,
- pay_type: e.pay_type
- }).then(res => {
- if (res.data?.nonceStr) {
- uni.requestPayment({
- provider: 'wxpay',
- timeStamp: res.data.timeStamp,
- nonceStr: res.data.nonceStr,
- package: res.data.package,
- signType: res.data.signType,
- paySign: res.data.paySign,
- success: (e) => {
- if (e.errMsg == 'requestPayment:ok') {
- uni.showToast({
- title: '订单支付成功',
- icon: 'success'
- })
- reloadAll();
- } else uni.$u.toast('支付失败')
- },
- fail: (e) => {
- uni.$u.toast('用户取消支付')
- }
- })
- } else {
- uni.showToast({
- title: '订单支付成功',
- icon: 'success'
- })
- reloadAll();
- }
-
- }).catch(err => {
- uni.$u.toast(err.msg || '网络错误')
- })
- }
-
- const notWxPay = () => {
- alert("不是微信支付")
- }
// 订单
@@ -331,7 +237,7 @@
const getOrderList = (type = 0, status = '', paid = 1, ifPullReFresh = false) => {
if (where.value[type].loadend) return;
where.value[type].loading = true;
- orderListApi({
+ storeOrderListApi({
page_no: where.value[type].page_no,
page_size: where.value[type].page_size,
order_id: keyword.value,
@@ -400,6 +306,7 @@
if (options.back) back = options.back;
uni.$on('reLoadOrderList', reloadAll);
+ getOrderList(0, '', ''); //全部
})
onUnload(() => {