支付宝兼容,排队预约修改,订单逻辑修改
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
export default {
|
||||
userwxlogin(data) { //登录
|
||||
return uni.api.post("/login/wx/custom/login", data);
|
||||
return uni.api.post("/login/auth/custom/login", data);
|
||||
},
|
||||
loginwxuserInfo(data) { //获取用户详情
|
||||
return uni.api.get("/login/userInfo", data);
|
||||
return uni.api.get("/login/userInfo", data,false);
|
||||
},
|
||||
userwxlogins(data) { // 获取手机号
|
||||
return uni.api.post("/login/getPhoneNumber", data);
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
},
|
||||
// 获取弹窗广告列表
|
||||
getPopUpAd(data) {
|
||||
return uni.api.get("/tbShopAd/list", data);
|
||||
return uni.api.get("/tbShopAd/list", data,false);
|
||||
},
|
||||
|
||||
productqueryShop(data) { //通过桌码获取店铺信息
|
||||
@@ -87,7 +87,7 @@ export default {
|
||||
|
||||
// 获取店铺会员信息
|
||||
shopUserInfo(data) {
|
||||
return uni.api.get("/user/shopUserInfo", data);
|
||||
return uni.api.get("/user/shopUserInfo", data,false);
|
||||
},
|
||||
// 注册会员
|
||||
openMember(data) {
|
||||
@@ -236,12 +236,20 @@ export default {
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取排好状态
|
||||
* 获取排号状态
|
||||
* @param {Object} param
|
||||
*/
|
||||
getQueueUpState(param) {
|
||||
return uni.api.get("/callTable/state", param);
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取订阅
|
||||
* @param {Object} data
|
||||
*/
|
||||
setSubMsg(data) {
|
||||
return uni.api.post("/callTable/subMsg", data,false);
|
||||
},
|
||||
|
||||
/**
|
||||
* 取号
|
||||
|
||||
@@ -27,7 +27,6 @@ class webSocketUtils {
|
||||
connectSocketInit(data) {
|
||||
let _this = this;
|
||||
this.data = data;
|
||||
console.log(this.url)
|
||||
// #ifdef MP-WEIXIN
|
||||
this.socketTask = uni.connectSocket({
|
||||
// #endif
|
||||
@@ -42,7 +41,6 @@ class webSocketUtils {
|
||||
return this.socketTask;
|
||||
},
|
||||
fail: (res) => {
|
||||
console.log(res)
|
||||
}
|
||||
});
|
||||
|
||||
@@ -221,7 +219,6 @@ class webSocketUtils {
|
||||
//停止发送心跳
|
||||
clearInterval(this.heartbeatInterval);
|
||||
//如果不是人为关闭的话,进行重连
|
||||
console.log(!this.is_open_socket)
|
||||
if (!this.is_open_socket) {
|
||||
console.log('进行重连');
|
||||
this.canReconnect = true;
|
||||
|
||||
Reference in New Issue
Block a user