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
85a5132e
Commit
85a5132e
authored
Jul 20, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 图片地址替换
parent
feb2c1d4
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
855 additions
and
40 deletions
+855
-40
.env.dev.js
.env.dev.js
+2
-2
.env.prod.js
.env.prod.js
+2
-2
.env.test.js
.env.test.js
+2
-2
index.vue
components/cell-card-back/index.vue
+89
-0
index.vue
components/cell-relation/index.vue
+6
-6
index.vue
components/pop-image/index.vue
+79
-0
pages.json
pages.json
+18
-0
create.vue
pages/card/create.vue
+424
-0
index.vue
pages/card/index.vue
+35
-8
share.vue
pages/card/share.vue
+175
-0
create.vue
pages/maintain-bill/create.vue
+6
-6
detail.vue
pages/maintain-bill/detail.vue
+7
-7
show.vue
pages/maintain-bill/show.vue
+10
-7
No files found.
.env.dev.js
View file @
85a5132e
// 废弃
const
UNI_APP
=
{
apiUrl
:
'https://api.weixin.qq.com'
,
qn_base_url
:
'http
://reu2asz23.hn-bkt.clouddn.com
/icon/'
,
qn_asset_url
:
'https://
reu2asz23.hn-bkt.clouddn.com
/upload-image/'
,
qn_base_url
:
'http
s://static-book.kaying.cc
/icon/'
,
qn_asset_url
:
'https://
static-book.kaying.cc
/upload-image/'
,
argoDebugMode
:
1
,
version
:
'v1.0.0'
,
}
...
...
.env.prod.js
View file @
85a5132e
const
UNI_APP
=
{
apiUrl
:
'https://api2-fans.kaying.cc/'
,
qn_base_url
:
'http
://reu2asz23.hn-bkt.clouddn.com
/icon/'
,
qn_asset_url
:
'https://
reu2asz23.hn-bkt.clouddn.com
/upload-image/'
,
qn_base_url
:
'http
s://static-book.kaying.cc
/icon/'
,
qn_asset_url
:
'https://
static-book.kaying.cc
/upload-image/'
,
argoDebugMode
:
0
,
version
:
'v1.0.0'
,
}
...
...
.env.test.js
View file @
85a5132e
const
UNI_APP
=
{
apiUrl
:
'https://api-fans-test.banshouhui.com'
,
qn_base_url
:
'http
://reu2asz23.hn-bkt.clouddn.com
/icon/'
,
qn_asset_url
:
'https://
reu2asz23.hn-bkt.clouddn.com
/upload-image/'
,
qn_base_url
:
'http
s://static-book.kaying.cc
/icon/'
,
qn_asset_url
:
'https://
static-book.kaying.cc
/upload-image/'
,
argoDebugMode
:
1
,
version
:
'v1.0.0'
,
}
...
...
components/cell-card-back/index.vue
0 → 100644
View file @
85a5132e
<
template
>
<view
class=
"cell-card"
>
<view
class=
"back-view"
v-if=
"isGreen"
>
<image
:src=
"image"
></image>
</view>
<view
class=
"content-view"
>
<view
class=
"title-view"
></view>
<view
class=
"text-view"
>
<text>
{{
info
.
backContent
}}
</text>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:
{
info
:
{
type
:
Object
,
default
()
{
return
{}
},
},
},
data
()
{
return
{
loading
:
true
,
}
},
computed
:
{
baseUrl
()
{
return
process
.
uniEnv
.
qn_base_url
},
// green 绿;blue 蓝;black 黑;
image
()
{
switch
(
this
.
info
.
type
)
{
case
'green'
:
return
this
.
baseUrl
+
'muban1fanmian@3x.png'
case
'blue'
:
return
this
.
baseUrl
+
'muban2fanmian@3x.png'
case
'black'
:
return
this
.
baseUrl
+
'muban3fanmian@3x.png'
}
},
},
methods
:
{},
}
</
script
>
<
style
scoped
lang=
"scss"
>
.cell-card
{
width
:
100%
;
height
:
420rpx
;
border-radius
:
16rpx
;
background-color
:
#ffffff
;
position
:
relative
;
overflow
:
hidden
;
.back-view
{
position
:
absolute
;
top
:
0
;
right
:
0
;
height
:
0
;
width
:
100%
;
height
:
100%
;
}
.content-view
{
position
:
relative
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
flex-direction
:
column
;
.title-view
{
font-size
:
40rpx
;
font-weight
:
bold
;
color
:
#ffffff
;
margin-bottom
:
48rpx
;
}
.text-view
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
font-size
:
28rpx
;
font-weight
:
bold
;
color
:
#ffffff
;
}
}
}
</
style
>
components/cell-relation/index.vue
View file @
85a5132e
...
...
@@ -51,14 +51,14 @@ export default {
<
style
scoped
lang=
"scss"
>
.cell-relation
{
padding
:
0
24rpx
;
background-color
:
#2D3340
;
background-color
:
transparent
;
.content-view
{
height
:
100
rpx
;
height
:
88
rpx
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
font-size
:
26rpx
;
color
:
#
ffffff
;
color
:
#
333333
;
.left-view
{
display
:
flex
;
align-items
:
center
;
...
...
@@ -66,10 +66,10 @@ export default {
width
:
260rpx
;
.image-view
{
width
:
48
rpx
;
height
:
48
rpx
;
width
:
56
rpx
;
height
:
56
rpx
;
border-radius
:
50%
;
background-color
:
#
ffffff
;
background-color
:
#
FFFFFF
;
}
.name-view
{
margin-left
:
16rpx
;
...
...
components/pop-image/index.vue
0 → 100644
View file @
85a5132e
<
template
>
<u-popup
v-model=
"show"
safe-area-inset-bottom
mode=
"center"
width=
"100%"
height=
"768"
:closeable=
"false"
@
close=
"handleClickSure"
>
<view
class=
"content-view"
>
<view
class=
"image-view"
v-for=
"(item, index) in images"
:key=
"index"
@
click=
"$u.throttle(handleClickSure, 500)"
>
<image
:src=
"item"
></image>
</view>
</view>
</u-popup>
</
template
>
<
script
>
export
default
{
props
:
{
visible
:
{
type
:
Boolean
,
default
:
false
,
},
images
:
{
type
:
Array
,
default
()
{
return
[]
},
},
},
data
()
{
return
{
show
:
false
,
}
},
watch
:
{
visible
(
val
)
{
this
.
show
=
val
console
.
log
(
'----------------'
,
this
.
images
)
},
},
methods
:
{
changeVisibleValue
(
val
)
{
this
.
show
=
val
this
.
$emit
(
'update:visible'
,
val
)
},
handleClickSure
()
{
this
.
changeVisibleValue
(
false
)
this
.
$emit
(
'click'
)
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.content-view
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
position
:
relative
;
flex-direction
:
column
;
width
:
100%
;
background-color
:
transparent
;
padding
:
0
64rpx
;
.image-view
{
width
:
100%
;
height
:
372rpx
;
margin-bottom
:
24rpx
;
border-radius
:
8rpx
;
}
}
</
style
>
pages.json
View file @
85a5132e
...
...
@@ -224,6 +224,24 @@
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
}
},{
"path"
:
"create"
,
"name"
:
"card-create"
,
"style"
:
{
"navigationBarTitleText"
:
"创建名片"
,
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
}
},{
"path"
:
"share"
,
"name"
:
"card-share"
,
"style"
:
{
"navigationBarTitleText"
:
"电子名片"
,
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
}
}]
}],
"globalStyle"
:
{
...
...
pages/card/create.vue
0 → 100644
View file @
85a5132e
This diff is collapsed.
Click to expand it.
pages/card/index.vue
View file @
85a5132e
...
...
@@ -15,7 +15,7 @@
</view>
<template
v-else
>
<view
class=
"card-content"
>
<Card
:info=
"info.card"
/>
<Card
:info=
"info.card"
/>
</view>
<view
class=
"tool-view"
>
<view
...
...
@@ -50,10 +50,11 @@
</view>
<view
class=
"list-view"
>
<view
class=
"list-content"
v-if=
"currentList && currentList.length > 0"
></view>
<view
class=
"list-content"
v-if=
"list && list.length > 0"
>
<view
v-for=
"(item, index) in list"
:key=
"index"
>
<CellRelation
:member=
"item"
/>
</view>
</view>
<NoData
v-else-if=
"!loading"
customStyle=
"margin-top:0rpx;height:510rpx"
...
...
@@ -77,7 +78,7 @@ export default {
NavbarRight
,
NoData
,
Card
,
CellRelation
CellRelation
,
},
data
()
{
return
{
...
...
@@ -132,10 +133,26 @@ export default {
address
:
'dfsafdsafdasf发撒范德萨范德萨发的范德萨范大师傅的范德萨范大事发声的范德萨范德萨发撒发'
,
phone
:
'131231241314'
,
qrCode
:
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/beijing%403x.png'
,
qrCode
:
'http://
static-book.kaying.cc
/icon/beijing%403x.png'
,
},
}
this
.
list
=
[]
this
.
list
=
[
{
nickname
:
'fsafdsa'
,
avatar
:
'http://static-book.kaying.cc/icon/beijing%403x.png'
,
createTime
:
'2087-32-32 21:99:00'
,
},
{
nickname
:
'gsdsaf'
,
avatar
:
''
,
createTime
:
'2087-32-32 21:99:00'
,
},
{
nickname
:
'fsajyrtfdsa'
,
avatar
:
'http://static-book.kaying.cc/icon/beijing%403x.png'
,
createTime
:
'2087-32-32 21:99:00'
,
},
]
this
.
loading
=
false
},
handleChangeList
(
key
)
{
...
...
@@ -143,6 +160,14 @@ export default {
this
.
loading
=
true
this
.
getInfo
()
},
handleClickAdd
()
{
this
.
$u
.
route
({
url
:
'pages/card/create'
,
params
:
{
cardId
:
id
,
}
})
},
},
}
</
script
>
...
...
@@ -242,6 +267,8 @@ export default {
background-color
:
#f6f7fa
;
border-radius
:
16rpx
;
.list-content
{
padding
:
16rpx
0
;
min-height
:
510rpx
;
}
.no-data
{
}
...
...
pages/card/share.vue
0 → 100644
View file @
85a5132e
<
template
>
<view
class=
"card-share"
>
<NavbarRight
title=
"电子名片"
/>
<view
class=
"content-view"
>
<view
class=
"card-view"
>
<Card
:info=
"info"
/>
</view>
<CardBack
:info=
"info"
/>
</view>
<view
class=
"bottom-view"
>
<view
class=
"left-view"
>
<u-button
:custom-style=
"customScan"
@
click=
"handleClickScan"
>
<view
class=
"image-view"
>
<image
:src=
"bodadianhuaImage"
></image>
</view>
<view
class=
"scan-view"
>
拨打电话
</view>
</u-button>
</view>
<view
class=
"right-view"
>
<u-button
:custom-style=
"customConFirm"
@
click=
"handleClickConFirm"
class=
"confirm-button"
>
<view
class=
"image-view"
>
<image
:src=
"cunrutongxunluImage"
></image>
</view>
<view
class=
"confirm-view"
>
存入手机通讯录
</view>
</u-button>
</view>
</view>
</view>
</
template
>
<
script
>
import
NavbarRight
from
'@/components/navbar-right'
import
Card
from
'@/components/cell-card'
import
CardBack
from
'@/components/cell-card-back'
export
default
{
components
:
{
NavbarRight
,
Card
,
CardBack
,
},
data
()
{
return
{
cardId
:
''
,
info
:
{},
}
},
computed
:
{
baseUrl
()
{
return
process
.
uniEnv
.
qn_base_url
},
bodadianhuaImage
()
{
return
this
.
baseUrl
+
'bodadianhua@3x.png'
},
cunrutongxunluImage
()
{
return
this
.
baseUrl
+
'cunrutongxunlu@3x.png'
},
customScan
()
{
return
{
color
:
'transparent'
,
'background-color'
:
'#ffffff'
,
height
:
'104rpx'
,
'border-radius'
:
'16rpx'
,
width
:
'332rpx'
,
}
},
customConFirm
()
{
return
{
color
:
'transparent'
,
'background-color'
:
'#02a074'
,
height
:
'104rpx'
,
'border-radius'
:
'16rpx'
,
width
:
'332rpx'
,
}
},
},
onLoad
(
options
)
{
if
(
options
&&
options
.
cardId
)
{
this
.
cardId
=
options
.
cardId
}
this
.
init
()
},
onShow
()
{},
methods
:
{
init
()
{
this
.
loading
=
false
this
.
info
=
{
type
:
'green'
,
title
:
'扳手专业品牌家电维修'
,
name
:
'小扳手'
,
address
:
'dfsafdsafdasf发撒范德萨范德萨发的范德萨范大师傅的范德萨范大事发声的范德萨范德萨发撒发'
,
phone
:
'131231241314'
,
qrCode
:
'http://static-book.kaying.cc/icon/beijing%403x.png'
,
backContent
:
`家电维修安装、清洗保养服务、二手家电回收\n水电维修服务、家具维保服务、家居清洗美化`
,
}
},
handleClickScan
()
{},
handleClickConfirm
()
{},
},
}
</
script
>
<
style
scoped
lang=
"scss"
>
.card-share
{
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
height
:
100vh
;
background-color
:
#f6f7fa
;
.content-view
{
position
:
relative
;
height
:
100%
;
overflow
:
auto
;
padding
:
24rpx
24rpx
44rpx
24rpx
;
.card-view
{
margin-bottom
:
24rpx
;
}
}
.bottom-view
{
position
:
relative
;
margin
:
16rpx
24rpx
36rpx
24rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
.left-view
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
.image-view
{
width
:
32rpx
;
height
:
32rpx
;
margin-right
:
16rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.scan-view
{
color
:
#02a074
;
height
:
104rpx
;
line-height
:
104rpx
;
font-weight
:
bold
;
font-size
:
32rpx
;
}
}
.right-view
{
margin-left
:
24rpx
;
flex
:
1
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
.image-view
{
width
:
32rpx
;
height
:
32rpx
;
margin-right
:
16rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.confirm-view
{
color
:
#ffffff
;
height
:
104rpx
;
line-height
:
104rpx
;
font-weight
:
bold
;
font-size
:
32rpx
;
}
}
}
}
</
style
>
pages/maintain-bill/create.vue
View file @
85a5132e
...
...
@@ -299,12 +299,12 @@ export default {
范德萨范大师发大水范德萨发送范德萨范德萨范德萨
范德萨范德萨`
,
images
:
[
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/beijing%403x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/riqi@3x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/shijian@3x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/daochuzhangdan@3x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/didian@3x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/shanchuzhangdanxiangqing@3x.png'
,
'http://
static-book.kaying.cc
/icon/beijing%403x.png'
,
'http://
static-book.kaying.cc
/icon/riqi@3x.png'
,
'http://
static-book.kaying.cc
/shijian@3x.png'
,
'http://
static-book.kaying.cc
/icon/daochuzhangdan@3x.png'
,
'http://
static-book.kaying.cc
/icon/didian@3x.png'
,
'http://
static-book.kaying.cc
/shanchuzhangdanxiangqing@3x.png'
,
],
records
:
[
{
...
...
pages/maintain-bill/detail.vue
View file @
85a5132e
...
...
@@ -51,7 +51,7 @@
</view>
<view
class=
"images-view"
v-if=
"info.images && info.images.length > 0"
>
<view
:class=
"
['image-view',
{ 'not-last': (index + 1) % 4 }]
"
:class=
"
'image-view ' + ((index + 1) % 4 ? 'not-last' : '')
"
v-for=
"(item, index) in info.images"
:key=
"index"
hover-class=
"u-hover-class"
...
...
@@ -302,12 +302,12 @@ export default {
范德萨范大师发大水范德萨发送范德萨范德萨范德萨
范德萨范德萨`
,
images
:
[
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/beijing%403x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/beijing%403x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/beijing%403x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/beijing%403x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/beijing%403x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/beijing%403x.png'
,
'http://
static-book.kaying.cc
/icon/beijing%403x.png'
,
'http://
static-book.kaying.cc
/icon/beijing%403x.png'
,
'http://
static-book.kaying.cc
/icon/beijing%403x.png'
,
'http://
static-book.kaying.cc
/icon/beijing%403x.png'
,
'http://
static-book.kaying.cc
/icon/beijing%403x.png'
,
'http://
static-book.kaying.cc
/icon/beijing%403x.png'
,
],
records
:
[
{
...
...
pages/maintain-bill/show.vue
View file @
85a5132e
...
...
@@ -72,7 +72,7 @@
</view>
<view
class=
"images-view"
v-if=
"info.images && info.images.length > 0"
>
<view
:class=
"
['image-view',
{ 'not-last': (index + 1) % 4 }]
"
:class=
"
'image-view ' + ((index + 1) % 4 ? 'not-last' : '')
"
v-for=
"(item, index) in info.images"
:key=
"index"
hover-class=
"u-hover-class"
...
...
@@ -328,12 +328,12 @@ export default {
范德萨范大师发大水范德萨发送范德萨范德萨范德萨
范德萨范德萨`
,
images
:
[
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/beijing%403x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/beijing%403x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/beijing%403x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/beijing%403x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/beijing%403x.png'
,
'http://
reu2asz23.hn-bkt.clouddn.com
/icon/beijing%403x.png'
,
'http://
static-book.kaying.cc
/icon/beijing%403x.png'
,
'http://
static-book.kaying.cc
/icon/beijing%403x.png'
,
'http://
static-book.kaying.cc
/icon/beijing%403x.png'
,
'http://
static-book.kaying.cc
/icon/beijing%403x.png'
,
'http://
static-book.kaying.cc
/icon/beijing%403x.png'
,
'http://
static-book.kaying.cc
/icon/beijing%403x.png'
,
],
detailList
:
[
{
...
...
@@ -398,6 +398,9 @@ export default {
},
handleClickChange
()
{
console
.
log
(
'--------handleClickChange---------'
)
},
handleClickScan
()
{
},
handleClickConfirm
(
select
)
{
if
(
this
.
current
==
0
)
{
...
...
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