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
65d5015b
Commit
65d5015b
authored
Jul 31, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
3e8e1193
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
11 deletions
+34
-11
index.config.js
config/index.config.js
+6
-6
vipCreate.vue
pages/vipCreate/vipCreate.vue
+20
-4
index.vue
setting/recharge/index.vue
+8
-1
No files found.
config/index.config.js
View file @
65d5015b
...
...
@@ -2,13 +2,13 @@ const CONFIG = {
// 开发环境配置
development
:
{
// assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径
// assetsPath: 'https://coujiao.pseer.com
/wechat_static', // 静态资源路径
assetsPath
:
'http://10.24.5.63:8211/static'
,
// 静态资源路径
assetsPath
:
'http://coujiao.pseer.com:8888
/wechat_static'
,
// 静态资源路径
//
assetsPath: 'http://10.24.5.63:8211/static', // 静态资源路径
// baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址
// baseUrl: 'https://coujiao.pseer.com/front-api', // 后台接口请求地址
baseUrl
:
'http
://129.211.46.84:8883
/front-api'
,
baseUrl
:
'http
s://coujiao.pseer.com
/front-api'
,
hostUrl
:
'http://129.211.46.84:8888/prod-api'
,
// H5地址(前端运行地址)
// hostUrl: 'https://coujiao.pseer.com/prod-api', // H5地址(前端运行地址)
// hostUrl: 'https://coujiao.pseer.com
:8888
/prod-api', // H5地址(前端运行地址)
websocketUrl
:
''
,
// websocket服务端地址
weixinAppId
:
''
,
// 微信公众号appid
codeHeadUrl
:
""
,
...
...
@@ -16,9 +16,9 @@ const CONFIG = {
},
// 生产环境配置
production
:
{
assetsPath
:
'http://
129.211.46.84
:8888/wechat_static'
,
// 静态资源路径
assetsPath
:
'http://
coujiao.pseer.com
:8888/wechat_static'
,
// 静态资源路径
// assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径
baseUrl
:
'http
://129.211.46.84:8883
/front-api'
,
// 后台接口请求地址
baseUrl
:
'http
s://coujiao.pseer.com
/front-api'
,
// 后台接口请求地址
// baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址
hostUrl
:
'http://129.211.46.84:8888/prod-api'
,
// H5地址(前端运行地址)
// hostUrl: 'https://www.coujio.com/prod-api', // H5地址(前端运行地址)
...
...
pages/vipCreate/vipCreate.vue
View file @
65d5015b
...
...
@@ -92,7 +92,7 @@
<text
class=
"text-3"
>
{{
equityAmountList
.
length
?
equityAmountList
[
1
]:
'00'
}}
</text>
</view>
<view
class=
"cu-btn-box"
@
tap=
"onSubmit"
>
<button
class=
"cu-btn bg-pink"
>
立即开通
</button>
<button
class=
"cu-btn bg-pink"
>
{{
consumerMemberStatus
?
'权益续期'
:
'立即开通'
}}
</button>
</view>
</view>
</view>
...
...
@@ -211,6 +211,10 @@
<text
class=
"text-13"
>
时长,下单可抵扣
</text>
</view>
<view
class=
"flex-row-center"
v-if=
"rechargeConfList[rechargeIndex].giveType.includes('3')"
>
<text
class=
"text-12"
>
{{
rechargeConfList
[
rechargeIndex
].
giveRatio
}}
%
</text>
<text
class=
"text-13"
>
充值金额积分比例赠送
</text>
</view>
<view
class=
"flex-row-center"
v-if=
"rechargeConfList[rechargeIndex].giveType.includes('4')"
>
<text
class=
"text-14"
>
优惠券
</text>
<text
class=
"text-13"
>
1张,下单可抵扣
</text>
</view>
...
...
@@ -496,6 +500,7 @@
uni
.
showLoading
({
title
:
"提交中..."
})
let
that
=
this
;
createRecharge
({
payType
:
1
,
rechargeConfId
:
this
.
rechargeConfList
[
this
.
rechargeIndex
].
id
...
...
@@ -514,7 +519,12 @@
icon
:
"success"
,
title
:
"下单成功"
,
success
:
()
=>
{
that
.
$refs
.
popupPay
.
close
();
setTimeout
(()
=>
{
uni
.
switchTab
({
url
:
"/pages/my/myInfo"
})
},
1000
)
}
})
},
...
...
@@ -525,6 +535,7 @@
})
},
"complete"
:
(
resp
)
=>
{
that
.
$refs
.
popupPay
.
close
();
// 接口调用结束的回调函数(调用成功、失败都会执行)
}
});
...
...
@@ -555,8 +566,11 @@
icon
:
"success"
,
title
:
"下单成功"
,
success
:
()
=>
{
that
.
$refs
.
popupPay
.
close
();
setTimeout
(()
=>
{
that
.
onGetUserInfo
();
uni
.
switchTab
({
url
:
"/pages/my/myInfo"
})
},
1000
)
}
})
...
...
@@ -568,6 +582,7 @@
})
},
"complete"
:
(
resp
)
=>
{
that
.
$refs
.
popupPay
.
close
();
// 接口调用结束的回调函数(调用成功、失败都会执行)
}
});
...
...
@@ -1147,7 +1162,8 @@
.popup-box
{
display
:
flex
;
flex-direction
:
column
;
background
:
linear-gradient
(
-45deg
,
rgba
(
255
,
170
,
0
,
0.98
),
rgba
(
255
,
255
,
255
,
0.98
));
//
background
:
linear-gradient
(
-45deg
,
rgba
(
255
,
170
,
0
,
0.98
),
rgba
(
255
,
255
,
255
,
0.98
));
background
:
linear-gradient
(
-45deg
,
#ffffff
,
#f1f1f1
);
border-radius
:
12
upx
;
width
:
80%
;
margin
:
0
auto
;
...
...
setting/recharge/index.vue
View file @
65d5015b
...
...
@@ -15,9 +15,15 @@
</view>
<view
v-if=
"item.giveType.includes(2)"
class=
"flex-row"
>
<text>
赠送时长
</text>
<text
class=
"text-pink text-bold text-lg"
>
{{
item
.
duration
}}
小时
</text>
<text
class=
"text-pink text-bold text-lg"
>
{{
item
.
giveDuration
||
0
}}
</text>
<text>
小时
</text>
</view>
<view
v-if=
"item.giveType.includes(3)"
class=
"flex-row"
>
<text>
赠送
</text>
<text
class=
"text-pink text-bold text-lg"
>
{{
item
.
giveIntegral
||
0
}}
</text>
<text>
积分
</text>
</view>
<view
v-if=
"item.giveType.includes(4)"
class=
"flex-row"
>
<text>
赠送优惠券
</text>
<text
class=
"text-pink text-bold text-lg"
>
{{
item
.
consumerCouponIds
||
''
}}
1张
</text>
</view>
...
...
@@ -208,6 +214,7 @@ import NoLogin from "@/components/noLogin/noLogin"
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
flex-end
;
}
}
}
...
...
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