diff --git a/App.vue b/App.vue
index 9399570..78fa9ed 100644
--- a/App.vue
+++ b/App.vue
@@ -29,7 +29,7 @@
onLaunch() {
// 判断版本更新 需要真机进行测试
//checkupdate();
-
+
// 极光推送start------------------------------
//#ifdef APP-PLUS
// 消息推送
@@ -89,7 +89,7 @@
// url: `/pages/chatbox/chat`
// });
// }
-
+
uni.reLaunch({
url: `/pages/chatbox/chat`
});
@@ -125,7 +125,7 @@
let extras = result.extras
console.log("自定义消息", result)
})
-
+
//#endif
// 极光推送end--------------
@@ -230,10 +230,10 @@
this.reconnecting = true;
// 重新加载一次个人信息,目的是为了保证网络已经正常且token有效
uni.$http.get('/api/getInfo').then((res) => {
- uni.showToast({
- title: '连接已断开,尝试重新连接...',
- icon: 'none'
- })
+ // uni.showToast({
+ // title: '连接已断开,尝试重新连接...',
+ // icon: 'none'
+ // })
// 重新连接
let token = uni.getStorageSync("token");
wsApi.reconnect(this.$wsUrl, token);
@@ -416,10 +416,10 @@
this.$store.dispatch('friendStore/loadFriend'),
this.$store.dispatch('groupStore/loadGroup')
]).then(() => {
- uni.showToast({
- title: "已重新连接",
- icon: 'none'
- });
+ // uni.showToast({
+ // title: "已重新连接",
+ // icon: 'none'
+ // });
// 加载离线消息
const chatState = this.$store.state.chatStore;
this.pullPrivateOfflineMessage(chatState.privateMsgMaxId);
@@ -431,6 +431,10 @@
},
loadFriendInfo(id, callback) {
let friend = this.$store.getters['friendStore/findFriend'](id)
+ if (!friend) {
+ this.$store.dispatch('friendStore/loadFriend')
+ friend = this.$store.getters['friendStore/findFriend'](id)
+ }
if (!friend) {
console.log("未知用户:", id)
friend = {
diff --git a/components/chat/submit.vue b/components/chat/submit.vue
index 2f7a5fc..aa3a061 100644
--- a/components/chat/submit.vue
+++ b/components/chat/submit.vue
@@ -67,7 +67,7 @@
- {{vlength}}″
+ {{vlength<=50?60-vlength:60-vlength+'秒后自动发送'}}″
上滑取消录音
@@ -340,8 +340,7 @@ export default {
this.vlength = i;
i++;
//结束计时
- if (i > 60) {
- clearInterval(this.timer);
+ if (i >= 60) {
this.touchend();
}
}, 1000)
diff --git a/pages.json b/pages.json
index b7745d5..66f23c4 100644
--- a/pages.json
+++ b/pages.json
@@ -404,7 +404,7 @@
"path": "pages/book/bookshop",
"style" :
{
- "navigationBarTitleText": "预约学员",
+ "navigationBarTitleText": "全店预约学员",
"enablePullDownRefresh": false
}
},
diff --git a/pages/book/book.vue b/pages/book/book.vue
index 9aa3b16..68ce2f0 100644
--- a/pages/book/book.vue
+++ b/pages/book/book.vue
@@ -1,25 +1,25 @@
-
+
-
+
-
+
{{item.courseName}}
- {{item.startTime+'-'+item.endTime}}
+ {{formatTime(item.startTime)+' - '+formatTime(item.endTime)}}
-
+
-
-
-
-
+
+
+
+
@@ -60,10 +60,10 @@
-
+
-
+
@@ -92,12 +92,12 @@
-->
-
+
-
+
-
-
+
+
@@ -134,7 +134,7 @@
"lessCnt": "3",
},
remark:null
-
+
};
},
onLoad(options) {
@@ -157,6 +157,10 @@
}
},
methods: {
+ formatTime(timeStr) {
+ // 假设 timeStr 格式为 "HH:MM:SS"
+ return timeStr.slice(0, 5); // 取前5位 "HH:MM"
+ },
getimgRemoteFile(img){
if(img){
img=img.split(',')[0];
@@ -240,7 +244,7 @@
// icon: 'success',
// duration: 2000
// });
-
+
// 刷新保存
myCache('courserefresh',1);
uni.showModal({
@@ -263,8 +267,8 @@
}
}
});
-
-
+
+
}
else{
uni.showModal({
@@ -279,7 +283,7 @@
});
}
},
-
+
}
}
@@ -321,11 +325,17 @@
flex-direction: row;
justify-content: center;
align-items: center;
- .osimg{
- width: 120rpx;
- height: 120rpx;
- border-radius: 10rpx;
- }
+ .osimg{
+ margin-left: 24%;
+ width: 300rpx;
+ height: 300rpx;
+ margin-right: 10rpx;
+ >image {
+ width: 300rpx;
+ height: 300rpx;
+ border-radius: 10rpx;
+ }
+ }
.osrcon{
display: flex;
flex-direction: column;
@@ -341,6 +351,7 @@
padding-bottom: 15rpx;
}
.oscell{
+
display: flex;
flex-direction: row;
align-items: center;
@@ -353,7 +364,7 @@
}
}
}
-
+
.oinfo{
padding:20rpx;
position: relative;
@@ -366,7 +377,7 @@
padding: 20rpx 20rpx;
}
}
-
+
.tcon{
display: flex;
flex-direction: column;
@@ -393,14 +404,14 @@
}
}
}
-
+
.red{
color:#ff3d0e;
}
.green{
color:#00cd00;
}
-
+
::v-deep.uni-radio-input-checked{
background-color: #00A99A !important;
border-color: #00A99A !important;
@@ -410,7 +421,7 @@
::v-deep.uni-radio-input-checked::before{
display: none!important;
}
-
+
.scell{
display: flex;
flex-wrap: wrap;
@@ -472,11 +483,17 @@
flex-direction: row;
justify-content: center;
align-items: center;
- .osimg{
- width: 160rpx;
- height: 260rpx;
- border-radius: 10rpx;
- }
+ .osimg{
+ margin-left: 24%;
+ width: 300rpx;
+ height: 300rpx;
+ margin-right: 10rpx;
+ >image {
+ width: 300rpx;
+ height: 300rpx;
+ border-radius: 10rpx;
+ }
+ }
.osname{
display: flex;
flex: 1;
@@ -513,7 +530,7 @@
font-size: 26rpx;
color: #333;
margin-right: 10rpx;
- }
+ }
.txtbg3{
padding: 2rpx 15rpx;
border-radius: 30rpx;
@@ -597,6 +614,6 @@
}
}
}
-
-
+
+
diff --git a/pages/book/bookinfo.vue b/pages/book/bookinfo.vue
index 9212097..d205aae 100644
--- a/pages/book/bookinfo.vue
+++ b/pages/book/bookinfo.vue
@@ -1,8 +1,8 @@
-
+
-
+
@@ -39,7 +39,7 @@
上课时间:
- {{ (info.claDate?info.claDate:'')+' '+ (info.startTime?info.startTime:'') + (info.endTime?'-'+info.endTime:'') }}
+ {{ (info.claDate?info.claDate:'')+' '+ (info.startTime?formatTime(info.startTime):'') + (info.endTime?'-'+formatTime(info.endTime):'') }}
课程状态:
@@ -55,21 +55,21 @@
- 预约号 {{ info.code }}
+ 预约号 {{ info.code }}
.复制
-
+
-
+
-
-
+
+
@@ -82,10 +82,10 @@
-
+
-
-
+
+
@@ -107,7 +107,7 @@
userid:"",
id:"",
qr:'',
- info: {
+ info: {
"claName": "",
"storeName": "",
"pic": null,
@@ -181,6 +181,10 @@
}
},
methods: {
+ formatTime(timeStr) {
+ // 假设 timeStr 格式为 "HH:MM:SS"
+ return timeStr.slice(0, 5); // 取前5位 "HH:MM"
+ },
copydo(text){
if (!text) {
uni.showToast({
@@ -454,7 +458,7 @@
border-bottom: 1rpx dotted #74defb;
.txt{
display: flex; flex: 1;
- }
+ }
}
.oscellqr{
display: flex;
@@ -495,7 +499,7 @@
}
}
}
-
+
.ztip{
color:#1296db;
font-size: 26rpx;
@@ -554,12 +558,12 @@
line-height: 40rpx;
}
}
-
+
.oinfo{
padding:20rpx;
position: relative;
margin-bottom: 20rpx;
-
+
.ozc{
display: flex;
flex-direction: column;
@@ -696,7 +700,7 @@
}
}
}
-
+
::v-deep.uni-radio-input-checked{
background-color: #00a89b !important;
border-color: #00a89b !important;
@@ -706,9 +710,9 @@
::v-deep.uni-radio-input-checked::before{
display: none!important;
}
-
-
-
+
+
+
.pcon{
width: 690rpx;
padding-top:30rpx;
@@ -735,10 +739,10 @@
display: flex;
align-items: center;
justify-content: center;
- margin: 30rpx auto;
+ margin: 30rpx auto;
border-radius: 16rpx 16rpx 16rpx 16rpx;
opacity: 1;
- border: 2rpx solid #F7F8FA;
+ border: 2rpx solid #F7F8FA;
padding: 30rpx;
.qrimg{
width: 400rpx;
@@ -759,12 +763,12 @@
color: #FCFCFD;
}
}
-
+
.bottom{
width: 100%;
margin-bottom: 148rpx;
}
-
+
.submitcon{
position: fixed;
bottom: 0;
@@ -794,6 +798,6 @@
border:none;
}
}
-
-
+
+
diff --git a/pages/book/bookpj.vue b/pages/book/bookpj.vue
index cb3ece5..2f6e962 100644
--- a/pages/book/bookpj.vue
+++ b/pages/book/bookpj.vue
@@ -1,8 +1,8 @@
-
+
-
+
@@ -29,10 +29,10 @@
-
+
-
+
@@ -44,38 +44,38 @@
-
-
-
- 课程评价
-
-
-
- 教练评价
-
-
-
- 教室评价
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
-
+
+
@@ -222,7 +222,7 @@
});
const {data: res} = await uni.$http.post('/alipay/getOrderById', {id:this.id});
if(res){
-
+
// 订单信息
this.info=res;
this.$forceUpdate();
@@ -235,8 +235,8 @@
},
async savedo() {
var that = this;
- try {
-
+ try {
+
const {
data: res
} = await uni.$http.post("/member/update", that.valiFormData);
@@ -261,9 +261,9 @@
this.messageText = res.msg ? res.msg : '提交失败!',
this.$refs.message.open();
}
-
+
}
-
+
}
}
@@ -307,7 +307,7 @@
justify-content: center;
}
.oscon{
- margin:0;
+ margin:0;
display: flex;
flex-direction: row;
justify-content: center;
@@ -397,7 +397,7 @@
padding:20rpx;
position: relative;
margin-bottom: 160rpx;
-
+
.ozc{
display: flex;
flex-direction: column;
@@ -534,14 +534,14 @@
}
}
}
-
+
.red{
color:#ff3d0e;
}
.green{
color:#00cd00;
}
-
+
::v-deep.uni-radio-input-checked{
background-color: #00A99A !important;
border-color: #00A99A !important;
@@ -551,7 +551,7 @@
::v-deep.uni-radio-input-checked::before{
display: none!important;
}
-
+
.bbtn {
margin: 20rpx 10rpx 54rpx;
font-size: 32rpx;
@@ -569,5 +569,5 @@
border:none;
}
}
-
+
diff --git a/pages/book/bookshop.vue b/pages/book/bookshop.vue
index b6e1322..8d6e6b5 100644
--- a/pages/book/bookshop.vue
+++ b/pages/book/bookshop.vue
@@ -1,10 +1,10 @@
-
+
-
+
@@ -21,10 +21,11 @@
待上课
已完成
已取消
+ 预约失败
-
-
+
+
课程:{{item.courseName}}
@@ -40,7 +41,7 @@
可容纳人数:{{item.atClassCnt}}
-
+
@@ -50,15 +51,15 @@
-
+
-
+
-
+
-
+
@@ -199,7 +200,7 @@
async stopdodo(item){
var param={
"bookId": item.bookId,
- "bookStatus": 2
+ "bookStatus": 5
};
uni.showLoading({
title: '禁止预约中...'
@@ -250,8 +251,8 @@
// 确认预约
async checkdodo(item){
var param={
- "bookId": item.bookId,
- "bookStatus": 1
+ "bookId": item.bookId,
+ "bookStatus": 2
};
uni.showLoading({
title: '确认预约中...'
@@ -281,7 +282,7 @@
});
}
},
-
+
}
}
@@ -326,7 +327,7 @@
height: 100%;
}
.scrolllist{
- height: 110rpx;
+ height: 110rpx;
background: #FFF;
white-space: nowrap;
width: 100%;
@@ -367,7 +368,7 @@
background-image: url('/static/image/no.png');
background-size: 52% auto;
background-repeat: no-repeat;
- background-position: center;
+ background-position: center;
font-size: 28rpx;
text-align: center;
color: #00a89b;
@@ -482,7 +483,7 @@
flex:1;
width: 100%;
color:#333;
- align-items: center;
+ align-items: center;
}
.cancelbtn{
background-color: #FFFFFF !important;
@@ -568,7 +569,7 @@
font-size: 26rpx;
color:#333;
}
- }
+ }
}
}
.sitem {
@@ -625,6 +626,6 @@
}
}
}
-
-
+
+
diff --git a/pages/book/bookteacher.vue b/pages/book/bookteacher.vue
index 0dd916e..71c36ca 100644
--- a/pages/book/bookteacher.vue
+++ b/pages/book/bookteacher.vue
@@ -1,10 +1,10 @@
-
+
-
+
@@ -21,26 +21,27 @@
待上课
已完成
已取消
+ 预约失败
-
-
+
+
课程:{{item.courseName}}
- 班级:{{item.claName}}
+
教练:{{item.teacherName }}
教室:{{item.roomName}}
- 上课时间:{{ item.claDate+' '+item.startTime+(item.endTime?'-'+item.endTime:'')}}
+ 上课时间:{{ item.claDate+' '+formatTime(item.startTime)+(item.endTime?'-'+formatTime(item.endTime):'')}}
预约人数:{{item.bookAttendCnt}}
可容纳人数:{{item.atClassCnt}}
-
+
@@ -50,15 +51,15 @@
-
+
-
+
-
+
-
+
@@ -106,6 +107,10 @@
},100);
},
methods: {
+ formatTime(timeStr) {
+ // 假设 timeStr 格式为 "HH:MM:SS"
+ return timeStr.slice(0, 5); // 取前5位 "HH:MM"
+ },
getimgRemoteFile(img){
if(img){
img=img.split(',')[0];
@@ -199,7 +204,7 @@
async stopdodo(item){
var param={
"bookId": item.bookId,
- "bookStatus": 2
+ "bookStatus": 5
};
uni.showLoading({
title: '禁止预约中...'
@@ -250,7 +255,7 @@
// 确认预约
async checkdodo(item){
var param={
- "bookId": item.bookId,
+ "bookId": item.bookId,
"bookStatus": 1
};
uni.showLoading({
@@ -281,7 +286,7 @@
});
}
},
-
+
}
}
@@ -326,7 +331,7 @@
height: 100%;
}
.scrolllist{
- height: 110rpx;
+ height: 110rpx;
background: #FFF;
white-space: nowrap;
width: 100%;
@@ -367,7 +372,7 @@
background-image: url('/static/image/no.png');
background-size: 52% auto;
background-repeat: no-repeat;
- background-position: center;
+ background-position: center;
font-size: 28rpx;
text-align: center;
color: #00a89b;
@@ -482,7 +487,7 @@
flex:1;
width: 100%;
color:#333;
- align-items: center;
+ align-items: center;
}
.cancelbtn{
background-color: #FFFFFF !important;
@@ -568,7 +573,7 @@
font-size: 26rpx;
color:#333;
}
- }
+ }
}
}
.sitem {
@@ -625,6 +630,6 @@
}
}
}
-
-
+
+
diff --git a/pages/category/category.vue b/pages/category/category.vue
index ee9b730..c7cd54f 100644
--- a/pages/category/category.vue
+++ b/pages/category/category.vue
@@ -1,10 +1,10 @@
-
+
-
+
-
+
{{item.name}}
@@ -99,7 +99,6 @@
-
@@ -109,7 +108,7 @@
-
{{(j+1)+'、'+cell.content}}
@@ -121,7 +120,7 @@
-
+
@@ -144,13 +143,13 @@
-
+
-
+
-
+
@@ -177,7 +176,7 @@
sexs: [{
text: '男性',
value: "male"
- },
+ },
{
text: '女性',
value: "female"
@@ -232,7 +231,7 @@
// name:"健康饮食",
// id:7,
// loadStatus:'more',//'more', // 'noMore',
- // slist:[
+ // slist:[
// ]
// },
// {
@@ -293,13 +292,13 @@
name: '0'
}
],
-
+
description:"(亲爱的伽人,欢迎来到中医九种体质自测普查,此版本适用人群:全年龄段评分标准:请根据近1年真实情况勾选。打分规则:完全符合 = 2分 | 偶尔有 = 1分 | 完全不符合 = 0分请选择)",
title:"中医九种体质自测普查",
surveyId:null,
scores:0,
sessionId:null,
-
+
};
},
onLoad(option) {
@@ -307,15 +306,15 @@
this.id=option.id;
}
// 获取分类信息
- this.getSort();
+ this.getSort();
},
onShow(){
-
+
this.openId = myCache('openId');
var user = myCache('user');
this.userid = user.userid? user.userid:'';
this.phone = user.userphone;
-
+
var cartnum=getcartNum();
if(cartnum>0){
// 底部菜单消息角标
@@ -330,7 +329,7 @@
index: 4
})
}
-
+
var messageNum=getmessageNum();
console.log("messageNum",messageNum)
if(messageNum>0){
@@ -346,7 +345,7 @@
index: 3
})
}
-
+
},
mounted() {
if(this.userid==""||this.userid=="0"){
@@ -366,7 +365,7 @@
num = String(num).split("").reverse().join(""); // 将数字反转以便从低位到高位处理
let result = '';
let unitIndex = 0;
-
+
for (let i = 0; i < num.length; i++) {
let n = Number(num[i]);
if (n !== 0) {
@@ -381,7 +380,7 @@
}
}
}
-
+
return result.replace(/零([亿万])/g, "$1").replace(/零+/g, "零"); // 处理连续零和结果尾部的零
},
getoption(options){
@@ -414,7 +413,7 @@
score+=cell.score;
this.$forceUpdate();
}
- });
+ });
}
this.list[this.tabCurrentIndex].slist[ind]["score"]=score;
this.$forceUpdate();
@@ -435,9 +434,9 @@
optionId:cell.optionId
});
}
- });
+ });
}
-
+
})
if(tj>0){
this.tzsavedo(answers)
@@ -452,7 +451,7 @@
if (ress.confirm) {
}
}
- });
+ });
}
},
async tzsavedo(answers){
@@ -469,13 +468,13 @@
// 1.若平和质总分 ≥ 8分,且其他所有体质总分均 < 6分)
// 则跳出为:恭喜您,您的体质为“为平和体质”,非常完美。请联系您的馆主或教练,领取训练及生活方案,继续保持哦。
-
+
// 2.(若某一种偏颇体质(气虚/阳虚/阴虚等)总分 ≥ 8分)
// 亲爱的伽人您好,您的体质为典型(气虚/阳虚/阴虚等,是什么就跳出什么)体质。请联系您的馆主或教练,领取训练机生活方案,快速调整哦。
-
+
// 3.(若某一种偏颇体质总分在 6 ~ 7分 之间)则跳出为:
// 亲爱的伽人您好,您的体质为典型(气虚/阳虚/阴虚等,是什么就跳出什么)倾向体质。请联系您的馆主或教练,领取训练机生活方案,快速调整哦。
-
+
// 4.(若有两种及以上偏颇体质分数都7分含7分以上,)则跳出:
// 亲爱的伽人您好,您的体质为复合型体质典型,建议综合调理。请联系您的馆主或教练,领取训练机生活方案,快速调整哦。
var ifone=0,iftwo=0,ifthree=0,iffour=0;
@@ -522,7 +521,7 @@
else if(iffour>1){
tips="亲爱的伽人您好,您的体质为复合型体质典型,建议综合调理。请联系您的馆主或教练,领取训练机生活方案,快速调整哦。"
}
-
+
uni.showModal({
title: '提示',
content: tips,
@@ -531,15 +530,15 @@
success: ress => {
if (ress.confirm) {}
}
- });
+ });
}
- else{
+ else{
uni.showModal({
title: '提示',
content: res.message? res.message:'体质测评提交失败!请重试!',
cancelText: '取消',
confirmText: '确定'
- });
+ });
}
}
catch{
@@ -548,9 +547,9 @@
content: '计算异常!请重试!',
cancelText: '取消',
confirmText: '确定'
- });
+ });
}
-
+
},
async getSort() {
// 分类
@@ -636,7 +635,7 @@
async getList() {
if(this.list[this.tabCurrentIndex].loadStatus!=="noMore")
{
-
+
var para={
visitStore:this.shopid
}
@@ -679,21 +678,21 @@
uni.showLoading({
title: '数据加载中...'
});
-
+
// 体质测评
if(this.list[this.tabCurrentIndex].id==10){
// 获取体质测评项
const {data: res} = await uni.$http.get(url);
if(res.data){
var data=res.data;
- this.list[this.tabCurrentIndex].loadStatus="noMore";
+ this.list[this.tabCurrentIndex].loadStatus="noMore";
this.list[this.tabCurrentIndex].slist=data.constitutions?data.constitutions:[];
this.description=data.description;
this.title=data.title;
this.surveyId=data.surveyId;
this.sessionId=data.sessionId;
- this.$forceUpdate();
-
+ this.$forceUpdate();
+
if(this.userid){
// 获取体质测评上次答题结果(需登录)
const {data: rest} = await uni.$http.get("/api/questionnaire/result");
@@ -708,10 +707,10 @@
success: ress => {
if (ress.confirm) {}
}
- });
+ });
}
// var constitutionScores=rest.data.constitutionScores?rest.data.constitutionScores:[];
-
+
// var answers=rest.data.answers?rest.data.answers:[];
// answers.forEach(cell=>{
// this.list[this.tabCurrentIndex].slist.forEach((item,ii)=>{
@@ -731,7 +730,7 @@
// }
// });
// });
-
+
}
}
}
@@ -798,7 +797,7 @@
url: `/pages/product/list?id=2`
});
}
- else if(this.list[e.currentTarget.dataset.id].id==8){
+ else if(this.list[e.currentTarget.dataset.id].id==8){
// 教练培训
uni.reLaunch({
url: `/pages/product/list`
@@ -808,7 +807,7 @@
this.tabCurrentIndex = e.currentTarget.dataset.id;
this.$forceUpdate();
}
-
+
},
animationfinish({ detail: { current } }) {
// console.log("animationfinish")
@@ -835,7 +834,7 @@
url: `/pages/product/list?id=2`
});
}
- else if(this.list[e.detail.current].id==8){
+ else if(this.list[e.detail.current].id==8){
// 教练培训
uni.reLaunch({
url: `/pages/product/list`
@@ -922,7 +921,7 @@
if (ress.confirm) {
}
}
- });
+ });
}
else{
uni.showModal({
@@ -930,16 +929,16 @@
content: '计算异常!请重试!',
cancelText: '取消',
confirmText: '确定'
- });
+ });
}
}
- else{
+ else{
uni.showModal({
title: '提示',
content: res.message? res.message:'计算异常!请重试!',
cancelText: '取消',
confirmText: '确定'
- });
+ });
}
}
catch{
@@ -948,9 +947,9 @@
content: '计算异常!请重试!',
cancelText: '取消',
confirmText: '确定'
- });
+ });
}
-
+
},
// 获取状态栏高度
geStatusBarHeight(){
@@ -1002,7 +1001,7 @@
.swiper-item {
height: 100%;
}
-
+
.scrolltab{
height: 60rpx;
white-space: nowrap;
@@ -1101,9 +1100,9 @@
}
}
}
-
+
.scrolllist{
- height: 110rpx;
+ height: 110rpx;
background: #FFF;
white-space: nowrap;
width: 100%;
@@ -1142,7 +1141,7 @@
background-image: url('/static/image/no.png');
background-size: 52% auto;
background-repeat: no-repeat;
- background-position: center;
+ background-position: center;
font-size: 28rpx;
text-align: center;
color: #00a89b;
@@ -1254,7 +1253,7 @@
}
}
}
-
+
::v-deep.uni-data-checklist .checklist-group .checklist-box .checklist-content .checklist-text{
line-height: 40rpx !important;
font-size: 28rpx !important;
@@ -1326,7 +1325,7 @@
height: 40rpx;
line-height: 40rpx;
margin-left: 16rpx;
- }
+ }
.example {
margin: 20rpx 8rpx 0;
padding: 20rpx;
diff --git a/pages/chatbox/chat-box1.vue b/pages/chatbox/chat-box1.vue
index 404a020..95be1be 100644
--- a/pages/chatbox/chat-box1.vue
+++ b/pages/chatbox/chat-box1.vue
@@ -380,7 +380,7 @@ export default {
const that = this;
if (this.isConnected) return;
uni.connectSocket({
- url: 'ws://192.168.13.9:8528/im',
+ url: 'wss://www.sanduolantoyoga.com/yoga-imserver',
header: { Authorization: uni.getStorageSync('token') },
success: (res) => {
console.log('socket连接成功', res);
diff --git a/pages/chatbox/chat.vue b/pages/chatbox/chat.vue
index 53a2d55..048f8aa 100644
--- a/pages/chatbox/chat.vue
+++ b/pages/chatbox/chat.vue
@@ -111,7 +111,7 @@ export default {
}, 500)
},
methods: {
- ...mapActions('chatStore', ['removeChat', 'moveTop']),
+ ...mapActions('chatStore', ['removeChat', 'moveTop','loadFriend']),
// 设置底部角标
setBadge(count) {
diff --git a/pages/product/cdetail.vue b/pages/product/cdetail.vue
index 2793795..e437937 100644
--- a/pages/product/cdetail.vue
+++ b/pages/product/cdetail.vue
@@ -52,24 +52,24 @@
{{product.remarks}}
-
-
- 评价({{product.pjnum}})
-
- 查看全部评价
-
-
-
-
-
- {{product.pjname}}
- {{product.pjdate}}
-
-
-
- {{product.pjcontent}}
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/product/cxlist.vue b/pages/product/cxlist.vue
index 47c7427..9d59a7f 100644
--- a/pages/product/cxlist.vue
+++ b/pages/product/cxlist.vue
@@ -1,15 +1,15 @@
-
+
-
+
-
@@ -18,7 +18,7 @@
-
+
@@ -26,11 +26,11 @@
-
+
-
@@ -53,23 +53,23 @@
-
-
+
+
-
+
-
+
-
+
-
+
-
+
@@ -180,7 +180,7 @@
},
]
},
-
+
};
},
onLoad() {
@@ -266,9 +266,9 @@
unit:product.unit,
weight:product.weight, // 重量,默认克
instructor:product.instructor, // 备注
- brandName:product.brandName, //
- productCategoryName:product.productCategoryName, //
- isCourse:product.isCourse, //
+ brandName:product.brandName, //
+ productCategoryName:product.productCategoryName, //
+ isCourse:product.isCourse, //
price:product.price, // 价格
pic:product.pic?product.pic:'',// 详情
img:product.pic?product.pic:'',// 详情
@@ -305,7 +305,7 @@
});
}
this.$forceUpdate();
-
+
if(this.product.ifspec=='1'){
// 初始化规格
this.selinit();
@@ -346,7 +346,7 @@
console.log(e)
}
}
-
+
}
else{
uni.showModal({
@@ -434,10 +434,10 @@
console.log(val);
},
highlightKeyword(text, keyword) {
- if (!keyword) return text;
- // 使用正则表达式将关键词包裹在标签中
- const regex = new RegExp(keyword, 'gi');
- return text.replace(regex, `${keyword}`);
+ if (!keyword) return text;
+ // 使用正则表达式将关键词包裹在标签中
+ const regex = new RegExp(keyword, 'gi');
+ return text.replace(regex, `${keyword}`);
},
input(res) {
console.log('input',res);
diff --git a/pages/product/detail.vue b/pages/product/detail.vue
index d222805..bbf00c2 100644
--- a/pages/product/detail.vue
+++ b/pages/product/detail.vue
@@ -24,16 +24,16 @@
-
-
-
- 商家24H发货,第三方物流配送,免运费
-
-
-
- 不支持7天无理由退换货
-
-
+
+
+
+
+
+
+
+
+
+
@@ -67,24 +67,24 @@
-
-
- 评价({{product.pjnum}})
-
- 查看全部评价
-
-
-
-
-
- {{product.pjname}}
- {{product.pjdate}}
-
-
-
- {{product.pjcontent}}
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
商品参数
diff --git a/pages/product/list.vue b/pages/product/list.vue
index 0ca6010..a1c1a85 100644
--- a/pages/product/list.vue
+++ b/pages/product/list.vue
@@ -1,8 +1,8 @@
-
+
-
+
@@ -12,7 +12,7 @@
-
+
@@ -20,7 +20,7 @@
-
+
@@ -53,7 +53,7 @@
-
@@ -78,22 +78,22 @@
-
+
-
+
-
+
-
+
-
+
-
+
@@ -172,7 +172,7 @@
sels:"",
specs:[]
},
-
+
};
},
onLoad(option) {
@@ -185,7 +185,7 @@
}
this.scrollLeft = (this.tabCurrentIndex - 1) * 90;
}
-
+
},
mounted() {
if(this.userid==""||this.userid=="0"){
@@ -198,12 +198,12 @@
this.userid = user.userid? user.userid:'';
this.phone = user.userphone;
// this.shop = myCache('myshop')?myCache('myshop'):'';
-
+
// 先加载品类,在加载商品列表
this.getsortList();
// 广告
this.getggList();
-
+
// 购物车
var cartnum=getcartNum();
if(cartnum>0){
@@ -219,7 +219,7 @@
index: 4
})
}
-
+
},
onPullDownRefresh() {
setTimeout(()=>{
@@ -277,7 +277,7 @@
if(this.userid==""||this.userid=="0"){
this.$refs.loginId.open();
}
-
+
// 获取商品接口
try{
uni.showLoading();
@@ -285,16 +285,16 @@
if (res1&&res1.product) {
var product=res1.product;
this.product={
- id:product.id,
+ id:product.id,
productId:product.id, // 商品id
name:product.name, // 商品名称
productName:product.name, // 商品名称
unit:product.unit,
weight:product.weight, // 重量,默认克
instructor:product.instructor, // 备注
- brandName:product.brandName, //
- productCategoryName:product.productCategoryName, //
- isCourse:product.isCourse, //
+ brandName:product.brandName, //
+ productCategoryName:product.productCategoryName, //
+ isCourse:product.isCourse, //
price:product.price, // 价格
pic:product.pic?product.pic:'',// 详情
img:product.pic?product.pic:'',// 详情
@@ -331,7 +331,7 @@
});
}
this.$forceUpdate();
-
+
if(this.product.ifspec=='1'){
// 初始化规格
this.selinit();
@@ -371,7 +371,7 @@
console.log(e)
}
}
-
+
}
else{
uni.showModal({
@@ -385,7 +385,7 @@
catch(e){
console.log(e)
}
-
+
},
selinit(){
// 初始化
@@ -500,7 +500,7 @@
// {
// id:12,
// name:"M"
- // },
+ // },
// ]
// },
// {
@@ -528,7 +528,7 @@
});
}
},
-
+
// 切换门店
changeArea(item){
console.log(item)
@@ -547,10 +547,10 @@
this.loadData();
},
highlightKeyword(text, keyword) {
- if (!keyword) return text;
- // 使用正则表达式将关键词包裹在标签中
- const regex = new RegExp(keyword, 'gi');
- return text.replace(regex, `${keyword}`);
+ if (!keyword) return text;
+ // 使用正则表达式将关键词包裹在标签中
+ const regex = new RegExp(keyword, 'gi');
+ return text.replace(regex, `${keyword}`);
},
getPhoneNumber(e){
if(e.userid){
@@ -861,7 +861,7 @@
.scroll-view_H{
white-space: nowrap;
width: 100%;
- }
+ }
.adimg{
position: relative;
display: inline-block;
diff --git a/pages/product/order.vue b/pages/product/order.vue
index ddd406a..5989419 100644
--- a/pages/product/order.vue
+++ b/pages/product/order.vue
@@ -1,8 +1,8 @@
-
+
-
+
@@ -26,17 +26,17 @@
-
+
-
+
包裹{{index+1}}快递发货
- 商家24H发货,第三方物流配送 免运费
+
@@ -62,12 +62,12 @@
- 小计:
+ 小计:
¥{{parseFloat(info.price*info.quantity).toFixed(2)}}
-
+
@@ -104,12 +104,12 @@
- 小计:
+ 小计:
¥{{parseFloat(info.price*info.quantity).toFixed(2)}}
-
+
-
+
@@ -136,7 +136,7 @@
-
+
@@ -169,7 +169,7 @@
-
+
@@ -178,7 +178,7 @@
-
+
@@ -192,7 +192,7 @@
{{item.province+item.city+(item.area?item.area:'')+item.address}}
-
+
@@ -201,10 +201,10 @@
-
+
-
+
@@ -310,7 +310,7 @@
});
return false;
}
-
+
// 收货地址不能为空
if(!this.info.addressId){
uni.showModal({
@@ -323,7 +323,7 @@
});
return false;
}
-
+
// 订单提交中
this.ifsubmit=true;
try {
@@ -340,7 +340,7 @@
freightAmount:0 // 运费
});
});
- // 课程
+ // 课程
this.orderlist2.forEach(cell=>{
skuList.push({
skuId:cell.skuId,
@@ -349,7 +349,7 @@
freightAmount:0 // 运费
});
});
-
+
var params = {
addressId: this.info.addressId,
from:this.type,
@@ -372,7 +372,7 @@
});
}
});
-
+
// 清除立即购买缓存
myCache('buycartList','');
// 清除购物车缓存(应该删除购物车里勾选的商品??)
@@ -436,7 +436,7 @@
});
return false;
}
-
+
try {
var skuList=[];
// 商品
@@ -467,7 +467,7 @@
spDataValue: this.retSku(cell.spData)
})
});
-
+
var params = {
productTotalAmount: this.info.sums,
orderTotalAmount: this.info.sums,
@@ -486,7 +486,7 @@
delta: 1
});
}
- });
+ });
}
else if (res){
// 订单预创建成功
@@ -505,13 +505,13 @@
delta: 1
});
}
- });
+ });
}
},
async getinfo(type) {
var _this=this;
// 获取地址信息,地址默认
- this.myaddresslist=myCache("myaddresslist");
+ this.myaddresslist=myCache("myaddresslist");
// 默认地址
this.myaddresslist.forEach(data=>{
if(data.isDefault){
@@ -523,8 +523,8 @@
this.$forceUpdate();
}
});
-
- var buys = [];
+
+ var buys = [];
if(type=="buy"){
// 立即购买
var buy=myCache('buycartList');
@@ -544,7 +544,7 @@
});
});
}
-
+
if(buys.length<1){
uni.showModal({
title: '提示',
@@ -560,7 +560,7 @@
});
return false;
}
-
+
// 获取订单数据
this.orderlist1=[];
this.orderlist2=[];
@@ -594,7 +594,7 @@
this.info.sums=sums.toFixed(2);
this.info.nums=nums.toFixed(0);
this.$forceUpdate();
-
+
// 预创建订单
this.ordercreate();
},
@@ -735,11 +735,11 @@
console.log("MP-ALIPAY");
this.alipaydo();
// #endif
-
+
},
async zfbpayFailDo(){
// 支付失败
- uni.hideLoading();
+ uni.hideLoading();
var that=this;
uni.showModal({
title: '提示',
@@ -762,7 +762,7 @@
// 支付宝调起支付
var that=this;
console.log("支付宝发起支付");
- //申请支付
+ //申请支付
var param={
"userid": myCache('userid'),
"userId": myCache('openId'),
@@ -781,7 +781,7 @@
service: 'payment',
success: function (res) {
console.log(res.provider,"uni.getProvider");
-
+
if (~res.provider.indexOf('alipay')) {
uni.requestPayment({
"provider": "alipay", //固定值为"alipay"
@@ -816,7 +816,7 @@
}
}
});
-
+
}
else{
// 请求支付订单失败,
@@ -833,9 +833,9 @@
}
});
}
-
+
},
-
+
}
}
@@ -886,7 +886,7 @@
font-size: 48rpx;
font-weight: 600;
color:#ff3d0e ;
- }
+ }
}
.sbtn{
margin: 20rpx 45rpx 20rpx;
@@ -1025,9 +1025,9 @@
}
}
}
-
+
}
-
+
.tip{
padding: 30rpx 20rpx 26rpx 20rpx;
border-bottom: 1rpx solid #f0f0f0;
@@ -1037,7 +1037,7 @@
justify-content: space-between;
align-items: center;
}
-
+
.odrcell{
border-radius: 12rpx;
padding: 20rpx 40rpx;
@@ -1164,11 +1164,11 @@
}
}
}
-
+
::v-deep .uni-easyinput__content-input{
font-size: 36rpx !important;
}
-
+
::v-deep.uni-radio-input-checked{
background-color: #00a89b !important;
border-color: #00a89b !important;
@@ -1203,7 +1203,7 @@
width:100%;
padding: 20rpx 0;
font-size: 40rpx;
- font-weight:600;
+ font-weight:600;
.mcost{
font-size: 60rpx;
}
@@ -1356,5 +1356,5 @@
}
}
}
-
+
diff --git a/pages/user/courselist.vue b/pages/user/courselist.vue
index 51a6360..2efbc1c 100644
--- a/pages/user/courselist.vue
+++ b/pages/user/courselist.vue
@@ -1,6 +1,6 @@
-
+
@@ -20,7 +20,7 @@
-
+
@@ -33,30 +33,29 @@
-
- {{item.courseName||'-'}}
+ {{item.storeName||'-'}}
- {{item.startTime+'-'+item.endTime}}
+ {{formatTime(item.startTime)+' - '+formatTime(item.endTime)}}
-
+
-
+
- {{item.claName}}
-
+
+
- {{item.storeName}}
+ {{item.courseName}}
@@ -82,22 +81,22 @@
-
+
-
-
+
+
-
+
-
+
-
+
-
+
@@ -124,12 +123,12 @@
{{item.time}}
-
+
- {{dd.claName}}
{{dd.staffName}}
{{dd.roomName}}
-
- 不可预约
+
+
-
+
-
-
+
+
@@ -168,7 +167,7 @@
-
+
@@ -644,7 +643,7 @@
}
}
],
-
+
};
},
onLoad(option) {
@@ -679,6 +678,10 @@
},100);
},
methods: {
+ formatTime(timeStr) {
+ // 假设 timeStr 格式为 "HH:MM:SS"
+ return timeStr.slice(0, 5); // 取前5位 "HH:MM"
+ },
closeDialog(){
this.$refs.pfDialog.close();
},
@@ -933,7 +936,7 @@
.scrolllist0{
display: flex;
flex: 1;
- height: 100rpx;
+ height: 100rpx;
background: #FFF;
white-space: nowrap;
width: 100%;
@@ -968,7 +971,7 @@
margin-left: 30%;
}
.scrolllist{
- height: 150rpx;
+ height: 150rpx;
background: #FFF;
white-space: nowrap;
width: 100%;
@@ -1000,7 +1003,7 @@
border: 1rpx solid #00A99A;
border-radius: 10rpx;
}
-
+
.swiper-box {
flex: 1;
height: calc(100vh - var(--window-top) - 310rpx) !important;
@@ -1015,7 +1018,7 @@
background-image: url('/static/image/no.png');
background-size: 52% auto;
background-repeat: no-repeat;
- background-position: center;
+ background-position: center;
font-size: 28rpx;
text-align: center;
color: #00A99A;
@@ -1067,9 +1070,14 @@
align-items: center;
width: 100%;
.osimg{
- width: 160rpx;
- height: 260rpx;
- border-radius: 10rpx;
+ width: 200rpx;
+ height: 200rpx;
+ margin-right: 10rpx;
+ >image {
+ width: 200rpx;
+ height: 200rpx;
+ border-radius: 10rpx;
+ }
}
.osname{
display: flex;
@@ -1109,7 +1117,7 @@
font-size: 26rpx;
color: #333;
margin-right: 10rpx;
- }
+ }
.txtbg3{
padding: 2rpx 15rpx;
border-radius: 30rpx;
@@ -1241,7 +1249,7 @@
// height: calc(100vh - 240rpx - var(--window-top));
// /* #endif */
background: #f8f8f8;
- }
+ }
::v-deep .uni-table-tr{
display: flex;
background: #f8f8f8;
@@ -1418,8 +1426,8 @@
border:none;
}
}
-
-
+
+
.pcon{
width: 690rpx;
padding-top:30rpx;
@@ -1466,5 +1474,5 @@
color: #FCFCFD;
}
}
-
+
diff --git a/pages/user/mycollect.vue b/pages/user/mycollect.vue
index 0743e34..4658603 100644
--- a/pages/user/mycollect.vue
+++ b/pages/user/mycollect.vue
@@ -11,7 +11,7 @@
-
@@ -33,24 +33,24 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -191,7 +191,7 @@
},
]
},
-
+
};
},
onLoad() {
@@ -220,7 +220,7 @@
methods: {
// 加入购物车
addShopCar(sels,quantity,buyType){
-
+
if(sels){
// 已加入购物车动画
this.cartnum=getcartNum();
@@ -264,9 +264,9 @@
unit:product.unit,
weight:product.weight, // 重量,默认克
instructor:product.instructor, // 备注
- brandName:product.brandName, //
- productCategoryName:product.productCategoryName, //
- isCourse:product.isCourse, //
+ brandName:product.brandName, //
+ productCategoryName:product.productCategoryName, //
+ isCourse:product.isCourse, //
price:product.price, // 价格
pic:product.pic?product.pic:'',// 详情
img:product.pic?product.pic:'',// 详情
@@ -303,7 +303,7 @@
});
}
this.$forceUpdate();
-
+
if(this.product.ifspec=='1'){
// 初始化规格
this.selinit();
@@ -343,7 +343,7 @@
console.log(e)
}
}
-
+
}
else{
uni.showModal({
@@ -407,7 +407,7 @@
console.log(e)
}
},
-
+
// 切换门店
changeArea(item){
this.shop=item.value_name;
@@ -425,10 +425,10 @@
console.log(val);
},
highlightKeyword(text, keyword) {
- if (!keyword) return text;
- // 使用正则表达式将关键词包裹在标签中
- const regex = new RegExp(keyword, 'gi');
- return text.replace(regex, `${keyword}`);
+ if (!keyword) return text;
+ // 使用正则表达式将关键词包裹在标签中
+ const regex = new RegExp(keyword, 'gi');
+ return text.replace(regex, `${keyword}`);
},
input(res) {
if(!this.ifsear){
@@ -486,7 +486,7 @@
{
uni.showLoading({
title: '数据加载中...'
- });
+ });
const {data: res} = await uni.$http.get('/api/userFavorite/getUserFavorites');
if(res&&res.data&&res.data.length>0){
this.loadStatus="noMore";
@@ -528,16 +528,16 @@
return { intPart, decimalPart };
},
navToList(item){
- if(item.type==1){
- uni.navigateTo({
- url: `/pages/product/detail?id=${item.id}`
- })
- }
- else if(item.type==2){
- uni.navigateTo({
- url: `/pages/product/cdetail?id=${item.id}`
- })
- }
+ if(item.isCourse==1){
+ uni.navigateTo({
+ url: `/pages/product/cdetail?id=${item.id}`
+ })
+ }
+ else {
+ uni.navigateTo({
+ url: `/pages/product/detail?id=${item.id}`
+ })
+ }
},
gotoBack(){
// 返回
diff --git a/pages/user/mycustom.vue b/pages/user/mycustom.vue
index 7b990e7..ae865ac 100644
--- a/pages/user/mycustom.vue
+++ b/pages/user/mycustom.vue
@@ -1,10 +1,10 @@
-
-
-
-
+
+
+
+
+
@@ -29,56 +29,76 @@
-
- 课程:{{item.courseName}}
-
-
- 收费模式:{{ item.chargeType?retStr(item.chargeType):'其他' }}
+
+ 卡号:{{item.cardNo}}
+
-
- 次数:{{item.count}}
-
+
+ 收费模式:{{ item.chargeType?retStr(item.chargeType):'其他' }}
+
-
- 时间:{{item.days}}
-
+
+
+ 总次数:{{item.count}}
+
+
+ 剩余次数:{{item.remainingCount}}
+
+
+
+
+ 总天数:{{item.days}}
+
+
+ 剩余天数:{{item.remainingDays}}
+
+
+
+
+ 储值金额:¥{{item.totalFee}}
+
+
+ 剩余金额:¥{{item.remainingTotalFee}}
+
+
+
-
+
收费:¥{{item.receiptFee}}
-
- 储值:¥{{item.totalFee}}
-
-
+
+
+ 激活日期:{{item.beginDate? item.beginDate:'未激活'}}
+
- 有限期限:{{(item.beginDate?item.beginDate:' — ')+'至'+(item.expireDate?item.expireDate:' — ')}}
+ 到期日期:{{item.expireDate}}
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -228,7 +248,7 @@
}
if (res1.data&&res1.data.length>0) {
this.loadStatus="noMore";
- this.contentText.contentnomore="没有数据了...";
+ this.contentText.contentnomore="";
this.goodsList=res1.data;
this.$forceUpdate();
}
@@ -267,7 +287,7 @@
// url: `/pages/product/detail?id=${id}`
// })
},
-
+
}
}
diff --git a/pages/user/user.vue b/pages/user/user.vue
index ec6af5d..ca1750f 100644
--- a/pages/user/user.vue
+++ b/pages/user/user.vue
@@ -1,6 +1,6 @@
-
+
-
+
-
+
-
-
-
-
- {{servers[0].name}}
-
+
+
+
+
+
+
@@ -164,22 +164,22 @@
-
+
-
+
-
+
-
+