Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
partners-applet
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
物业总平台
partners-applet
Commits
035b6dff
提交
035b6dff
authored
8月 25, 2023
作者:
何忠建
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
联调优化
上级
9d557b59
隐藏空白字符变更
内嵌
并排
正在显示
20 个修改的文件
包含
1254 行增加
和
1470 行删除
+1254
-1470
api.js
config/api.js
+63
-536
index.js
config/index.js
+16
-1
pages.json
pages.json
+14
-12
index.vue
pages/community/index.vue
+1
-4
index.vue
pages/home/index.vue
+183
-131
index.vue
pages/mine/index.vue
+12
-1
index.vue
pages/myCommunityDetails/index.vue
+35
-34
index.vue
pages/myCommunityList/index.vue
+68
-31
index.vue
pages/myInformation/index.vue
+63
-58
index.vue
pages/myShopsList/index.vue
+4
-7
index.vue
pages/reconciliationDetails/index.vue
+181
-154
index.vue
pages/reconciliationList/index.vue
+115
-89
index.vue
pages/settlementApplyfor/index.vue
+96
-33
index.vue
pages/settlementDetails/index.vue
+69
-58
index.vue
pages/settlementList/index.vue
+112
-35
index.vue
pages/shopsCode/index.vue
+35
-50
index.vue
pages/shopsDetails/index.vue
+10
-8
index.vue
pages/shopsList/index.vue
+0
-3
index.vue
pages/statementsList/index.vue
+117
-179
index.vue
pages/withdrawalList/index.vue
+60
-46
没有找到文件。
config/api.js
浏览文件 @
035b6dff
...
...
@@ -5,6 +5,23 @@ import {
* params 参数 <object>
*config 配置项 <object> 可传 {header: {}, custom: {load: false}}
*/
//首页统计
export
const
getShareBoardApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/order/paymentOrder/shareBoard'
,
{
data
:
{
...
params
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 获取首页轮播图
export
const
getPropertyAdvApi
=
(
params
=
{},
config
=
{})
=>
{
...
...
@@ -96,10 +113,10 @@ export const getCompanyListApi = (params = {}, config = {}) => {
})
}
// 查
商铺
export
const
get
ShopList
=
(
params
=
{},
config
=
{})
=>
{
// 查
小区详情
export
const
get
CommunityDetail
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-c
entral/shop/shopCommunity/list
'
,
{
http
.
get
(
'/property-c
ompany/community/companyCommunity/queryById
'
,
{
data
:
{
...
params
},
...
...
@@ -114,87 +131,10 @@ export const getShopList = (params = {}, config = {}) => {
})
}
// 查商铺详情
export
const
getShopDetails
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-central/shop/shopInfo/queryById'
,
{
data
:
{
...
params
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 绑定商铺
export
const
partnersShopAdd
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
post
(
'/property-central/partners/partnersShop/add'
,
{
...
params
},
{
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 我的商铺
export
const
getMyShopList
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-central/partners/partnersShop/list'
,
{
data
:
{
...
params
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 查物业
export
const
getSettledListApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-central/wechat/propertySettled/settledList'
,
{
data
:
{
...
params
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 查楼栋
export
const
getBuildingListApi
=
(
params
=
{},
config
=
{})
=>
{
// 查商铺
export
const
getShopList
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-c
ommunity/wechat/communityBuilding/buildingL
ist'
,
{
http
.
get
(
'/property-c
entral/shop/shopCommunity/l
ist'
,
{
data
:
{
...
params
},
...
...
@@ -209,22 +149,10 @@ export const getBuildingListApi = (params = {}, config = {}) => {
})
}
// 查单元
// export const getCommunityUnitListApi = (params = {}, config = {})=> {
// return new Promise((resolve, reject)=> {
// {
// data: { ...params},
// ...config
// })
// .then(res=> { resolve(res) })
// .catch(err=> { reject(err) })
// })
// }
// 查房号
export
const
getCommunityRoomListApi
=
(
params
=
{},
config
=
{})
=>
{
// 查商铺详情
export
const
getShopDetails
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-c
ommunity/wechat/communityBuilding/queryCommunityRoomByUnit
Id'
,
{
http
.
get
(
'/property-c
entral/shop/shopInfo/queryBy
Id'
,
{
data
:
{
...
params
},
...
...
@@ -238,49 +166,10 @@ export const getCommunityRoomListApi = (params = {}, config = {}) => {
})
})
}
// 查数据字典
export
const
getDictItemsApi
=
(
dictCode
,
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/communityUser/getDictItems'
,
{
data
:
{
dictCode
},
...
config
,
custom
:
{
load
:
false
}
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 新增房屋认证
export
const
postcommunityOwnerAddApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
post
(
'/property-community/wechat/communityOwner/add'
,
{
...
params
},
{
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 编辑房屋认证
export
const
postcommunityOwnerEditApi
=
(
params
=
{},
config
=
{})
=>
{
// 绑定商铺
export
const
partnersShopAdd
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
post
(
'/property-c
ommunity/wechat/communityOwner/edit
'
,
{
http
.
post
(
'/property-c
entral/partners/partnersShop/add
'
,
{
...
params
},
{
...
config
...
...
@@ -293,29 +182,10 @@ export const postcommunityOwnerEditApi = (params = {}, config = {}) => {
})
})
}
// 获取用户信息
export
const
queryCommunityRoomByUnitIdApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/communityUser/queryByOpenId'
,
{
data
:
{
...
params
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 获取小区详情
export
const
queryByOpenIddApi
=
(
params
=
{},
config
=
{})
=>
{
// 我的商铺
export
const
getMyShopList
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-c
ommunity/wechat/communityOwner/queryById
'
,
{
http
.
get
(
'/property-c
entral/partners/partnersShop/list
'
,
{
data
:
{
...
params
},
...
...
@@ -329,11 +199,10 @@ export const queryByOpenIddApi = (params = {}, config = {}) => {
})
})
}
// 编辑小区详情
export
const
editByOpenIdApi
=
(
params
=
{},
config
=
{})
=>
{
// 查商铺付款二维码
export
const
getShopQrCode
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-c
ommunity/wechat/communityOwner/edit
'
,
{
http
.
get
(
'/property-c
entral/shop/shopInfo/getQrCode
'
,
{
data
:
{
...
params
},
...
...
@@ -348,10 +217,10 @@ export const editByOpenIdApi = (params = {}, config = {}) => {
})
}
//
删除小区详情
export
const
deleteByOpenId
Api
=
(
params
=
{},
config
=
{})
=>
{
//
对账单
export
const
shareBenefitList
Api
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-c
ommunity/wechat/communityOwner/delete
'
,
{
http
.
get
(
'/property-c
entral/partners/shareBenefit/list
'
,
{
data
:
{
...
params
},
...
...
@@ -365,31 +234,10 @@ export const deleteByOpenIdApi = (params = {}, config = {}) => {
})
})
}
// 登录后获取首页详情
export
const
getCommunityInfoApi
=
(
params
=
{},
config
=
{})
=>
{
//对账单详情
export
const
shareBenefitDetailApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/communityUser/getCommunityInfo'
,
{
data
:
{
...
params
,
residentPhone
:
uni
.
getStorageSync
(
'user_phone'
),
platformCode
:
uni
.
getStorageSync
(
'platform_code'
)
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 登录后获取首页详情
export
const
getAdvertisementApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-company/wechat/companyCommunity/queryList'
,
{
http
.
get
(
'/property-central/partners/shareBenefit/queryById'
,
{
data
:
{
...
params
},
...
...
@@ -403,31 +251,10 @@ export const getAdvertisementApi = (params = {}, config = {}) => {
})
})
}
// 消息通知列表
export
const
getUserNoticeListApi
=
(
params
=
{},
config
=
{})
=>
{
//申请对账
export
const
reconciliationApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/userNotice/list'
,
{
data
:
{
...
params
,
noticeUserId
:
uni
.
getStorageSync
(
'user_phone'
),
platformCode
:
uni
.
getStorageSync
(
'platform_code'
)
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 更新消息已读状态
export
const
updateStatusApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
post
(
'/property-community/wechat/userNotice/edit'
,
{
http
.
post
(
'/property-central/partners/shareBenefit/reconciliation'
,
{
...
params
},
{
...
config
...
...
@@ -440,89 +267,10 @@ export const updateStatusApi = (params = {}, config = {}) => {
})
})
}
// 维修上报列表
export
const
getCommunityRepairListApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/communityRepair/list'
,
{
data
:
{
...
params
,
ownerId
:
uni
.
getStorageSync
(
'openid'
),
platformCode
:
uni
.
getStorageSync
(
'platform_code'
)
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 维修上报详情
export
const
getCommunityRepairDetailApi
=
(
params
=
{},
config
=
{})
=>
{
//结算列表
export
const
shareBalanceListApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/communityRepair/queryById'
,
{
data
:
{
...
params
,
ownerId
:
uni
.
getStorageSync
(
'openid'
),
platformCode
:
uni
.
getStorageSync
(
'platform_code'
)
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 新增维修上报
export
const
addCommunityRepairApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
post
(
'/property-community/wechat/communityRepair/add'
,
{
...
params
,
ownerId
:
uni
.
getStorageSync
(
'openid'
),
platformCode
:
uni
.
getStorageSync
(
'platform_code'
)
},
{
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 修改维修上报
export
const
editCommunityRepairApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
post
(
'/property-community/wechat/communityRepair/edit'
,
{
...
params
,
ownerId
:
uni
.
getStorageSync
(
'openid'
),
platformCode
:
uni
.
getStorageSync
(
'platform_code'
)
},
{
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 删除维修上报
export
const
deleteCommunityRepairApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/communityRepair/delete'
,
{
http
.
get
(
'/property-central/partners/shareBalance/list'
,
{
data
:
{
...
params
},
...
...
@@ -536,31 +284,10 @@ export const deleteCommunityRepairApi = (params = {}, config = {}) => {
})
})
}
// 投诉列表
export
const
getCommunityComplaintListApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/communityComplaint/list'
,
{
data
:
{
...
params
,
userId
:
uni
.
getStorageSync
(
'openid'
),
platformCode
:
uni
.
getStorageSync
(
'platform_code'
)
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 投诉详情
export
const
getCommunityComplaintDetailApi
=
(
params
=
{},
config
=
{})
=>
{
//结算详情
export
const
shareBalanceDetailApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-c
ommunity/wechat/communityComplaint
/queryById'
,
{
http
.
get
(
'/property-c
entral/partners/shareBalance
/queryById'
,
{
data
:
{
...
params
},
...
...
@@ -574,34 +301,12 @@ export const getCommunityComplaintDetailApi = (params = {}, config = {}) => {
})
})
}
// 新增投诉
export
const
addCommunityComplaintApi
=
(
params
=
{},
config
=
{})
=>
{
//结算选择对账单
export
const
getShareBalanceListApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
post
(
'/property-community/wechat/communityComplaint/add'
,
{
...
params
,
userId
:
uni
.
getStorageSync
(
'openid'
),
platformCode
:
uni
.
getStorageSync
(
'platform_code'
)
},
{
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 维修员的维修列表列表
export
const
getommunityRepairApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/communityRepair/list'
,
{
http
.
get
(
'/property-central/partners/shareBenefit/listBalance'
,
{
data
:
{
...
params
,
maintenancePhone
:
uni
.
getStorageSync
(
'user_phone'
),
platformCode
:
uni
.
getStorageSync
(
'platform_code'
)
...
params
},
...
config
})
...
...
@@ -613,14 +318,12 @@ export const getommunityRepairApi = (params = {}, config = {}) => {
})
})
}
// 维修转单
export
const
getEmployeeListApi
=
(
params
=
{},
config
=
{})
=>
{
//根据ida查询结算对账单
export
const
getIdsStatementsApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-c
ompany/wechat/companyEmployee/employeeList
'
,
{
http
.
get
(
'/property-c
entral/partners/shareBenefit/queryBatch
'
,
{
data
:
{
...
params
,
communityCode
:
uni
.
getStorageSync
(
'platform_code'
)
...
params
},
...
config
})
...
...
@@ -632,11 +335,10 @@ export const getEmployeeListApi = (params = {}, config = {}) => {
})
})
}
// 维修转单
export
const
editCommunityComplaintApi
=
(
params
=
{},
config
=
{})
=>
{
//申请结算
export
const
shareBalanceAddApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
post
(
'/property-c
ommunity/wechat/communityRepair/edit
'
,
{
http
.
post
(
'/property-c
entral/partners/shareBalance/add
'
,
{
...
params
},
{
...
config
...
...
@@ -650,31 +352,11 @@ export const editCommunityComplaintApi = (params = {}, config = {}) => {
})
}
// 获取个人信息
export
const
getUserInfoApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/communityUser/queryById'
,
{
data
:
{
...
params
,
openId
:
uni
.
getStorageSync
(
'openid'
),
phone
:
uni
.
getStorageSync
(
'user_phone'
),
platformCode
:
uni
.
getStorageSync
(
'platform_code'
)
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 修改个人信息
export
const
editOwner
Api
=
(
params
=
{},
config
=
{})
=>
{
export
const
userEdit
Api
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
p
ost
(
'/property-community/wechat/communityUser/editOwner
'
,
{
http
.
p
ut
(
'/sys/user/edit
'
,
{
...
params
},
{
...
config
...
...
@@ -688,161 +370,6 @@ export const editOwnerApi = (params = {}, config = {}) => {
})
}
// 获取我的房屋列表
export
const
getHouseListApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/communityOwner/list'
,
{
data
:
{
...
params
,
openId
:
uni
.
getStorageSync
(
'openid'
),
residentPhone
:
uni
.
getStorageSync
(
'user_phone'
),
platformCode
:
uni
.
getStorageSync
(
'platform_code'
)
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 获取房屋详情
export
const
getHouseDetailApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/communityOwner/queryById'
,
{
data
:
{
...
params
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 获取维修员房屋列表
export
const
getCompanyEmployeeApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/companyEmployee/queryEmployeeVo'
,
{
data
:
{
...
params
,
employeePhone
:
uni
.
getStorageSync
(
'user_phone'
)
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 获取新闻详情
export
const
getNoticeDetailApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-company/wechat/companyCommunity/queryNoticeById'
,
{
data
:
{
...
params
,
openId
:
uni
.
getStorageSync
(
'openid'
)
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 获取公告公示列表
export
const
queryNoticePageApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-company/wechat/companyCommunity/queryNoticePage'
,
{
data
:
{
...
params
,
pageSize
:
10
,
openId
:
uni
.
getStorageSync
(
'openid'
),
communityCode
:
uni
.
getStorageSync
(
'platform_code'
)
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 获取种类列表
export
const
queryChargeApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/communityPayment/queryCharge'
,
{
data
:
{
...
params
,
residentPhone
:
uni
.
getStorageSync
(
'user_phone'
),
platformCode
:
uni
.
getStorageSync
(
'platform_code'
)
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 获取缴费列表
export
const
communityPaymentApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/communityPayment/list'
,
{
data
:
{
...
params
,
residentPhone
:
uni
.
getStorageSync
(
'user_phone'
),
platformCode
:
uni
.
getStorageSync
(
'platform_code'
)
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 获取缴费详情
export
const
communityPaymentDetailApi
=
(
params
=
{},
config
=
{})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
get
(
'/property-community/wechat/communityPayment/queryById'
,
{
data
:
{
...
params
},
...
config
})
.
then
(
res
=>
{
resolve
(
res
)
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
}
// 上传
export
const
uploadFile
=
(
params
=
{},
config
=
{})
=>
{
...
...
config/index.js
浏览文件 @
035b6dff
...
...
@@ -62,7 +62,22 @@ http.interceptors.response.use((response) => {
uni
.
hideLoading
();
}
},
30
)
return
Promise
.
reject
(
response
)
//未登录时清空缓存跳转
if
(
response
.
statusCode
==
401
)
{
uni
.
showToast
({
icon
:
"none"
,
title
:
'Token失效,请重新登录!'
})
wx
.
clearStorage
()
uni
.
showTabBar
()
uni
.
reLaunch
({
url
:
'/pages/mine/index'
})
}
else
{
return
Promise
.
reject
(
response
)
}
})
export
{
...
...
pages.json
浏览文件 @
035b6dff
...
...
@@ -57,31 +57,27 @@
}
},
{
"path"
:
"pages/
withdrawal
List/index"
,
"path"
:
"pages/
reconciliation
List/index"
,
"style"
:
{
"navigationBarTitleText"
:
"
提现流水
"
"navigationBarTitleText"
:
"
对账管理
"
}
},
{
"path"
:
"pages/reconciliationList/index"
,
"style"
:
{
"navigationBarTitleText"
:
"对账"
}
},
{
"path"
:
"pages/reconciliationDetails/index"
,
"style"
:
{
"navigationBarTitleText"
:
"对账详情"
}
},
{
"path"
:
"pages/reconciliationBring/index"
,
},
{
"path"
:
"pages/settlementList/index"
,
"style"
:
{
"navigationBarTitleText"
:
"
申请对账
"
"navigationBarTitleText"
:
"
结算管理
"
}
},
{
"path"
:
"pages/s
ettlement
List/index"
,
"path"
:
"pages/s
tatements
List/index"
,
"style"
:
{
"navigationBarTitleText"
:
"
结算
"
"navigationBarTitleText"
:
"
选择对账单
"
}
},
{
...
...
@@ -96,6 +92,12 @@
"navigationBarTitleText"
:
"结算详情"
}
},
{
"path"
:
"pages/withdrawalList/index"
,
"style"
:
{
"navigationBarTitleText"
:
"提现流水"
}
},
{
"path"
:
"pages/myInformation/index"
,
"style"
:
{
...
...
pages/community/index.vue
浏览文件 @
035b6dff
...
...
@@ -28,7 +28,7 @@
data
()
{
return
{
page
:
{
pageSize
:
1
0
,
pageSize
:
2
0
,
pageNo
:
1
},
dataList
:
[],
...
...
@@ -36,9 +36,6 @@
}
},
computed
:
{
hideAdd
()
{
return
this
.
dataList
.
some
(
item
=>
item
.
auditStatus
!==
'auditPass'
)
}
},
methods
:
{
async
getList
(
flag
)
{
...
...
pages/home/index.vue
浏览文件 @
035b6dff
<
template
>
<view
class=
"container"
>
<view
class=
"page"
:style=
"
{'padding-top': statusBarHeight + 'px'}">
<view
class=
"nav-top-box"
@
click=
"toCommunity()"
>
<view
class=
"nav-top-box"
>
<view
class=
"nav-top"
>
<view
class=
"title"
>
<view
class=
"icons"
>
...
...
@@ -55,11 +55,16 @@
<text>
平台统计
</text>
</view>
<view
class=
"content"
>
<view
class=
"item"
><text
class=
"num"
>
100
</text><text
class=
"name"
>
绑定商铺数量
</text></view>
<view
class=
"item"
><text
class=
"num"
>
200
</text><text
class=
"name"
>
总平台小区数量
</text></view>
<view
class=
"item"
><text
class=
"num"
>
200
</text><text
class=
"name"
>
平台业主数量
</text></view>
<view
class=
"item"
><text
class=
"num"
>
¥2000.00
</text><text
class=
"name"
>
分利总金额
</text></view>
<view
class=
"item"
><text
class=
"num"
>
21
</text><text
class=
"name"
>
新增订单数量
</text></view>
<view
class=
"item"
><text
class=
"num"
>
{{
data
.
bindShops
||
0
}}
</text><text
class=
"name"
>
绑定商铺数量
</text>
</view>
<view
class=
"item"
><text
class=
"num"
>
{{
data
.
bindCommunity
||
0
}}
</text><text
class=
"name"
>
平台总小区数量
</text></view>
<view
class=
"item"
><text
class=
"num"
>
{{
data
.
bindOwner
||
0
}}
</text><text
class=
"name"
>
平台总业主数量
</text>
</view>
<view
class=
"item"
><text
class=
"num"
>
¥
{{
data
.
partnerShare
||
0
}}
</text><text
class=
"name"
>
分利总金额
</text></view>
<view
class=
"item"
><text
class=
"num"
>
{{
data
.
newOrderAmount
||
0
}}
</text><text
class=
"name"
>
新增订单数量
</text></view>
</view>
</view>
<view
class=
"statistical box-shadow"
>
...
...
@@ -67,72 +72,71 @@
<text>
营收统计
</text>
</view>
<view
class=
"content"
>
<view
class=
"item"
><text
class=
"num"
>
¥3000
</text><text
class=
"name"
>
总营收
</text></view>
<view
class=
"item"
><text
class=
"num"
>
¥2000
</text><text
class=
"name"
>
本月营收
</text></view>
<view
class=
"item"
><text
class=
"num"
>
¥200
</text><text
class=
"name"
>
今日营收
</text></view>
</view>
</view>
<view
class=
"statistical-figure box-shadow"
>
<view
class=
"title-box"
>
<text>
月成交金额
<text
class=
"note"
>
(倒序12月)
</text></text>
</view>
<view
class=
"charts-box"
>
<qiun-data-charts
type=
"area"
:opts=
"opts"
:chartData=
"chartData"
:canvas2d=
"true"
canvasId=
"lsujxDuamliVjcfJuedNiBqlYPLtZJpB"
/>
</view>
</view>
<view
class=
"statistical-figure box-shadow"
>
<view
class=
"title-box"
>
<text>
月成交订单数量
<text
class=
"note"
>
(倒序12月)
</text></text>
</view>
<view
class=
"charts-box"
>
<qiun-data-charts
type=
"area"
:opts=
"opts"
:chartData=
"chartData"
:canvas2d=
"true"
canvasId=
"pviJqWakzOsgXQaNRAlCWPlOJWYWNCeN"
/>
<view
class=
"item"
><text
class=
"num"
>
¥
{{
data
.
totalMoney
||
0
}}
</text><text
class=
"name"
>
总营收
</text>
</view>
<view
class=
"item"
><text
class=
"num"
>
¥
{{
data
.
monthMoney
||
0
}}
</text><text
class=
"name"
>
本月营收
</text>
</view>
<view
class=
"item"
><text
class=
"num"
>
¥
{{
data
.
todayMoney
||
0
}}
</text><text
class=
"name"
>
今日营收
</text>
</view>
</view>
</view>
<view
class=
"statistical-figure box-shadow"
>
<view
class=
"title-box"
>
<text>
入驻商铺新增数量
<text
class=
"note"
>
(倒序12月)
</text></text>
</view>
<view
class=
"charts-box"
>
<qiun-data-charts
type=
"column"
:opts=
"opts"
:chartData=
"chartData"
:canvas2d=
"true"
canvasId=
"IgmmsRHvBGPBxcAbylwDOliIzTRrXnLU"
/>
<template
v-if=
"isLogin"
>
<view
class=
"statistical-figure box-shadow"
>
<view
class=
"title-box"
>
<text>
月成交金额
<text
class=
"note"
></text></text>
</view>
<view
class=
"charts-box"
>
<qiun-data-charts
type=
"area"
:opts=
"opts"
:chartData=
"dataList1"
:canvas2d=
"true"
canvasId=
"lsujxDuamliVjcfJuedNiBqlYPLtZJpB"
/>
</view>
</view>
</view>
<view
class=
"statistical-figure box-shadow"
>
<view
class=
"title-box"
>
<text>
巡报订单数量
<text
class=
"note"
>
(3月10号~6月29号)
</text></text>
<view
class=
"statistical-figure box-shadow"
>
<view
class=
"title-box"
>
<text>
月成交订单数量
<text
class=
"note"
></text></text>
</view>
<view
class=
"charts-box"
>
<qiun-data-charts
type=
"area"
:opts=
"opts"
:chartData=
"dataList2"
:canvas2d=
"true"
canvasId=
"pviJqWakzOsgXQaNRAlCWPlOJWYWNCeN"
/>
</view>
</view>
<view
class=
"charts-box"
style=
"height: 400rpx;"
>
<qiun-data-charts
type=
"line"
:opts=
"opts1"
:chartData=
"chartData1"
:canvas2d=
"true"
canvasId=
"ygTACoemWYTQrsFNOxcKPSRXxSZyzLXU"
/>
<view
class=
"statistical-figure box-shadow"
>
<view
class=
"title-box"
>
<text>
入驻商铺新增数量
<text
class=
"note"
></text></text>
</view>
<view
class=
"charts-box"
>
<qiun-data-charts
type=
"column"
:opts=
"opts"
:chartData=
"dataList3"
:canvas2d=
"true"
canvasId=
"IgmmsRHvBGPBxcAbylwDOliIzTRrXnLU"
/>
</view>
</view>
</view>
<view
class=
"statistical-figure box-shadow"
>
<view
class=
"title-box"
>
<text>
巡报订单金额
<text
class=
"note"
>
(3月10号~6月29号)
</text></text>
<view
class=
"statistical-figure box-shadow"
>
<view
class=
"title-box"
>
<text>
巡报订单数量
<text
class=
"note"
></text></text>
</view>
<view
class=
"charts-box"
>
<qiun-data-charts
type=
"line"
:opts=
"opts"
:chartData=
"dataList4"
:canvas2d=
"true"
canvasId=
"ygTACoemWYTQrsFNOxcKPSRXxSZyzLXU"
/>
</view>
</view>
<view
class=
"charts-box"
style=
"height: 400rpx;"
>
<qiun-data-charts
type=
"area"
:opts=
"opts1"
:chartData=
"chartData1"
:canvas2d=
"true"
canvasId=
"PqrWqvRsjilEllTLgpEHdEJYkzGvaumw"
/>
<view
class=
"statistical-figure box-shadow"
>
<view
class=
"title-box"
>
<text>
巡报订单金额
<text
class=
"note"
></text></text>
</view>
<view
class=
"charts-box"
>
<qiun-data-charts
type=
"area"
:opts=
"opts"
:chartData=
"dataList5"
:canvas2d=
"true"
canvasId=
"PqrWqvRsjilEllTLgpEHdEJYkzGvaumw"
/>
</view>
</view>
</
view
>
</
template
>
</view>
<authorization-modal
ref=
"authorization"
@
loginEnd=
"onLoginEnd"
@
refuse=
"onRefuse"
/>
</view>
</template>
<
script
>
import
noData
from
'@/components/no-data/no-data'
import
serverConfig
from
'@/config/server_config.js'
;
import
{
getPropertyAdvApi
,
queryCommunityRoomByUnitIdApi
,
getCommunityInfoApi
,
getAdvertisementApi
,
getommunityRepairApi
,
editCommunityComplaintApi
,
getCompanyEmployeeApi
getShareBoardApi
,
}
from
'@/config/api.js'
import
{
Moment
...
...
@@ -140,12 +144,10 @@
import
{
authorizationModal
}
from
'@/components/authorization.vue'
let
timer
=
null
;
export
default
{
name
:
'home'
,
components
:
{
authorizationModal
,
noData
authorizationModal
},
data
()
{
return
{
...
...
@@ -153,11 +155,15 @@
userName
:
''
,
userAvatar
:
''
,
userPhone
:
''
,
statusBarHeight
:
24
,
houseInfo
:
{},
// 当前小区信息
bannerList
:
[],
chartData
:
{},
time
:
''
,
data
:
[],
dataList1
:
{},
dataList2
:
{},
dataList3
:
{},
dataList4
:
{},
dataList5
:
{},
opts
:
{
color
:
[
"#5159EA"
],
padding
:
[
15
,
15
,
0
,
15
],
...
...
@@ -165,7 +171,10 @@
dataLabel
:
false
,
legend
:
{},
xAxis
:
{
disableGrid
:
true
disableGrid
:
true
,
rotateLabel
:
true
,
rotateAngle
:
-
60
,
marginTop
:
8
},
yAxis
:
{
gridType
:
"dash"
,
...
...
@@ -193,34 +202,6 @@
"#5159EA"
]
},
}
},
opts1
:
{
color
:
[
"#5159EA"
],
padding
:
[
15
,
15
,
0
,
15
],
enableScroll
:
false
,
dataLabel
:
false
,
//dataPointShapeType:'hollow',
legend
:
{},
xAxis
:
{
disableGrid
:
true
,
rotateLabel
:
true
,
rotateAngle
:
-
60
,
marginTop
:
8
},
yAxis
:
{
gridType
:
"dash"
,
dashLength
:
2
},
extra
:
{
area
:
{
type
:
"curve"
,
opacity
:
0.4
,
addLine
:
true
,
width
:
1
,
gradient
:
true
,
activeType
:
"hollow"
},
line
:
{
type
:
"curve"
,
width
:
1
,
...
...
@@ -228,17 +209,9 @@
}
}
},
chartData1
:
{},
}
},
computed
:
{
// isRefuse() {
// return this.waitList.some(item => item.auditStatus === 'refuse')
// }
},
onReady
()
{
this
.
getServerData
();
},
computed
:
{},
methods
:
{
toLogin
()
{
uni
.
hideTabBar
()
...
...
@@ -269,34 +242,98 @@
this
.
bannerList
=
bannerList
}
},
getServerData
()
{
//模拟从服务器获取数据时的延时
setTimeout
(()
=>
{
//模拟服务器返回数据,如果数据格式和标准格式不同,需自行按下面的格式拼接
let
res
=
{
categories
:
[
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"7"
,
"8"
,
"9"
,
"10"
,
"11"
,
"12"
],
series
:
[{
name
:
"月成交金额"
,
data
:
[
25
,
30
,
20
,
25
,
28
,
25
,
20
,
25
,
27
,
25
,
20
,
25
]
},
]
};
let
res1
=
{
categories
:
[
"0310"
,
"0320"
,
"0330"
,
"0410"
,
"0420"
,
"0430"
,
"0510"
,
"0520"
,
"0530"
,
"0610"
,
"0620"
,
"0630"
],
series
:
[{
name
:
"巡报订单金额"
,
data
:
[
250
,
300
,
250
,
300
,
280
,
300
,
280
,
250
,
280
,
290
,
280
,
250
]
},
]
};
this
.
chartData
=
JSON
.
parse
(
JSON
.
stringify
(
res
));
this
.
chartData1
=
JSON
.
parse
(
JSON
.
stringify
(
res1
));
},
500
);
},
toCommunity
()
{
// uni.navigateTo({
// url: `/pages/community/index?code=${this.houseInfo.platformCode}`
// });
async
getData
()
{
let
{
result
}
=
await
getShareBoardApi
({
platformType
:
'partner'
,
date
:
this
.
time
})
if
(
result
)
{
this
.
data
=
result
;
//月成交金额
if
(
result
.
shareByMonth
)
{
let
list
=
result
.
shareByMonth
;
let
categories
=
[];
let
dataValue
=
[];
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
categories
.
push
(
list
[
i
].
MONTH
);
dataValue
.
push
(
list
[
i
].
shareMoney
);
}
let
res
=
{
categories
:
categories
,
series
:
[{
name
:
"月成交金额"
,
data
:
dataValue
},
]
};
this
.
dataList1
=
JSON
.
parse
(
JSON
.
stringify
(
res
));
}
//月成交订单数量
if
(
result
.
orderCountByMonth
)
{
let
list
=
result
.
orderCountByMonth
;
let
categories
=
[];
let
dataValue
=
[];
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
categories
.
push
(
list
[
i
].
MONTH
);
dataValue
.
push
(
list
[
i
].
orderCount
);
}
let
res
=
{
categories
:
categories
,
series
:
[{
name
:
"月成交订单数量"
,
data
:
dataValue
},
]
};
this
.
dataList2
=
JSON
.
parse
(
JSON
.
stringify
(
res
));
}
//月成交订单数量
if
(
result
.
shopCountByMonth
)
{
let
list
=
result
.
shopCountByMonth
;
let
categories
=
[];
let
dataValue
=
[];
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
categories
.
push
(
list
[
i
].
MONTH
);
dataValue
.
push
(
list
[
i
].
shopCount
);
}
let
res
=
{
categories
:
categories
,
series
:
[{
name
:
"入驻商铺新增数量"
,
data
:
dataValue
},
]
};
this
.
dataList3
=
JSON
.
parse
(
JSON
.
stringify
(
res
));
}
//巡报订单数量、金额
if
(
result
.
shareList
)
{
let
list
=
result
.
shareList
;
let
categories
=
[];
let
dataValue
=
[];
let
dataValue1
=
[];
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
categories
.
push
(
list
[
i
].
st_date_day
);
dataValue
.
push
(
list
[
i
].
order_num
);
dataValue1
.
push
(
list
[
i
].
share_money
);
}
let
res
=
{
categories
:
categories
,
series
:
[{
name
:
"巡报订单数量"
,
data
:
dataValue
},
]
};
let
res1
=
{
categories
:
categories
,
series
:
[{
name
:
"巡报订单金额"
,
data
:
dataValue1
},
]
};
this
.
dataList4
=
JSON
.
parse
(
JSON
.
stringify
(
res
));
this
.
dataList5
=
JSON
.
parse
(
JSON
.
stringify
(
res1
));
}
}
},
quickEntry
(
type
)
{
if
(
this
.
isLogin
)
{
...
...
@@ -347,14 +384,17 @@
url
});
},
initData
()
{
initData
(){
this
.
getPropertyAdv
()
const
token
=
uni
.
getStorageSync
(
'token'
);
//console.log(token)
if
(
token
)
{
this
.
isLogin
=
true
//this.userName = uni.getStorageSync('user_name')
this
.
userAvatar
=
uni
.
getStorageSync
(
'user_avatar'
)
this
.
userPhone
=
uni
.
getStorageSync
(
'user_phone'
)
this
.
getData
();
}
else
{
wx
.
clearStorage
()
}
}
},
...
...
@@ -363,6 +403,17 @@
this
.
statusBarHeight
=
menuButton
.
top
this
.
initData
()
},
onShow
()
{
const
token
=
uni
.
getStorageSync
(
'token'
);
//console.log(token)
if
(
token
)
{
this
.
isLogin
=
true
this
.
userAvatar
=
uni
.
getStorageSync
(
'user_avatar'
)
this
.
userPhone
=
uni
.
getStorageSync
(
'user_phone'
)
}
else
{
wx
.
clearStorage
()
}
}
}
</
script
>
...
...
@@ -565,6 +616,6 @@
.charts-box
{
width
:
100%
;
height
:
36
0rpx
;
height
:
42
0rpx
;
}
</
style
>
\ No newline at end of file
pages/mine/index.vue
浏览文件 @
035b6dff
...
...
@@ -4,7 +4,7 @@
<view
class=
"page"
>
<view
class=
"user"
>
<template
v-if=
"isLogin && userAvatar"
>
<image
:src=
"userAvatar"
class=
"icon"
></image>
<image
:src=
"userAvatar"
class=
"icon"
></image>
</
template
>
<view
class=
"icon"
v-else
>
<uni-icons
type=
"person"
size=
"50px"
color=
"#6A59F2"
></uni-icons>
...
...
@@ -97,6 +97,17 @@
this
.
isLogin
=
false
}
},
onShow
()
{
const
token
=
uni
.
getStorageSync
(
'token'
);
if
(
token
)
{
this
.
isLogin
=
true
this
.
userName
=
uni
.
getStorageSync
(
'user_name'
)
this
.
userAvatar
=
uni
.
getStorageSync
(
'user_avatar'
)
this
.
userPhone
=
uni
.
getStorageSync
(
'user_phone'
)
}
else
{
this
.
isLogin
=
false
}
},
onHide
()
{
if
(
timer
)
clearTimeout
(
timer
)
timer
=
null
...
...
pages/myCommunityDetails/index.vue
浏览文件 @
035b6dff
...
...
@@ -4,81 +4,77 @@
<view
class=
"community"
>
<view
class=
"image"
>
<image
src=
"https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/8b9eaa6e92ad56895430be936cc03896_1690364063102.jpg
"
:src=
"imageURL+details.communityImage
"
class=
"icon"
></image>
</view>
<view
class=
"details"
>
<view
class=
"content"
>
<view
class=
"item"
>
<view
class=
"name"
>
小区名称
</view>
<view
class=
"detail"
>
汉江之星小区
</view>
<view
class=
"detail"
>
{{
details
.
communityName
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
所属区域
</view>
<view
class=
"detail"
>
{{
details
.
communityArea
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
占地面积
</view>
<view
class=
"detail"
>
123
㎡
</view>
<view
class=
"detail"
>
{{
details
.
coverArea
}}
㎡
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
楼栋数
</view>
<view
class=
"detail"
>
12
</view>
<view
class=
"detail"
>
{{
details
.
buildingNum
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
业主
数量
</view>
<view
class=
"detail"
>
110
</view>
<view
class=
"name"
>
房屋
数量
</view>
<view
class=
"detail"
>
{{
details
.
houseNum
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
商铺数量
</view>
<view
class=
"detail"
>
20
</view>
<view
class=
"detail"
>
{{
details
.
shopNum
||
''
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
联系人
</view>
<view
class=
"detail"
>
张三
</view>
<view
class=
"detail"
>
{{
details
.
adminName
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
联系人电话
</view>
<view
class=
"detail"
>
13012341231
</view>
<view
class=
"detail"
>
{{
details
.
adminPhone
}}
</view>
</view>
<view
class=
"item text"
>
<view
class=
"name"
>
详细地址
</view>
<view
class=
"detail"
>
湖北省十堰市郧阳区汉江之星 小区B栋201
</view>
<view
class=
"detail"
>
{{
details
.
addressInfo
}}
</view>
</view>
</view>
</view>
<!--
<view
class=
"form-submit"
@
click=
"onSubmit"
>
解绑
</view>
-->
</view>
</view>
</view>
</
template
>
<
script
>
import
serverConfig
from
'@/config/server_config.js'
;
import
{
getCommunityRepairDetailApi
,
editCommunityRepairApi
getCommunityDetail
}
from
'@/config/api.js'
export
default
{
data
()
{
return
{
rateValue
:
5
,
evaluation
:
''
,
formModel
:
{
},
imageList
:
[
'https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/8b9eaa6e92ad56895430be936cc03896_1690364063102.jpg'
]
details
:
{},
imageURL
:
''
}
},
methods
:
{
async
getDetail
(
id
)
{
// let {
// result
// } = await getCommunityRepairDetailApi({
// id
// })
// this.formModel = {
// ...result
// }
// this.imageList = result.repairPhoto ? result.repairPhoto.split(',') : []
let
{
result
}
=
await
getCommunityDetail
({
id
})
this
.
details
=
{
...
result
}
},
async
onSubmit
()
{
// await editCommunityRepairApi({
...
...
@@ -101,7 +97,11 @@
},
},
onLoad
(
option
)
{
this
.
getDetail
(
option
.
id
)
const
token
=
uni
.
getStorageSync
(
'token'
);
if
(
token
&&
option
.
id
)
{
this
.
imageURL
=
`
${
serverConfig
.
imageURL
}
`
this
.
getDetail
(
option
.
id
)
}
}
}
</
script
>
...
...
@@ -130,12 +130,13 @@
.details
{
position
:
absolute
;
top
:
370rpx
;
margin
:
0
3
0rpx
;
margin
:
0
3
%
;
background-color
:
#ffffff
;
border-radius
:
16rpx
;
padding
:
30rpx
;
width
:
94%
;
.content
{
padding
:
30rpx
;
.item
{
display
:
flex
;
height
:
70rpx
;
...
...
@@ -159,7 +160,7 @@
margin-bottom
:
20rpx
;
.detail
{
line-height
:
52rpx
;
//
line-height: 52rpx;
}
.image
{
...
...
pages/myCommunityList/index.vue
浏览文件 @
035b6dff
...
...
@@ -5,65 +5,100 @@
<uni-search-bar
placeholder=
"请输入小区名"
bgColor=
"#ffffff"
radius=
"100"
@
confirm=
"search"
@
cancel=
"cancel"
/>
</view>
<view
class=
"list"
v-if=
"allList.length"
>
<view
class=
"item"
:class=
"
{'noRead' : item.readStatus === '2'}" v-for="item in allList" :key="item.id"
@click="toDetails(1)">
<image
mode=
"aspectFill"
:src=
"item.image"
class=
"icon"
></image>
<view
class=
"list"
v-if=
"dataList.length"
>
<view
class=
"item"
v-for=
"item in dataList"
:key=
"item.id"
@
click=
"toDetails(item.id)"
>
<image
mode=
"aspectFill"
:src=
"imageURL+item.communityImage"
class=
"icon"
></image>
<view
class=
"con"
>
<view
class=
"name"
>
{{
item
.
titl
e
}}
</view>
<view
class=
"name"
>
{{
item
.
communityNam
e
}}
</view>
<view
class=
"add"
>
<image
mode=
"aspectFill"
src=
"../../static/images/icon_adress.png"
class=
"icon"
></image>
{{
item
.
card
}}
{{
item
.
addressInfo
}}
</view>
</view>
</view>
</view>
<no-data
:show=
"
all
List.length === 0"
text=
"暂无数据"
></no-data>
<no-data
:show=
"
data
List.length === 0"
text=
"暂无数据"
></no-data>
</view>
</view>
</
template
>
<
script
>
import
serverConfig
from
'@/config/server_config.js'
;
import
{
queryNoticePage
Api
getCompanyList
Api
}
from
'@/config/api.js'
import
serverConfig
from
'@/config/server_config.js'
;
import
noData
from
'@/components/no-data/no-data'
export
default
{
components
:
{
noData
},
data
()
{
return
{
activeStatus
:
''
,
allPageNo
:
1
,
yesPageNo
:
1
,
notPageNo
:
1
,
allList
:
[{
id
:
1
,
image
:
'https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/8b9eaa6e92ad56895430be936cc03896_1690364063102.jpg'
,
title
:
'汉江之星小区'
,
card
:
'湖北省十堰市郧阳区汉江之星小区B栋201'
,
},{
id
:
2
,
image
:
'https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/bg_1690786506694.png'
,
title
:
'阳光花园小区'
,
card
:
'湖北省十堰市郧阳区阳光花园小区21号楼'
,
}],
page
:
{
pageSize
:
10
,
pageNo
:
1
},
dataList
:
[],
isFinish
:
false
,
imageURL
:
''
,
}
},
computed
:
{},
methods
:
{
async
getList
()
{
async
getList
(
flag
)
{
let
{
result
}
=
await
getCompanyListApi
(
this
.
page
)
let
data
=
result
.
records
;
if
(
flag
)
{
uni
.
stopPullDownRefresh
();
this
.
dataList
=
[].
concat
(
data
)
}
else
{
this
.
dataList
=
this
.
dataList
.
concat
(
data
)
}
if
(
data
.
length
<
10
)
{
this
.
isFinish
=
true
}
else
{
this
.
page
.
pageNo
+=
1
}
},
toDetails
(
id
)
{
uni
.
navigateTo
({
url
:
`/pages/myCommunityDetails/index?id=
${
id
}
`
});
if
(
id
)
{
uni
.
navigateTo
({
url
:
`/pages/myCommunityDetails/index?id=
${
id
}
`
});
}
},
search
(
value
)
{
console
.
log
(
value
)
if
(
value
.
value
)
{
this
.
page
.
communityName
=
value
.
value
.
toString
();
this
.
dataList
=
[];
this
.
page
.
pageNo
=
1
;
this
.
getList
();
}
},
cancel
()
{
this
.
dataList
=
[];
this
.
page
.
communityName
=
''
;
this
.
page
.
pageNo
=
1
;
this
.
getList
();
}
},
onLoad
()
{
const
token
=
uni
.
getStorageSync
(
'token'
);
if
(
token
)
{
this
.
imageURL
=
`
${
serverConfig
.
imageURL
}
`
this
.
getList
()
}
},
onShow
()
{
//this.getList()
onPullDownRefresh
()
{
this
.
page
.
pageNo
=
1
this
.
getList
(
true
)
},
onReachBottom
()
{
if
(
this
.
isFinish
)
return
this
.
getList
()
}
}
</
script
>
...
...
@@ -141,6 +176,7 @@
/* 追加这一行代码 */
}
.add
{
margin-top
:
20rpx
;
font-size
:
28rpx
;
...
...
@@ -148,6 +184,7 @@
height
:
30rpx
;
line-height
:
30rpx
;
display
:
flex
;
.icon
{
width
:
19rpx
;
height
:
24rpx
;
...
...
pages/myInformation/index.vue
浏览文件 @
035b6dff
...
...
@@ -9,7 +9,9 @@
头像
</view>
<view
class=
"form-item-fr"
>
<image
:src=
"formData.avatar || 'https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/lxLTJxnMqmF4536a26893262a4d66527a51bcab612c9_1687861702460.png'"
class=
"icon"
></image>
<image
:src=
"formData.avatar || 'https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/lxLTJxnMqmF4536a26893262a4d66527a51bcab612c9_1687861702460.png'"
class=
"icon"
></image>
<uni-icons
type=
"forward"
color=
"#E4E4EA"
></uni-icons>
</view>
</view>
...
...
@@ -18,8 +20,8 @@
姓名
</view>
<view
class=
"form-item-fr"
>
<view
class=
"form-item-tit"
>
{{
formData
.
re
sidentN
ame
}}
</view>
<!--
<input
class=
"form-item-tit"
v-model=
"formData.re
sidentN
ame"
focus
placeholder=
"请输入姓名"
/>
-->
<view
class=
"form-item-tit"
>
{{
formData
.
re
aln
ame
}}
</view>
<!--
<input
class=
"form-item-tit"
v-model=
"formData.re
aln
ame"
focus
placeholder=
"请输入姓名"
/>
-->
</view>
</view>
<view
class=
"form-item"
>
...
...
@@ -30,30 +32,31 @@
<uni-data-checkbox
v-model=
"formData.sex"
:localdata=
"sexs"
class=
"form-item-tit"
/>
</view>
</view>
<view
class=
"form-item"
>
<
!--
<
view
class=
"form-item"
>
<view
class=
"form-item-fl"
>
年龄
</view>
<view
class=
"form-item-fr"
>
<input
class=
"form-item-tit"
v-model=
"formData.age"
focus
placeholder=
"请输入年龄"
/>
</view>
</view>
</view>
-->
<view
class=
"form-item"
>
<view
class=
"form-item-fl"
>
<view
class=
"asterisk"
>
*
</view>
手机号码
</view>
<view
class=
"form-item-fr"
>
<view
class=
"form-item-tit"
>
{{
formData
.
residentP
hone
}}
</view>
<view
class=
"form-item-tit"
>
{{
formData
.
p
hone
}}
</view>
</view>
</view>
<view
class=
"form-item"
>
<
!--
<
view
class=
"form-item"
>
<view
class=
"form-item-fl"
>
地址
</view>
<view
class=
"form-item-fr"
>
<view
class=
"form-item-tit"
>
{{
formData
.
address
}}
</view>
</view>
</view><strong></strong>
</view>
-->
<strong></strong>
</uni-forms>
</view>
...
...
@@ -68,9 +71,9 @@
<
script
>
import
userVatar
from
'@/components/user-vatar.vue'
;
import
{
queryLoginPhoneApi
,
uploadFile
,
getUserInfoApi
,
editOwnerApi
userEditApi
}
from
'@/config/api.js'
import
serverConfig
from
"@/config/server_config.js"
;
export
default
{
...
...
@@ -80,100 +83,102 @@
data
()
{
return
{
formData
:
{
id
:
''
,
avatar
:
''
,
temAvatar
:
''
,
re
sidentN
ame
:
''
,
re
aln
ame
:
''
,
sex
:
''
,
age
:
''
,
address
:
''
,
residentP
hone
:
''
,
platformCode
:
''
//
age: '',
//
address: '',
p
hone
:
''
,
//
platformCode: ''
},
sexs
:
[
{
text
:
'男'
,
value
:
1
},
{
text
:
'女'
,
value
:
2
}
sexs
:
[{
text
:
'男'
,
value
:
1
},
{
text
:
'女'
,
value
:
2
}
],
hasTmp
:
false
}
},
methods
:
{
async
getUserInfo
()
{
let
userType
=
uni
.
getStorageSync
(
'user_type'
)
let
{
result
}
=
await
getUserInfoApi
({
userType
})
if
(
userType
===
'1'
)
{
let
avatar
=
result
.
avatar
?
`
${
serverConfig
.
imageURL
}${
result
.
avatar
}
`
:
''
this
.
formData
=
{
avatar
,
temAvatar
:
result
.
avatar
,
residentName
:
result
.
residentName
,
sex
:
result
.
sex
,
age
:
result
.
age
,
residentPhone
:
result
.
residentPhone
,
address
:
result
.
platformName
,
platformCode
:
result
.
platformCode
}
}
else
{
let
avatar
=
result
.
employeeAvatar
?
`
${
serverConfig
.
imageURL
}${
result
.
employeeAvatar
}
`
:
''
let
phone
=
uni
.
getStorageSync
(
'user_phone'
)
let
params
=
{
loginName
:
phone
,
platformType
:
'partner'
}
let
res
=
await
queryLoginPhoneApi
(
params
)
if
(
res
.
code
===
200
&&
res
.
result
&&
res
.
result
.
token
)
{
let
userInfo
=
res
.
result
.
userInfo
;
let
avatar
=
userInfo
.
avatar
?
`
${
serverConfig
.
imageURL
}${
userInfo
.
avatar
}
`
:
''
this
.
formData
=
{
id
:
userInfo
.
id
,
avatar
,
temAvatar
:
result
.
employeeA
vatar
,
re
sidentName
:
result
.
employeeN
ame
,
sex
:
result
.
sex
,
age
:
result
.
age
,
residentPhone
:
result
.
employeeP
hone
,
address
:
result
.
platformName
,
platformCode
:
result
.
platformCode
temAvatar
:
userInfo
.
a
vatar
,
re
alname
:
userInfo
.
realn
ame
,
sex
:
userInfo
.
sex
,
//age: userInfo
.age,
phone
:
userInfo
.
p
hone
,
address
:
userInfo
.
platformName
,
//platformCode: userInfo
.platformCode
}
}
},
onOpenAvatar
()
{
this
.
$refs
.
userVatar
.
userForm
.
userAvatarUrl
=
this
.
formData
.
avatar
this
.
$refs
.
userVatar
.
userForm
.
nickname
=
this
.
formData
.
re
sidentN
ame
this
.
$nextTick
(()
=>
{
this
.
$refs
.
userVatar
.
userForm
.
nickname
=
this
.
formData
.
re
aln
ame
this
.
$nextTick
(()
=>
{
this
.
$refs
.
userVatar
.
$refs
.
userProfileShow
.
open
()
})
},
saveUserOk
(
form
)
{
this
.
formData
.
avatar
=
form
.
userAvatarUrl
this
.
formData
.
re
sidentN
ame
=
form
.
nickname
this
.
formData
.
re
aln
ame
=
form
.
nickname
this
.
hasTmp
=
form
.
isTmp
},
async
onSaveInfo
()
{
let
uploadImg
=
''
if
(
this
.
hasTmp
)
{
let
{
message
}
=
await
uploadFile
({
if
(
this
.
hasTmp
)
{
let
{
message
}
=
await
uploadFile
({
filePath
:
this
.
formData
.
avatar
,
name
:
'file'
,
formData
:
{
//其他需要携带的参数
formData
:
{
//其他需要携带的参数
'biz'
:
'scott/pic'
}
})
uploadImg
=
message
}
let
avatar
=
uploadImg
||
this
.
formData
.
temAvatar
let
userType
=
uni
.
getStorageSync
(
'user_type'
)
await
editOwnerApi
({
await
userEditApi
({
id
:
this
.
formData
.
id
,
avatar
,
re
sidentName
:
this
.
formData
.
residentN
ame
,
re
alname
:
this
.
formData
.
realn
ame
,
sex
:
this
.
formData
.
sex
,
age
:
this
.
formData
.
age
,
residentPhone
:
this
.
formData
.
residentP
hone
,
platformCode
:
this
.
formData
.
platformCode
,
userType
//
age: this.formData.age,
//phone: this.formData.p
hone,
//
platformCode: this.formData.platformCode,
//userType: 1
})
let
user_avatar
=
avatar
?
`
${
serverConfig
.
imageURL
}${
avatar
}
`
:
''
uni
.
setStorageSync
(
'user_avatar'
,
user_avatar
)
uni
.
setStorageSync
(
'user_name'
,
this
.
formData
.
re
sidentN
ame
)
uni
.
setStorageSync
(
'user_name'
,
this
.
formData
.
re
aln
ame
)
var
pages
=
getCurrentPages
();
var
page
=
pages
[
pages
.
length
-
2
];
page
.
$vm
.
userAvatar
=
user_avatar
page
.
$vm
.
userName
=
this
.
formData
.
re
sidentN
ame
setTimeout
(()
=>
{
page
.
$vm
.
userName
=
this
.
formData
.
re
aln
ame
setTimeout
(()
=>
{
uni
.
showToast
({
title
:
'保存成功!'
,
icon
:
'none'
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
uni
.
navigateBack
()
},
1500
)
},
30
)
...
...
pages/myShopsList/index.vue
浏览文件 @
035b6dff
...
...
@@ -11,10 +11,10 @@
<view
class=
"con"
>
<view
class=
"name"
>
{{
item
.
shopName
}}
</view>
<view
class=
"tags"
>
<view
:class=
"item.audit
Tatus === 'auditPass'?'tag purple':'tag gray
'"
>
<template
v-if=
"item.audit
T
atus === 'waitAudit'"
>
待审核
</
template
>
<
template
v-if=
"item.audit
T
atus === 'auditPass'"
>
审核通过
</
template
>
<
template
v-if=
"item.audit
T
atus === 'refuse'"
>
审核拒绝
</
template
>
<view
:class=
"item.audit
Status === 'refuse'?'tag red':'tag purple
'"
>
<template
v-if=
"item.audit
St
atus === 'waitAudit'"
>
待审核
</
template
>
<
template
v-if=
"item.audit
St
atus === 'auditPass'"
>
审核通过
</
template
>
<
template
v-if=
"item.audit
St
atus === 'refuse'"
>
审核拒绝
</
template
>
</view>
<view
class=
"tag red"
v-if=
"item.freezingStatus === 'freeze'"
>
冻结
</view>
</view>
...
...
@@ -57,9 +57,6 @@
}
},
computed
:
{
hideAdd
()
{
return
this
.
dataList
.
some
(
item
=>
item
.
auditStatus
!==
'auditPass'
)
}
},
methods
:
{
async
getList
(
flag
)
{
...
...
pages/reconciliationDetails/index.vue
浏览文件 @
035b6dff
<
template
>
<view
class=
"container"
>
<view
class=
"page"
>
<view
class=
"
settlement
"
>
<view
class=
"details"
>
<view
class=
"
reconciliation
"
>
<view
class=
"details"
v-if=
"details.reconciliationStatus"
>
<view
class=
"item"
>
<view
class=
"name"
>
对账总金额
</view>
<view
class=
"detail
amount"
>
¥5000.00
</view>
<view
class=
"name"
>
订单编号
</view>
<view
class=
"detail
"
>
{{
details
.
orderNum
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
对账审核
状态
</view>
<view
class=
"
detail"
>
审核通过
</view>
<view
class=
"name"
>
订单
状态
</view>
<view
class=
"
tag"
>
{{
details
.
reconciliationStatusName
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
对账日期
</view>
<view
class=
"detail
"
>
2021-11-21 13:00
</view>
<view
class=
"name"
>
分利金额
</view>
<view
class=
"detail
amount"
>
¥
{{
details
.
shareMoney
}}
</view>
</view>
<view
class=
"item text"
>
<view
class=
"name"
>
备注
</view>
<view
class=
"detail"
>
无
</view>
<view
class=
"item"
>
<view
class=
"name"
>
提交时间
</view>
<view
class=
"detail"
>
{{
details
.
createTime
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
买家名称
</view>
<view
class=
"detail"
>
{{
details
.
buyerName
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
订单金额
</view>
<view
class=
"detail"
>
¥
{{
details
.
totalMoney
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
支付方式
</view>
<view
class=
"detail"
>
{{
details
.
payWay
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
订单来源
</view>
<view
class=
"detail"
>
{{
details
.
orderSourceName
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
所属平台
</view>
<view
class=
"detail"
>
{{
details
.
propertyName
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
所属小区
</view>
<view
class=
"detail"
>
{{
details
.
communityName
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
商铺名称
</view>
<view
class=
"detail"
>
{{
details
.
shopName
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
合作伙伴名称
</view>
<view
class=
"detail"
>
{{
details
.
partnersName
}}
</view>
</view>
</view>
<view
class=
"list"
>
<view
class=
"item"
v-for=
"item in payList"
:key=
"item.id"
@
click=
"toDetail(item.id)"
>
<view
class=
"title"
>
<view
class=
"name"
>
CX312314141241
</view>
<view
class=
"tag"
>
已对账
</view>
</view>
<view
class=
"content"
>
<view
class=
"text"
>
<view
class=
"name"
>
用户账号
</view>
<view
class=
"detail"
>
18888889999
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
分利金额
</view>
<view
class=
"detail"
>
¥3000.00
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
订单时间
</view>
<view
class=
"detail"
>
2021-11-21 13:00
</view>
</view>
</view>
<view
class=
"belongs-to"
>
<view
class=
"text"
>
<view
class=
"name"
>
所属小区
</view>
<view
class=
"detail"
>
汉江之星小区
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
所属物业
</view>
<view
class=
"detail"
>
汉江之星物业公司
</view>
<view
class=
"form"
v-if=
"details.reconciliationStatus === 1"
>
<uni-forms>
<view
class=
"form-item-text"
>
<view
class=
"title"
>
备注
</view>
<view
class=
"textarea-box"
>
<textarea
class=
"textarea"
:maxlength=
"200"
placeholder-style=
"font-size:14px"
v-model=
"formData.remarks"
auto-height
placeholder=
"请输入备注"
/>
</view>
</view>
</view>
</uni-forms>
</view>
</view>
<view
class=
"submit-box"
v-if=
"details.reconciliationStatus === 1 || details.reconciliationStatus === 4"
>
<view
class=
"left"
>
<view
class=
"amount"
>
¥
{{
details
.
shareMoney
}}
</view>
<view
class=
"time"
>
{{
details
.
createTime
}}
</view>
</view>
<
no-data
:show=
"payList.length === 0"
text=
"暂无缴费信息"
></no-data
>
<
view
class=
"right"
><button
class=
"form-submit"
@
click=
"toSubmit()"
>
申请对账
</button></view
>
</view>
</view>
...
...
@@ -61,58 +78,67 @@
<
script
>
import
{
communityPaymentApi
shareBenefitDetailApi
,
reconciliationApi
}
from
'@/config/api.js'
import
noData
from
'@/components/no-data/no-data'
export
default
{
components
:
{
noData
},
data
()
{
return
{
formData
:
{},
paymentTypeList
:
[{
label
:
'转账'
,
value
:
'1'
}],
paymentTypeIndex
:
0
,
bankCardList
:
[{
label
:
'工行1234567890'
,
value
:
'1'
}],
bankCardIndex
:
0
,
payList
:
[{},
{}]
details
:
{}
}
},
methods
:
{
async
get
List
(
chargeTypeCode
)
{
async
get
Detail
(
id
)
{
let
{
result
}
=
await
communityPayment
Api
({
chargeTypeCode
}
=
await
shareBenefitDetail
Api
({
id
})
this
.
payList
=
result
.
records
},
bindPickerChange
(
e
,
type
)
{
if
(
type
===
'paymentType'
)
{
this
.
paymentTypeIndex
=
Number
(
e
.
detail
.
value
)
}
else
if
(
type
===
'bankCard'
)
{
this
.
bankCardIndex
=
Number
(
e
.
detail
.
value
)
this
.
details
=
{
...
result
.
shareBenefit
}
if
(
this
.
details
.
orderSource
==
'miniapp'
)
{
this
.
details
.
orderSourceName
=
'小程序'
}
if
(
this
.
details
.
reconciliationStatus
==
1
)
{
this
.
details
.
reconciliationStatusName
=
'未对账'
}
else
if
(
this
.
details
.
reconciliationStatus
==
2
)
{
this
.
details
.
reconciliationStatusName
=
'对账待审核'
}
else
if
(
this
.
details
.
reconciliationStatus
==
3
)
{
this
.
details
.
reconciliationStatusName
=
'已对账'
}
else
if
(
this
.
details
.
reconciliationStatus
==
4
)
{
this
.
details
.
reconciliationStatusName
=
'对账驳回'
}
},
async
toSubmit
()
{
if
(
!
this
.
formData
.
remarks
)
{
uni
.
showToast
({
title
:
'请填写备注!'
,
icon
:
'none'
});
return
false
}
let
params
=
{
id
:
this
.
details
.
id
,
remarks
:
this
.
formData
.
remarks
}
await
reconciliationApi
(
params
)
setTimeout
(()
=>
{
uni
.
showToast
({
title
:
'保存成功!'
,
icon
:
'none'
});
uni
.
navigateBack
()
},
30
)
}
},
onLoad
(
option
)
{
// this.userName = uni.getStorageSync('user_name')
// this.userPhone = uni.getStorageSync('user_phone')
// this.platformName = uni.getStorageSync('platform_name')
// this.getList(option.code)
// let obj = freeType.find(item=>item.code === option.code)
// if(obj) {
// uni.setNavigationBarTitle({
// title: obj.name
// })
// }
const
token
=
uni
.
getStorageSync
(
'token'
);
if
(
token
&&
option
.
id
)
{
this
.
getDetail
(
option
.
id
)
}
}
}
</
script
>
...
...
@@ -123,13 +149,14 @@
</
style
>
<
style
lang=
"scss"
scoped
>
.page
{
padding
:
0
;
padding
:
0
0
90rpx
;
background-color
:
#F8F6F9
;
}
.
settlement
{
.
reconciliation
{
padding
:
30rpx
;
margin-bottom
:
60rpx
;
.details
{
background-color
:
#ffffff
;
...
...
@@ -141,8 +168,8 @@
width
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
height
:
6
0rpx
;
line-height
:
6
0rpx
;
height
:
7
0rpx
;
line-height
:
7
0rpx
;
.name
{
width
:
35%
;
...
...
@@ -156,7 +183,20 @@
color
:
#373737
;
text-align
:
right
;
}
.amount
{
.tag
{
padding
:
0
24rpx
;
height
:
40rpx
;
line-height
:
40rpx
;
font-size
:
24rpx
;
text-align
:
center
;
color
:
#6A59F2
;
background-color
:
#F5F4FF
;
border
:
1px
solid
#6A59F2
;
border-radius
:
36rpx
;
}
.amount
{
font-size
:
40rpx
;
color
:
#6A59F2
;
font-weight
:
bold
;
...
...
@@ -172,89 +212,75 @@
}
}
.list
{
.item
{
background-color
:
#ffffff
;
border-radius
:
16rpx
;
padding
:
30rpx
;
margin-bottom
:
30rpx
;
.form
{
background-color
:
#ffffff
;
border-radius
:
16rpx
;
padding
:
30rpx
;
margin-bottom
:
30rpx
;
.form-item-text
{
.title
{
height
:
40rpx
;
line-height
:
40rpx
;
margin-bottom
:
30rpx
;
display
:
flex
;
justify-content
:
space-between
;
.name
{
font-size
:
34rpx
;
color
:
#373737
;
display
:
flex
;
font-weight
:
bold
;
}
.tag
{
padding
:
0
24rpx
;
height
:
40rpx
;
line-height
:
40rpx
;
font-size
:
24rpx
;
text-align
:
center
;
color
:
#B6B6BA
;
background-color
:
#F8F8F8
;
border
:
1px
solid
#B6B6BA
;
border-radius
:
36rpx
;
}
height
:
80rpx
;
line-height
:
80rpx
;
font-size
:
30rpx
;
color
:
#373737
;
margin-left
:
10rpx
;
}
.textarea-box
{
background-color
:
#F8F8F8
;
border-radius
:
5px
;
.content
{
border-top
:
1px
solid
#F0F0F2
;
padding-top
:
20rpx
;
.text
{
display
:
flex
;
height
:
60rpx
;
line-height
:
60rpx
;
.name
{
width
:
180rpx
;
font-size
:
28rpx
;
color
:
#9D9CA6
;
}
.detail
{
font-size
:
28rpx
;
color
:
#373737
;
}
.textarea
{
font-size
:
30rpx
;
width
:
100%
;
min-height
:
200rpx
;
padding
:
20rpx
;
box-sizing
:
border-box
;
}
}
}
}
.belongs-to
{
padding
:
30rpx
;
background-color
:
#F8F6F9
;
display
:
flex
;
border-radius
:
16rpx
;
margin-top
:
20rpx
;
}
.text
{
width
:
100%
;
text-align
:
center
;
.submit-box
{
padding
:
30rpx
;
background
:
#ffffff
;
position
:
fixed
;
width
:
100%
;
box-sizing
:
border-box
;
bottom
:
0
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
border-top
:
1px
solid
#F5F4FF
;
.name
{
font-size
:
28rpx
;
color
:
#B6B6BA
;
margin-bottom
:
10rpx
;
}
.left
{
.amount
{
font-size
:
40rpx
;
color
:
#6A59F2
;
font-weight
:
bold
;
}
.detail
{
font-size
:
28rpx
;
color
:
#373737
;
}
}
}
.time
{
font-size
:
28rpx
;
color
:
#9D9CA6
;
margin-top
:
10rpx
;
}
}
}
.right
{
.form-submit
{
height
:
80rpx
;
line-height
:
80rpx
;
background-color
:
#6A59F2
;
border-radius
:
80rpx
;
width
:
240rpx
;
text-align
:
center
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
}
}
}
</
style
>
\ No newline at end of file
pages/reconciliationList/index.vue
浏览文件 @
035b6dff
...
...
@@ -7,60 +7,64 @@
<view
class=
"reconciliation"
>
<view
class=
"top"
>
<view
class=
"tab"
>
<view
:class=
"active == 1?'tit on':'tit'"
@
click=
"toWwitch(1)"
>
待对账
<view
class=
"num"
>
3
</view>
<view
:class=
"active == 1?'tit on':'tit'"
@
click=
"toWwitch(1)"
>
待对账
<view
class=
"num"
v-if=
"active == 1"
>
{{
total
}}
</view>
</view>
<view
:class=
"active == 2?'tit on':'tit'"
@
click=
"toWwitch(2)"
>
待审核
<view
class=
"num"
v-if=
"active == 2"
>
{{
total
}}
</view>
</view>
<view
:class=
"active == 3?'tit on':'tit'"
@
click=
"toWwitch(3)"
>
已对账
<view
class=
"num"
v-if=
"active == 3"
>
{{
total
}}
</view>
</view>
<view
:class=
"active == 4?'tit on':'tit'"
@
click=
"toWwitch(4)"
>
对账驳回
<view
class=
"num"
v-if=
"active == 4"
>
{{
total
}}
</view>
</view>
<view
:class=
"active == 2?'tit on':'tit'"
@
click=
"toWwitch(2)"
>
已对账
</view>
<view
:class=
"active == 3?'tit on':'tit'"
@
click=
"toWwitch(3)"
>
对账待审核
</view>
<view
:class=
"active == 4?'tit on':'tit'"
@
click=
"toWwitch(4)"
>
对账驳回
</view>
</view>
</view>
<view
class=
"list"
>
<checkbox-group
@
change=
"checkboxChange"
>
<view
class=
"item"
v-for=
"(item,index) in payList"
:key=
"item.id"
>
<view
class=
"title"
>
<view
class=
"title-l"
>
<view
class=
"name"
@
click=
"toDetail(item.id)"
>
CX312314141241
</view>
<view
:class=
"active == 1?'tag purple':'tag gray'"
>
待对账
</view>
</view>
<checkbox
:value=
"item.id"
color=
"#6A59F2"
:checked=
"item.checked"
v-if=
"active == 1"
/>
<view
class=
"list"
v-if=
"dataList.length"
>
<view
class=
"item"
v-for=
"(item,index) in dataList"
:key=
"item.id"
@
click=
"toDetail(item.id)"
>
<view
class=
"title"
>
<view
class=
"name"
>
{{
item
.
orderNum
}}
</view>
<view
class=
"tag purple"
v-if=
"item.reconciliationStatus === 1"
>
未对账
</view>
<view
class=
"tag purple"
v-else-if=
"item.reconciliationStatus === 2"
>
对账待审核
</view>
<view
class=
"tag gray"
v-else-if=
"item.reconciliationStatus === 3"
>
已对账
</view>
<view
class=
"tag red"
v-else-if=
"item.reconciliationStatus === 4"
>
对账驳回
</view>
</view>
<view
class=
"content"
>
<view
class=
"text"
>
<view
class=
"name"
>
买家名称
</view>
<view
class=
"detail"
>
{{
item
.
buyerName
}}
</view>
</view>
<view
class=
"
conten
t"
>
<view
class=
"
text"
>
<view
class=
"name"
>
用户账号
</view>
<view
class=
"detail"
>
1521542****
</view>
</view
>
<view
class=
"
text"
>
<view
class=
"name"
>
分利金额
</view>
<view
class=
"detail"
>
¥3000.00
</view>
</view>
<view
class=
"text
"
>
<view
class=
"name"
>
订单时间
</view
>
<view
class=
"detail"
>
2021-11-21 13:00
</view>
</view>
<view
class=
"
tex
t"
>
<view
class=
"
name"
>
分利金额
</view
>
<view
class=
"detail"
>
¥
{{
item
.
shareMoney
}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"
name"
>
订单时间
</view
>
<view
class=
"detail"
>
{{
item
.
createTime
}}
</view>
</view>
</view>
<view
class=
"belongs-to
"
>
<view
class=
"text"
>
<view
class=
"name"
>
所属小区
</view>
<
view
class=
"detail"
>
{{
item
.
communityName
}}
<
/view>
</view>
<view
class=
"belongs-to"
>
<view
class=
"text"
>
<view
class=
"name"
>
所属小区
</view>
<view
class=
"detail"
>
汉江之星小区
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
所属物业
</view>
<view
class=
"detail"
>
汉江之星物业公司
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
所属物业
</view>
<view
class=
"detail"
>
{{
item
.
propertyName
}}
</view>
</view>
</view>
</
checkbox-group
>
</
view
>
</view>
<no-data
:show=
"
payList.length === 0"
text=
"暂无缴费信息
"
></no-data>
<no-data
:show=
"
dataList.length === 0"
text=
"暂无数据
"
></no-data>
</view>
</view>
<view
class=
"form-submit"
@
click=
"onSubmit"
v-if=
"active == 1"
>
申请对账
</view>
</view>
</
template
>
<
script
>
import
{
communityPaymen
tApi
shareBenefitLis
tApi
}
from
'@/config/api.js'
import
noData
from
'@/components/no-data/no-data'
export
default
{
...
...
@@ -69,58 +73,88 @@
},
data
()
{
return
{
active
:
1
,
payList
:
[{
id
:
'1111'
},
{
id
:
'2222'
},
{
id
:
'3333'
},
{
id
:
'44444'
}],
checkboxList
:
[]
total
:
0
,
page
:
{
platformType
:
'partner'
,
reconciliationStatus
:
1
,
pageSize
:
10
,
pageNo
:
1
},
dataList
:
[],
isFinish
:
false
,
active
:
1
}
},
methods
:
{
async
getList
(
chargeTypeCode
)
{
async
getList
(
flag
)
{
let
{
result
}
=
await
communityPaymentApi
({
chargeTypeCode
})
this
.
payList
=
result
.
records
}
=
await
shareBenefitListApi
(
this
.
page
)
this
.
total
=
result
.
total
;
let
data
=
result
.
records
;
if
(
flag
)
{
uni
.
stopPullDownRefresh
();
this
.
dataList
=
[].
concat
(
data
)
}
else
{
this
.
dataList
=
this
.
dataList
.
concat
(
data
)
}
if
(
data
.
length
<
10
)
{
this
.
isFinish
=
true
}
else
{
this
.
page
.
pageNo
+=
1
}
},
toWwitch
(
type
)
{
this
.
active
=
type
;
this
.
page
.
reconciliationStatus
=
type
;
this
.
dataList
=
[];
this
.
page
.
pageNo
=
1
;
this
.
getList
();
},
toDetail
(
id
)
{
uni
.
navigateTo
({
url
:
`/pages/reconciliationDetails/index?id=
${
id
}
`
,
});
},
checkboxChange
:
function
(
e
)
{
console
.
log
(
e
)
this
.
checkboxList
=
e
.
detail
.
value
;
},
onSubmit
()
{
console
.
log
(
this
.
checkboxList
)
if
(
this
.
checkboxList
.
length
>
0
)
{
if
(
id
)
{
uni
.
navigateTo
({
url
:
`/pages/reconciliationBring/index?ids=
${
this
.
checkboxList
}
`
,
});
}
else
{
uni
.
showToast
({
title
:
'请选择对账单!'
,
icon
:
'none'
url
:
`/pages/reconciliationDetails/index?id=
${
id
}
`
,
});
}
},
search
(
value
)
{
if
(
value
.
value
)
{
this
.
page
.
orderNum
=
value
.
value
.
toString
();
this
.
dataList
=
[];
this
.
page
.
pageNo
=
1
;
this
.
getList
();
}
},
cancel
()
{
this
.
dataList
=
[];
this
.
page
.
orderNum
=
''
;
this
.
page
.
pageNo
=
1
;
this
.
page
.
reconciliationStatus
=
1
;
this
.
active
=
1
;
this
.
getList
();
}
},
onLoad
()
{
const
token
=
uni
.
getStorageSync
(
'token'
);
if
(
token
)
{
this
.
getList
()
}
},
onLoad
(
option
)
{
// this.userName = uni.getStorageSync('user_name')
// this.userPhone = uni.getStorageSync('user_phone')
// this.platformName = uni.getStorageSync('platform_name')
// this.getList(option.code)
// let obj = freeType.find(item=>item.code === option.code)
// if(obj) {
// uni.setNavigationBarTitle({
// title: obj.name
// })
// }
onShow
()
{
const
token
=
uni
.
getStorageSync
(
'token'
);
if
(
token
)
{
this
.
getList
()
}
},
onPullDownRefresh
()
{
this
.
page
.
pageNo
=
1
this
.
getList
(
true
)
},
onReachBottom
()
{
if
(
this
.
isFinish
)
return
this
.
getList
()
}
}
</
script
>
...
...
@@ -232,6 +266,12 @@
background-color
:
#F8F8F8
;
border
:
1px
solid
#B6B6BA
;
}
.red
{
color
:
#f5222d
;
background-color
:
#fff1f0
;
border
:
1px
solid
#f5222d
;
}
}
...
...
@@ -284,17 +324,4 @@
}
}
}
.form-submit
{
position
:
fixed
;
bottom
:
10rpx
;
height
:
80rpx
;
line-height
:
80rpx
;
background-color
:
#6A59F2
;
border-radius
:
80rpx
;
width
:
100%
;
text-align
:
center
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
}
</
style
>
\ No newline at end of file
pages/settlementApplyfor/index.vue
浏览文件 @
035b6dff
...
...
@@ -30,55 +30,63 @@
<uni-icons
type=
"forward"
color=
"#E4E4EA"
></uni-icons>
</view>
</view>
<view
class=
"form-item"
>
<view
class=
"form-item-fl"
>
<view
class=
"asterisk"
></view>
结算日期
</view>
<view
class=
"form-item-fr"
>
<uni-datetime-picker
type=
"datetime"
v-model=
"formData.balanceDate"
:clear-icon=
"false"
/>
</view>
</view>
<view
class=
"form-item-text"
>
<view
class=
"title"
>
备注
</view>
<view
class=
"textarea-box"
>
<textarea
class=
"textarea"
:maxlength=
"200"
placeholder-style=
"font-size:14px"
v-model=
"formData.re
pairDesc
"
auto-height
placeholder=
"请输入备注"
/>
v-model=
"formData.re
marks
"
auto-height
placeholder=
"请输入备注"
/>
</view>
</view>
</uni-forms>
</view>
<view
class=
"list"
>
<view
class=
"item"
v-for=
"item in
payList"
:key=
"item.id"
@
click=
"toDetail(item.id)
"
>
<view
class=
"list"
v-if=
"shareBenefitsList.length"
>
<view
class=
"item"
v-for=
"item in
shareBenefitsList"
:key=
"item.id
"
>
<view
class=
"title"
>
<view
class=
"name"
>
CX312314141241
</view>
<view
class=
"name"
>
{{
item
.
orderNum
}}
</view>
<view
class=
"tag"
>
已对账
</view>
</view>
<view
class=
"content"
>
<view
class=
"text"
>
<view
class=
"name"
>
用户账号
</view>
<view
class=
"detail"
>
18888889999
</view>
<view
class=
"name"
>
买家名称
</view>
<view
class=
"detail"
>
{{
item
.
buyerName
}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
分利金额
</view>
<view
class=
"detail"
>
¥
3000.00
</view>
<view
class=
"detail"
>
¥
{{
item
.
shareMoney
}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
订单时间
</view>
<view
class=
"detail"
>
2021-11-21 13:00
</view>
<view
class=
"detail"
>
{{
item
.
createTime
}}
</view>
</view>
</view>
<view
class=
"belongs-to"
>
<view
class=
"text"
>
<view
class=
"name"
>
所属小区
</view>
<view
class=
"detail"
>
汉江之星小区
</view>
<view
class=
"detail"
>
{{
item
.
communityName
}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
所属物业
</view>
<view
class=
"detail"
>
汉江之星物业公司
</view>
<view
class=
"detail"
>
{{
item
.
propertyName
}}
</view>
</view>
</view>
</view>
</view>
<no-data
:show=
"payList.length === 0"
text=
"暂无缴费信息"
></no-data>
</view>
<view
class=
"submit-box"
>
<view
class=
"left"
>
<view
class=
"amount"
>
¥
50000
</view>
<
view
class=
"time"
>
2023-11-21 至 2024-04-31
</view
>
<view
class=
"amount"
>
¥
{{
balanceMoney
}}
</view>
<
!--
<view
class=
"time"
>
2023-11-21 至 2024-04-31
</view>
--
>
</view>
<view
class=
"right"
><button
class=
"form-submit"
>
确定
</button></view>
<view
class=
"right"
><button
class=
"form-submit"
@
click=
"toSubmit()"
>
确定
</button></view>
</view>
</view>
...
...
@@ -87,7 +95,8 @@
<
script
>
import
{
communityPaymentApi
getIdsStatementsApi
,
shareBalanceAddApi
}
from
'@/config/api.js'
import
noData
from
'@/components/no-data/no-data'
export
default
{
...
...
@@ -96,9 +105,13 @@
},
data
()
{
return
{
formData
:
{},
shareBenefitIds
:
''
,
formData
:
{
balanceDate
:
''
},
balanceMoney
:
0
,
paymentTypeList
:
[{
label
:
'转账'
,
label
:
'
微信
转账'
,
value
:
'1'
}],
paymentTypeIndex
:
0
,
...
...
@@ -107,19 +120,37 @@
value
:
'1'
}],
bankCardIndex
:
0
,
payList
:
[{},
{}
]
shareBenefitsList
:
[
]
}
},
methods
:
{
async
getList
(
chargeTypeCode
)
{
async
getList
(
ids
)
{
let
{
result
}
=
await
communityPayment
Api
({
chargeTypeCode
}
=
await
getIdsStatements
Api
({
ids
})
this
.
payList
=
result
.
records
this
.
shareBenefitsList
=
result
;
let
list
=
this
.
shareBenefitsList
let
sum
=
0
for
(
var
i
=
0
;
i
<
list
.
length
;
i
++
)
{
sum
+=
list
[
i
].
shareMoney
}
this
.
balanceMoney
=
sum
},
timeWeekFormat
(
time
)
{
let
date
=
new
Date
(
time
);
let
year
=
date
.
getFullYear
();
// 在日期格式中,月份是从0开始的,因此要加0,使用三元表达式在小于10的前面加0,以达到格式统一 如 09:11:05
let
month
=
date
.
getMonth
()
+
1
<
10
?
"0"
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
;
let
day
=
date
.
getDate
()
<
10
?
"0"
+
date
.
getDate
()
:
date
.
getDate
();
let
hours
=
date
.
getHours
()
<
10
?
"0"
+
date
.
getHours
()
:
date
.
getHours
();
let
minutes
=
date
.
getMinutes
()
<
10
?
"0"
+
date
.
getMinutes
()
:
date
.
getMinutes
();
let
seconds
=
date
.
getSeconds
()
<
10
?
"0"
+
date
.
getSeconds
()
:
date
.
getSeconds
();
// 拼接
return
year
+
"-"
+
month
+
"-"
+
day
+
" "
+
hours
+
":"
+
minutes
+
":"
+
seconds
;
// return year + "-" + month + "-" + day;
},
bindPickerChange
(
e
,
type
)
{
if
(
type
===
'paymentType'
)
{
this
.
paymentTypeIndex
=
Number
(
e
.
detail
.
value
)
...
...
@@ -127,18 +158,50 @@
this
.
bankCardIndex
=
Number
(
e
.
detail
.
value
)
}
},
async
toSubmit
()
{
if
(
!
this
.
formData
.
balanceDate
)
{
uni
.
showToast
({
title
:
'请选择结算日期!'
,
icon
:
'none'
});
return
false
}
if
(
!
this
.
formData
.
remarks
)
{
uni
.
showToast
({
title
:
'请填写备注!'
,
icon
:
'none'
});
return
false
}
let
params
=
{
balanceWay
:
'微信转账'
,
bankCard
:
'工行1234567890'
,
shareBenefitIds
:
this
.
shareBenefitIds
,
balanceDate
:
this
.
formData
.
balanceDate
,
remarks
:
this
.
formData
.
remarks
}
await
shareBalanceAddApi
(
params
)
setTimeout
(()
=>
{
uni
.
showToast
({
title
:
'保存成功!'
,
icon
:
'none'
});
uni
.
navigateTo
({
url
:
'/pages/settlementList/index'
});
},
30
)
}
},
onLoad
(
option
)
{
// this.userName = uni.getStorageSync('user_name')
// this.userPhone = uni.getStorageSync('user_phone')
// this.platformName = uni.getStorageSync('platform_name')
// this.getList(option.code)
// let obj = freeType.find(item=>item.code === option.code)
// if(obj) {
// uni.setNavigationBarTitle({
// title: obj.name
// })
// }
const
token
=
uni
.
getStorageSync
(
'token'
);
if
(
token
&&
option
.
ids
)
{
//this.formData.balanceDate = '2022-07-08 0:01:10'
this
.
shareBenefitIds
=
option
.
ids
this
.
getList
(
option
.
ids
)
let
times
=
new
Date
()
this
.
formData
.
balanceDate
=
this
.
timeWeekFormat
(
times
)
}
}
}
</
script
>
...
...
pages/settlementDetails/index.vue
浏览文件 @
035b6dff
...
...
@@ -2,61 +2,77 @@
<view
class=
"container"
>
<view
class=
"page"
>
<view
class=
"settlement"
>
<view
class=
"details"
>
<view
class=
"details"
v-if=
"details.balanceStatus"
>
<view
class=
"item"
>
<view
class=
"name"
>
对账总金额
</view>
<view
class=
"detail amount"
>
¥5000.00
</view>
<view
class=
"name"
>
结算单号
</view>
<view
class=
"detail"
>
{{
details
.
balanceNum
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
订单状态
</view>
<view
class=
"tag"
>
{{
details
.
balanceStatusName
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
结算总金额
</view>
<view
class=
"detail amount"
>
¥
{{
details
.
balanceMoney
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
提交时间
</view>
<view
class=
"detail"
>
{{
details
.
createTime
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
提交人
</view>
<view
class=
"detail"
>
{{
details
.
createBy
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
账单数量
</view>
<view
class=
"detail"
>
{{
details
.
balanceCount
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
结算方式
</view>
<view
class=
"detail"
>
转账
</view>
<view
class=
"detail"
>
{{
details
.
balanceWay
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
银行卡
</view>
<view
class=
"detail"
>
6524154285628542254
</view>
<view
class=
"detail"
>
{{
details
.
bankCard
}}
</view>
</view>
<view
class=
"item"
>
<view
class=
"name"
>
对账日期
</view>
<view
class=
"detail"
>
2021-11-21 13:00
</view>
</view>
<view
class=
"item text"
>
<view
class=
"name"
>
备注
</view>
<view
class=
"detail"
>
无
</view>
<view
class=
"name"
>
结算日期
</view>
<view
class=
"detail"
>
{{
details
.
balanceDate
}}
</view>
</view>
</view>
<view
class=
"list"
>
<view
class=
"item"
v-for=
"item in
payList"
:key=
"item.id"
@
click=
"toDetail(item.id)
"
>
<view
class=
"list"
v-if=
"shareBenefitsList.length"
>
<view
class=
"item"
v-for=
"item in
shareBenefitsList"
:key=
"item.id
"
>
<view
class=
"title"
>
<view
class=
"name"
>
CX312314141241
</view>
<view
class=
"name"
>
{{
item
.
orderNum
}}
</view>
<view
class=
"tag"
>
已对账
</view>
</view>
<view
class=
"content"
>
<view
class=
"text"
>
<view
class=
"name"
>
用户账号
</view>
<view
class=
"detail"
>
18888889999
</view>
<view
class=
"name"
>
买家名称
</view>
<view
class=
"detail"
>
{{
item
.
buyerName
}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
分利金额
</view>
<view
class=
"detail"
>
¥
3000.00
</view>
<view
class=
"detail"
>
¥
{{
item
.
shareMoney
}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
订单时间
</view>
<view
class=
"detail"
>
2021-11-21 13:00
</view>
<view
class=
"detail"
>
{{
item
.
createTime
}}
</view>
</view>
</view>
<view
class=
"belongs-to"
>
<view
class=
"text"
>
<view
class=
"name"
>
所属小区
</view>
<view
class=
"detail"
>
汉江之星小区
</view>
<view
class=
"detail"
>
{{
item
.
communityName
}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
所属物业
</view>
<view
class=
"detail"
>
汉江之星物业公司
</view>
<view
class=
"detail"
>
{{
item
.
propertyName
}}
</view>
</view>
</view>
</view>
</view>
<no-data
:show=
"
payList.length === 0"
text=
"暂无缴费
信息"
></no-data>
<no-data
:show=
"
shareBenefitsList.length === 0"
text=
"暂无
信息"
></no-data>
</view>
</view>
...
...
@@ -65,7 +81,7 @@
<
script
>
import
{
communityPayment
Api
shareBalanceDetail
Api
}
from
'@/config/api.js'
import
noData
from
'@/components/no-data/no-data'
export
default
{
...
...
@@ -74,49 +90,33 @@
},
data
()
{
return
{
formData
:
{},
paymentTypeList
:
[{
label
:
'转账'
,
value
:
'1'
}],
paymentTypeIndex
:
0
,
bankCardList
:
[{
label
:
'工行1234567890'
,
value
:
'1'
}],
bankCardIndex
:
0
,
payList
:
[{},
{}]
details
:
{},
shareBenefitsList
:
[]
}
},
methods
:
{
async
get
List
(
chargeTypeCode
)
{
async
get
Detail
(
id
)
{
let
{
result
}
=
await
communityPayment
Api
({
chargeTypeCode
}
=
await
shareBalanceDetail
Api
({
id
})
this
.
payList
=
result
.
records
},
bindPickerChange
(
e
,
type
)
{
if
(
type
===
'paymentType'
)
{
this
.
paymentTypeIndex
=
Number
(
e
.
detail
.
value
)
}
else
if
(
t
ype
===
'bankCard'
)
{
this
.
bankCardIndex
=
Number
(
e
.
detail
.
value
)
this
.
details
=
result
.
shareBalance
;
this
.
shareBenefitsList
=
result
.
shareBenefitsList
;
if
(
this
.
details
.
balanceStatus
==
2
)
{
this
.
details
.
balanceStatusName
=
'结算待审核'
}
else
if
(
this
.
details
.
balanceStatus
==
3
)
{
this
.
details
.
balanceStatusName
=
'已结算'
}
else
if
(
t
his
.
details
.
balanceStatus
==
4
)
{
this
.
details
.
balanceStatusName
=
'结算驳回'
}
}
,
}
},
onLoad
(
option
)
{
// this.userName = uni.getStorageSync('user_name')
// this.userPhone = uni.getStorageSync('user_phone')
// this.platformName = uni.getStorageSync('platform_name')
// this.getList(option.code)
// let obj = freeType.find(item=>item.code === option.code)
// if(obj) {
// uni.setNavigationBarTitle({
// title: obj.name
// })
// }
const
token
=
uni
.
getStorageSync
(
'token'
);
if
(
token
&&
option
.
id
)
{
this
.
getDetail
(
option
.
id
)
}
}
}
</
script
>
...
...
@@ -145,8 +145,8 @@
width
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
height
:
6
0rpx
;
line-height
:
6
0rpx
;
height
:
7
0rpx
;
line-height
:
7
0rpx
;
.name
{
width
:
35%
;
...
...
@@ -160,6 +160,17 @@
color
:
#373737
;
text-align
:
right
;
}
.tag
{
padding
:
0
24rpx
;
height
:
40rpx
;
line-height
:
40rpx
;
font-size
:
24rpx
;
text-align
:
center
;
color
:
#6A59F2
;
background-color
:
#F5F4FF
;
border
:
1px
solid
#6A59F2
;
border-radius
:
36rpx
;
}
.amount
{
font-size
:
40rpx
;
color
:
#6A59F2
;
...
...
pages/settlementList/index.vue
浏览文件 @
035b6dff
...
...
@@ -7,49 +7,59 @@
<view
class=
"settlement"
>
<view
class=
"top"
>
<view
class=
"tab"
>
<view
:class=
"active == 1?'tit on':'tit'"
@
click=
"toWwitch(1)"
>
未结算
<view
class=
"num"
>
3
</view>
<view
:class=
"active == 2?'tit on':'tit'"
@
click=
"toWwitch(2)"
>
结算待审核
<view
class=
"num"
v-if=
"active == 2"
>
{{
total
}}
</view>
</view>
<view
:class=
"active == 2?'tit on':'tit'"
@
click=
"toWwitch(2)"
>
已结算
</view>
<view
:class=
"active == 3?'tit on':'tit'"
@
click=
"toWwitch(3)"
>
结算待审核
</view>
<view
:class=
"active == 4?'tit on':'tit'"
@
click=
"toWwitch(4)"
>
结算驳回
</view>
<view
:class=
"active == 3?'tit on':'tit'"
@
click=
"toWwitch(3)"
>
已结算
<view
class=
"num"
v-if=
"active == 3"
>
{{
total
}}
</view>
</view>
<view
:class=
"active == 4?'tit on':'tit'"
@
click=
"toWwitch(4)"
>
结算驳回
<view
class=
"num"
v-if=
"active == 4"
>
{{
total
}}
</view>
</view>
<!--
<view
:class=
"active == 1?'tit on':'tit'"
@
click=
"toWwitch(1)"
>
全部
</view>
-->
</view>
</view>
<view
class=
"list"
>
<view
class=
"item"
v-for=
"item in
pay
List"
:key=
"item.id"
@
click=
"toDetail(item.id)"
>
<view
class=
"list"
v-if=
"dataList.length"
>
<view
class=
"item"
v-for=
"item in
data
List"
:key=
"item.id"
@
click=
"toDetail(item.id)"
>
<view
class=
"title"
>
<view
class=
"name"
>
CX312314141241
</view>
<view
class=
"tag"
>
未结算
<uni-icons
type=
"forward"
size=
"13"
color=
"#6A59F2"
></uni-icons></view>
<view
class=
"name"
>
{{
item
.
balanceNum
}}
</view>
<view
class=
"tag"
>
<template
v-if=
"item.balanceStatus === 2"
>
结算待审核
</
template
>
<
template
v-else-if=
"item.balanceStatus === 3"
>
已结算
</
template
>
<
template
v-else-if=
"item.balanceStatus === 4"
>
结算驳回
</
template
>
<uni-icons
type=
"forward"
size=
"13"
color=
"#6A59F2"
></uni-icons>
</view>
</view>
<view
class=
"content"
>
<view
class=
"text"
>
<view
class=
"name"
>
分利金额
</view>
<view
class=
"detail"
>
¥
3000.00
</view>
<view
class=
"detail"
>
¥
{{item.balanceMoney}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
账单数量
</view>
<view
class=
"detail"
>
3
</view>
<view
class=
"detail"
>
{{item.balanceCount}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
结算方式
</view>
<view
class=
"detail"
>
转账
</view>
<view
class=
"detail"
>
{{item.balanceWay}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
提交时间
</view>
<view
class=
"detail"
>
2021-11-21 13:00
</view>
<view
class=
"detail"
>
{{item.createTime}}
</view>
</view>
</view>
</view>
</view>
<no-data
:show=
"
payList.length === 0"
text=
"暂无缴费信息
"
></no-data>
<no-data
:show=
"
dataList.length === 0"
text=
"暂无数据
"
></no-data>
</view>
</view>
<view
class=
"form-submit"
@
click=
"toSettlement"
>
申请结算
</view>
</view>
</template>
<
script
>
import
{
communityPaymen
tApi
shareBalanceLis
tApi
}
from
'@/config/api.js'
import
noData
from
'@/components/no-data/no-data'
export
default
{
...
...
@@ -58,39 +68,92 @@
},
data
()
{
return
{
active
:
1
,
payList
:
[{},
{}]
total
:
0
,
page
:
{
platformType
:
'partner'
,
balanceStatus
:
2
,
pageSize
:
10
,
pageNo
:
1
},
dataList
:
[],
isFinish
:
false
,
active
:
2
}
},
methods
:
{
async
getList
(
chargeTypeCode
)
{
async
getList
(
flag
)
{
let
{
result
}
=
await
communityPaymentApi
({
chargeTypeCode
})
this
.
payList
=
result
.
records
}
=
await
shareBalanceListApi
(
this
.
page
)
this
.
total
=
result
.
total
;
let
data
=
result
.
records
;
if
(
flag
)
{
uni
.
stopPullDownRefresh
();
this
.
dataList
=
[].
concat
(
data
)
}
else
{
this
.
dataList
=
this
.
dataList
.
concat
(
data
)
}
if
(
data
.
length
<
10
)
{
this
.
isFinish
=
true
}
else
{
this
.
page
.
pageNo
+=
1
}
},
toWwitch
(
type
)
{
this
.
active
=
type
;
this
.
page
.
balanceStatus
=
type
;
this
.
dataList
=
[];
this
.
page
.
pageNo
=
1
;
this
.
getList
();
},
toDetail
(
id
)
{
if
(
id
)
{
uni
.
navigateTo
({
url
:
`/pages/settlementDetails/index?id=
${
id
}
`
,
});
}
},
toSettlement
()
{
uni
.
navigateTo
({
url
:
`/pages/s
ettlementApplyfor/index?id=
${
id
}
`
,
url
:
`/pages/s
tatementsList/index
`
,
});
},
search
(
value
)
{
if
(
value
.
value
)
{
this
.
page
.
balanceNum
=
value
.
value
.
toString
();
this
.
dataList
=
[];
this
.
page
.
pageNo
=
1
;
this
.
getList
();
}
},
cancel
()
{
this
.
dataList
=
[];
this
.
page
.
balanceNum
=
''
;
this
.
page
.
pageNo
=
1
;
this
.
page
.
balanceStatus
=
2
;
this
.
active
=
2
;
this
.
getList
();
}
},
onLoad
(
option
)
{
// this.userName = uni.getStorageSync('user_name')
// this.userPhone = uni.getStorageSync('user_phone')
// this.platformName = uni.getStorageSync('platform_name')
// this.getList(option.code)
// let obj = freeType.find(item=>item.code === option.code)
// if(obj) {
// uni.setNavigationBarTitle({
// title: obj.name
// })
// }
onLoad
()
{
const
token
=
uni
.
getStorageSync
(
'token'
);
if
(
token
)
{
this
.
getList
()
}
},
onShow
()
{
const
token
=
uni
.
getStorageSync
(
'token'
);
if
(
token
)
{
this
.
getList
()
}
},
onPullDownRefresh
()
{
this
.
page
.
pageNo
=
1
this
.
getList
(
true
)
},
onReachBottom
()
{
if
(
this
.
isFinish
)
return
this
.
getList
()
}
}
</
script
>
...
...
@@ -125,7 +188,7 @@
padding
:
0
10rpx
;
.tit
{
width
:
25
%
;
width
:
33
.33
%
;
height
:
60rpx
;
line-height
:
60rpx
;
display
:
flex
;
...
...
@@ -216,4 +279,17 @@
}
}
}
.form-submit
{
position
:
fixed
;
bottom
:
10rpx
;
height
:
80rpx
;
line-height
:
80rpx
;
background-color
:
#6A59F2
;
border-radius
:
80rpx
;
width
:
100%
;
text-align
:
center
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
}
</
style
>
\ No newline at end of file
pages/shopsCode/index.vue
浏览文件 @
035b6dff
...
...
@@ -2,12 +2,13 @@
<view
class=
"container"
>
<view
class=
"page"
>
<view
class=
"shops"
>
<view
class=
"details"
>
<view
class=
"details"
v-if=
"imgUrl"
>
<view
class=
"code"
>
<image
src=
"https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/code_1691046274361.jpg
"
class=
"icon"
></image>
<text>
寿康永乐
二维码
</text>
<image
:src=
"imgUrl
"
class=
"icon"
></image>
<text>
商铺收款
二维码
</text>
</view>
</view>
<no-data
:show=
"!imgUrl"
text=
"暂无数据"
></no-data>
</view>
</view>
</view>
...
...
@@ -15,54 +16,37 @@
<
script
>
import
{
getCommunityRepairDetailApi
,
editCommunityRepairApi
getShopQrCode
}
from
'@/config/api.js'
import
noData
from
'@/components/no-data/no-data'
export
default
{
components
:
{
noData
},
data
()
{
return
{
rateValue
:
5
,
evaluation
:
''
,
formModel
:
{
},
imageList
:
[
'https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/bg_1690786506694.png'
]
imgUrl
:
''
}
},
methods
:
{
async
getDetail
(
id
)
{
// let {
// result
// } = await getCommunityRepairDetailApi({
// id
// })
// this.formModel = {
// ...result
// }
// this.imageList = result.repairPhoto ? result.repairPhoto.split(',') : []
},
async
onSubmit
()
{
// await editCommunityRepairApi({
// id: this.formModel.id,
// repairEvaluate: this.evaluation,
// evaluateCount: this.rateValue
// })
// uni.$emit('change-maintenance');
// setTimeout(() => {
// uni.showToast({
// title: '评价成功!',
// icon: 'none'
// });
// setTimeout(() => {
// uni.navigateBack({
// delta: 2
// });
// }, 1500)
// }, 30)
async
getDetail
(
code
)
{
let
{
result
}
=
await
getShopQrCode
({
shopCode
:
code
,
platformType
:
'partner'
})
if
(
result
&&
result
!=
undefined
)
{
this
.
imgUrl
=
window
.
URL
.
createObjectURL
(
new
Blob
([
result
]));
}
}
},
onLoad
(
option
)
{
this
.
getDetail
(
option
.
id
)
const
token
=
uni
.
getStorageSync
(
'token'
);
if
(
token
&&
option
.
code
)
{
this
.
getDetail
(
option
.
code
)
}
}
}
</
script
>
...
...
@@ -83,28 +67,30 @@
border-radius
:
16rpx
;
padding
:
100rpx
30rpx
;
margin-bottom
:
30rpx
;
.code
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
center
;
.icon
{
.code
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
center
;
.icon
{
width
:
380rpx
;
height
:
380rpx
;
padding
:
60rpx
;
border-radius
:
20rpx
;
border
:
1px
solid
#D5E2F3
;
}
text
{
text
{
font-size
:
32rpx
;
color
:
#373737
;
margin-top
:
40rpx
;
font-weight
:
bold
;
}
}
}
}
</
style
>
\ No newline at end of file
pages/shopsDetails/index.vue
浏览文件 @
035b6dff
...
...
@@ -53,7 +53,8 @@
</view>
</view>
<view
class=
"form-submit"
@
click=
"onSubmit"
v-if=
"communityCode"
>
确认绑定
</view>
<view
class=
"form-submit"
@
click=
"toCode"
v-else
>
商铺收款二维码
</view>
<view
class=
"form-submit"
@
click=
"toCode"
v-if=
"!communityCode && details.auditStatus == 'auditPass'"
>
商铺收款二维码
</view>
</view>
</view>
</view>
...
...
@@ -70,8 +71,7 @@
return
{
communityCode
:
''
,
details
:
{},
imageURL
:
''
,
imageList
:
[
'https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/bg_1690786506694.png'
]
imageURL
:
''
}
},
methods
:
{
...
...
@@ -105,15 +105,17 @@
}
},
toCode
()
{
uni
.
navigateTo
({
url
:
'/pages/shopsCode/index'
});
if
(
this
.
details
.
shopCode
)
{
uni
.
navigateTo
({
url
:
'/pages/shopsCode/index?code='
+
this
.
details
.
shopCode
});
}
}
},
onLoad
(
option
)
{
const
token
=
uni
.
getStorageSync
(
'token'
);
if
(
token
&&
option
.
id
)
{
if
(
option
.
code
)
{
if
(
option
.
code
)
{
this
.
communityCode
=
option
.
code
;
}
this
.
imageURL
=
`
${
serverConfig
.
imageURL
}
`
...
...
@@ -166,7 +168,7 @@
margin-bottom
:
20rpx
;
.detail
{
line-height
:
52rpx
;
//
line-height: 52rpx;
}
.image
{
...
...
pages/shopsList/index.vue
浏览文件 @
035b6dff
...
...
@@ -50,9 +50,6 @@
}
},
computed
:
{
hideAdd
()
{
return
this
.
dataList
.
some
(
item
=>
item
.
auditStatus
!==
'auditPass'
)
}
},
methods
:
{
async
getList
(
flag
)
{
...
...
pages/
reconciliationBring
/index.vue
→
pages/
statementsList
/index.vue
浏览文件 @
035b6dff
...
...
@@ -2,67 +2,53 @@
<view
class=
"container"
>
<view
class=
"page"
>
<view
class=
"reconciliation"
>
<view
class=
"list"
>
<view
class=
"item"
v-for=
"item in payList"
:key=
"item.id"
@
click=
"toDetail(item.id)"
>
<view
class=
"title"
>
<view
class=
"name"
>
CX312314141241
</view>
<view
class=
"tag"
>
待对账
</view>
</view>
<view
class=
"content"
>
<view
class=
"text"
>
<view
class=
"name"
>
用户账号
</view>
<view
class=
"detail"
>
18888889999
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
分利金额
</view>
<view
class=
"detail"
>
¥3000.00
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
订单时间
</view>
<view
class=
"detail"
>
2021-11-21 13:00
</view>
<view
class=
"list"
v-if=
"dataList.length"
>
<checkbox-group
@
change=
"checkboxChange"
>
<view
class=
"item"
v-for=
"(item,index) in dataList"
:key=
"item.id"
>
<view
class=
"title"
>
<view
class=
"title-l"
>
<view
class=
"name"
>
{{
item
.
orderNum
}}
</view>
<view
class=
"tag purple"
>
已对账
</view>
</view>
<checkbox
:value=
"item.id"
color=
"#6A59F2"
:checked=
"item.checked"
/>
</view>
</view>
<view
class=
"belongs-to"
>
<view
class=
"text"
>
<view
class=
"name"
>
所属小区
</view>
<view
class=
"detail"
>
汉江之星小区
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
所属物业
</view>
<view
class=
"detail"
>
汉江之星物业公司
</view>
<view
class=
"content"
>
<view
class=
"text"
>
<view
class=
"name"
>
买家名称
</view>
<view
class=
"detail"
>
{{
item
.
buyerName
}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
分利金额
</view>
<view
class=
"detail"
>
¥
{{
item
.
shareMoney
}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
订单时间
</view>
<view
class=
"detail"
>
{{
item
.
createTime
}}
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"form"
:show=
"payList.length > 0"
>
<uni-forms>
<view
class=
"form-item-text"
>
<view
class=
"title"
>
备注
</view>
<view
class=
"textarea-box"
>
<textarea
class=
"textarea"
:maxlength=
"200"
placeholder-style=
"font-size:14px"
v-model=
"formData.repairDesc"
auto-height
placeholder=
"请输入备注"
/>
<view
class=
"belongs-to"
>
<view
class=
"text"
>
<view
class=
"name"
>
所属小区
</view>
<view
class=
"detail"
>
{{
item
.
communityName
}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
所属物业
</view>
<view
class=
"detail"
>
{{
item
.
propertyName
}}
</view>
</view>
</view>
</view>
</
uni-forms
>
</
checkbox-group
>
</view>
<no-data
:show=
"payList.length === 0"
text=
"暂无缴费信息"
></no-data>
</view>
<view
class=
"submit-box"
>
<view
class=
"left"
>
<view
class=
"amount"
>
¥50000
</view>
<view
class=
"time"
>
2023-11-21 至 2024-04-31
</view>
</view>
<view
class=
"right"
><button
class=
"form-submit"
>
确定
</button></view>
<no-data
:show=
"dataList.length === 0"
text=
"暂无数据"
></no-data>
</view>
</view>
<view
class=
"form-submit"
@
click=
"toSettlement"
>
申请结算
</view>
</view>
</
template
>
<
script
>
import
{
communityPaymen
tApi
getShareBalanceLis
tApi
}
from
'@/config/api.js'
import
noData
from
'@/components/no-data/no-data'
export
default
{
...
...
@@ -71,39 +57,67 @@
},
data
()
{
return
{
formData
:
{},
payList
:
[{},
{}]
page
:
{
platformType
:
'partner'
,
pageSize
:
10
,
pageNo
:
1
},
dataList
:
[],
isFinish
:
false
,
checkboxList
:
[]
}
},
methods
:
{
async
getList
(
chargeTypeCode
)
{
async
getList
(
flag
)
{
let
{
result
}
=
await
communityPaymentApi
({
chargeTypeCode
})
this
.
payList
=
result
.
records
}
=
await
getShareBalanceListApi
(
this
.
page
)
this
.
total
=
result
.
total
;
let
data
=
result
.
records
;
if
(
flag
)
{
uni
.
stopPullDownRefresh
();
this
.
dataList
=
[].
concat
(
data
)
}
else
{
this
.
dataList
=
this
.
dataList
.
concat
(
data
)
}
if
(
data
.
length
<
10
)
{
this
.
isFinish
=
true
}
else
{
this
.
page
.
pageNo
+=
1
}
},
bindPickerChange
(
e
,
type
)
{
if
(
type
===
'paymentType'
)
{
this
.
paymentTypeIndex
=
Number
(
e
.
detail
.
value
)
}
else
if
(
type
===
'bankCard'
)
{
this
.
bankCardIndex
=
Number
(
e
.
detail
.
value
)
}
checkboxChange
:
function
(
e
)
{
this
.
checkboxList
=
e
.
detail
.
value
;
},
toSettlement
()
{
if
(
this
.
checkboxList
.
length
>
0
)
{
let
ids
=
this
.
checkboxList
.
toString
()
uni
.
navigateTo
({
url
:
`/pages/settlementApplyfor/index?ids=
${
ids
}
`
,
});
}
else
{
uni
.
showToast
({
title
:
'请选择对账单!'
,
icon
:
'none'
});
}
}
},
onLoad
()
{
const
token
=
uni
.
getStorageSync
(
'token'
);
if
(
token
)
{
this
.
getList
()
}
},
onPullDownRefresh
()
{
this
.
page
.
pageNo
=
1
this
.
getList
(
true
)
},
onLoad
(
option
)
{
// this.userName = uni.getStorageSync('user_name')
// this.userPhone = uni.getStorageSync('user_phone')
// this.platformName = uni.getStorageSync('platform_name')
// this.getList(option.code)
// let obj = freeType.find(item=>item.code === option.code)
// if(obj) {
// uni.setNavigationBarTitle({
// title: obj.name
// })
// }
onReachBottom
()
{
if
(
this
.
isFinish
)
return
this
.
getList
()
}
}
</
script
>
...
...
@@ -118,77 +132,12 @@
background-color
:
#F8F6F9
;
}
.search
{
background-color
:
#ffffff
;
}
.reconciliation
{
padding
:
30rpx
;
margin-bottom
:
60rpx
;
.form
{
background-color
:
#ffffff
;
border-radius
:
16rpx
;
padding
:
30rpx
;
margin-bottom
:
30rpx
;
.form-item
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
height
:
100rpx
;
line-height
:
100rpx
;
border-bottom
:
1px
solid
#F8F6F9
;
overflow
:
hidden
;
}
.form-item-fl
{
font-size
:
30rpx
;
color
:
#373737
;
display
:
flex
;
.asterisk
{
color
:
#F42E2E
;
width
:
10rpx
;
margin-right
:
6rpx
;
}
}
.form-item-fr
{
display
:
flex
;
flex
:
2
;
align-items
:
center
;
justify-content
:
flex-end
;
margin-left
:
20rpx
;
}
.form-item-tit
{
font-size
:
30rpx
;
color
:
#666
;
margin-right
:
20rpx
;
text-align
:
right
;
}
.form-item-text
{
.title
{
height
:
100rpx
;
line-height
:
100rpx
;
font-size
:
30rpx
;
color
:
#373737
;
margin-left
:
10rpx
;
}
.textarea-box
{
background-color
:
#F8F8F8
;
border-radius
:
5px
;
.textarea
{
font-size
:
30rpx
;
width
:
100%
;
min-height
:
200rpx
;
padding
:
20rpx
;
box-sizing
:
border-box
;
}
}
}
}
.list
{
.item
{
...
...
@@ -202,6 +151,11 @@
line-height
:
40rpx
;
margin-bottom
:
30rpx
;
display
:
flex
;
justify-content
:
space-between
;
.title-l
{
display
:
flex
;
}
.name
{
font-size
:
34rpx
;
...
...
@@ -218,10 +172,19 @@
line-height
:
40rpx
;
font-size
:
24rpx
;
text-align
:
center
;
border-radius
:
36rpx
;
}
.purple
{
color
:
#6A59F2
;
background-color
:
#F5F4FF
;
border
:
1px
solid
#6A59F2
;
border-radius
:
36rpx
;
}
.gray
{
color
:
#B6B6BA
;
background-color
:
#F8F8F8
;
border
:
1px
solid
#B6B6BA
;
}
}
...
...
@@ -249,7 +212,7 @@
}
.belongs-to
{
padding
:
30
rpx
;
padding
:
25
rpx
;
background-color
:
#F8F6F9
;
display
:
flex
;
border-radius
:
16rpx
;
...
...
@@ -271,47 +234,21 @@
}
}
}
}
}
}
.submit-box
{
padding
:
30rpx
;
background
:
#ffffff
;
.form-submit
{
position
:
fixed
;
bottom
:
10rpx
;
height
:
80rpx
;
line-height
:
80rpx
;
background-color
:
#6A59F2
;
border-radius
:
80rpx
;
width
:
100%
;
box-sizing
:
border-box
;
bottom
:
0
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
border-top
:
1px
solid
#F5F4FF
;
.left
{
.amount
{
font-size
:
40rpx
;
color
:
#6A59F2
;
font-weight
:
bold
;
}
.time
{
font-size
:
28rpx
;
color
:
#9D9CA6
;
margin-top
:
10rpx
;
}
}
.right
{
.form-submit
{
height
:
80rpx
;
line-height
:
80rpx
;
background-color
:
#6A59F2
;
border-radius
:
80rpx
;
width
:
240rpx
;
text-align
:
center
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
}
}
text-align
:
center
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
}
</
style
>
\ No newline at end of file
pages/withdrawalList/index.vue
浏览文件 @
035b6dff
...
...
@@ -2,37 +2,36 @@
<view
class=
"container"
>
<view
class=
"page"
>
<view
class=
"search"
>
<uni-search-bar
placeholder=
"请输入单号"
bgColor=
"#F8F6F9"
radius=
"100"
@
confirm=
"search"
@
cancel=
"cancel"
/>
<uni-search-bar
placeholder=
"请输入单号"
bgColor=
"#F8F6F9"
radius=
"100"
@
confirm=
"search"
@
cancel=
"cancel"
/>
</view>
<view
class=
"withdrawal"
>
<view
class=
"list"
>
<view
class=
"item"
v-for=
"item in
payList"
:key=
"item.id"
@
click=
"toDetail(item.id)
"
>
<view
class=
"list"
v-if=
"dataList.length"
>
<view
class=
"item"
v-for=
"item in
dataList"
:key=
"item.id
"
>
<view
class=
"title"
>
<view
class=
"name"
>
CX312314141241
</view>
<view
class=
"name"
>
{{
item
.
balanceNum
}}
</view>
<view
class=
"tag"
>
已结算
</view>
</view>
<view
class=
"content"
>
<view
class=
"text"
>
<view
class=
"name"
>
分利金额
</view>
<view
class=
"detail"
>
¥
3000.00
</view>
<view
class=
"detail"
>
¥
{{
item
.
balanceMoney
}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
账单数量
</view>
<view
class=
"detail"
>
3
</view>
<view
class=
"detail"
>
{{
item
.
balanceCount
}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
结算方式
</view>
<view
class=
"detail"
>
转账
</view>
<view
class=
"detail"
>
{{
item
.
balanceWay
}}
</view>
</view>
<view
class=
"text"
>
<view
class=
"name"
>
提交时间
</view>
<view
class=
"detail"
>
2021-11-21 13:00
</view>
<view
class=
"detail"
>
{{
item
.
createTime
}}
</view>
</view>
</view>
</view>
</view>
<no-data
:show=
"
payList.length === 0"
text=
"暂无缴费信息
"
></no-data>
<no-data
:show=
"
dataList.length === 0"
text=
"暂无数据
"
></no-data>
</view>
</view>
...
...
@@ -41,7 +40,7 @@
<
script
>
import
{
communityPaymen
tApi
shareBalanceLis
tApi
}
from
'@/config/api.js'
import
noData
from
'@/components/no-data/no-data'
export
default
{
...
...
@@ -50,49 +49,63 @@
},
data
()
{
return
{
userName
:
''
,
userPhone
:
''
,
platformName
:
''
,
payList
:
[{},{}]
page
:
{
platformType
:
'partner'
,
balanceStatus
:
3
,
pageSize
:
10
,
pageNo
:
1
},
dataList
:
[],
isFinish
:
false
,
}
},
methods
:
{
async
getList
(
chargeTypeCode
)
{
async
getList
(
flag
)
{
let
{
result
}
=
await
communityPaymentApi
({
chargeTypeCode
})
this
.
payList
=
result
.
records
}
=
await
shareBalanceListApi
(
this
.
page
)
this
.
total
=
result
.
total
;
let
data
=
result
.
records
;
if
(
flag
)
{
uni
.
stopPullDownRefresh
();
this
.
dataList
=
[].
concat
(
data
)
}
else
{
this
.
dataList
=
this
.
dataList
.
concat
(
data
)
}
if
(
data
.
length
<
10
)
{
this
.
isFinish
=
true
}
else
{
this
.
page
.
pageNo
+=
1
}
},
toRecord
(
type
)
{
if
(
type
==
1
)
{
uni
.
navigateTo
({
url
:
'/pages/payCostStatistical/index'
,
});
}
else
if
(
type
==
2
)
{
uni
.
navigateTo
({
url
:
'/pages/payCostRecord/index'
,
});
search
(
value
)
{
if
(
value
.
value
)
{
this
.
page
.
balanceNum
=
value
.
value
.
toString
();
this
.
dataList
=
[];
this
.
page
.
pageNo
=
1
;
this
.
getList
();
}
},
toDetail
(
id
)
{
uni
.
navigateTo
({
url
:
`/pages/payCostDetails/index?id=
${
id
}
`
,
});
cancel
()
{
this
.
dataList
=
[];
this
.
page
.
balanceNum
=
''
;
this
.
page
.
pageNo
=
1
;
this
.
getList
();
}
},
onLoad
()
{
const
token
=
uni
.
getStorageSync
(
'token'
);
if
(
token
)
{
this
.
getList
()
}
},
onLoad
(
option
)
{
// this.userName = uni.getStorageSync('user_name')
// this.userPhone = uni.getStorageSync('user_phone')
// this.platformName = uni.getStorageSync('platform_name')
// this.getList(option.code)
// let obj = freeType.find(item=>item.code === option.code)
// if(obj) {
// uni.setNavigationBarTitle({
// title: obj.name
// })
// }
onPullDownRefresh
()
{
this
.
page
.
pageNo
=
1
this
.
getList
(
true
)
},
onReachBottom
()
{
if
(
this
.
isFinish
)
return
this
.
getList
()
}
}
</
script
>
...
...
@@ -106,13 +119,14 @@
padding
:
0
0
90rpx
;
background-color
:
#F8F6F9
;
}
.search
{
.search
{
background-color
:
#ffffff
;
}
.withdrawal
{
padding
:
30rpx
;
.list
{
.item
{
background-color
:
#ffffff
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论