提交代码

This commit is contained in:
duan
2024-06-12 11:10:59 +08:00
parent 02cbc93a14
commit 06a9c4f2de
8 changed files with 46 additions and 17 deletions

View File

@@ -134,7 +134,7 @@
left: 0;
top: 0;
width: 100%;
height: 100%;
height: 100vh;
background-color: #FFFFFF;
}

View File

@@ -16,12 +16,12 @@ const baseUrl = debug ? proxyApi : "https://wxcashiertest.sxczgkj.cn/cashierServ
const baseUrlwws = 'ws://cashier.sxczgkj.cn/cashierService'
// #endif
// #ifdef APP || MP-WEIXIN
// const baseUrl = 'https://cashier.sxczgkj.cn/cashierService'// 线上
// const baseUrlwws = 'wss://cashier.sxczgkj.cn/cashierService' // 线上
const baseUrl = 'https://cashier.sxczgkj.cn/cashierService'// 线上
const baseUrlwws = 'wss://cashier.sxczgkj.cn/netty' // 线上
// const baseUrl = 'http://192.168.2.42:9888/cashierService'// 测试-w
// const baseUrlwws ='wss://192.168.2.42:9999/netty' // 测试-w
const baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试
const baseUrlwws ='wss://wxcashiertest.sxczgkj.cn/netty' // 测试
// const baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试
// const baseUrlwws ='wss://wxcashiertest.sxczgkj.cn/netty' // 测试
// #endif
// import VConsole from "./vConsole.js"

View File

@@ -279,7 +279,7 @@
subCategoryList: [] //二级菜单数据
};
},
onPageScroll(e) {
if (e.scrollTop <= 44) { //搜索导航栏
this.opacity = false
@@ -510,7 +510,7 @@
if (item.isChild) {
this.form.type = '' //先清空后赋值
setTimeout(()=> {
setTimeout(() => {
this.showproductlist = true
}, 500);
} else {

View File

@@ -289,7 +289,6 @@
uni.reLaunch({
url: '/pages/order_food/order_food'
});
sss
} else {
// uni.cache.set('shopUser', res.data.shopUser);
uni.pro.switchTab('index/index')

View File

@@ -35,6 +35,7 @@
}
},
onLoad(e) {
console.log(e, '调试2')
this.shopId = e.shopId
if (e.type == 'list') { //从列表进来的

View File

@@ -127,6 +127,10 @@
console.log(e)
this.orderId = e.orderId
this.orderorderInfo()
},
onShow() {
if (this.orderId) {

View File

@@ -230,9 +230,9 @@
},
onUnload() {
uni.switchTab({
url: '/pages/order/order'
})
// uni.switchTab({
// url: '/pages/order/order'
// })
uni.$off('getMessage')
this.ispws = false
},
@@ -396,6 +396,22 @@
},
showpopupclickdd() {
console.log('调试1')
// setTimeout(() => {
uni.requestSubscribeMessage({
tmplIds: ['z0fUG7-jhSfYCrw6poOvSRzh4_hgnPkm_5C7E5s5bCQ'],
success(){
console.log(1)
},
fail(){
console.log(2)
},
complete(){
console.log(3)
},
})
// },1500)
return
// radiovalue1为1是微信支付
if (this.radiovalue1 == 1) {
this.showpopupclickdds() //微信支付
@@ -441,14 +457,17 @@
uni.showToast({
title: "支付成功"
})
let _this = this
uni.cache.set('shopUser', '') //删除shopUser
this.paymodfiyOrderInfo()
setTimeout(res => {
setTimeout(() => {
uni.redirectTo({
url: '/pages/order/order_detail?orderId=' + this
.listinfo.id,
url: '/pages/order/order_detail?orderId=' + _this
.listinfo.id
});
}, 500)
}, 700)
},
});
// #endif
@@ -469,9 +488,10 @@
// ->4 不是会员,
if (res.data == 1) {
this.showToastUppop('支付成功')
setTimeout(res => {
let _this = this
setTimeout(() => {
uni.redirectTo({
url: '/pages/order/order_detail?orderId=' + this
url: '/pages/order/order_detail?orderId=' + _this
.listinfo.id
});
}, 700)

View File

@@ -339,6 +339,7 @@
return false;
}
} else {
wx.hideLoading()
switch (msg.type) {
case 'sku': // sku 数量
this.$set(this, 'amountcartNumber', msg.amount)
@@ -406,6 +407,10 @@
}
},
handlemessage() {
wx.showLoading({
title: '',
})
this.socketTicket ? this.socketTicket.Close() : null //调用前先判断是否有socket正在进行 先关闭后链接
this.socketTicket = new webSocketUtils(`${uni.conf.baseUrlwws}`, 5000, {
tableId: uni.cache.get('tableCode'),