diff --git a/commons/utils/dict.js b/commons/utils/dict.js index 1a02dc7..e136375 100644 --- a/commons/utils/dict.js +++ b/commons/utils/dict.js @@ -3,22 +3,22 @@ export default { label: "待支付", type: "unpaid" }, - { - label: "制作中", - type: "in_production" - }, - { - label: "待取餐", - type: "wait_out" - }, + // { + // label: "制作中", + // type: "in_production" + // }, + // { + // label: "待取餐", + // type: "wait_out" + // }, { label: "订单完成", type: "done" }, - { - label: "申请退单", - type: "refunding" - }, + // { + // label: "申请退单", + // type: "refunding" + // }, { label: "退单", type: "refund" diff --git a/config/appConfig.js b/config/appConfig.js index f884ef9..bf966b1 100644 --- a/config/appConfig.js +++ b/config/appConfig.js @@ -3,13 +3,15 @@ export const ENV = 'test' export const ENV_BASE_URL = { java: { prod: 'https://cashier.sxczgkj.com/', - test: 'http://192.168.1.42/', + // test: 'http://192.168.1.43/', + test: 'https://frp.sxczgkj.com/', h5ProdProxy: '/prodJavaApi/', h5TestProxy: '/testJavaApi/', }, php: { prod: 'https://cashier.sxczgkj.com/', - test: 'http://192.168.1.42:8787/', + // test: 'http://192.168.1.43:8787/', + test: 'https://frp.sxczgkj.com:8787/', h5ProdProxy: '/prodPhpApi/api/', h5TestProxy: '/testPhpApi/api/', } @@ -73,14 +75,15 @@ export function returnBaseUrl(param) { function returnWss(env) { // #ifdef H5 if (env === 'test') { - return 'http://192.168.1.42:2348' + return 'http://192.168.1.43:2348' } else { return 'https://czgeatws.sxczgkj.com/wss' } // #endif // #ifndef H5 if (env === 'test') { - return 'ws://192.168.1.42:2348' + // return 'ws://192.168.1.43:2348' + return 'ws://frp.sxczgkj.com/wss' } else { return 'wss://czgeatws.sxczgkj.com/wss' } diff --git a/env/env.development.js b/env/env.development.js index 6dc7bb4..88219bf 100644 --- a/env/env.development.js +++ b/env/env.development.js @@ -1,7 +1,8 @@ export default { - 'JEEPAY_BASE_URL': 'http://192.168.1.42/', // 请求URL(生产环境) - 'JEEPAY_BASE_URL_H5': 'http://192.168.1.42/', - 'JEEPAY_BASE_URL_WSS': 'ws://192.168.1.42:2348' ,// sockets + 'JEEPAY_BASE_URL': 'http://192.168.1.43/', // 请求URL(生产环境) + 'JEEPAY_BASE_URL_H5': 'http://192.168.1.43/', + // 'JEEPAY_BASE_URL_WSS': 'ws://192.168.1.43:2348' ,// sockets + 'JEEPAY_BASE_URL_WSS': 'ws://frp.sxczgkj.com/wss' ,// sockets // 'JEEPAY_BASE_URL': 'https://cashier.sxczgkj.com/', // 请求URL(生产环境) // 'JEEPAY_BASE_URL_H5': 'https://cashier.sxczgkj.com/', // 'JEEPAY_BASE_URL_WSS': 'wss://czgeatws.sxczgkj.com/wss' // sockets diff --git a/http/api/market/coupon.js b/http/api/market/coupon.js new file mode 100644 index 0000000..99c49ab --- /dev/null +++ b/http/api/market/coupon.js @@ -0,0 +1,37 @@ +import http from '@/http/http.js' +const request = http.request +const urlType='market/admin/coupon' + +export function getRecordByUser(params) { + return request({ + url: `${urlType}/getRecordByUser`, + method: "GET", + params: { + ...params + } + }) +} + +export function deleteRecord(params) { + return request({ + url: `${urlType}/deleteRecord?id=`+params.id, + method: "DELETE", + }) +} + +export function getList(params) { + return request({ + url: `${urlType}/page`, + method: "GET", + params: { + ...params + } + }) +} +export function giveCoupon(data) { + return request({ + url: `${urlType}/grant`, + method: "POST", + data + }) +} \ No newline at end of file diff --git a/http/php/request.ts b/http/php/request.ts index b7eec9c..48b28e6 100644 --- a/http/php/request.ts +++ b/http/php/request.ts @@ -1,6 +1,6 @@ //服务器接口地址 // const baseURL : string = 'https://newblockwlx.sxczgkj.cn/index.php/api/' -let baseURL: string = "http://192.168.1.42:8787/api/"; +let baseURL: string = "http://192.168.1.43:8787/api/"; // #ifdef H5 baseURL = "/prodPhpApi/api/"; // #endif diff --git a/pageCreditBuyer/addDebtor.vue b/pageCreditBuyer/addDebtor.vue index 5b847ea..826b1fc 100644 --- a/pageCreditBuyer/addDebtor.vue +++ b/pageCreditBuyer/addDebtor.vue @@ -1,73 +1,85 @@ \ No newline at end of file diff --git a/pageCreditBuyer/index.vue b/pageCreditBuyer/index.vue index 88b8a78..7a04a3d 100644 --- a/pageCreditBuyer/index.vue +++ b/pageCreditBuyer/index.vue @@ -39,15 +39,23 @@ 挂账人:{{item.debtor}} - 已挂账金额:{{item.owedAmount}} + 已挂账金额: + {{ + item.creditAmount - item.accountBalance > 0 + ? item.creditAmount - item.accountBalance + : 0 + }} + 挂账额度:{{item.creditAmount}} - 剩余挂账额度:{{item.remainingAmount}} + + 还款提醒日:{{item.expireRemindDay}}号 账户余额:{{item.accountBalance}} - 通用门店:{{item.shopName}} + + 还款提醒:{{item.expireRemind}}月前 手机号:{{item.mobile}} diff --git a/pageMarket/utils/couponUtils.js b/pageMarket/utils/couponUtils.js index 559a187..aabe176 100644 --- a/pageMarket/utils/couponUtils.js +++ b/pageMarket/utils/couponUtils.js @@ -24,14 +24,14 @@ export const emunList = { label: '消费送券', value: 5, }, - { - label: '固定价格券', - value: 7, - }, - { - label: '免配送费券', - value: 8, - } + // { + // label: '固定价格券', + // value: 7, + // }, + // { + // label: '免配送费券', + // value: 8, + // } ], getType: [{ label: '用户不可自行领取', diff --git a/pageProduct/add-specifications/add-specifications.vue b/pageProduct/add-specifications/add-specifications.vue index 7e99f27..e7945b0 100644 --- a/pageProduct/add-specifications/add-specifications.vue +++ b/pageProduct/add-specifications/add-specifications.vue @@ -6,7 +6,7 @@ label-position="top" validateTrigger="blur"> + v-model="specifications.name" placeholder="模版名称,如:主食、就睡、辣度、大小等" /> @@ -17,7 +17,7 @@ + v-model="item.name" placeholder="规格组名,如:口味、忌口、温度、分量" /> diff --git a/pageProduct/index/components/control.vue b/pageProduct/index/components/control.vue index 441b87b..9ce9e6d 100644 --- a/pageProduct/index/components/control.vue +++ b/pageProduct/index/components/control.vue @@ -1,7 +1,11 @@ @@ -19,28 +23,37 @@ default: 30 }, }) - - let showControl1 = ref(true) - const emits = defineEmits(['toggleCategory','controlChange','allCheckedChange','offShelf','categoryChange']) + let showControl1 = ref(false) + const emits = defineEmits(['toggleCategory', 'controlChange', 'allCheckedChange', 'offShelf', 'categoryChange']) + + function allControl() { + showControl1.value = true + emits('allCheckedChange',showControl1.value) + } + function allControlCancel(){ + showControl1.value = false + emits('allCheckedChange',showControl1.value) + } function getComputedStyle() { return { bottom: props.bottom + 'rpx' } } - \ No newline at end of file diff --git a/pageUser/index/components/user.vue b/pageUser/index/components/user.vue index 4929941..8cb9e97 100644 --- a/pageUser/index/components/user.vue +++ b/pageUser/index/components/user.vue @@ -40,7 +40,7 @@ - + {{data.couponNum||0}} 优惠券 @@ -81,7 +81,11 @@ default:false } }) - + function toCoupon(){ + go.to('PAGES_USER_COUPON',{ + userId: props.data.id||'', + }) + } function toOrder(){ go.to('PAGES_ORDER_INDEX',{ userId: props.data.userId||'', diff --git a/pageUser/index/index.vue b/pageUser/index/index.vue index 804ed3c..4451b16 100644 --- a/pageUser/index/index.vue +++ b/pageUser/index/index.vue @@ -7,9 +7,9 @@ -