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
155f7310
Commit
155f7310
authored
Dec 12, 2022
by
刘文虎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/liuwenhu/account-book
parents
3765eaa7
697ece6b
Pipeline
#4330
canceled with stages
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
187 additions
and
97 deletions
+187
-97
create.vue
pages/maintain-bill/create.vue
+4
-3
cd-key.vue
pages/mine/cd-key/cd-key.vue
+13
-18
save-poster-popup.vue
pages/mine/share/components/save-poster-popup.vue
+152
-61
index.vue
pages/mine/share/index.vue
+18
-15
No files found.
pages/maintain-bill/create.vue
View file @
155f7310
...
@@ -581,6 +581,7 @@
...
@@ -581,6 +581,7 @@
id
:
id
id
:
id
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
'--------repairDetail------'
,
res
)
if
(
res
.
data
)
{
if
(
res
.
data
)
{
this
.
setForm
(
res
.
data
);
this
.
setForm
(
res
.
data
);
}
}
...
@@ -611,7 +612,7 @@
...
@@ -611,7 +612,7 @@
expenseDetails
:
data
.
expenseDetails
,
expenseDetails
:
data
.
expenseDetails
,
faultRecord
:
data
.
faultRecord
faultRecord
:
data
.
faultRecord
};
};
if
(
data
.
faultRecord
.
id
)
{
if
(
data
.
faultRecord
&&
data
.
faultRecord
.
id
)
{
this
.
faultRecord
=
{
this
.
faultRecord
=
{
...
data
.
faultRecord
...
data
.
faultRecord
};
};
...
@@ -705,9 +706,9 @@
...
@@ -705,9 +706,9 @@
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
if
(
this
.
billId
)
{
if
(
this
.
billId
)
{
uni
.
$emit
(
'maintain-bill-detail'
);
uni
.
$emit
(
'maintain-bill-detail'
);
}
else
{
uni
.
$emit
(
'maintain-bill-list'
);
}
}
uni
.
$emit
(
'maintain-bill-list'
);
// 防止返回
// 防止返回
this
.
billId
=
res
.
data
;
this
.
billId
=
res
.
data
;
this
.
form
.
id
=
this
.
billId
;
this
.
form
.
id
=
this
.
billId
;
...
...
pages/mine/cd-key/cd-key.vue
View file @
155f7310
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
<!-- pages/my-bonus/index.wxml -->
<!-- pages/my-bonus/index.wxml -->
<view
class=
"cd-key-view"
>
<view
class=
"cd-key-view"
>
<view
class=
"content"
>
<view
class=
"content"
>
<view
:class=
"['top',
{
'no-list'
: noList }]">
<view
:class=
"['top',
{
noList
: noList }]">
<image
class=
"top-image"
mode=
"widthFix"
:src=
"duihuanbiaotiImg"
/>
<image
class=
"top-image"
mode=
"widthFix"
:src=
"duihuanbiaotiImg"
/>
<view
class=
"input-view"
>
<view
class=
"input-view"
>
<input
class=
"weui-input"
:focus=
"isFocus"
placeholder=
"请输入有效兑换码"
placeholder-class=
"placeholder-class"
:cursor=
"cdKey.length"
v-model=
"cdKey"
/>
<input
class=
"weui-input"
:focus=
"isFocus"
placeholder=
"请输入有效兑换码"
placeholder-class=
"placeholder-class"
:cursor=
"cdKey.length"
v-model=
"cdKey"
/>
</view>
</view>
<view
class=
"b-button"
><button
:class=
"'submit-button ' + (cdKey ? '' : 'disabled-button')"
@
tap=
"submitKey"
>
确定兑换
</button></view>
<view
class=
"b-button"
><button
:class=
"'submit-button ' + (cdKey ? '' : 'disabled-button')"
@
tap=
"submitKey"
>
确定兑换
</button></view>
<view
:class=
"['service-view',
{
'no-list'
: noList }]">
<view
:class=
"['service-view',
{
noList
: noList }]">
<image
class=
"warning-image"
:src=
"duihuanwentiImg"
/>
<image
class=
"warning-image"
:src=
"duihuanwentiImg"
/>
<text>
如遇兑换问题,请联系官方客服
</text>
<text>
如遇兑换问题,请联系官方客服
</text>
<view
class=
"service-button"
@
tap=
"handleService"
><text>
立即联系
</text></view>
<view
class=
"service-button"
@
tap=
"handleService"
><text>
立即联系
</text></view>
...
@@ -63,12 +63,15 @@ export default {
...
@@ -63,12 +63,15 @@ export default {
duihuanbiaotiImg
:
mineBaseUrl
+
'duihuanbiaoti@3x.png'
,
duihuanbiaotiImg
:
mineBaseUrl
+
'duihuanbiaoti@3x.png'
,
duihuanwentiImg
:
mineBaseUrl
+
'duihuanwenti@3x.png'
,
duihuanwentiImg
:
mineBaseUrl
+
'duihuanwenti@3x.png'
,
messageFlag
:
false
,
messageFlag
:
false
,
// -4 未启用
// -1 兑换码不存在
// -3 兑换码还未到兑换时间
// -2 兑换码未发放
// -2 兑换码不存在
// -3
// -1 兑换码过期
// -4 兑换码还未到兑换时间
// 0 兑换码已使用
// -5 兑换码已过期
// 1 正常
// -6 您使用次数已超过批次限制
// -7 兑换码使用次数已超过批次限制
// 0 正常
// 1 兑换码已使用
keyStatus
:
'-1'
,
keyStatus
:
'-1'
,
isFocus
:
false
,
isFocus
:
false
,
loading
:
false
,
loading
:
false
,
...
@@ -133,14 +136,6 @@ export default {
...
@@ -133,14 +136,6 @@ export default {
cancel
:
'取消'
,
cancel
:
'取消'
,
sure
:
'确认兑换'
sure
:
'确认兑换'
},
},
begin
:
''
,
tail
:
''
,
reMiddle
:
''
,
middle
:
''
,
end
:
''
,
cancel
:
''
,
sure
:
''
},
},
day
:
7
,
day
:
7
,
endDate
:
''
,
endDate
:
''
,
...
@@ -377,7 +372,7 @@ export default {
...
@@ -377,7 +372,7 @@ export default {
background-color
:
#fff
;
background-color
:
#fff
;
border-radius
:
16rpx
16rpx
0
0
;
border-radius
:
16rpx
16rpx
0
0
;
&
.no
-l
ist
{
&
.no
L
ist
{
border-radius
:
16rpx
;
border-radius
:
16rpx
;
}
}
}
}
...
@@ -507,7 +502,7 @@ export default {
...
@@ -507,7 +502,7 @@ export default {
position
:
relative
;
position
:
relative
;
margin-top
:
40rpx
;
margin-top
:
40rpx
;
padding-bottom
:
64rpx
;
padding-bottom
:
64rpx
;
&
.no
-l
ist
{
&
.no
L
ist
{
margin-top
:
200rpx
;
margin-top
:
200rpx
;
}
}
}
}
...
...
pages/mine/share/components/save-poster-popup.vue
View file @
155f7310
...
@@ -2,6 +2,15 @@
...
@@ -2,6 +2,15 @@
<uni-popup
v-model=
"show"
ref=
"uniPopup"
:animation=
"false"
border-radius=
"24"
type=
"center"
mode=
"center"
>
<uni-popup
v-model=
"show"
ref=
"uniPopup"
:animation=
"false"
border-radius=
"24"
type=
"center"
mode=
"center"
>
<view
class=
"custom-popup"
>
<view
class=
"custom-popup"
>
<view
class=
"apply-refuse"
>
<view
class=
"apply-refuse"
>
<view
class=
"back-view"
>
<swiper
class=
"swiper-box"
:current=
"tabIndex"
@
transition=
"transition"
@
animationfinish=
"animationfinish"
duration=
"300"
:style=
"
{
height: '996rpx',
}">
<swiper-item
class=
"swiper-item"
v-for=
"(item, index) in backImages"
:key=
"index"
>
<view
class=
"swiper-content"
>
<image
class=
"swiper-back-image"
:src=
"item"
></image>
</view>
<view
class=
"user"
>
<view
class=
"user"
>
<view
class=
"user-avatar"
>
<view
class=
"user-avatar"
>
<image
class=
"user-avatar-image"
:src=
"userInfo.avatar"
mode=
""
v-if=
"userInfo.avatar"
></image>
<image
class=
"user-avatar-image"
:src=
"userInfo.avatar"
mode=
""
v-if=
"userInfo.avatar"
></image>
...
@@ -12,6 +21,16 @@
...
@@ -12,6 +21,16 @@
<view
class=
"content-view"
>
<view
class=
"content-view"
>
<view
class=
"qrcode-view"
><image
:src=
"qrcode"
></image></view>
<view
class=
"qrcode-view"
><image
:src=
"qrcode"
></image></view>
</view>
</view>
</swiper-item>
</swiper>
</view>
<view
class=
"dot-view"
>
<view
:class=
"[ index == tabIndex ? 'u-indicator-item-round-active' : 'u-indicator-item-round', ]"
v-for=
"(item, index) in backImages"
:key=
"index"
></view>
</view>
<view
class=
"close-view"
@
click=
"close"
><u-icon
name=
"close"
></u-icon></view>
<view
class=
"close-view"
@
click=
"close"
><u-icon
name=
"close"
></u-icon></view>
</view>
</view>
<view
class=
"btn"
>
<view
class=
"btn"
>
...
@@ -26,10 +45,19 @@
...
@@ -26,10 +45,19 @@
<
script
>
<
script
>
import
UniPopup
from
'@/uni_modules/uni-popup/uni-popup.vue'
;
import
UniPopup
from
'@/uni_modules/uni-popup/uni-popup.vue'
;
import
{
mineBaseUrl
}
from
'@/utils/config.js'
;
import
{
mineBaseUrl
,
baseUrl
}
from
'@/utils/config.js'
;
import
{
mapGetters
}
from
'vuex'
;
import
{
mapGetters
}
from
'vuex'
;
export
default
{
export
default
{
props
:
[
'qrcode'
],
props
:
{
qrcode
:
{
type
:
String
,
default
:
''
},
imageIndex
:
{
type
:
[
String
,
Number
],
default
:
0
}
},
components
:
{
components
:
{
UniPopup
UniPopup
},
},
...
@@ -38,11 +66,20 @@ export default {
...
@@ -38,11 +66,20 @@ export default {
show
:
false
,
show
:
false
,
saveImage
:
mineBaseUrl
+
'haibaobaocunxiangce@3x.png'
,
saveImage
:
mineBaseUrl
+
'haibaobaocunxiangce@3x.png'
,
avatar
:
mineBaseUrl
+
'toxuiang@3x.png'
,
avatar
:
mineBaseUrl
+
'toxuiang@3x.png'
,
backgroundImage
:
mineBaseUrl
+
'min-share-haibao.jpg'
backgroundImage
:
mineBaseUrl
+
'min-share-haibao.jpg'
,
tabIndex
:
0
};
};
},
},
computed
:
{
computed
:
{
...
mapGetters
([
'userInfo'
])
...
mapGetters
([
'userInfo'
]),
backImages
()
{
return
[
baseUrl
+
'jizhanghaibao1.png'
,
baseUrl
+
'jizhanghaibao2.png'
,
baseUrl
+
'jizhanghaibao3.png'
,
baseUrl
+
'jizhanghaibao4.png'
,
baseUrl
+
'jizhanghaibao5.png'
]
},
},
watch
:
{
imageIndex
(
val
)
{
this
.
tabIndex
=
Number
(
val
||
0
)
},
},
},
methods
:
{
methods
:
{
open
()
{
open
()
{
...
@@ -55,7 +92,13 @@ export default {
...
@@ -55,7 +92,13 @@ export default {
},
},
handleClickSure
()
{
handleClickSure
()
{
this
.
$emit
(
'save'
);
this
.
$emit
(
'save'
);
}
},
transition
({
detail
:
{
dx
}
})
{
},
animationfinish
({
detail
:
{
current
}
})
{
this
.
tabIndex
=
current
this
.
$emit
(
'update:imageIndex'
,
current
)
},
}
}
};
};
</
script
>
</
script
>
...
@@ -64,37 +107,38 @@ export default {
...
@@ -64,37 +107,38 @@ export default {
.custom-popup
{
.custom-popup
{
position
:
relative
;
position
:
relative
;
.apply-refuse
{
.apply-refuse
{
background-color
:
$default-color
;
//
background-color: $default-color;
background
:
url('https://static-book.kaying.cc/icon/mine/jizhangbaocunhaibao.jpg')
no-repeat
;
//
background: url('https://static-book.kaying.cc/icon/mine/jizhangbaocunhaibao.jpg') no-repeat;
background-position
:
center
top
;
//
background-position: center top;
background-size
:
100%
;
background-size
:
100%
;
width
:
62
0rpx
;
width
:
56
0rpx
;
height
:
10
1
0rpx
;
height
:
10
0
0rpx
;
border-radius
:
12
rpx
;
border-radius
:
24
rpx
;
padding
:
52rpx
36rpx
;
//
padding: 52rpx 36rpx;
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
.
close
-view
{
.
back
-view
{
position
:
absolut
e
;
position
:
relativ
e
;
right
:
36
rpx
;
border-radius
:
24
rpx
;
top
:
20rpx
;
overflow
:
hidden
;
font-size
:
32rpx
;
width
:
100%
;
width
:
88rpx
;
height
:
100%
;
height
:
88rpx
;
.swiper-box
{
padding-right
:
8rpx
;
.swiper-item
{
line-height
:
88rpx
;
position
:
relative
;
text-align
:
right
;
border-radius
:
24rpx
;
}
overflow
:
hidden
;
.user
{
.user
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
position
:
absolute
;
top
:
32rpx
;
left
:
36rpx
;
.user-avatar
{
.user-avatar
{
width
:
44
rpx
;
width
:
40
rpx
;
height
:
44
rpx
;
height
:
40
rpx
;
border-radius
:
50%
;
border-radius
:
50%
;
background
:
#ffffff
;
background
:
#ffffff
;
padding
:
4rpx
;
display
:
flex
;
display
:
flex
;
margin-right
:
12rpx
;
margin-right
:
12rpx
;
}
}
...
@@ -105,24 +149,71 @@ export default {
...
@@ -105,24 +149,71 @@ export default {
.content-view
{
.content-view
{
position
:
absolute
;
position
:
absolute
;
top
:
550rpx
;
bottom
:
22rpx
;
left
:
50%
;
right
:
40rpx
;
transform
:
translateX
(
-50%
);
width
:
120rpx
;
width
:
192rpx
;
height
:
120rpx
;
height
:
192rpx
;
background
:
#ffffff
;
background
:
#ffffff
;
border
:
2rpx
solid
$default-color
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
.qrcode-view
{
.qrcode-view
{
width
:
160rpx
;
width
:
100rpx
;
height
:
160rpx
;
height
:
100rpx
;
display
:
flex
;
}
}
.swiper-content
{
position
:
relative
;
width
:
100%
;
height
:
100%
;
.swiper-back-image
{
width
:
100%
;
height
:
100%
;
}
}
}
}
}
.dot-view
{
position
:
absolute
;
bottom
:
0rpx
;
left
:
0
;
right
:
0
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
height
:
56rpx
;
.u-indicator-item-round
{
width
:
14rpx
;
height
:
14rpx
;
margin
:
0
6rpx
;
border-radius
:
20rpx
;
transition
:
all
0
.5s
;
background-color
:
rgba
(
255
,
255
,
255
,
0
.45
);
}
.u-indicator-item-round-active
{
height
:
14rpx
;
margin
:
0
6rpx
;
border-radius
:
20rpx
;
transition
:
all
0
.5s
;
width
:
34rpx
;
background-color
:
rgba
(
255
,
255
,
255
,
1
);
}
}
}
}
.close-view
{
position
:
absolute
;
right
:
0rpx
;
top
:
0rpx
;
font-size
:
32rpx
;
width
:
88rpx
;
height
:
88rpx
;
padding-right
:
8rpx
;
line-height
:
88rpx
;
text-align
:
center
;
}
}
}
.btn
{
.btn
{
position
:
absolute
;
position
:
absolute
;
...
...
pages/mine/share/index.vue
View file @
155f7310
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
</view>
</view>
<u-toast
ref=
"uToast"
/>
<u-toast
ref=
"uToast"
/>
<QRCodeView
:url=
"shareUrl"
@
canvas=
"handleCanvas"
/>
<QRCodeView
:url=
"shareUrl"
@
canvas=
"handleCanvas"
/>
<SavePosterPopup
ref=
"save-poster-popup"
:qrcode=
"qrcode"
@
save=
"handleClickSave"
></SavePosterPopup>
<SavePosterPopup
ref=
"save-poster-popup"
:
imageIndex
.
sync=
"imageIndex"
:
qrcode=
"qrcode"
@
save=
"handleClickSave"
></SavePosterPopup>
<l-painter
:board=
"poster"
isCanvasToTempFilePath
@
success=
"handleCanvasSuccess"
@
fail=
"handleCanvasFail"
custom-style=
"position: fixed; left: 400%"
/>
<l-painter
:board=
"poster"
isCanvasToTempFilePath
@
success=
"handleCanvasSuccess"
@
fail=
"handleCanvasFail"
custom-style=
"position: fixed; left: 400%"
/>
</view>
</view>
</
template
>
</
template
>
...
@@ -40,7 +40,7 @@ import NavbarRight from '@/components/navbar-right';
...
@@ -40,7 +40,7 @@ import NavbarRight from '@/components/navbar-right';
import
QRCodeView
from
'@/components/qr-code-view'
;
import
QRCodeView
from
'@/components/qr-code-view'
;
import
SavePosterPopup
from
'./components/save-poster-popup.vue'
;
import
SavePosterPopup
from
'./components/save-poster-popup.vue'
;
import
{
mapGetters
}
from
'vuex'
;
import
{
mapGetters
}
from
'vuex'
;
import
{
index_share_url
,
wxMiniId
,
webUrl
,
mineBaseUrl
}
from
'@/utils/config.js'
;
import
{
index_share_url
,
wxMiniId
,
webUrl
,
mineBaseUrl
,
baseUrl
}
from
'@/utils/config.js'
;
import
{
shareInvited
}
from
'@/api/mine/share.js'
;
import
{
shareInvited
}
from
'@/api/mine/share.js'
;
import
{
getSetting
}
from
'@/utils/common.js'
;
import
{
getSetting
}
from
'@/utils/common.js'
;
...
@@ -58,7 +58,8 @@ export default {
...
@@ -58,7 +58,8 @@ export default {
poster
:
{},
poster
:
{},
currentBlock
:
()
=>
{},
currentBlock
:
()
=>
{},
billImageUrl
:
''
,
billImageUrl
:
''
,
customerId
:
''
customerId
:
''
,
imageIndex
:
0
};
};
},
},
computed
:
{
computed
:
{
...
@@ -106,7 +107,10 @@ export default {
...
@@ -106,7 +107,10 @@ export default {
},
},
receive
()
{
receive
()
{
return
this
.
customerId
!=
this
.
userInfo
.
id
;
return
this
.
customerId
!=
this
.
userInfo
.
id
;
}
},
backImages
()
{
return
[
baseUrl
+
'jizhanghaibao1.png'
,
baseUrl
+
'jizhanghaibao2.png'
,
baseUrl
+
'jizhanghaibao3.png'
,
baseUrl
+
'jizhanghaibao4.png'
,
baseUrl
+
'jizhanghaibao5.png'
]
},
},
},
onLoad
(
options
)
{},
onLoad
(
options
)
{},
onUnload
()
{},
onUnload
()
{},
...
@@ -209,21 +213,21 @@ export default {
...
@@ -209,21 +213,21 @@ export default {
this
.
poster
=
{
this
.
poster
=
{
css
:
{
css
:
{
width
:
'750rpx'
,
width
:
'750rpx'
,
height
:
'1
22
0rpx'
,
height
:
'1
34
0rpx'
,
backgroundImage
:
'url(https://static-book.kaying.cc/icon/mine/jizhangbaocunhaibao.jpg)'
,
backgroundImage
:
`url(
${
this
.
backImages
[
this
.
imageIndex
]}
)`
,
'object-fit'
:
'fill'
'object-fit'
:
'fill'
},
},
views
:
[
views
:
[
{
{
type
:
'view'
,
type
:
'view'
,
css
:
{
css
:
{
marginTop
:
'
60
rpx'
,
marginTop
:
'
56
rpx'
,
marginLeft
:
'
38
rpx'
,
marginLeft
:
'
52
rpx'
,
display
:
'flex'
,
display
:
'flex'
,
'align-items'
:
'center'
,
'align-items'
:
'center'
,
fontSize
:
'24rpx'
,
fontSize
:
'24rpx'
,
color
:
'#333333'
,
color
:
'#333333'
,
'line-height'
:
'
44
rpx'
'line-height'
:
'
36
rpx'
},
},
views
:
[
views
:
[
{
{
...
@@ -249,11 +253,10 @@ export default {
...
@@ -249,11 +253,10 @@ export default {
{
{
type
:
'view'
,
type
:
'view'
,
css
:
{
css
:
{
margin
:
'
600rpx auto 0 auto
'
,
margin
:
'
1050rpx auto 0 540rpx
'
,
width
:
'1
92
rpx'
,
width
:
'1
56
rpx'
,
height
:
'1
92
rpx'
,
height
:
'1
56
rpx'
,
background
:
'#FFFFFF'
,
background
:
'#FFFFFF'
,
border
:
'2rpx solid #02A074'
,
'border-radius'
:
'16rpx'
,
'border-radius'
:
'16rpx'
,
display
:
'flex'
,
display
:
'flex'
,
'align-items'
:
'center'
,
'align-items'
:
'center'
,
...
@@ -264,8 +267,8 @@ export default {
...
@@ -264,8 +267,8 @@ export default {
type
:
'image'
,
type
:
'image'
,
src
:
this
.
qrcode
,
src
:
this
.
qrcode
,
css
:
{
css
:
{
width
:
'1
6
0rpx'
,
width
:
'1
3
0rpx'
,
height
:
'1
6
0rpx'
,
height
:
'1
3
0rpx'
,
textAlign
:
'center'
textAlign
:
'center'
}
}
}
}
...
...
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