diff --git a/common/js/websocket.js b/common/js/websocket.js
index c16abae..4a424ca 100644
--- a/common/js/websocket.js
+++ b/common/js/websocket.js
@@ -63,33 +63,37 @@ class webSocketUtils {
this.canReconnect = true;
clearInterval(this.heartbeatInterval);
clearInterval(this.reconnectTimeOut);
- if (this.connectNum <= 10) {
- // uni.showLoading({
- // title: `网络连接失败,正尝试第${this.connectNum}次连接`,
- // mask: true
- // })
- uni.$emit('message', 1) //进行重连
- uni.showToast({
- title: `网络连接失败,正尝试第${this.connectNum}次连接`,
- icon: 'none',
- });
- this.reconnect();
- this.connectNum += 1;
- } else {
- // uni.$emit('connectError');
- uni.showToast({
- title: `网络连接失败,请检查网络!`,
- icon: 'none',
- });
- this.connectNum = 1;
- this.canReconnect = false;
- this.Close()
- setTimeout(res => {
- uni.switchTab({
- url: '/pages/index/index'
- })
- uni.hideLoading()
- }, 1000)
+ try {
+ if (this.connectNum <= 10) {
+ // uni.showLoading({
+ // title: `网络连接失败,正尝试第${this.connectNum}次连接`,
+ // mask: true
+ // })
+ uni.$emit('message', 1) //进行重连
+ uni.showToast({
+ title: `网络连接失败,正尝试第${this.connectNum}次连接`,
+ icon: 'none',
+ });
+ this.reconnect();
+ this.connectNum += 1;
+ } else {
+ // uni.$emit('connectError');
+ uni.showToast({
+ title: `网络连接失败,请检查网络!`,
+ icon: 'none',
+ });
+ this.connectNum = 1;
+ this.canReconnect = false;
+ this.Close()
+ setTimeout(res => {
+ uni.switchTab({
+ url: '/pages/index/index'
+ })
+ uni.hideLoading()
+ }, 1000)
+ }
+ } catch (e) {
+ //TODO handle the exception
}
});
// 这里仅是事件监听【如果socket关闭了会执行】
diff --git a/components/l-barrage/l-barrage.vue b/components/l-barrage/l-barrage.vue
new file mode 100644
index 0000000..db93213
--- /dev/null
+++ b/components/l-barrage/l-barrage.vue
@@ -0,0 +1,181 @@
+
+
+
+
+
+ {{item.text}}
+
+
+
+
+
+
+
+
+ {{item.text}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/vastwu-barrage/readme.md b/components/vastwu-barrage/readme.md
deleted file mode 100644
index fa01120..0000000
--- a/components/vastwu-barrage/readme.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# 测试发现h5不支持
-## 如何使用
-```
-
-
-
-
-
-
-
-
-```
-
-## 参数说明
-|参数|类型|默认|说明|
-|:-|:-:|-:|-:|
-|trackList|Array|[0,100,200,300,400,500,600,700,800,900,1000]|自定义弹幕轨道,值为距离容器顶部的距离,可根据图标高度自行调整|
-|icon|String||默认图标|
-|iconWidth|String|62rpx|图标宽度|
-|iconHeight|String|'86rpx'|图标高度|
-|minTime|Number|7|最短过渡时间|
-|maxTime|Number|10|最长过渡时间|
-|width|String|'100%'|容器宽度|
-|height|String|'100%'|容器高度|
\ No newline at end of file
diff --git a/framework/0-conf.js b/framework/0-conf.js
index 706c58d..c290209 100644
--- a/framework/0-conf.js
+++ b/framework/0-conf.js
@@ -16,10 +16,10 @@ const baseUrlwws = 'ws://cashier.sxczgkj.cn/cashierService'
// #endif
// #ifdef APP || MP-WEIXIN
-const baseUrl = debug ? proxyApi : 'https://cashier.sxczgkj.cn/cashierService' // 线上
-const baseUrlwws = debug ? proxyApiwws : 'wss://cashier.sxczgkj.cn/netty' // 线上
-// const baseUrl = 'https://cashier.sxczgkj.cn/cashierService' // 线上
-// const baseUrlwws = 'wss://cashier.sxczgkj.cn/netty' // 线上/
+// const baseUrl = debug ? proxyApi : 'https://cashier.sxczgkj.cn/cashierService' // 线上、、
+// const baseUrlwws = debug ? proxyApiwws : 'wss://cashier.sxczgkj.cn/netty' // 线上
+const baseUrl = 'https://cashier.sxczgkj.cn/cashierService' // 线上
+const baseUrlwws = 'wss://cashier.sxczgkj.cn/netty' // 线上/
// #endif
// import VConsole from "./vConsole.js"
diff --git a/package.json b/package.json
deleted file mode 100644
index b42c3d9..0000000
--- a/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "devDependencies": {
- "sass": "^1.69.5",
- "sass-loader": "^13.3.2"
- },
- "dependencies": {
- "lodash": "^4.17.21"
- }
-}
diff --git a/pages.json b/pages.json
index 609dce3..9ba0cc5 100644
--- a/pages.json
+++ b/pages.json
@@ -94,6 +94,12 @@
"navigationBarTitleText": "订单详情"
}
},
+ {
+ "path": "pages/order_detail/indexs",
+ "style": {
+ "navigationBarTitleText": "订单详情"
+ }
+ },
{
"path": "pages/order/successful",
"style": {
diff --git a/pages/index/index - 副本.vue b/pages/index/index - 副本.vue
deleted file mode 100644
index 6889ec9..0000000
--- a/pages/index/index - 副本.vue
+++ /dev/null
@@ -1,266 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{userInfo.nickName}}
-
-
-
- 会员码
-
-
-
-
- {{shopUser.amount || '0'}}
- 余额
-
-
- {{shopUser.levelConsume || '0'}}
- 积分
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 615bb55..3b6b0d0 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,223 +1,232 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
+
+
-
-
-
- {{NAME}}
- {{form.address}}
-
-
-
-
- 搜索
-
-
-
-
-
-
- {{item.name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.shopName}}
-
-
- {{item.districts}} {{item.distances}}
-
-
-
-
-
- {{s.name}}
-
-
-
-
-
-
-
-
-
-
- {{item.productName.length>7?item.productName.substring(0,7)+'...':item.productName}}
-
- 已抢{{item.realSalesNumber}}份
-
-
-
-
- {{c.name}}
-
-
-
-
- 马上抢
-
-
-
- 到手
- ¥{{item.salePrice}}
-
-
- {{item.discount || ''}}折
-
-
- ¥{{item.originPrice}}
-
-
-
- 共省{{item.save}}元
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ :style="{'height':HeighT.customBar+'px','marginTop':HeighT.heightBar+'px','padding-right':HeighT.custwidth + 'px'}">
-
-
-
-
-
-
-
-
-
-
- {{NAME}}
- {{form.address}}
-
+
+
+
+ {{NAME}}
+ {{form.address}}
+
+
+
+
+ 搜索
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.shopName}}
-
-
- 搜索
+
+ {{item.districts}} {{item.distances}}
-
-
-
-
- {{item.name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.name}}
-
+
+
+
+ {{s.name}}
-
+
+
+
+
+
+
+ {{item.productName.length>7?item.productName.substring(0,7)+'...':item.productName}}
+
+ 已抢{{item.realSalesNumber}}份
+
+
+
+
+ {{c.name}}
+
+
+
+
+ 马上抢
+
+
+
+ 到手
+ ¥{{item.salePrice}}
+
+
+ {{item.discount || ''}}折
+
+
+ ¥{{item.originPrice}}
+
+
+
+ 共省{{item.save}}元
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{NAME}}
+ {{form.address}}
+
+
+
+
+ 搜索
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/order/order_detail - 副本.vue b/pages/order/order_detail - 副本.vue
new file mode 100644
index 0000000..a5e0318
--- /dev/null
+++ b/pages/order/order_detail - 副本.vue
@@ -0,0 +1,605 @@
+
+
+
+
+
+ {{listinfo.name}}
+
+
+ 待支付
+
+
+ 待发货
+
+
+ 订单完成
+
+
+ 已发
+
+
+ 申请退单
+
+
+ 退单
+
+
+ 已取消
+
+
+ 合台
+
+
+
+
+ 快递
+ 外卖
+ 自提
+ 堂食
+
+
+ 桌号:{{listinfo.tableName}}
+
+
+ 取餐号
+ {{listinfo.outNumber}}
+
+
+
+
+
+ 点单详情
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.productName}}
+ {{item.productSkuName}}
+ x{{item.num}}
+
+
+
+ ¥
+ {{item.priceAmount}}
+
+
+
+
+
+ 合计:
+ ¥
+ {{listinfo.payAmount}}
+
+
+
+
+
+ 订单信息
+
+
+
+ 订单信息:
+ {{listinfo.orderNo}}(点击复制)
+
+
+ 创建时间:
+ {{$u.timeFormat(listinfo.time, 'yyyy-mm-dd hh:MM:ss')}}
+
+
+
+
+
+
+
+
+
+
+ 支付方式
+
+
+
+
+
+
+
+
+ 微信支付
+
+
+
+
+
+
+
+
+
+
+ 会员卡支付
+
+
+
+
+ 会员卡余额{{ amountVIP?amountVIP.amount:0}} 去充值
+
+
+
+
+
+
+
+
+
+
+ 实付金额:
+
+
+ ¥{{listinfo.payAmount}}
+
+
+
+ 立即付款
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/order/order_detail.vue b/pages/order/order_detail.vue
index c1d5e6f..a25a061 100644
--- a/pages/order/order_detail.vue
+++ b/pages/order/order_detail.vue
@@ -37,8 +37,10 @@
自提
堂食
- 桌码: {{listinfo.tableName}}
-
+ 桌号:{{listinfo.tableName}}
+
+
取餐号
{{listinfo.outNumber}}
@@ -278,7 +280,7 @@
}
.tag-wrap {
- padding: 28upx 0;
+ padding: 20upx 0;
display: flex;
.tag {
diff --git a/pages/order_detail/index.vue b/pages/order_detail/index.vue
index e8516ae..861c425 100644
--- a/pages/order_detail/index.vue
+++ b/pages/order_detail/index.vue
@@ -1,59 +1,14 @@
-
-
-
- {{listinfo.tableName || '空'}}
-
-
- 待支付
-
-
- 待发货
-
-
- 订单完成
-
-
- 已发
-
-
- 申请退单
-
-
- 退单
-
-
- 取消订单
-
-
- 合台
-
-
-
- 快递
- 外卖
- 自提
- 堂食
-
-
- 取餐号
- {{listinfo.tableName || '空'}}
-
-
-
-
- 点单详情
-
-
-
+
{{item.name}}
+ {{item.skuName}}
x{{item.number}}
@@ -62,119 +17,6 @@
-
-
- 合计:
- ¥
- {{listinfo.amounts}}
-
-
-
-
-
-
-
-
- 支付方式
-
-
-
-
-
-
-
-
- 微信支付
-
-
-
-
-
-
-
-
-
-
- 会员卡支付
-
-
-
-
- 会员卡余额{{ amountVIP.amount}} 去充值
-
-
-
-
-
-
-
-
-
-
-
- 实付金额:
-
-
- ¥{{listinfo.amount}}
-
-
- 以优惠¥{{emitorderfoodform.couponsPrice}}
-
-
-
- 立即付款
-
-
@@ -182,6 +24,7 @@
\ No newline at end of file
diff --git a/pages/order_detail/order_detail.vue b/pages/order_detail/order_detail.vue
index b049d2a..46b129c 100644
--- a/pages/order_detail/order_detail.vue
+++ b/pages/order_detail/order_detail.vue
@@ -3,7 +3,7 @@
- {{listinfo.tableName || '空'}}
+ 桌号:{{listinfo.tableName || '空'}}
待支付
@@ -36,9 +36,10 @@
自提
堂食
-
+
取餐号
- {{listinfo.tableName || '空'}}
+ {{listinfo.outNumber || '空'}}
@@ -195,7 +196,7 @@
return {
height: '',
pay_type: 1,
- remark:'',
+ remark: '',
listinfoid: '',
listinfo: {
detailList: [],
@@ -266,7 +267,7 @@
}
},
- orderfoodindex() {//优惠劵
+ orderfoodindex() { //优惠劵
uni.pro.navigateTo('index/coupons/index', {
orderfood: 0,
orderId: this.listinfo.id,
@@ -284,12 +285,12 @@
}
});
},
- async paymodfiyOrderInfo() {//支付完成后请求
+ async paymodfiyOrderInfo() { //支付完成后请求
let res = await this.api.paymodfiyOrderInfo({
orderId: this.listinfo.id,
})
},
- goRecharge() {// 去充值
+ goRecharge() { // 去充值
uni.pro.navigateTo('/pages/member/index', {
shopId: uni.cache.get('shopUser')
})
diff --git a/pages/order_food/order_food - 副本.vue b/pages/order_food/order_food - 副本.vue
new file mode 100644
index 0000000..c5c78ad
--- /dev/null
+++ b/pages/order_food/order_food - 副本.vue
@@ -0,0 +1,1211 @@
+
+
+
+
+ 加载中
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+ 空
+
+
+
+
+
+
+
+ {{ item1.name }}
+
+
+
+ ¥
+ {{ item1.lowPrice }}
+ 起
+
+
+ 选规格
+ {{item1.cartNumber}}
+
+
+
+
+
+ {{ item1.cartNumber }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ¥
+ {{cartLists.amount||'0.00'}}
+
+
+ 提交订单
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+ {{ item.skuName }}
+
+
+
+ ¥
+ {{ item.salePrice }}
+ 起
+
+
+
+
+
+ {{ item.number }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ shopList.storeInfo.shopName }}
+
+
+
+ {{ shopList.storeInfo.businessTime }}
+
+
+ {{ shopList.storeInfo.phone }}
+
+
+ {{ shopList.storeInfo.address }}
+
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
+
+ {{specifications.name}}
+
+
+
+ {{item.name}}
+
+
+
+ {{item1}}
+
+
+
+
+ 已选规格:{{skuidname.toString()}}
+
+
+
+ ¥
+ {{salePrice}}
+ 起
+
+
+
+
+
+ {{amountcartNumber}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/order_food/order_food.vue b/pages/order_food/order_food.vue
index c5c78ad..ece93bb 100644
--- a/pages/order_food/order_food.vue
+++ b/pages/order_food/order_food.vue
@@ -12,11 +12,11 @@
-
+
-
+
@@ -89,12 +89,12 @@
-
+
{{ item1.cartNumber }}
-
+
@@ -171,7 +171,7 @@
{{ shopList.storeInfo.businessTime }}
-
+
{{ shopList.storeInfo.phone }}
@@ -230,19 +230,23 @@
-
+
@@ -687,7 +703,7 @@
display: flex;
align-items: center;
justify-content: center;
- margin-right: $paddingSize;
+ // margin-right: $paddingSize;
}
}
}
@@ -943,12 +959,23 @@
}
.btn {
+ position: relative;
padding: 6upx 10upx;
background-color: $color-priamry;
border-radius: 12upx;
display: flex;
align-items: center;
justify-content: center;
+
+ &::after {
+ content: "";
+ position: absolute;
+ left: -10px;
+ top: -10px;
+ right: -10px;
+ bottom: -10px;
+
+ }
}
}
}
@@ -1153,18 +1180,111 @@
}
.btn {
+ position: relative;
padding: 16upx 20upx;
background-color: $color-priamry;
border-radius: 12upx;
display: flex;
align-items: center;
justify-content: center;
+
+ &::after {
+ content: "";
+ position: absolute;
+ left: -10px;
+ top: -10px;
+ right: -10px;
+ bottom: -10px;
+
+ }
}
}
}
}
+ .classorderdetailshow {
+ position: relative;
+
+ .orderdetailuicon {
+ position: absolute;
+ top: 10rpx;
+ left: 10rpx;
+ }
+
+ .payType {
+ padding: 32rpx 34rpx;
+ margin-top: 48rpx;
+ background-color: #fff;
+
+ >view:first-child {
+ font-weight: 500;
+ font-size: 28rpx;
+ color: #333333;
+ }
+
+ >view:last-child {
+ margin-top: 32rpx;
+ }
+
+ .dfs {
+ display: flex;
+ align-items: center;
+ }
+
+ }
+
+ .fixedview {
+ position: relative;
+ width: 100%;
+
+ .flex-between {
+ width: 100%;
+ padding: 24rpx 28rpx;
+ background: #FFFFFF;
+ flex-wrap: nowrap;
+
+ .fixedview_one {
+ .fixedview_oneone {
+ font-size: 28rpx;
+ font-family: SourceHanSansCN-Bold-, SourceHanSansCN-Bold;
+ font-weight: normal;
+ color: #333333;
+ }
+
+ .fixedview_onetow {
+ font-size: 44rpx;
+ font-family: SourceHanSansCN-Bold-, SourceHanSansCN-Bold;
+ font-weight: normal;
+ color: #F45C4C;
+ font-weight: bold;
+
+ text {
+ font-size: 28rpx;
+ }
+ }
+
+ .fixedview_onethere {
+ font-family: Source Han Sans CN, Source Han Sans CN;
+ font-weight: 400;
+ font-size: 24rpx;
+ color: #999999;
+ }
+ }
+
+ .fixedview_tow {
+ background: red;
+ border-radius: 34rpx;
+ padding: 10rpx 44rpx;
+ font-size: 32rpx;
+ font-family: PingFang SC-Bold, PingFang SC;
+ font-weight: bold;
+ color: #FFFFFF;
+ }
+ }
+ }
+ }
+
.shop-info-wrap {
.info-wrap {
padding: $paddingSize * 2 0;
diff --git a/pages/pay_code/pay_code.vue b/pages/pay_code/pay_code.vue
index 83056cb..1a65a46 100644
--- a/pages/pay_code/pay_code.vue
+++ b/pages/pay_code/pay_code.vue
@@ -6,7 +6,7 @@
账户余额:
- {{shopInfo.amount}}
+ {{shopInfo.amount || '--'}}
@@ -15,7 +15,7 @@
- 使用门店:{{shopInfo.shopName}}
+ 使用门店:{{shopInfo.shopName || '--'}}
diff --git a/pages/user/information.vue b/pages/user/information.vue
index 7eb8eae..7f03b0a 100644
--- a/pages/user/information.vue
+++ b/pages/user/information.vue
@@ -10,7 +10,8 @@
-->
@@ -18,7 +19,9 @@
昵称
-
+
+
@@ -42,11 +45,7 @@
components: {
navseat
},
- onLoad() {
- this.userInfo = uni.cache.get('userInfo')
- this.userName = this.userInfo.nickName
- this.userHeadImg = this.userInfo.headImg
- },
+
data() {
return {
titlename: '完善信息',
@@ -62,9 +61,14 @@
},
userInfo: uni.cache.get('userInfo'),
userHeadImg: "",
- userName: ''
+ nickName: ''
};
},
+ onLoad() {
+ this.userInfo = uni.cache.get('userInfo')
+ this.nickName = this.userInfo.nickName
+ this.userHeadImg = this.userInfo.headImg
+ },
onPageScroll(e) {
if (e.scrollTop <= 44) { //搜索导航栏
this.opacitys = false
@@ -73,6 +77,14 @@
}
},
methods: {
+ bindblur(e) {
+ console.log(e,11)
+ this.nickName = e.detail.value; // 获取微信昵称
+ },
+ bindinput(e) {
+ console.log(e,22)
+ this.nickName = e.detail.value; // 获取微信昵称
+ },
// uploadImg() {
// let _this = this
// uni.chooseImage({
@@ -111,32 +123,32 @@
console.log(e)
console.log(e.detail)
// this.userHeadImg = avatarUrl
- uni.uploadFile({
- url: 'https://wxcashiertest.sxczgkj.cn/cashierService/common/upload',
- // url: uni.conf.baseUrl + '/common/upload',
-
- filePath: avatarUrl,
- header: {
- environment: 'app',
- type: 'android',
- version: '1.7.3',
- },
- name: "file",
- formData: {
- file:avatarUrl,
- },
- success: (uploadFileRes) => {
- let {
- data
- } = JSON.parse(uploadFileRes.data)
- this.userHeadImg = data
- },
- });
+ uni.uploadFile({
+ url: 'https://wxcashiertest.sxczgkj.cn/cashierService/common/upload',
+ // url: uni.conf.baseUrl + '/common/upload',
+
+ filePath: avatarUrl,
+ header: {
+ environment: 'app',
+ type: 'android',
+ version: '1.7.3',
+ },
+ name: "file",
+ formData: {
+ file: avatarUrl,
+ },
+ success: (uploadFileRes) => {
+ let {
+ data
+ } = JSON.parse(uploadFileRes.data)
+ this.userHeadImg = data
+ },
+ });
},
async sumbit() {
let res = await this.api.upUserInfo({
headImg: this.userHeadImg,
- nickName: this.userName
+ nickName: this.nickName
})
if (res.code == 0) {
uni.navigateBack()
@@ -217,12 +229,14 @@
}
}
}
- .btn{
+
+ .btn {
width: 180rpx;
height: 180rpx;
border-radius: 100%;
padding: 0;
- >view{
+
+ >view {
border-radius: 100%;
}
}
diff --git a/pages/user/user.vue b/pages/user/user.vue
index c8cb92b..7637bc2 100644
--- a/pages/user/user.vue
+++ b/pages/user/user.vue
@@ -23,7 +23,7 @@
-
+