From 4ebbbd8b293b81a776561d54a13191c567d17f1a Mon Sep 17 00:00:00 2001 From: sx <2427911852@qq.com> Date: Wed, 23 Apr 2025 08:54:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E4=BB=A3=E7=A0=81=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jiuyi2/api/shop.js | 27 +++++ jiuyi2/common/js/config.js | 4 +- jiuyi2/pages/index/wallet/get.vue | 26 ++++- jiuyi2/pages/release/video.vue | 3 +- jiuyi2/pages/shop/order/index.vue | 6 +- jiuyi2/pages/shop/store/commodities.vue | 14 ++- jiuyi2/pages/shop/store/order.vue | 133 ++++++++++++++++-------- jiuyi2/vite.config.js | 4 +- 8 files changed, 159 insertions(+), 58 deletions(-) diff --git a/jiuyi2/api/shop.js b/jiuyi2/api/shop.js index 134690f2..a2880293 100644 --- a/jiuyi2/api/shop.js +++ b/jiuyi2/api/shop.js @@ -316,6 +316,7 @@ const shop = { return util.request({ url: `/shopify/appProductionApi/getProductionListByUserId`, data: param.data, + query: param.query, method: 'GET', load: true, }) @@ -537,6 +538,32 @@ const shop = { load: true, }) }, + + /** + * 商家拒绝售后 + * @param {Object} param + */ + setShopOrderUnrefund(param) { + return util.request({ + url: `/shopify/refundOrder/dealRefundOrderNo`, + method: 'POST', + data: param.data, + load: true, + }) + }, + + /** + * 商家同意售后 + * @param {Object} param + */ + setShopOrderRefund(param) { + return util.request({ + url: `/shopify/refundOrder/dealRefundOrderYes`, + method: 'POST', + data: param.data, + load: true, + }) + }, } export default shop \ No newline at end of file diff --git a/jiuyi2/common/js/config.js b/jiuyi2/common/js/config.js index 7b93c528..1082619b 100644 --- a/jiuyi2/common/js/config.js +++ b/jiuyi2/common/js/config.js @@ -6,9 +6,9 @@ const config = { // host: 'h5api', // #endif // #ifndef H5 - host: 'http://91f.xyz:8080', + // host: 'http://91f.xyz:8080', // host: 'http://liuyd.cpolar.top', - // host: 'http://5vpc5z.natappfree.cc', + host: 'http://heucy7.natappfree.cc', // #endif // 是否vivo显示 showVivo: true, diff --git a/jiuyi2/pages/index/wallet/get.vue b/jiuyi2/pages/index/wallet/get.vue index 924dd8f3..45dd8894 100644 --- a/jiuyi2/pages/index/wallet/get.vue +++ b/jiuyi2/pages/index/wallet/get.vue @@ -3,7 +3,8 @@ import { reactive, - ref + ref, + getCurrentInstance, } from 'vue'; import { onLoad, @@ -14,7 +15,12 @@ import util from '@/common/js/util'; // 接口 import api from '@/api/index.js'; + // 二级支付 + import secondPwd from '@/components/mine/payPwd.vue' + const { + proxy + } = getCurrentInstance() // 表单 const form = reactive({ withdrawAmount: '', @@ -123,7 +129,7 @@ } // 点击提现 - function handleSubmit() { + function handleShowPwd() { if (!form.withdrawAmount) { util.alert('提现金额不能为空') return @@ -132,8 +138,8 @@ util.alert(`提现金额不能小于${config.minWithdrawalAmount}`) return } - // - typeList[typeIndex.value].confirm() + + proxy.$refs.secondPwdRef.open() } // 提现到支付宝 @@ -189,6 +195,12 @@ // 获取钱包 util.getPurse() } + + // 提交 + function handleSubmit() { + // + typeList[typeIndex.value].confirm() + } diff --git a/jiuyi2/pages/release/video.vue b/jiuyi2/pages/release/video.vue index 897df1cb..b46c21c7 100644 --- a/jiuyi2/pages/release/video.vue +++ b/jiuyi2/pages/release/video.vue @@ -423,7 +423,8 @@ // 获取已发布的商品列表 function getProductList() { api.shop.getProductionListByUserId({ - data: { + query: { + code: 'GIFT_PACK', pageNum: product.pageNum, pageSize: product.pageSize, } diff --git a/jiuyi2/pages/shop/order/index.vue b/jiuyi2/pages/shop/order/index.vue index 4e0bc3ec..a4f2309f 100644 --- a/jiuyi2/pages/shop/order/index.vue +++ b/jiuyi2/pages/shop/order/index.vue @@ -278,7 +278,7 @@