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
11667d02
Commit
11667d02
authored
Jul 22, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
内容完善
parent
b0408b22
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
189 additions
and
2 deletions
+189
-2
toolBox.vue
components/toolBox/toolBox.vue
+16
-1
index.config.js
config/index.config.js
+1
-1
pages.json
pages.json
+7
-0
myInfo.vue
pages/my/myInfo.vue
+0
-0
vipCreate.vue
pages/vipCreate/vipCreate.vue
+0
-0
rule.vue
setting/rule/rule.vue
+165
-0
No files found.
components/toolBox/toolBox.vue
View file @
11667d02
<
template
>
<
template
>
<view
class=
"tool-box"
>
<view
class=
"tool-box"
>
<view
class=
"gitf"
@
tap=
"onNavToVip"
>
<image
:src=
"assetsPath+'/gitf.png'"
mode=
"widthFix"
></image>
</view>
<view
v-for=
"(item, index) in toolList"
:key=
"index"
class=
"tool-item"
:class=
"
{active:!show}"
<view
v-for=
"(item, index) in toolList"
:key=
"index"
class=
"tool-item"
:class=
"
{active:!show}"
:style="{transitionDuration: dNum+'s' }" @tap.stop="onHandle(item)">
:style="{transitionDuration: dNum+'s' }" @tap.stop="onHandle(item)">
...
@@ -31,6 +34,7 @@
...
@@ -31,6 +34,7 @@
return
{
return
{
show
:
true
,
show
:
true
,
dNum
:
0.4
,
dNum
:
0.4
,
assetsPath
:
config
.
assetsPath
,
toolList
:
[{
toolList
:
[{
name
:
"验券"
,
name
:
"验券"
,
url
:
config
.
assetsPath
+
'/tool_3_v1.png'
,
url
:
config
.
assetsPath
+
'/tool_3_v1.png'
,
...
@@ -87,6 +91,11 @@
...
@@ -87,6 +91,11 @@
},
},
methods
:
{
methods
:
{
onNavToVip
(){
uni
.
switchTab
({
url
:
"/pages/vipCreate/vipCreate"
})
},
onGetSysConfig
()
{
onGetSysConfig
()
{
let
sysConfigList
=
uni
.
getStorageSync
(
'sysConfig'
)
let
sysConfigList
=
uni
.
getStorageSync
(
'sysConfig'
)
let
s
=
sysConfigList
.
find
(
item
=>
item
.
configKey
===
'wechat.service.url'
)
let
s
=
sysConfigList
.
find
(
item
=>
item
.
configKey
===
'wechat.service.url'
)
...
@@ -176,8 +185,14 @@
...
@@ -176,8 +185,14 @@
position
:
fixed
;
position
:
fixed
;
bottom
:
10vh
;
bottom
:
10vh
;
right
:
0
;
right
:
0
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
flex-end
;
z-index
:
99
;
z-index
:
99
;
.gitf{
width
:
144
upx
;
max-height
:
150
upx
;
}
.tool-item
{
.tool-item
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
...
...
config/index.config.js
View file @
11667d02
...
@@ -3,7 +3,7 @@ const CONFIG = {
...
@@ -3,7 +3,7 @@ const CONFIG = {
development
:
{
development
:
{
// assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径
// assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径
// assetsPath: 'https://coujiao.pseer.com/wechat_static', // 静态资源路径
// assetsPath: 'https://coujiao.pseer.com/wechat_static', // 静态资源路径
assetsPath
:
'http://10.24.5.
167
: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', // 后台接口请求地址
baseUrl
:
'http://129.211.46.84:8883/front-api'
,
baseUrl
:
'http://129.211.46.84:8883/front-api'
,
...
...
pages.json
View file @
11667d02
...
@@ -183,6 +183,13 @@
...
@@ -183,6 +183,13 @@
"navigationBarTitleText"
:
"充值记录"
,
"navigationBarTitleText"
:
"充值记录"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
{
"path"
:
"rule/rule"
,
"style"
:
{
"navigationBarTitleText"
:
"活动规则"
,
"enablePullDownRefresh"
:
false
}
}
}
]
]
}
}
...
...
pages/my/myInfo.vue
View file @
11667d02
This diff is collapsed.
Click to expand it.
pages/vipCreate/vipCreate.vue
View file @
11667d02
This diff is collapsed.
Click to expand it.
setting/rule/rule.vue
0 → 100644
View file @
11667d02
<
template
>
<view
class=
"article"
>
<view
class=
"bg-box-1"
>
<view
class=
"bg-box-2"
>
<view
class=
"flex-row-center title-content"
>
<view
class=
"xx"
>
<image
:src=
"assetsPath+'/xx.png'"
mode=
"widthFix"
></image>
</view>
<view
class=
"title-text"
>
<view
class=
"text"
>
<text>
{{
article
.
protocolTitle
||
'规则'
}}
</text>
</view>
<view
class=
"line"
>
</view>
</view>
<view
class=
"xx"
>
<image
:src=
"assetsPath+'/xx.png'"
mode=
"widthFix"
></image>
</view>
</view>
<scroll-view
class=
"scroll-view"
scroll-y=
"true"
>
<view
class=
"scroll-view-content"
>
<view
class=
""
v-html=
"article.content"
>
</view>
</view>
</scroll-view>
</view>
</view>
</view>
</
template
>
<
script
>
import
config
from
"@/config/index.config"
;
import
{
getProtocol
}
from
"@/api/index.js"
;
export
default
{
data
()
{
return
{
assetsPath
:
config
.
assetsPath
,
article
:
{
protocolTitle
:
''
,
content
:
''
,
},
keyData
:
""
};
},
onLoad
(
option
)
{
if
(
option
&&
option
.
keyData
)
{
this
.
keyData
=
option
.
keyData
}
this
.
onLoading
()
},
methods
:
{
onLoading
()
{
getProtocol
(
this
.
keyData
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
code
)
{
uni
.
setNavigationBarTitle
({
title
:
res
.
data
.
data
.
protocolTitle
})
this
.
article
=
res
.
data
.
data
}
})
}
}
}
</
script
>
<
style
>
page
{
width
:
100%
;
height
:
100%
;
background-color
:
rgb
(
255
,
234
,
191
);
}
</
style
>
<
style
lang=
"scss"
>
.article
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
width
:
100vw
;
height
:
100%
;
}
.bg-box-1
{
display
:
flex
;
flex
:
1
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
width
:
690
upx
;
background
:
#FFCA7E
;
border-radius
:
32
upx
;
padding
:
6px
0
;
margin
:
30
upx
0
40
upx
;
.bg-box-2
{
display
:
flex
;
height
:
98%
;
width
:
650
upx
;
flex-direction
:
column
;
align-items
:
center
;
background
:
linear-gradient
(
-42deg
,
#FFF5CB
,
#FFFFFF
);
border-radius
:
32
upx
;
.title-content
{
margin
:
24
upx
0
;
.title-text
{
display
:
flex
;
justify-content
:
center
;
position
:
relative
;
margin
:
0
20
upx
;
.text
{
position
:
relative
;
font-weight
:
normal
;
font-size
:
48
rpx
;
color
:
#000000
;
background
:
linear-gradient
(
-90deg
,
#FF7800
0%
,
#FF0000
100%
);
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
z-index
:
2
;
}
.line
{
position
:
absolute
;
bottom
:
0
;
width
:
110%
;
height
:
15
upx
;
background
:
#FFEABF
;
border-radius
:
8
upx
;
}
}
.xx
{
width
:
30
upx
;
image
{
width
:
100%
;
max-height
:
34
upx
;
}
}
}
.scroll-view
{
display
:
flex
;
flex
:
1
;
position
:
relative
;
width
:
100%
;
overflow
:
hidden
;
.scroll-view-content
{
position
:
absolute
;
left
:
0
;
width
:
100%
;
padding
:
24
upx
;
}
}
}
}
</
style
>
\ No newline at end of file
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