Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
李智书
xzf_uniapp-wechat-web
Commits
7dfce1ec
Commit
7dfce1ec
authored
Jan 21, 2022
by
李智书
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop'
parents
354585e3
43cb83ba
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
692 additions
and
3 deletions
+692
-3
package.json
package.json
+2
-1
src/pages.json
src/pages.json
+31
-1
src/pages/ConsumptionReport/ConsumptionReport.vue
src/pages/ConsumptionReport/ConsumptionReport.vue
+1
-1
src/pages/OpenAccountAgreementBOC/OpenAccountAgreementBOC.vue
...pages/OpenAccountAgreementBOC/OpenAccountAgreementBOC.vue
+433
-0
src/pages/UserAgreement/UserAgreement.vue
src/pages/UserAgreement/UserAgreement.vue
+135
-0
src/pages/pdfPreview/pdfPreview.vue
src/pages/pdfPreview/pdfPreview.vue
+85
-0
yarn.lock
yarn.lock
+5
-0
No files found.
package.json
View file @
7dfce1ec
...
...
@@ -64,9 +64,10 @@
"
flyio
"
:
"
^0.6.2
"
,
"
jweixin-module
"
:
"
^1.6.0
"
,
"
less-loader
"
:
"
5.0.0
"
,
"
node-sass
"
:
"
^4.14.1
"
,
"
pdfh5
"
:
"
^1.4.2
"
,
"
regenerator-runtime
"
:
"
^0.12.1
"
,
"
sass-loader
"
:
"
8.0.2
"
,
"
node-sass
"
:
"
^4.14.1
"
,
"
vant
"
:
"
^2.12.30
"
,
"
vconsole
"
:
"
^3.7.0
"
,
"
vue
"
:
"
^2.6.11
"
,
...
...
src/pages.json
View file @
7dfce1ec
...
...
@@ -292,6 +292,36 @@
"enablePullDownRefresh"
:
false
}
}
,{
"path"
:
"pages/pdfPreview/pdfPreview"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
}
,{
"path"
:
"pages/OpenAccountAgreementBOC/OpenAccountAgreementBOC"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"渤海银行线上个人银行Ⅱ、Ⅲ类账户服务协议"
,
"enablePullDownRefresh"
:
false
}
}
,{
"path"
:
"pages/UserAgreement/UserAgreement"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"消费用户协议"
,
"enablePullDownRefresh"
:
false
}
}
],
"globalStyle"
:
{
...
...
src/pages/ConsumptionReport/ConsumptionReport.vue
View file @
7dfce1ec
...
...
@@ -141,7 +141,7 @@
</view>
<view
class=
"average-daily-consumption-chart"
>
<view
class=
"average-daily-consumption-chart-item-box"
>
<view
v-for=
"(item,index) in dailyConsumptionData"
<view
v-for=
"(item,index) in dailyConsumptionData"
:key=
"index"
class=
"average-daily-consumption-chart-item"
>
<view
class=
"average-daily-consumption-chart-item-data"
@
click=
"click"
>
{{
item
.
value
}}
...
...
src/pages/OpenAccountAgreementBOC/OpenAccountAgreementBOC.vue
0 → 100644
View file @
7dfce1ec
This diff is collapsed.
Click to expand it.
src/pages/UserAgreement/UserAgreement.vue
0 → 100644
View file @
7dfce1ec
<
template
>
<view
class=
"UserAgreement"
>
<view
class=
"AgreementIcon"
>
<image
:src=
"ImgUrl+'xzf/AgreementIcon.png'"
mode=
"aspectFit"
></image>
</view>
<view
class=
"AgreementList"
>
<view
class=
"AgreementItem"
@
click=
"ToAgreement(1)"
style=
"border-bottom: none;"
>
<view
class=
"left"
>
<image
:src=
"ImgUrl+'xzf/AgreementIcon1.png'"
mode=
"aspectFit"
></image>
<view
class=
""
>
《服务协议》
</view>
</view>
<view
class=
"right"
>
>
</view>
</view>
<view
class=
"AgreementItem"
@
click=
"ToAgreement(2)"
style=
"border-bottom: none;"
>
<view
class=
"left"
>
<image
:src=
"ImgUrl+'xzf/AgreementIcon2.png'"
mode=
"aspectFit"
></image>
<view
class=
""
>
《隐私权政策》
</view>
</view>
<view
class=
"right"
>
>
</view>
</view>
<view
class=
"AgreementItem"
@
click=
"ToAgreement(3)"
>
<view
class=
"left"
>
<image
:src=
"ImgUrl+'xzf/AgreementIcon3.png'"
mode=
"aspectFit"
></image>
<view
class=
""
>
《未成年人个人信息保护规则》
</view>
</view>
<view
class=
"right"
>
>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
name
:
"
UserAgreement
"
,
data
()
{
return
{
externalInfo
:
{
seesionID
:
''
,
userID
:
''
,
AppID
:
''
},
ImgUrl
:
this
.
$ImgUrl
}
},
onLoad
:
function
(
options
)
{
console
.
warn
(
options
);
this
.
externalInfo
=
options
},
methods
:
{
// 跳转协议
async
ToAgreement
(
type
)
{
try
{
uni
.
navigateTo
({
url
:
"
../pdfPreview/pdfPreview?pdfName=
"
+
this
.
externalInfo
.
AppID
+
'
_
'
+
type
})
}
catch
(
e
)
{
//TODO handle the exception
}
}
}
}
</
script
>
<
style
lang=
"scss"
>
.AgreementIcon
{
text-align
:
center
;
image
{
width
:
265rpx
;
height
:
147rpx
;
position
:
relative
;
}
}
.UserAgreement
{
padding-top
:
111rpx
;
// margin-left: 150rpx;
.AgreementList
{
width
:
638rpx
;
height
:
144rpx
;
margin
:
0
auto
;
margin-top
:
88rpx
;
}
.AgreementItem
{
height
:
144rpx
;
width
:
100%
;
border-top
:
1rpx
solid
#DDDDDD
;
border-bottom
:
1rpx
solid
#DDDDDD
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
image
{
width
:
70rpx
;
height
:
70rpx
;
position
:
relative
;
}
.left
{
display
:
flex
;
align-items
:
center
;
}
.right
{
padding-right
:
24rpx
;
}
font-size
:
28rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
800
;
color
:
rgba
(
0
,
0
,
0
,
0
.85
);
line-height
:
40rpx
;
// font-family: PingFang SC;
// font-size: 35rpx;
letter-spacing
:
1rpx
;
// font-weight: 600;
// color: #34C98E;
// line-height: 100rpx;
}
}
</
style
>
src/pages/pdfPreview/pdfPreview.vue
0 → 100644
View file @
7dfce1ec
<
template
>
<div
id=
"app"
>
<div
id=
"pdfh5"
></div>
</div>
</
template
>
<
script
>
import
Pdfh5
from
"
pdfh5
"
;
export
default
{
name
:
'
App
'
,
data
()
{
return
{
pdfh5
:
null
,
pdfName
:
""
,
ImgUrl
:
this
.
$ImgUrl
};
},
onLoad
:
function
(
options
)
{
console
.
warn
(
options
);
let
type
=
options
.
pdfName
.
split
(
"
_
"
)[
1
]
*
1
switch
(
type
)
{
case
1
:
uni
.
setNavigationBarTitle
({
title
:
"
服务协议
"
})
break
;
case
2
:
uni
.
setNavigationBarTitle
({
title
:
"
隐私权政策
"
})
break
;
case
3
:
uni
.
setNavigationBarTitle
({
title
:
"
未成年人个人信息保护规则
"
})
break
;
default
:
break
;
}
this
.
pdfName
=
options
.
pdfName
this
.
Init
(
this
.
ImgUrl
+
'
AgreementPdf/
'
+
this
.
pdfName
)
},
mounted
()
{},
methods
:
{
// 跳转协议
async
Init
(
pdfName
)
{
let
this_
=
this
try
{
this
.
$nextTick
(
function
()
{
//实例化
this_
.
pdfh5
=
new
Pdfh5
(
"
#pdfh5
"
,
{
pdfurl
:
pdfName
+
'
.pdf
'
,
scale
:
2
,
zoomEnable
:
true
,
renderType
:
'
svg
'
});
//监听完成事件
this_
.
pdfh5
.
on
(
"
complete
"
,
function
(
status
,
msg
,
time
)
{
console
.
log
(
"
状态:
"
+
status
+
"
,信息:
"
+
msg
+
"
,耗时:
"
+
time
+
"
毫秒,总页数:
"
+
this
.
totalNum
)
})
})
}
catch
(
e
)
{
//TODO handle the exception
}
}
}
}
</
script
>
<
style
>
@import
"pdfh5/css/pdfh5.css"
;
*
{
padding
:
0
;
margin
:
0
;
}
html
,
body
,
#app
{
width
:
100%
;
height
:
100%
;
}
</
style
>
yarn.lock
View file @
7dfce1ec
...
...
@@ -8405,6 +8405,11 @@ pbkdf2@^3.0.3:
safe-buffer "^5.0.1"
sha.js "^2.4.8"
pdfh5@^1.4.2:
version "1.4.2"
resolved "https://repo.huaweicloud.com/repository/npm/pdfh5/-/pdfh5-1.4.2.tgz#4dc501b0312bb912f68c1610228a2ed6feab2a0a"
integrity sha512-1BL8HIx/EEZowRPBgas7/WokbGEv1gxKNRmmHSimG113178mKxIBH4pxWBc0tj6d25Sy+EwnlQwv9cUUmQa42w==
performance-now@^2.1.0:
version "2.1.0"
resolved "https://repo.huaweicloud.com/repository/npm/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
...
...
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