diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index e46c421..5c749eb 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -20,8 +20,8 @@ const install = (Vue, vm) => {
// },
// https://yxd.ccttiot.com/prod-api});
Vue.prototype.$u.http.setConfig({
- // baseUrl: 'http://192.168.2.28:8089',
- baseUrl: 'https://testcha.chuangtewl.com/prod-api',
+ baseUrl: 'http://192.168.2.56:8089',
+ // baseUrl: 'https://testcha.chuangtewl.com/prod-api',
loadingText: '努力加载中~',
loadingTime: 800,
// 设置自定义头部content-type
diff --git a/page_fenbaotwo/skzh.vue b/page_fenbaotwo/skzh.vue
new file mode 100644
index 0000000..68cfa2d
--- /dev/null
+++ b/page_fenbaotwo/skzh.vue
@@ -0,0 +1,254 @@
+
+
+
+
+
+ 注意:请下载保存收款码,不要截图保存
+
+
+
+
+ 上传二维码
+
+
+ 必须清晰、方正、易于辨识
+
+
+
+
+
+
+
+
+
+
+
+
+ 确认上传
+
+
+
+
+
+
+
+
+
diff --git a/page_fenbaotwo/tixian.vue b/page_fenbaotwo/tixian.vue
index d48e1a9..e5aec21 100644
--- a/page_fenbaotwo/tixian.vue
+++ b/page_fenbaotwo/tixian.vue
@@ -7,10 +7,10 @@
账户余额(元)
- ¥0
+ ¥{{user.balance == null ? 0 : user.balance}} (可提现金额¥{{user.withdrawalAmount == null ? 0 : user.withdrawalAmount}})
- 累计提现:¥0
+ 累计提现:¥{{user.totalWithdrawAmount == null ? 0 : user.totalWithdrawAmount}}
@@ -24,15 +24,15 @@
¥
-
-
+
全部提现
-
- 提现服务费为 ¥1 最低提现金额为¥20
+
+ 提现服务费为 ¥{{shouxuobj.withdrawHandlingCharge == null ? '' : shouxuobj.withdrawHandlingCharge}} 最低提现¥{{shouxuobj.minAmount == null ? '' : shouxuobj.minAmount}} 最高提现¥{{shouxuobj.maxAmount == null ? '' : shouxuobj.maxAmount}}
@@ -43,21 +43,21 @@
-
+
-
+
- 微信提现
+ {{item.name}}提现
+ name="checkbox-mark" color="#fff" size="28">
-
- 确认提现
+
+ 申请提现
@@ -70,13 +70,83 @@
bgc: {
backgroundColor: "",
},
+ user:{},
+ qudaolist:[],
+ currentindex:-1,
+ shouxuobj:'',
+ money:''
}
},
- onShow() {
+ onLoad(option) {
+ this.getinfo()
+ this.getqudao(option.userId)
+ },
+ onShow(option) {
},
methods: {
-
+ // 点击进行提现
+ btntx(){
+ if(this.shouxuobj.collectionCode == null && this.shouxuobj.name == '线下收款码'){
+ uni.showModal({
+ title: '提示',
+ content: '当前暂无收款码,是否去上传?',
+ success: function(res) {
+ if (res.confirm) {
+ try {
+ uni.navigateTo({
+ url:'/page_fenbaotwo/skzh'
+ })
+ } catch (e) {
+ console.error('删除本地存储时发生错误:', e);
+ }
+ }
+ }
+ })
+ }else{
+ let data = {
+ amount:this.money,
+ userWithdrawChannelId:this.shouxuobj.userChannelId
+ }
+ this.$u.post(`app/withdraw/mch`,data).then(res => {
+ if (res.code == 200) {
+ uni.showToast({
+ title: '申请成功',
+ icon: 'success',
+ duration: 2000
+ })
+ this.getinfo()
+ }else{
+ uni.showToast({
+ title: res.msg,
+ icon: 'none',
+ duration: 2000
+ })
+ }
+ })
+ }
+ },
+ // 点击选择提现方式
+ btntxxz(item,index){
+ this.currentindex = index
+ this.shouxuobj = item
+ },
+ // 获取个人信息
+ getinfo(){
+ this.$u.get(`/getAppInfo`).then(res => {
+ if (res.code == 200) {
+ this.user = res.user
+ }
+ })
+ },
+ // 获取提现渠道列表
+ getqudao(userId){
+ this.$u.get(`/app/withdraw/getUserWithdrawChannelList?userId=${userId}`).then(res => {
+ if (res.code == 200) {
+ this.qudaolist = res.data
+ }
+ })
+ }
}
}
@@ -330,11 +400,9 @@
}
.btn {
- margin-left: 20rpx;
display: flex;
align-items: center;
justify-content: center;
- margin-top: 218rpx;
width: 590rpx;
height: 84rpx;
background: #48893B;
@@ -343,7 +411,10 @@
font-weight: 400;
font-size: 36rpx;
color: #FFFFFF;
-
+ position: fixed;
+ left: 50%;
+ transform: translateX(-50%);
+ bottom: 50rpx;
}
}
diff --git a/page_fenbaotwo/zhangdan.vue b/page_fenbaotwo/zhangdan.vue
new file mode 100644
index 0000000..fb89d60
--- /dev/null
+++ b/page_fenbaotwo/zhangdan.vue
@@ -0,0 +1,272 @@
+
+
+
+
+
+
+ 全部
+ 收入
+ 提现
+
+
+
+
+ 充值订单
+ 订单退款
+ 提现申请
+ ¥{{item.amount}}
+ ¥{{item.amount}}
+
+
+ {{item.createTime}}
+ 余额¥{{item.afterBalance}}
+
+
+ 变动原因:{{item.reason.length > 30 ? item.reason.substring(0,30) + '...' : item.reason}}
+
+
+
+
+ -已经到底了-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/page_moban/chongzhi.vue b/page_moban/chongzhi.vue
deleted file mode 100644
index 2466989..0000000
--- a/page_moban/chongzhi.vue
+++ /dev/null
@@ -1,176 +0,0 @@
-
-
-
-
-
-
- 搜索
-
-
-
-
-
-
-
- 西瓜棋牌
-
-
-
-
- 用户手机号:12345678812
-
-
-
-
- 充值套餐:10元(含赠送5元)
-
-
-
-
- 余额:10元(含赠送5元)
-
-
-
-
- 充值时间:2024-12-07 14:34:02
-
-
-
-
- 没有更多充值记录啦...
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/page_moban/chongzhixq.vue b/page_moban/chongzhixq.vue
deleted file mode 100644
index 0d40ffe..0000000
--- a/page_moban/chongzhixq.vue
+++ /dev/null
@@ -1,157 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 充值金额
-
-
- 10 元
-
-
-
-
-
-
-
-
- 2024-11-21 15:22
-
-
-
-
-
-
- 微信充值-某某路店
-
-
- +200.00
-
-
-
-
-
- 1592.00
-
-
- 剩余金额
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/page_moban/shoufei.vue b/page_moban/shoufei.vue
index 9c66e1a..569dfc1 100644
--- a/page_moban/shoufei.vue
+++ b/page_moban/shoufei.vue
@@ -10,8 +10,9 @@
注:订单提前结束剩余消费时长、金额不返还
+
-
+
@@ -105,10 +106,18 @@
this.nameone = []
this.ruleIdsone = []
if(type == 1){
- this.yajinindex = index
- this.nameone.push(item.explain)
- this.selectedIndices = []
- this.ruleIdsone.push(item.ruleId)
+ // this.yajinindex = index
+ // this.nameone.push(item.explain)
+ // this.selectedIndices = []
+ // this.ruleIdsone.push(item.ruleId)
+ this.yajinindex = -1
+ this.ruleIdsone = ''
+ const indexExists = this.selectedIndices.includes(item.ruleId)
+ if (indexExists) {
+ this.selectedIndices = this.selectedIndices.filter(i => i !== item.ruleId)
+ } else {
+ this.selectedIndices.push(item.ruleId)
+ }
}else{
this.yajinindex = -1
this.ruleIdsone = ''
@@ -126,7 +135,7 @@
// 点击确定选择套餐
btnqd(){
this.selectedIndices.forEach(val =>{
- this.modelist.forEach(item => {
+ this.tclist.forEach(item => {
if(val == item.ruleId){
this.nameone.push(item.explain)
}
diff --git a/page_moban/tuikuan.vue b/page_moban/tuikuan.vue
deleted file mode 100644
index d9dcdd7..0000000
--- a/page_moban/tuikuan.vue
+++ /dev/null
@@ -1,209 +0,0 @@
-
-
-
-
-
-
- 搜索
-
-
-
-
- 待处理
-
-
- 已处理
-
-
- 已拒绝
-
-
-
-
-
-
-
- 反馈编号:2165741254
-
-
- 退款成功
-
-
-
-
- 反馈人
-
-
- 12345678912
-
-
-
-
- 反馈时间
-
-
- 2024-12-07 15:22:30
-
-
-
-
- 处理时间
-
-
- 2024-12-07 15:22:30
-
-
-
-
- 没有更多退款审核啦...
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/page_moban/tuikuanfk.vue b/page_moban/tuikuanfk.vue
deleted file mode 100644
index f92faf1..0000000
--- a/page_moban/tuikuanfk.vue
+++ /dev/null
@@ -1,219 +0,0 @@
-
-
-
-
-
- 处理方式
-
-
-
-
- 认可并在线退款
- 将从账户余额中扣除指定金额原路返还用户
-
-
-
-
-
-
-
- 不认可,驳回反馈
-
-
-
-
-
-
-
- 处理方式
-
-
-
-
- 可退款金额
-
-
- 元
-
-
-
-
- 退款金额
-
-
- 元
-
-
-
-
- 温馨提示:退款不包含押金,使用储值卡下单 时退还储值卡余额。
-
-
- 补充描述(选填)
-
-
-
-
-
-
-
- 确定处理
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/page_moban/tuikuanxq.vue b/page_moban/tuikuanxq.vue
deleted file mode 100644
index cc637ef..0000000
--- a/page_moban/tuikuanxq.vue
+++ /dev/null
@@ -1,293 +0,0 @@
-
-
-
-
-
-
-
- 反馈单号:51451645164
-
-
- 待处理
-
-
-
-
- 门店名称
-
-
- 福鼎-西湖店
-
-
-
-
- 订单金额
-
-
- ¥50.00
-
-
-
-
- 支付方式
-
-
- 微信支付
-
-
-
-
- 退还金额
-
-
- --(原路返回)
-
-
-
-
-
-
- 申请金额
-
-
- ¥50.00
-
-
-
-
- 退款原因
-
-
- --
-
-
-
- 反馈人
-
-
- 12345678912
-
-
-
-
- 反馈时间
-
-
- 2024-12-07 15:22:30
-
-
-
-
- 温馨提示:退款不包含押金,使用储值卡下单 时退还储值卡余额。
-
-
-
-
-
- 退款状态
-
-
- 同意退款
-
-
-
-
- 在线退款金额
-
-
- ¥50.00
-
-
-
-
- 退款状态
-
-
- 已处理
-
-
-
-
- 退款发起时间
-
-
- 2024-12-07 15:22:30
-
-
-
-
- 退款完成时间
-
-
- 2024-12-07 15:22:30
-
-
-
-
-
-
- 处理
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/page_shanghu/addtoom.vue b/page_shanghu/addtoom.vue
index 6f5f8c8..54fb304 100644
--- a/page_shanghu/addtoom.vue
+++ b/page_shanghu/addtoom.vue
@@ -10,7 +10,7 @@
名称
-
+
diff --git a/page_shanghu/dianpu.vue b/page_shanghu/dianpu.vue
index 2c3a2f6..4c8cc3a 100644
--- a/page_shanghu/dianpu.vue
+++ b/page_shanghu/dianpu.vue
@@ -34,7 +34,7 @@
今日订单
- 29 笔
+ {{item.todayOrderNum == null ? 0 : item.todayOrderNum}} 笔
@@ -42,15 +42,15 @@
今日收入
- 1078 元
+ {{item.todayIncome == null ? 0 : item.todayIncome}} 元
- 上月收入
+ 总收入
- 5891 元
+ {{item.totalIncome == null ? 0 : item.totalIncome}} 元
@@ -58,7 +58,7 @@
设备状态
- 0/0
+ {{item.totalDeviceNum == null ? 0 : item.totalDeviceNum}}台
diff --git a/page_shanghu/editshop.vue b/page_shanghu/editshop.vue
index 0cddb52..f25d388 100644
--- a/page_shanghu/editshop.vue
+++ b/page_shanghu/editshop.vue
@@ -8,7 +8,10 @@
门店名称
- 门店类型 {{lxname}}
+ 门店类型
+
+ {{item}}
+
营业时间
@@ -120,7 +123,9 @@
],
lxname:'请选择类型',
lxid:'',
- storeId:''
+ storeId:'',
+ tabseled:[],
+ tablist:['茶室','棋牌','台球'],
}
},
onLoad(option) {
@@ -151,13 +156,9 @@
this.ksyy = res.data.businessTimeStart
this.jsyy = res.data.businessTimeEnd
this.lxid = res.data.type
- if(this.lxid == 1){
- this.lxname = '茶室'
- }else if(this.lxid == 2){
- this.lxname = '棋牌'
- }else if(this.lxid == 3){
- this.lxname = '台球'
- }
+ this.tabseled = res.data.typeTags.map(item =>{{
+ return item - 1
+ }})
if(res.data.pictures != ''){
this.imglist = res.data.pictures
}
@@ -211,6 +212,9 @@
let ss_store_tags = arr.filter(item => {
return item !== null && !isNaN(item)
})
+ let arrs = this.tabseled.map(item =>{
+ return item + 1
+ })
console.log(ss_store_tags)
let data = {
storeId:this.storeId,
@@ -223,6 +227,7 @@
businessTimeStart:this.ksyy,
businessTimeEnd:this.jsyy,
picture:picture,
+ typeTags:arrs,
type:this.lxid,
tags:ss_store_tags
}
@@ -263,6 +268,20 @@
console.log(index,this.selectedIndices);
return this.selectedIndices.includes(index);
},
+
+ // 点击选择类型
+ btnlxxz(dictValue,index) {
+ const indexExists = this.tabseled.includes(index);
+ if (indexExists) {
+ this.tabseled = this.tabseled.filter(i => i !== index);
+ } else {
+ this.tabseled.push(index);
+ }
+ console.log(this.tabseled);
+ },
+ isSelecteds(index) {
+ return this.tabseled.includes(index);
+ },
// 点击上传图片
getImage() {
if(this.imglist.length >= 5){
@@ -510,6 +529,18 @@
.wz{
color: #3D3D3D;
}
+ .xz{
+ display: flex;
+ justify-content: space-between;
+ view{
+ padding: 6rpx;
+ width: 80rpx;
+ text-align: center;
+ border: 1px solid #48893B;
+ color: #48893B;
+ margin-left: 10rpx;
+ }
+ }
input{
text-align: right;
}
diff --git a/page_shanghu/index.vue b/page_shanghu/index.vue
index f1492d7..d8b68d2 100644
--- a/page_shanghu/index.vue
+++ b/page_shanghu/index.vue
@@ -199,7 +199,7 @@
// 跳转到收费模版
btnprice(){
uni.navigateTo({
- url:'/page_moban/pricemoben'
+ url:'/page_shanghu/pricemoben'
})
},
// 自定义返回回到首页
diff --git a/page_shanghu/mendianadd.vue b/page_shanghu/mendianadd.vue
index 3c5d3cc..ed2166b 100644
--- a/page_shanghu/mendianadd.vue
+++ b/page_shanghu/mendianadd.vue
@@ -8,7 +8,11 @@
门店名称
- 门店类型 {{lxname}}
+ 门店类型
+
+
+ {{item}}
+
营业时间
@@ -118,7 +122,9 @@
},
],
lxname:'请选择类型',
- lxid:''
+ lxid:'',
+ tablist:['茶室','棋牌','台球'],
+ tabseled:[]
}
},
onLoad() {
@@ -139,6 +145,9 @@
let arr = this.selectedIndices.map(item => {
return item + 1
})
+ let arrs = this.tabseled.map(item =>{
+ return item + 1
+ })
// console.log(arr);
let ss_store_tags = arr
let data = {
@@ -152,6 +161,7 @@
businessTimeEnd:this.jsyy,
picture:picture,
type:this.lxid,
+ typeTags:arrs,
tags:ss_store_tags
}
this.$u.post("/app/store",data).then((res) => {
@@ -180,15 +190,27 @@
},
// 点击选择标签
btnbq(dictValue,index) {
- const indexExists = this.selectedIndices.includes(index);
+ const indexExists = this.selectedIndices.includes(index)
if (indexExists) {
- this.selectedIndices = this.selectedIndices.filter(i => i !== index);
+ this.selectedIndices = this.selectedIndices.filter(i => i !== index)
} else {
- this.selectedIndices.push(index);
+ this.selectedIndices.push(index)
}
},
isSelected(index) {
- return this.selectedIndices.includes(index);
+ return this.selectedIndices.includes(index)
+ },
+ // 点击选择类型
+ btnlxxz(dictValue,index) {
+ const indexExists = this.tabseled.includes(index)
+ if (indexExists) {
+ this.tabseled = this.tabseled.filter(i => i !== index)
+ } else {
+ this.tabseled.push(index)
+ }
+ },
+ isSelecteds(index) {
+ return this.tabseled.includes(index)
},
// 点击上传图片
getImage() {
@@ -202,7 +224,7 @@
count: 1,
success: (rst) => {
this.url = rst.tempFilePaths[0]
- console.log(this.url);
+ console.log(this.url)
}
})
}
@@ -224,13 +246,13 @@
let str = JSON.parse(res.data)
_this.userImgs = 'https://lxnapi.ccttiot.com/' + str.key
_this.imglist.push(_this.userImgs)
- console.log(_this.imglist);
+ console.log(_this.imglist)
}
})
},
oncancel() {
// url设置为空,隐藏控件
- this.url = "";
+ this.url = ""
},
// 点击选择位置
btnweizhi(){
@@ -423,6 +445,18 @@
.wz{
color: #3D3D3D;
}
+ .xz{
+ display: flex;
+ justify-content: space-between;
+ view{
+ padding: 6rpx;
+ width: 80rpx;
+ text-align: center;
+ border: 1px solid #48893B;
+ color: #48893B;
+ margin-left: 10rpx;
+ }
+ }
input{
text-align: right;
}
diff --git a/page_moban/pricemoben.vue b/page_shanghu/pricemoben.vue
similarity index 100%
rename from page_moban/pricemoben.vue
rename to page_shanghu/pricemoben.vue
diff --git a/page_shanghu/shanghumy.vue b/page_shanghu/shanghumy.vue
index 404d058..66f6755 100644
--- a/page_shanghu/shanghumy.vue
+++ b/page_shanghu/shanghumy.vue
@@ -12,46 +12,52 @@
{{user.userName == null ? '--' : user.userName}}
-
+
-
+
账户余额(元)
- {{user.balance == null ? '0' : user.balance}}
+ ¥{{user.balance == null ? '0' : user.balance}}
累计提现:{{user.totalWithdrawAmount == null ? '--' : user.totalWithdrawAmount}}
-
+
立即提现
+
+
+ 账单
+
+
+
管理与服务
-
+
-
- 订单营收
+
+ 订单营收
-
- 订单数
+
+ 订单数
- 1359
+ {{zongprice}}
订单营收(元)
@@ -99,7 +94,7 @@
- 1359
+ {{zongnum}}
订单数(单)
@@ -108,44 +103,46 @@
-
- 当前运营情况 使用数/总数
+
+ 当前运营情况
+
+ 使用中/总数
+
- 设备总数
+ 房间
- 1/ 10
+ {{tjobj.inUseRoomNum == null ? 0 : tjobj.inUseRoomNum}}/{{tjobj.totalRoomNum == null ? 0 : tjobj.totalRoomNum}}
- 空闲
+ 大厅设施
- 1/6
+ {{tjobj.inUseEquNum == null ? 0 : tjobj.inUseEquNum}}/{{tjobj.totalEquNum == null ? 0 : tjobj.inUseEquNum}}
- 租赁中
+ 设备
- 1/4
+ {{tjobj.inUseDeviceNum == null ? 0 : tjobj.inUseDeviceNum}}/{{tjobj.totalDeviceNum == null ? 0 : tjobj.totalDeviceNum}}
-
+