From 0d5dc4dded1148f8e48244729e886d361bca628d Mon Sep 17 00:00:00 2001
From: "Mr.jiang" <714156421@qq.com>
Date: Mon, 24 Jun 2024 11:29:11 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/config.js | 7 +-
common/queue.js | 2 +
components/t-refresh/t-refresh.vue | 202 ++
manifest.json | 7 +-
my/address/Endaddress.vue | 18 +-
my/address/address.vue | 12 +-
my/hongbao/youhuijuan.vue | 1 +
my/order/pay.vue | 445 +++-
my/order/payModify.vue | 422 +++-
my/order/payModifyDzhifu.vue | 1816 +++++++++++++++++
my/wallet/index.vue | 372 +++-
my/wallet/mymoneydetail.vue | 50 +-
pages.json | 123 +-
pages/index/index.vue | 266 ++-
pages/index/order/orderDet.vue | 68 +-
pages/my/cika.vue | 414 ++++
pages/my/cikarDrtail.vue | 1269 ++++++++++++
pages/my/cureOderDrtail.vue | 101 +-
pages/my/fuwuDateil.vue | 514 +++++
pages/my/fuwuGengduo.vue | 420 ++++
pages/my/fuwuliaocheng.vue | 414 ++++
pages/my/fuwuliaochengDetail.vue | 1281 ++++++++++++
pages/my/fuwuxiangm.vue | 420 ++++
pages/my/historyMy.vue | 444 ++++
pages/my/index.vue | 43 +-
pages/my/indextaociliaoList.vue | 413 ++++
pages/my/myCiLiaoDetail.vue | 626 ++++++
pages/my/orderDetailsList.vue | 448 ++++
pages/my/serviceOderDrtail.vue | 675 +++++-
pages/my/servicePackage.vue | 345 +---
pages/order/index.vue | 316 ++-
pages/therapist/orderDetail.vue | 20 +-
pages/therapist/therapist.vue | 165 +-
static/activate2.png | Bin 0 -> 40510 bytes
static/activate3.png | Bin 0 -> 39513 bytes
static/topimg.png | Bin 0 -> 41507 bytes
.../liu-goods-swiper/liu-goods-swiper.vue | 8 +-
uview-ui/components/u-field/u-field.vue | 4 +
uview-ui/libs/request/index.js | 1 +
39 files changed, 11306 insertions(+), 846 deletions(-)
create mode 100644 components/t-refresh/t-refresh.vue
create mode 100644 my/order/payModifyDzhifu.vue
create mode 100644 pages/my/cika.vue
create mode 100644 pages/my/cikarDrtail.vue
create mode 100644 pages/my/fuwuDateil.vue
create mode 100644 pages/my/fuwuGengduo.vue
create mode 100644 pages/my/fuwuliaocheng.vue
create mode 100644 pages/my/fuwuliaochengDetail.vue
create mode 100644 pages/my/fuwuxiangm.vue
create mode 100644 pages/my/historyMy.vue
create mode 100644 pages/my/indextaociliaoList.vue
create mode 100644 pages/my/myCiLiaoDetail.vue
create mode 100644 pages/my/orderDetailsList.vue
create mode 100644 static/activate2.png
create mode 100644 static/activate3.png
create mode 100644 static/topimg.png
diff --git a/common/config.js b/common/config.js
index ac0ef30..62340aa 100644
--- a/common/config.js
+++ b/common/config.js
@@ -2,9 +2,13 @@
// const ROOTPATH1 = "http://120.46.52.165/sqx_fast";
// const ROOTPATH3 = "wss://120.46.52.165/wss/websocket/";
+const ROOTPATH3 = "wss://192.168.2.222:8187/wss/websocket/";
const ROOTPATH = "http://192.168.2.222:8187/sqx_fast";
const ROOTPATH1 = "http://192.168.2.222:8187/sqx_fast";
-const ROOTPATH3 = "wss://192.168.2.222:8187/wss/websocket/";
+
+// const ROOTPATH = "http://192.168.2.13:8187/sqx_fast";
+// const ROOTPATH1 = "http://192.168.2.13:8187/sqx_fast";
+// const ROOTPATH3 = "wss://192.168.2.13:8187/wss/websocket/";
// const ROOTPATH = "http://192.168.1.169:8187/sqx_fast";
// const ROOTPATH1 = "http://192.168.1.169:8187/sqx_fast";
@@ -35,6 +39,7 @@ const TX_MAP_KEY = 'VIWBZ-5OM3F-CV7JZ-NLKJY-AXSYV-TMFM6';
//const TX_MAP_KEY = '55UBZ-STNK4-DSNUM-F4A75-Q7BC5-FRBMS';
//ws基础连接地址
+// const WS_BASE_PATH = 'ws://192.168.2.13:8187/sqx_fast/';
const WS_BASE_PATH = 'ws://192.168.2.222:8187/sqx_fast/';
// const WS_BASE_PATH = 'ws://120.46.52.165/sqx_fast/';
// const WS_BASE_PATH = 'wss://admin.sjajk.com/sqx_fast/';//生产需替换
diff --git a/common/queue.js b/common/queue.js
index c2c17a4..371436b 100644
--- a/common/queue.js
+++ b/common/queue.js
@@ -21,12 +21,14 @@ module.exports = {
// return 'https://admin.sjajk.com'//生产需替换
// return 'http://120.46.52.165'
return 'http://192.168.2.222:8187'
+ // return 'http://192.168.2.13:8187'
},
//全局域名 部分html中需要单独替换 需要修改config中的网络请求域名
publicYuMingApp() {
// return 'https://wx.sjajk.com'//生产需替换
// return 'http://120.46.52.165'
return 'http://192.168.2.222:8187'
+ // return 'http://192.168.2.13:8187'
},
logout() {
this.remove("token");
diff --git a/components/t-refresh/t-refresh.vue b/components/t-refresh/t-refresh.vue
new file mode 100644
index 0000000..a258d96
--- /dev/null
+++ b/components/t-refresh/t-refresh.vue
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{loadingText[loadingType]}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
index 67a0782..ffc0e01 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,6 +1,6 @@
{
"name" : "盛安到家",
- "appid" : "H56D02895",
+ "appid" : "__UNI__0A81F4F",
"description" : "",
"versionName" : "1.0.1",
"versionCode" : 101,
@@ -184,8 +184,9 @@
"key" : "2acf1b8c3d1aaf0070472dec19018d96",
"securityJsCode" : "2b07c8496878c327a8ae7a19de33e2a7",
// "serviceHost" : "http://wx.sjajk.com/_AMapService"//生产需替换
- // "serviceHost" : "http://120.46.52.165/_AMapService"
- "serviceHost" : "http://192.168.2.222:8187/_AMapService"
+ // "serviceHost" : "http://120.46.52.165/_AMapService"
+ "serviceHost" : "http://192.168.2.222:8187/_AMapService"
+ // "serviceHost" : "http://192.168.2.13:8187/_AMapService"
}
}
},
diff --git a/my/address/Endaddress.vue b/my/address/Endaddress.vue
index 03751d6..2962ef2 100644
--- a/my/address/Endaddress.vue
+++ b/my/address/Endaddress.vue
@@ -1,5 +1,5 @@
-
+
@@ -27,6 +27,7 @@
确定
+
-
-
@@ -141,16 +140,15 @@
},
shengcheng(longitude, latitude) {
this.$Request.getT('/app/Login/selectCity?lat=' + latitude + '&lng=' + longitude).then(res => {
- // console.log(res)
+ console.log(res)
if (res.code === 0) {
this.cityaddress = res.data.province + res.data.city + res.data.district
- // console.log(this.address)
+ console.log(this.cityaddress)
this.province = res.data.province
this.city = res.data.city
this.district = res.data.district
}
});
-
},
getAddressList(id) {
uni.showLoading({
@@ -267,6 +265,14 @@
\ No newline at end of file
diff --git a/my/wallet/index.vue b/my/wallet/index.vue
index a9d48c6..6b5ed57 100644
--- a/my/wallet/index.vue
+++ b/my/wallet/index.vue
@@ -23,21 +23,21 @@
只能用于平台消费支付,充值后不可退款
-
- 余额充值
+
+ 余额充值
+ 为TA充值
-
- ¥{{item.price}}
+
+ 充¥{{item.price}}
+ 赠¥{{item.sumMoney}}
-
- ¥{{item.price}}
-
-
- 赠送 {{item.giveNum}}张{{item.coupon.money}}元优惠券
+
+ 赠送 {{item.remarks}}
+
@@ -84,11 +84,15 @@
-->
-
+
+
+ style="background: linear-gradient(to right, #00a85b, #00a85b);color: #FFFFFF;margin: 16rpx 30upx;position: fixed;bottom: 0upx;width: 90%;border-radius: 50rpx;height: 78rpx;line-height: 78rpx;font-size: 32rpx;">
确定充值
@@ -206,11 +210,109 @@
立即提现
-
-
+
+
+
+
+
+
@@ -219,6 +321,7 @@
export default {
data() {
return {
+ type:'center',
jsczSel: '否',
tgCheck: '否',
isAgency: 0,
@@ -270,7 +373,8 @@
placeholder: '',
renzheng: 0,
sp: 0,
- txMsg: ''
+ txMsg: '',
+ nameTxt:''
}
},
onLoad(d) {
@@ -280,12 +384,14 @@
} else {
this.tabIndex = 0;
}
+
this.wxTxSel = this.$queue.getData('wxTxSel');
this.ylTxSel = this.$queue.getData('ylTxSel');
this.jsczSel = this.$queue.getData('jsczSel');
this.txMsg = this.$queue.getData('txMsg');
this.avatar = uni.getStorageSync('avatar')
this.renzheng = uni.getStorageSync("renzheng")
+ this.nameTxt=d.text
this.getMoneyList();
// #ifndef MP-WEIXIN
this.openLists = [{
@@ -326,9 +432,6 @@
if (res.code == 0) {
this.wallet = [];
res.data.forEach((d, index) => {
- // if(!d.coupon){
- // return;
- // }
if (index == 0) {
d.isSelect = true;
this.thisSelect = d;
@@ -340,6 +443,19 @@
}
});
},
+ change(e) {
+ console.log('当前模式:' + e.type + ',状态:' + e.show);
+ },
+ closePopup(type){//改价 关闭弹出框
+ this.type = type
+ this.$refs.popup.close(type);
+ },
+ toggle(type) {//改价 弹出框
+ this.type = type
+ // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
+ this.$refs.popup.open(type)
+ },
+
//退保证金
TuiPrice() {
let that = this
@@ -781,6 +897,206 @@
diff --git a/pages/my/cikarDrtail.vue b/pages/my/cikarDrtail.vue
new file mode 100644
index 0000000..3af464c
--- /dev/null
+++ b/pages/my/cikarDrtail.vue
@@ -0,0 +1,1269 @@
+
+
+
+
+
+
+
+
+
+
+ {{itemY.money}}
+ 元
+
+
+ 满{{itemY.minMoney}}元可用
+
+
+
+
+ {{itemY.couponName}}
+ {{itemY.endDate}}
+
+
+
+
+
+
+ 立即购买
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/my/cureOderDrtail.vue b/pages/my/cureOderDrtail.vue
index 3709840..66976e2 100644
--- a/pages/my/cureOderDrtail.vue
+++ b/pages/my/cureOderDrtail.vue
@@ -1,18 +1,21 @@
-
+
立即购买
@@ -94,10 +97,75 @@
export default{
data(){
return{
+ dataList:[],
+ getList:[],
+ isVIP:false,
+ // 背景图片的URL可以是动态的,比如从API获取或根据条件生成
+ backgroundImageUrl: '',
+ nameText:''
+ }
+ },
+ computed: {
+ backgroundStyle() {
+ return {
+ backgroundImage: `url(${this.backgroundImageUrl})`,
+ backgroundSize: 'cover', // 根据需要调整
+ };
+ }
+ },
+ onLoad(e) {
+ var that=this;
+ that.dataList=e;
+ that.isVIP=this.$queue.getData('isVIP');
+ if(that.dataList.name=='index'){
+ that.getIndexData()
+ }else{
+ that.getData();
}
},
methods:{
-
+ goumai(item){//立即购买
+ this.$queue.setData('getJishi','')
+ this.$queue.setData('ordersId',this.dataList.massageTypeId);
+ this.$queue.setData('userPackageDetailId',this.dataList.id);
+ this.$queue.setData('daibudan','');
+ uni.navigateTo({
+ url:'/my/order/payModify?ordersId='+this.dataList.massageTypeId
+ })
+
+ },
+ getIndexData(){//从首页 推荐进入 请求的接口
+ var that=this;
+ let data = {
+ id: that.dataList.id,
+ limit: that.dataList.limit,
+ mainId: that.dataList.mainId,
+ massageTypeId:that.dataList.massageTypeId,
+ page:that.dataList.page,
+ }
+ that.$Request.get('/app/massage/packageDetail/getAppPackageDetail',data).then(res => {
+ if (res.code == 0) {
+ that.getList=res.data;
+ that.backgroundImageUrl=that.getList.massageImg
+ }
+ })
+ },
+ getData(){
+ var that=this;
+ let data = {
+ id: that.dataList.id,
+ limit: that.dataList.limit,
+ mainId: that.dataList.mainId,
+ massageTypeId:that.dataList.massageTypeId,
+ page:that.dataList.page,
+ }
+ that.$Request.get('/app/user/package/detail/getMyPackageDetail', data).then(res => {
+ if (res.code == 0) {
+ that.getList=res.data;
+ that.backgroundImageUrl=that.getList.massageImg
+ }
+ })
+ },
}
}
@@ -153,9 +221,9 @@
align-items: center;
margin-top: 20px;
}
- .detail-foot-mian image{
+ .detail-foot-mian-img{
width: 100%;
- height: 369.44rpx;
+ height:auto;
}
.detail-foot-mian-top-bottom{
margin-top: 10px;
@@ -219,6 +287,7 @@
display: flex;
flex-direction: column;
position: relative;
+ margin-bottom: 10px;
}
.detail-foot{
width: 100%;
diff --git a/pages/my/fuwuDateil.vue b/pages/my/fuwuDateil.vue
new file mode 100644
index 0000000..f1cce36
--- /dev/null
+++ b/pages/my/fuwuDateil.vue
@@ -0,0 +1,514 @@
+
+
+
+
+
+
+ 立即购买
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/my/fuwuGengduo.vue b/pages/my/fuwuGengduo.vue
new file mode 100644
index 0000000..41dc2ac
--- /dev/null
+++ b/pages/my/fuwuGengduo.vue
@@ -0,0 +1,420 @@
+
+
+
+
+
+
+ 更多推荐
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+ {{item.content}}
+
+
+
+ ¥
+ {{item.price}}
+ /元套
+ {{item.oldPrice}}
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/my/fuwuliaocheng.vue b/pages/my/fuwuliaocheng.vue
new file mode 100644
index 0000000..a6a8832
--- /dev/null
+++ b/pages/my/fuwuliaocheng.vue
@@ -0,0 +1,414 @@
+
+
+
+
+
+
+
+
+
+
+ 服务疗程
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.status=='1'?'未用完':item.status=='2'?'退款':'已用完'}}
+
+
+
+ {{item.title}}
+
+
+ {{item.classifyName}}
+ 已售{{item.sales}}w+ | 好评{{item.esteemRate}}%
+
+
+ {{item.content}}
+
+
+
+ ¥
+ {{item.price}}
+ /元套
+ {{item.oldPrice}}
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/my/fuwuliaochengDetail.vue b/pages/my/fuwuliaochengDetail.vue
new file mode 100644
index 0000000..6d79789
--- /dev/null
+++ b/pages/my/fuwuliaochengDetail.vue
@@ -0,0 +1,1281 @@
+
+
+
+
+
+
+
+
+
+
+ {{itemY.money}}
+ 元
+
+
+ 满{{itemY.minMoney}}元可用
+
+
+
+
+ {{itemY.couponName}}
+ {{itemY.endDate}}
+
+
+
+
+
+
+ 立即购买
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/my/fuwuxiangm.vue b/pages/my/fuwuxiangm.vue
new file mode 100644
index 0000000..13c093e
--- /dev/null
+++ b/pages/my/fuwuxiangm.vue
@@ -0,0 +1,420 @@
+
+
+
+
+
+
+ 服务项目
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+ {{item.classifyName}}
+ 已售{{item.sales}}w+ | 好评{{item.esteemRate}}%
+
+
+ {{item.jianjie}}
+
+
+
+ ¥
+ {{item.price}}
+ /元套
+ {{item.oldPrice}}
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/my/historyMy.vue b/pages/my/historyMy.vue
new file mode 100644
index 0000000..26d86fa
--- /dev/null
+++ b/pages/my/historyMy.vue
@@ -0,0 +1,444 @@
+
+
+
+
+
+
+ 浏览历史
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+ {{item.content}}
+
+
+
+ ¥
+ {{item.price}}
+ /元套
+ {{item.oldPrice}}
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/my/index.vue b/pages/my/index.vue
index bcca9ec..3de9c1c 100644
--- a/pages/my/index.vue
+++ b/pages/my/index.vue
@@ -41,10 +41,11 @@
-
-
+
+
+
+
我的服务
@@ -127,7 +128,7 @@
{urlImg:'../../static/my-gong-5.png',text:'地址管理',link:'/my/address/address'},
{urlImg:'../../static/my-gong-6.png',text:'帮助中心',link:'/my/help/feedbackIndex'},
{urlImg:'../../static/my-gong-7.png',text:'设置中心',link:'/my/setting/index'},
- {urlImg:'../../static/my-gong-8.png',text:'浏览历史',link:'/my/gird/browse'},
+ {urlImg:'../../static/my-gong-8.png',text:'浏览历史',link:'/pages/my/historyMy'},
{urlImg:'../../static/my-gong-9.png',text:'我的团队',link:'/pages/my/myteam'},
]
}
@@ -457,26 +458,28 @@
})
},
meServe(item){
- uni.navigateTo({
- url:'/pages/my/servicePackage?name='+item
- })
- // if(item=="服务套餐"){
-
- // }else if(item=="项目次卡"){
- // uni.navigateTo({
- // url:'/pages/my/onceCardPackage?name='+'项目次卡'
- // })
- // }else if(item=="服务疗程"){
- // uni.navigateTo({
- // url:'/pages/my/curePackage?name='+'服务疗程'
- // })
- // }
+ if(item=="服务套餐"){
+ uni.navigateTo({
+ url:'/pages/my/servicePackage'
+ })
+ }else if(item=="项目次卡"){
+ uni.navigateTo({
+ url:'/pages/my/cika'
+ })
+ }else if(item=="服务疗程"){
+ uni.navigateTo({
+ url:'/pages/my/fuwuliaocheng'
+ })
+ }
},
}
}
diff --git a/pages/my/myCiLiaoDetail.vue b/pages/my/myCiLiaoDetail.vue
new file mode 100644
index 0000000..e34c133
--- /dev/null
+++ b/pages/my/myCiLiaoDetail.vue
@@ -0,0 +1,626 @@
+
+
+
+
+
+
+ 立即购买
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/my/orderDetailsList.vue b/pages/my/orderDetailsList.vue
new file mode 100644
index 0000000..cc4d0fc
--- /dev/null
+++ b/pages/my/orderDetailsList.vue
@@ -0,0 +1,448 @@
+
+
+
+
+
+
+ {{previousPage.name}}
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+ {{item.content}}
+
+
+
+ ¥
+ {{item.price}}
+ /元套
+ {{item.oldPrice}}
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/my/serviceOderDrtail.vue b/pages/my/serviceOderDrtail.vue
index 0319762..74bac95 100644
--- a/pages/my/serviceOderDrtail.vue
+++ b/pages/my/serviceOderDrtail.vue
@@ -2,7 +2,8 @@
项目特色:
- {{item.content}}
+ {{item.jianjie}}
-
-
-
+
+
+
+
+ {{itemY.money}}
+ 元
+
+
+ 满{{itemY.minMoney}}元可用
+
+
+
+
+ {{itemY.couponName}}
+ {{itemY.endDate}}
+
+
+
+
+
+
+ 立即预约
+
+
+
+
+
\ No newline at end of file
diff --git a/uview-ui/components/u-field/u-field.vue b/uview-ui/components/u-field/u-field.vue
index cb7d7ac..6428d55 100644
--- a/uview-ui/components/u-field/u-field.vue
+++ b/uview-ui/components/u-field/u-field.vue
@@ -264,16 +264,20 @@ export default {
this.$emit('blur', event);
},
onConfirm(e) {
+ console.log("onConfirm")
this.$emit('confirm', e.detail.value);
},
onClear(event) {
+ console.log("onClear")
this.$emit('input', '');
},
rightIconClick() {
+ console.log("rightIconClick")
this.$emit('right-icon-click');
this.$emit('click');
},
fieldClick() {
+ console.log("fieldClick")
this.$emit('click');
}
}
diff --git a/uview-ui/libs/request/index.js b/uview-ui/libs/request/index.js
index 6ed747a..a25c908 100644
--- a/uview-ui/libs/request/index.js
+++ b/uview-ui/libs/request/index.js
@@ -104,6 +104,7 @@ class Request {
// baseUrl: 'https://admin.sjajk.com/', // 请求的根域名//生产需替换
// baseUrl: 'http://120.46.52.165/', // 请求的根域名
baseUrl: 'http://192.168.2.222:8187/',
+ // baseUrl: 'http://192.168.2.27:8187/',
// 默认的请求头
header: {},
method: 'POST',