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
f11c0c9f
Commit
f11c0c9f
authored
Sep 14, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
f89eb868
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
69 deletions
+57
-69
index.config.js
config/index.config.js
+12
-12
myInfo.vue
pages/my/myInfo.vue
+6
-6
vipCreate.vue
pages/vipCreate/vipCreate.vue
+7
-9
index.vue
setting/equityFundLog/index.vue
+32
-42
No files found.
config/index.config.js
View file @
f11c0c9f
const
CONFIG
=
{
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'
,
// 后台接口请求地址
//
hostUrl: 'http://coujiao.pseer.com:8888/prod-api', // H5地址(前端运行地址)
hostUrl
:
'http://coujiao.pseer.com:8888/prod-api'
,
// H5地址(前端运行地址)
hostUrl
:
'https://www.coujio.com/prod-api'
,
// H5地址(前端运行地址)
//
hostUrl: 'https://www.coujio.com/prod-api', // H5地址(前端运行地址)
websocketUrl
:
''
,
// websocket服务端地址
websocketUrl
:
''
,
// websocket服务端地址
weixinAppId
:
''
,
// 微信公众号appid
weixinAppId
:
''
,
// 微信公众号appid
codeHeadUrl
:
""
,
codeHeadUrl
:
""
,
...
@@ -15,12 +15,12 @@ const CONFIG = {
...
@@ -15,12 +15,12 @@ const CONFIG = {
},
},
// 生产环境配置
// 生产环境配置
production
:
{
production
:
{
//
assetsPath: 'http://coujiao.pseer.com:8888/wechat_static', // 静态资源路径
assetsPath
:
'http://coujiao.pseer.com:8888/wechat_static'
,
// 静态资源路径
assetsPath
:
'https://www.coujio.com/wechat_static'
,
// 静态资源路径
//
assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径
//
baseUrl: 'https://coujiao.pseer.com/front-api', // 后台接口请求地址
baseUrl
:
'https://coujiao.pseer.com/front-api'
,
// 后台接口请求地址
baseUrl
:
'https://www.coujio.com/front-api'
,
// 后台接口请求地址
//
baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址
//
hostUrl: 'https://coujiao.pseer.com/prod-api', // H5地址(前端运行地址)
hostUrl
:
'https://coujiao.pseer.com/prod-api'
,
// H5地址(前端运行地址)
hostUrl
:
'https://www.coujio.com/prod-api'
,
// H5地址(前端运行地址)
//
hostUrl: 'https://www.coujio.com/prod-api', // H5地址(前端运行地址)
websocketUrl
:
''
,
// websocket服务端地址
websocketUrl
:
''
,
// websocket服务端地址
weixinAppId
:
''
,
// 微信公众号appid
weixinAppId
:
''
,
// 微信公众号appid
codeHeadUrl
:
""
,
codeHeadUrl
:
""
,
...
...
pages/my/myInfo.vue
View file @
f11c0c9f
...
@@ -47,9 +47,9 @@
...
@@ -47,9 +47,9 @@
<text
class=
"text-gray"
>
修改资料
</text>
<text
class=
"text-gray"
>
修改资料
</text>
</view>
</view>
<!--
<view
v-if=
"loginStatus"
class=
"nav-right nav-right-2"
@
tap
.
stop=
"onNavToShare"
>
<view
v-if=
"loginStatus"
class=
"nav-right nav-right-2"
@
tap
.
stop=
"onNavToShare"
>
<text
class=
"text-gray"
>
邀请有礼
</text>
<text
class=
"text-gray"
>
邀请有礼
</text>
</view>
-->
</view>
</view>
</view>
<view
class=
"remeber-info-box"
>
<view
class=
"remeber-info-box"
>
...
@@ -236,14 +236,14 @@
...
@@ -236,14 +236,14 @@
</view>
</view>
</view>
</view>
<!--
<view
v-if=
"userInfo.consumerMember && userInfo.consumerMember.isRights"
class=
"item-box"
@
tap=
"onNavByPath('equityFundLog')"
>
<view
v-if=
"userInfo.consumerMember && userInfo.consumerMember.isRights"
class=
"item-box"
@
tap=
"onNavByPath('equityFundLog')"
>
<view
class=
"icon-img"
>
<view
class=
"icon-img"
>
<image
:src=
"assetsPath+'/user/tool_4.png'"
mode=
"scaleToFill"
></image>
<image
:src=
"assetsPath+'/user/tool_4.png'"
mode=
"scaleToFill"
></image>
</view>
</view>
<view
class=
"text-box"
>
<view
class=
"text-box"
>
<text
class=
"text-gray"
>
收益明细
</text>
<text
class=
"text-gray"
>
收益明细
</text>
</view>
</view>
</view>
-->
</view>
<view
class=
"item-box"
@
tap=
"onNavByPath('payRecord')"
>
<view
class=
"item-box"
@
tap=
"onNavByPath('payRecord')"
>
...
@@ -294,14 +294,14 @@
...
@@ -294,14 +294,14 @@
<text
class=
"text-gray"
>
联系我们
</text>
<text
class=
"text-gray"
>
联系我们
</text>
</view>
</view>
</view>
</view>
<!--
<view
v-if=
"loginStatus"
class=
"item-box"
@
tap=
"onShareByQrcode"
>
<view
v-if=
"loginStatus"
class=
"item-box"
@
tap=
"onShareByQrcode"
>
<view
class=
"icon-img"
>
<view
class=
"icon-img"
>
<image
:src=
"assetsPath+'/user/tool_7.png'"
mode=
"scaleToFill"
></image>
<image
:src=
"assetsPath+'/user/tool_7.png'"
mode=
"scaleToFill"
></image>
</view>
</view>
<view
class=
"text-box"
>
<view
class=
"text-box"
>
<text
class=
"text-gray"
>
二维码分享
</text>
<text
class=
"text-gray"
>
二维码分享
</text>
</view>
</view>
</view>
-->
</view>
</view>
</view>
</view>
</view>
...
...
pages/vipCreate/vipCreate.vue
View file @
f11c0c9f
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<view
class=
"part part-right"
@
tap=
"onTabChange(2)"
>
<view
class=
"part part-right"
@
tap=
"onTabChange(2)"
>
<image
v-if=
"tabIndex ==2"
:src=
"assetsPath+'/vip/btn_1_a.png'"
class=
"active"
<image
v-if=
"tabIndex ==2"
:src=
"assetsPath+'/vip/btn_1_a.png'"
class=
"active"
mode=
"widthFix"
></image>
mode=
"widthFix"
></image>
<image
v-else
:src=
"assetsPath+'/vip/btn_1
_v1
.png'"
class=
"unactive"
mode=
"widthFix"
>
<image
v-else
:src=
"assetsPath+'/vip/btn_1.png'"
class=
"unactive"
mode=
"widthFix"
>
</image>
</image>
</view>
</view>
</view>
</view>
...
@@ -250,7 +250,6 @@
...
@@ -250,7 +250,6 @@
<button
class=
"cu-btn bg-pink"
open-type=
"getPhoneNumber"
@
getphonenumber=
"onGetPhoneNumber"
>
授
<button
class=
"cu-btn bg-pink"
open-type=
"getPhoneNumber"
@
getphonenumber=
"onGetPhoneNumber"
>
授
权
</button>
权
</button>
</view>
</view>
</view>
</view>
</view>
</view>
</uni-popup>
</uni-popup>
...
@@ -520,12 +519,12 @@
...
@@ -520,12 +519,12 @@
this
.
onGetRechargeConf
();
this
.
onGetRechargeConf
();
this
.
onLoading
();
this
.
onLoading
();
},
},
//
onShareAppMessage() {
onShareAppMessage
()
{
//
return {
return
{
//
title: "邀新注册并购买得返利",
title
:
"邀新注册并购买得返利"
,
//
path: `/pages/vipCreate/vipCreate?uid=${this.userInfo.id}`
path
:
`/pages/vipCreate/vipCreate?uid=
${
this
.
userInfo
.
id
}
`
//
}
}
//
},
},
methods
:
{
methods
:
{
onConfirmPay
()
{
onConfirmPay
()
{
if
(
this
.
tabIndex
==
1
)
{
if
(
this
.
tabIndex
==
1
)
{
...
@@ -616,7 +615,6 @@
...
@@ -616,7 +615,6 @@
})
})
},
},
onTabChange
(
val
)
{
onTabChange
(
val
)
{
return
if
(
this
.
tabIndex
==
val
)
return
;
if
(
this
.
tabIndex
==
val
)
return
;
this
.
tabIndex
=
val
;
this
.
tabIndex
=
val
;
this
.
checked
=
false
;
this
.
checked
=
false
;
...
...
setting/equityFundLog/index.vue
View file @
f11c0c9f
...
@@ -3,34 +3,29 @@
...
@@ -3,34 +3,29 @@
<view
class=
"content-box"
>
<view
class=
"content-box"
>
<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)"
>
<view
class=
"flex-between"
>
<view
class=
"flex-between"
>
<text
class=
""
>
支付
金额
</text>
<text
class=
""
>
获益
金额
</text>
<text
class=
"text-
bold text-pink text-lg"
>
¥
{{
item
.
payPrice
}}
</text>
<text
class=
"text-
pink text-bold text-lg"
>
¥
{{
item
.
equityFund
}}
</text>
</view>
</view>
<view
class=
"flex-between"
>
<view
class=
"flex-between"
>
<text
class=
""
>
购买期限
</text>
<text
class=
""
>
获益方式
</text>
<text
class=
"text-black text-bold text-lg"
>
一年
</text>
<text
class=
"text-black"
>
{{
equityFundTypeEnum
[
item
.
equityFundType
]
}}
</text>
</view>
<view
class=
"flex-between"
>
<text
class=
""
>
支付方式
</text>
<text>
{{
payTypeEnum
[
item
.
payType
]
}}
</text>
</view>
<view
class=
"flex-between"
>
<text
class=
""
>
订单编号
</text>
<text
class=
"text-black"
>
{{
item
.
equityOrderNo
}}
</text>
</view>
</view>
<view
class=
"flex-between"
>
<view
class=
"flex-between"
>
<text
class=
""
>
操作日期
</text>
<text
class=
""
>
创建时间
</text>
<text>
{{
item
.
pay
Time
}}
</text>
<text>
{{
item
.
create
Time
}}
</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-if=
"l
oginStatus && l
ist.length == 0"
class=
"empty-box"
>
<view
v-if=
"list.length == 0"
class=
"empty-box"
>
<u-empty
text=
"暂无数据"
textColor=
'#C1C1C1'
width=
"120"
:icon=
"listBlankImage"
>
<u-empty
text=
"暂无数据"
textColor=
'#C1C1C1'
width=
"120"
:icon=
"listBlankImage"
>
</u-empty>
</u-empty>
</view>
</view>
<view
v-if=
"l
oginStatus && l
ist.length"
style=
"padding: 12px 6% 0;"
>
<view
v-if=
"list.length"
style=
"padding: 12px 6% 0;"
>
<u-loadmore
:status=
"status"
:icon=
"true"
:line=
'true'
:loading-text=
"loadingText"
<u-loadmore
:status=
"status"
:icon=
"true"
:line=
'true'
:loading-text=
"loadingText"
:loadmore-text=
"loadmoreText"
:nomore-text=
"nomoreText"
/>
:loadmore-text=
"loadmoreText"
:nomore-text=
"nomoreText"
/>
</view>
</view>
...
@@ -59,31 +54,14 @@
...
@@ -59,31 +54,14 @@
nomoreText
:
'到底啦'
,
nomoreText
:
'到底啦'
,
statusIndex
:
0
,
statusIndex
:
0
,
list
:
[],
list
:
[],
statusList
:
[{
label
:
"全部"
,
value
:
""
,
},
{
label
:
"已预约"
,
value
:
"0"
,
},
{
label
:
"使用中"
,
value
:
"1"
,
},
{
label
:
"已完成"
,
value
:
"2"
,
},
{
label
:
"退单"
,
value
:
"3"
,
}
],
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
100
,
pageSize
:
10
id
:
uni
.
getStorageSync
(
"userInfo"
).
id
},
equityFundTypeEnum
:{
0
:
"金额充值"
,
1
:
"权益购买"
},
},
orderStatusEnum
:
{},
orderStatusEnum
:
{},
payTypeEnum
:
{
payTypeEnum
:
{
...
@@ -131,17 +109,29 @@
...
@@ -131,17 +109,29 @@
title
:
'加载中'
title
:
'加载中'
})
})
this
.
status
=
'loading'
this
.
status
=
'loading'
// this.queryParams.status = this.statusList[this.statusIndex].value;
equityFundLog
(
this
.
queryParams
).
then
(
res
=>
{
equityFundLog
(
this
.
queryParams
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
uni
.
hideLoading
()
uni
.
hideLoading
()
this
.
status
=
"nomore"
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
this
.
list
=
res
.
data
.
data
.
map
(
item
=>
{
let
list
=
res
.
data
.
rows
.
map
(
item
=>
{
return
{
return
{
...
item
...
item
}
}
})
})
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
}
}
...
...
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