Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_wechat
Commits
39a51a8d
Commit
39a51a8d
authored
Sep 24, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
9f3b9078
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
116 additions
and
30 deletions
+116
-30
recharge.js
api/recharge.js
+7
-0
index.config.js
config/index.config.js
+1
-1
vipCreate.vue
pages/vipCreate/vipCreate.vue
+29
-18
equityDetail.vue
setting/equityDetail/equityDetail.vue
+5
-2
index.vue
setting/equityFundLog/index.vue
+74
-9
No files found.
api/recharge.js
View file @
39a51a8d
...
@@ -34,11 +34,18 @@ export const balanceLog=(data)=>{
...
@@ -34,11 +34,18 @@ export const balanceLog=(data)=>{
return
http
.
get
(
url
,
data
)
return
http
.
get
(
url
,
data
)
}
}
// 已入账记录
export
const
equityFundLog
=
(
data
)
=>
{
export
const
equityFundLog
=
(
data
)
=>
{
let
url
=
`/equityFundLog/list`
let
url
=
`/equityFundLog/list`
return
http
.
get
(
url
,
data
)
return
http
.
get
(
url
,
data
)
}
}
// 待入账记录
export
const
equityFundExcess
=
(
data
)
=>
{
let
url
=
`/equityFundExcess/list`
return
http
.
get
(
url
,
data
)
}
export
const
equityBindUser
=
(
data
)
=>
{
export
const
equityBindUser
=
(
data
)
=>
{
let
url
=
`/activities/list`
let
url
=
`/activities/list`
...
...
config/index.config.js
View file @
39a51a8d
...
@@ -2,7 +2,7 @@ const CONFIG = {
...
@@ -2,7 +2,7 @@ const CONFIG = {
// 开发环境配置
// 开发环境配置
development
:
{
development
:
{
// assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径
// assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径
//
assetsPath: 'http://coujiao.pseer.com:8888/wechat_static', // 静态资源路径
//
assetsPath: 'http://coujiao.pseer.com:8888/wechat_static', // 静态资源路径
assetsPath
:
'http://10.24.5.63:8211/static'
,
// 静态资源路径
assetsPath
:
'http://10.24.5.63:8211/static'
,
// 静态资源路径
// baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址
// baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址
baseUrl
:
'https://coujiao.pseer.com/front-api'
,
// 后台接口请求地址
baseUrl
:
'https://coujiao.pseer.com/front-api'
,
// 后台接口请求地址
...
...
pages/vipCreate/vipCreate.vue
View file @
39a51a8d
...
@@ -207,7 +207,7 @@
...
@@ -207,7 +207,7 @@
</view>
</view>
<view
class=
"prefer-box-list"
>
<view
class=
"prefer-box-list"
>
<view
v-for=
"(item,k) in preferList"
:key=
"k"
class=
"list-item"
>
<view
v-for=
"(item,k) in preferList"
:key=
"k"
class=
"list-item"
@
tap=
"onNavToRule3(item)"
>
<image
class=
"img"
:src=
"item.iconUrl"
mode=
"widthFix"
></image>
<image
class=
"img"
:src=
"item.iconUrl"
mode=
"widthFix"
></image>
<text
class=
"text-title"
>
{{
item
.
title
}}
</text>
<text
class=
"text-title"
>
{{
item
.
title
}}
</text>
<text
class=
"text-slogan"
>
{{
item
.
slogan
}}
</text>
<text
class=
"text-slogan"
>
{{
item
.
slogan
}}
</text>
...
@@ -441,52 +441,62 @@
...
@@ -441,52 +441,62 @@
preferList
:
[{
preferList
:
[{
iconUrl
:
config
.
assetsPath
+
"/vip/p_1.png"
,
iconUrl
:
config
.
assetsPath
+
"/vip/p_1.png"
,
title
:
"会员价"
,
title
:
"会员价"
,
slogan
:
"最低享98折"
slogan
:
"最低享98折"
,
value
:
0
},
},
{
{
iconUrl
:
config
.
assetsPath
+
"/vip/p_2.png"
,
iconUrl
:
config
.
assetsPath
+
"/vip/p_2.png"
,
title
:
"专属礼物"
,
title
:
"专属礼物"
,
slogan
:
"好礼享不停"
slogan
:
"好礼享不停"
,
value
:
1
},
},
{
{
iconUrl
:
config
.
assetsPath
+
"/vip/p_3.png"
,
iconUrl
:
config
.
assetsPath
+
"/vip/p_3.png"
,
title
:
"会员日"
,
title
:
"会员日"
,
slogan
:
"半价活动"
slogan
:
"半价活动"
,
value
:
2
},
},
{
{
iconUrl
:
config
.
assetsPath
+
"/vip/p_4.png"
,
iconUrl
:
config
.
assetsPath
+
"/vip/p_4.png"
,
title
:
"特定活动"
,
title
:
"特定活动"
,
slogan
:
"免报名费"
slogan
:
"免报名费"
,
value
:
3
},
},
{
{
iconUrl
:
config
.
assetsPath
+
"/vip/p_5.png"
,
iconUrl
:
config
.
assetsPath
+
"/vip/p_5.png"
,
title
:
"邀请有礼"
,
title
:
"邀请有礼"
,
slogan
:
"推荐返利"
slogan
:
"推荐返利"
,
value
:
4
},
},
{
{
iconUrl
:
config
.
assetsPath
+
"/vip/p_6.png"
,
iconUrl
:
config
.
assetsPath
+
"/vip/p_6.png"
,
title
:
"专属储物柜"
,
title
:
"专享礼物"
,
slogan
:
"一年使用期限"
slogan
:
"一年使用期限"
,
value
:
5
},
},
{
{
iconUrl
:
config
.
assetsPath
+
"/vip/p_7.png"
,
iconUrl
:
config
.
assetsPath
+
"/vip/p_7.png"
,
title
:
"专属客服"
,
title
:
"专属客服"
,
slogan
:
"一对一服务"
slogan
:
"一对一服务"
,
},
value
:
6
{
iconUrl
:
config
.
assetsPath
+
"/vip/p_8.png"
,
title
:
"联营开店"
,
slogan
:
"共享资源"
},
},
{
{
iconUrl
:
config
.
assetsPath
+
"/vip/p_9.png"
,
iconUrl
:
config
.
assetsPath
+
"/vip/p_9.png"
,
title
:
"商城"
,
title
:
"商城"
,
slogan
:
"会员折扣"
slogan
:
"会员折扣"
,
value
:
7
},
},
{
{
iconUrl
:
config
.
assetsPath
+
"/vip/p_10.png"
,
iconUrl
:
config
.
assetsPath
+
"/vip/p_10.png"
,
title
:
"次卡"
,
title
:
"次卡"
,
slogan
:
"特惠购"
slogan
:
"特惠购"
,
value
:
8
},
{
iconUrl
:
config
.
assetsPath
+
"/vip/p_8.png"
,
title
:
"联营开店"
,
slogan
:
"共享资源"
,
value
:
9
}
}
]
]
};
};
...
@@ -630,9 +640,10 @@
...
@@ -630,9 +640,10 @@
url
:
"/setting/rule/rule?keyData=user_pay_protocol"
url
:
"/setting/rule/rule?keyData=user_pay_protocol"
})
})
},
},
onNavToRule3
()
{
onNavToRule3
(
val
)
{
let
current
=
val
.
value
||
0
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/setting/equityDetail/equityDetail"
url
:
`/setting/equityDetail/equityDetail?current=
${
current
}
`
})
})
},
},
...
...
setting/equityDetail/equityDetail.vue
View file @
39a51a8d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
bgColor=
"transparent"
></f-navbar>
bgColor=
"transparent"
></f-navbar>
<view
class=
""
>
<view
class=
""
>
<swiper
class=
"swiper-box"
:indicator-dots=
"false"
:circular=
"true"
previous-margin=
"8px"
next-margin=
"30px"
:autoplay=
"false"
<swiper
class=
"swiper-box"
:indicator-dots=
"false"
:c
urrent=
"index"
:c
ircular=
"true"
previous-margin=
"8px"
next-margin=
"30px"
:autoplay=
"false"
:duration=
"1000"
@
change=
"onChange"
>
:duration=
"1000"
@
change=
"onChange"
>
<swiper-item>
<swiper-item>
<view
class=
"swiper-item"
>
<view
class=
"swiper-item"
>
...
@@ -640,10 +640,13 @@
...
@@ -640,10 +640,13 @@
userInfo
:
''
userInfo
:
''
}
}
},
},
onLoad
()
{
onLoad
(
option
)
{
if
(
uni
.
getStorageSync
(
'userInfo'
)){
if
(
uni
.
getStorageSync
(
'userInfo'
)){
this
.
userInfo
=
uni
.
getStorageSync
(
'userInfo'
);
this
.
userInfo
=
uni
.
getStorageSync
(
'userInfo'
);
}
}
if
(
option
&&
option
.
current
){
this
.
index
=
Number
(
option
.
current
)
}
},
},
onShareAppMessage
()
{
onShareAppMessage
()
{
return
{
return
{
...
...
setting/equityFundLog/index.vue
View file @
39a51a8d
...
@@ -41,11 +41,14 @@
...
@@ -41,11 +41,14 @@
</view>
</view>
</view>
</view>
<!--
<text
class=
"text-bold text-white"
>
{{
userInfo
&&
userInfo
.
consumerWallet
&&
userInfo
.
consumerWallet
.
equityFund
?
(
userInfo
.
consumerWallet
.
equityFund
).
toFixed
(
2
)
:
'0.00'
}}
</text>
-->
<!--
<text
class=
"text-bold text-white text-xl"
>
{{
userInfo
&&
userInfo
.
consumerWallet
&&
userInfo
.
consumerWallet
.
accumulateEquityFund
?
(
userInfo
.
consumerWallet
.
accumulateEquityFund
).
toFixed
(
2
)
:
'0.00'
}}
</text>
-->
<view
class=
"content-list"
>
<view
class=
"content-list"
>
<view
class=
"
padding-sm
"
>
<view
class=
"
flex-between padding-sm part-top
"
>
<text
class=
"text-title text-lg text-black"
>
权益金入账信息
</text>
<text
class=
"text-title text-lg text-black"
>
权益金入账信息
</text>
<view
class=
"flex-row-center"
>
<button
v-for=
"(item,k) in tabList"
:key=
"k"
class=
"cu-btn sm"
:class=
"tabIndex ===k?'bg-blue':'bg-white'"
@
tap=
"onTabChange(k)"
>
{{
item
.
name
}}
</button>
</view>
</view>
</view>
<view
class=
"list-content"
>
<view
class=
"list-content"
>
<view
v-for=
"(item,index) in list"
:key=
"index"
class=
"list-item"
@
tap=
"onNavToOrderInfo(item)"
>
<view
v-for=
"(item,index) in list"
:key=
"index"
class=
"list-item"
@
tap=
"onNavToOrderInfo(item)"
>
...
@@ -98,6 +101,7 @@
...
@@ -98,6 +101,7 @@
}
from
"@/api/index.js"
}
from
"@/api/index.js"
import
{
import
{
equityFundLog
,
equityFundLog
,
equityFundExcess
,
equityBindUser
equityBindUser
}
from
"@/api/recharge.js"
}
from
"@/api/recharge.js"
import
NoLogin
from
"@/components/noLogin/noLogin"
import
NoLogin
from
"@/components/noLogin/noLogin"
...
@@ -142,7 +146,16 @@
...
@@ -142,7 +146,16 @@
userInfo
:
uni
.
getStorageSync
(
'userInfo'
),
userInfo
:
uni
.
getStorageSync
(
'userInfo'
),
listBlankImage
:
config
.
assetsPath
+
'/no_data_icon.png'
,
listBlankImage
:
config
.
assetsPath
+
'/no_data_icon.png'
,
countNum
:
0
,
countNum
:
0
,
userName
:
''
userName
:
''
,
tabIndex
:
0
,
tabList
:[
{
name
:
"已入账"
},
{
name
:
"待入账"
}
]
};
};
},
},
onLoad
()
{
onLoad
()
{
...
@@ -197,17 +210,27 @@
...
@@ -197,17 +210,27 @@
if
(
uni
.
getStorageSync
(
'dicts'
))
{
if
(
uni
.
getStorageSync
(
'dicts'
))
{
dicts
=
JSON
.
parse
(
uni
.
getStorageSync
(
'dicts'
))
dicts
=
JSON
.
parse
(
uni
.
getStorageSync
(
'dicts'
))
this
.
equityFundTypeEnum
=
getDictItem
(
dicts
,
"equity_fund_type"
);
this
.
equityFundTypeEnum
=
getDictItem
(
dicts
,
"equity_fund_type"
);
this
.
queryParams
.
pageNum
=
1
this
.
onLoading
()
this
.
onLoading
()
}
else
{
}
else
{
dictList
().
then
(
res
=>
{
dictList
().
then
(
res
=>
{
dicts
=
res
.
data
.
data
;
dicts
=
res
.
data
.
data
;
uni
.
setStorageSync
(
'dicts'
,
JSON
.
stringify
(
res
.
data
.
data
))
uni
.
setStorageSync
(
'dicts'
,
JSON
.
stringify
(
res
.
data
.
data
))
this
.
equityFundTypeEnum
=
getDictItem
(
dicts
,
"equity_fund_type"
);
this
.
equityFundTypeEnum
=
getDictItem
(
dicts
,
"equity_fund_type"
);
this
.
queryParams
.
pageNum
=
1
this
.
onLoading
()
this
.
onLoading
()
})
})
}
}
},
},
onLoading
()
{
onLoading
()
{
if
(
this
.
tabIndex
===
1
){
this
.
onEquityFundExcess
()
}
else
{
this
.
onEquityFundLog
()
}
},
onEquityFundLog
(){
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中'
title
:
'加载中'
})
})
...
@@ -215,7 +238,7 @@
...
@@ -215,7 +238,7 @@
equityFundLog
(
this
.
queryParams
).
then
(
res
=>
{
equityFundLog
(
this
.
queryParams
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
uni
.
hideLoading
()
uni
.
hideLoading
()
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
let
list
=
res
.
data
.
rows
.
map
(
item
=>
{
let
list
=
res
.
data
.
rows
.
map
(
item
=>
{
return
{
return
{
...
@@ -223,19 +246,53 @@
...
@@ -223,19 +246,53 @@
phone4Last
:
item
.
newPhone
.
slice
(
-
4
)
phone4Last
:
item
.
newPhone
.
slice
(
-
4
)
}
}
})
})
if
(
this
.
queryParams
.
pageNum
===
1
)
{
if
(
this
.
queryParams
.
pageNum
===
1
)
{
this
.
list
=
list
this
.
list
=
list
}
else
{
}
else
{
this
.
list
.
push
(...
list
);
this
.
list
.
push
(...
list
);
}
}
if
(
this
.
list
.
length
<
res
.
data
.
total
)
{
if
(
this
.
list
.
length
<
res
.
data
.
total
)
{
this
.
status
=
"loadmore"
this
.
status
=
"loadmore"
}
else
{
}
else
{
this
.
status
=
"nomore"
this
.
status
=
"nomore"
}
}
}
else
if
(
res
.
data
.
code
==
401
)
{
this
.
loginStatus
=
false
}
})
},
onEquityFundExcess
(){
uni
.
showLoading
({
title
:
'加载中'
})
this
.
status
=
'loading'
equityFundExcess
(
this
.
queryParams
).
then
(
res
=>
{
console
.
log
(
res
)
uni
.
hideLoading
()
if
(
res
.
data
.
code
==
200
)
{
let
list
=
res
.
data
.
rows
.
map
(
item
=>
{
return
{
...
item
,
phone4Last
:
item
.
newPhone
.
slice
(
-
4
)
}
})
if
(
this
.
queryParams
.
pageNum
===
1
)
{
this
.
list
=
list
}
else
{
this
.
list
.
push
(...
list
);
}
if
(
this
.
list
.
length
<
res
.
data
.
total
)
{
this
.
status
=
"loadmore"
}
else
{
this
.
status
=
"nomore"
}
}
else
if
(
res
.
data
.
code
==
401
)
{
}
else
if
(
res
.
data
.
code
==
401
)
{
this
.
loginStatus
=
false
this
.
loginStatus
=
false
}
}
...
@@ -263,6 +320,12 @@
...
@@ -263,6 +320,12 @@
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/setting/equityFundLog/list"
url
:
"/setting/equityFundLog/list"
})
})
},
onTabChange
(
e
){
if
(
this
.
tabIndex
===
e
)
return
;
this
.
tabIndex
=
e
this
.
queryParams
.
pageNum
=
1
;
this
.
onLoading
();
}
}
}
}
}
}
...
@@ -498,7 +561,9 @@
...
@@ -498,7 +561,9 @@
width
:
100%
;
width
:
100%
;
flex-direction
:
column
;
flex-direction
:
column
;
margin
:
12
upx
0
0
0
;
margin
:
12
upx
0
0
0
;
.part-top{
align-items
:
center
;
}
.list-content
{
.list-content
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment