Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
Project
Project
Details
Activity
Releases
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
刘文虎
account-book
Commits
115cc56f
Commit
115cc56f
authored
Jul 20, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 收款码
parent
f0504fc7
Pipeline
#2829
canceled with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
269 additions
and
9 deletions
+269
-9
index.vue
components/cell-card-back/index.vue
+9
-7
package.json
package.json
+1
-1
pages.json
pages.json
+9
-0
payee-code.vue
pages/card/payee-code.vue
+249
-0
config.js
utils/config.js
+1
-1
No files found.
components/cell-card-back/index.vue
View file @
115cc56f
<
template
>
<
template
>
<view
class=
"cell-card"
>
<view
class=
"cell-card"
>
<view
class=
"back-view"
v-if=
"isGreen"
>
<view
class=
"back-view"
>
<image
:src=
"image"
></image>
<image
:src=
"image"
></image>
</view>
</view>
<view
class=
"content-view"
>
<view
class=
"content-view"
>
<view
class=
"title-view"
>
</view>
<view
v-if=
"info.backTitle"
class=
"title-view"
>
{{
info
.
backTitle
}}
</view>
<view
class=
"text-view"
>
<view
v-if=
"info.backContent"
class=
"text-view"
>
<text>
{{
info
.
backContent
}}
</text>
<text>
{{
info
.
backContent
}}
</text>
</view>
</view>
</view>
</view>
...
@@ -66,10 +66,11 @@ export default {
...
@@ -66,10 +66,11 @@ export default {
.content-view
{
.content-view
{
position
:
relative
;
position
:
relative
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
flex-direction
:
column
;
flex-direction
:
column
;
height
:
100%
;
.title-view
{
.title-view
{
font-size
:
40rpx
;
font-size
:
40rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -83,6 +84,7 @@ export default {
...
@@ -83,6 +84,7 @@ export default {
font-size
:
28rpx
;
font-size
:
28rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#ffffff
;
color
:
#ffffff
;
margin-bottom
:
24rpx
;
}
}
}
}
}
}
...
...
package.json
View file @
115cc56f
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"serve"
:
"npm run dev:h5"
,
"serve"
:
"npm run dev:h5"
,
"build"
:
"npm run build:h5"
,
"build"
:
"npm run build:h5"
,
"build:mp-weixin"
:
"cross-env NODE_ENV=production UNI_PLATFORM=mp-weixin vue-cli-service uni-build"
,
"build:mp-weixin"
:
"cross-env NODE_ENV=production UNI_PLATFORM=mp-weixin vue-cli-service uni-build"
,
"dev:mp-weixin"
:
"cross-env NODE_ENV=development UNI_PLATFORM=mp-weixin vue-cli-service uni-build --
minimize --
watch"
,
"dev:mp-weixin"
:
"cross-env NODE_ENV=development UNI_PLATFORM=mp-weixin vue-cli-service uni-build --watch"
,
"test:mp-weixin"
:
"cross-env UNI_PLATFORM=mp-weixin jest -i"
"test:mp-weixin"
:
"cross-env UNI_PLATFORM=mp-weixin jest -i"
},
},
"repository"
:
{
"repository"
:
{
...
...
pages.json
View file @
115cc56f
...
@@ -306,6 +306,15 @@
...
@@ -306,6 +306,15 @@
"enablePullDownRefresh"
:
false
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
"disableScroll"
:
true
}
}
},{
"path"
:
"payee-code"
,
"name"
:
"payee-code"
,
"style"
:
{
"navigationBarTitleText"
:
"收款码"
,
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
}
}]
}]
}],
}],
"globalStyle"
:
{
"globalStyle"
:
{
...
...
pages/card/payee-code.vue
0 → 100644
View file @
115cc56f
<
template
>
<view
class=
"payee-code"
>
<NavbarRight
title=
"收款码"
titleColor=
"#FFFFFF"
backIconColor=
"#FFFFFF"
:background=
"
{
'background-color': '#02A074',
}"
/>
<view
class=
"content-view"
>
<view
class=
"top-view"
>
<view
v-for=
"(item, index) in settings"
:key=
"index"
class=
"item-view"
:style=
"currentIndex == index ? item.currentStyle : item.style"
@
click=
"handleSelect(index)"
>
<view
class=
"image-view"
v-if=
"currentIndex == index"
:style=
"item.imageStyle"
>
<image
:src=
"item.image"
></image>
</view>
<view
class=
"text-view"
>
{{
item
.
title
}}
</view>
</view>
</view>
<view
class=
"title-view"
:style=
"'color:' + currentInfo.color"
>
{{
currentInfo
.
text
}}
</view>
<view
class=
"middle-view"
>
<view
class=
"code-view"
>
<image
v-if=
"currentInfo.code"
:src=
"currentInfo.code"
hover-class=
"u-hover-class"
@
click=
"$u.throttle(addCode, 500)"
>
</image>
<view
v-else
class=
"add-view"
hover-class=
"u-hover-class"
@
click=
"$u.throttle(addCode, 500)"
>
<view
class=
"add-text"
:style=
"'color:' + currentInfo.color"
>
{{
currentInfo
.
addText
}}
</view>
<view>
便于快速收款使用
</view>
</view>
</view>
</view>
</view>
<view
class=
"bottom-view"
>
<view
class=
"left-view"
>
¥
</view>
<view
class=
"right-view"
>
<u-input
type=
"digit"
:clearable=
"false"
:custom-style=
"customStyle"
:placeholder-style=
"placeholderStyle"
v-model=
"value"
placeholder=
"输入收款金额提醒客户"
/>
</view>
</view>
</view>
</
template
>
<
script
>
import
NavbarRight
from
'@/components/navbar-right'
import
upload
from
'@/common/upload'
export
default
{
components
:
{
NavbarRight
,
upload
},
data
()
{
return
{
info
:
{},
currentIndex
:
0
,
value
:
''
,
}
},
computed
:
{
baseUrl
()
{
return
process
.
uniEnv
.
qn_base_url
},
currentInfo
()
{
return
this
.
settings
[
this
.
currentIndex
]
},
settings
()
{
return
[
{
title
:
'微信'
,
color
:
'#05C160'
,
image
:
this
.
baseUrl
+
'weixinzhifu@3x-2.png'
,
text
:
'微信扫一扫,向我付款'
,
imageStyle
:
'width: 40rpx;height:36rpx'
,
style
:
'background-color: #f6f7fa;color: #333333;'
,
currentStyle
:
'background-color: #05C160;color: #ffffff;'
,
code
:
this
.
info
.
wxImage
,
addText
:
'点击上传微信收款码截图'
,
},
{
title
:
'支付宝'
,
color
:
'#1778FB'
,
text
:
'支付宝扫一扫,向我付款'
,
image
:
this
.
baseUrl
+
'zhifubaozhifu@3x-2.png'
,
imageStyle
:
'width: 36rpx;height:36rpx'
,
style
:
'background-color: #f6f7fa;color: #333333;'
,
currentStyle
:
'background-color: #1778FB;color: #ffffff;'
,
code
:
this
.
info
.
aliImage
,
addText
:
'点击上传支付宝收款码截图'
,
},
{
title
:
'其他'
,
color
:
'#FCB82A'
,
text
:
'扫一扫,向我付款'
,
image
:
this
.
baseUrl
+
'qitazhifu@3x.png'
,
imageStyle
:
'width: 36rpx;height:36rpx'
,
style
:
'background-color: #f6f7fa;color: #333333;'
,
currentStyle
:
'background-color: #FCB82A;color: #ffffff;'
,
code
:
this
.
info
.
otherImage
,
addText
:
'点击上传其他收款码截图'
,
},
]
},
placeholderStyle
()
{
return
'color:#cccccc;font-size:48rpx;font-weight: bold;'
},
customStyle
()
{
return
{
fontSize
:
'48rpx'
,
fontWeight
:
'bold'
,
}
},
},
onLoad
(
options
)
{
this
.
init
()
},
onShow
()
{},
methods
:
{
init
()
{
this
.
loading
=
false
this
.
info
=
{
wxImage
:
''
,
aliImage
:
'http://static-book.kaying.cc/icon/beijing%403x.png'
,
otherImage
:
''
,
}
},
handleSelect
(
index
)
{
this
.
currentIndex
=
index
},
addCode
()
{
// 上传图片
upload
.
getPhoto
(
this
.
qiniuToken
).
then
((
res
)
=>
{
console
.
log
(
'upload success'
,
res
)
})
},
},
}
</
script
>
<
style
scoped
lang=
"scss"
>
.payee-code
{
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
height
:
100vh
;
background-color
:
#02a074
;
.content-view
{
margin
:
24rpx
24rpx
0rpx
24rpx
;
padding
:
40rpx
32rpx
104rpx
32rpx
;
border-radius
:
16rpx
16rpx
0
0
;
background-color
:
#ffffff
;
.top-view
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.item-view
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
width
:
192rpx
;
height
:
80rpx
;
border-radius
:
40rpx
;
color
:
#ffffff
;
font-size
:
28rpx
;
font-weight
:
bold
;
.image-view
{
margin-right
:
12rpx
;
}
.text-view
{
}
}
}
.title-view
{
font-size
:
32rpx
;
font-weight
:
bold
;
margin-top
:
72rpx
;
margin-bottom
:
40rpx
;
text-align
:
center
;
}
.middle-view
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
.code-view
{
width
:
400rpx
;
height
:
400rpx
;
background-color
:
#f6f7fa
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
flex-direction
:
column
;
.add-view
{
color
:
#8d8d8d
;
font-size
:
24rpx
;
text-align
:
center
;
.add-text
{
margin-bottom
:
8rpx
;
}
}
}
}
}
.bottom-view
{
margin
:
0rpx
24rpx
44rpx
24rpx
;
height
:
152rpx
;
padding
:
0
32rpx
;
border-radius
:
0
0
16rpx
16rpx
;
background-color
:
#ffffff
;
border-top
:
2rpx
solid
#f6f7fa
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
.left-view
{
font-size
:
48rpx
;
font-weight
:
bold
;
width
:
50rpx
;
color
:
#333333
;
flex-shrink
:
0
;
margin-right
:
32rpx
;
}
}
}
</
style
>
utils/config.js
View file @
115cc56f
...
@@ -17,7 +17,7 @@ export const billBaseUrl = process.uniEnv.qn_base_url + 'bill/'; // 七牛云对
...
@@ -17,7 +17,7 @@ export const billBaseUrl = process.uniEnv.qn_base_url + 'bill/'; // 七牛云对
export
const
planBaseUrl
=
process
.
uniEnv
.
qn_base_url
+
'plan/'
;
// 七牛云对象存储图片地址-行程
export
const
planBaseUrl
=
process
.
uniEnv
.
qn_base_url
+
'plan/'
;
// 七牛云对象存储图片地址-行程
export
const
IMG_HOST
=
''
;
// 服务器线上图片地址
export
const
IMG_HOST
=
''
;
// 服务器线上图片地址
export
const
STATIC_IMG_HOST
=
''
;
// 服务器静态图片地址
export
const
STATIC_IMG_HOST
=
''
;
// 服务器静态图片地址
export
const
whiteList
=
[
'/pages/index/index'
,
'/pages/index/schedule/schedule'
,
'/pages/index/bill/bill'
,
export
const
whiteList
=
[
'/pages/
card/payee-code'
,
'/pages/
index/index'
,
'/pages/index/schedule/schedule'
,
'/pages/index/bill/bill'
,
'/pages/index/mine/mine'
,
'/pages/login/login'
,
'/pages/login/quick-login/quick-login'
,
'/pages/index/mine/mine'
,
'/pages/login/login'
,
'/pages/login/quick-login/quick-login'
,
'/pages/login/binding-phone/binding-phone'
,
'/pages/login/agreement/agreement'
,
'/pages/mine/update-log/update-log'
,
'/pages/mine/about/about'
'/pages/login/binding-phone/binding-phone'
,
'/pages/login/agreement/agreement'
,
'/pages/mine/update-log/update-log'
,
'/pages/mine/about/about'
];
// 服务器静态图片地址
];
// 服务器静态图片地址
...
...
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