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
cda4a970
Commit
cda4a970
authored
Aug 22, 2022
by
刘文虎
Browse files
Options
Browse Files
Download
Plain Diff
合并
parents
d50b56c0
e17eec7b
Pipeline
#3308
canceled with stages
Changes
32
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
163 additions
and
22 deletions
+163
-22
billing-daily.vue
components/billing-daily/billing-daily.vue
+2
-1
index.vue
components/cell-card-back/index.vue
+6
-1
index.vue
components/cell-card-swiper/index.vue
+12
-0
index.vue
components/cell-card/index.vue
+5
-0
mid-popup.vue
components/mid-popup/mid-popup.vue
+2
-1
index.vue
components/pop-normal/index.vue
+1
-0
bill-detail.vue
pages/bill/bill-detail/bill-detail.vue
+2
-0
scroll-box.vue
pages/bill/bill-statistics/components/scroll-box.vue
+1
-0
choose-category - 副本.vue
...ill/quoted-price/choose-category/choose-category - 副本.vue
+1
-0
choose-category.vue
pages/bill/quoted-price/choose-category/choose-category.vue
+1
-0
quoted-price.vue
pages/bill/quoted-price/quoted-price.vue
+1
-0
index.vue
pages/card/index.vue
+18
-4
scroll-box.vue
pages/index/bill/components/scroll-box.vue
+1
-0
index.vue
pages/index/index.vue
+4
-1
my-package.vue
pages/index/mine/components/my-package.vue
+1
-0
user-header.vue
pages/index/mine/components/user-header.vue
+3
-0
user-total.vue
pages/index/mine/components/user-total.vue
+1
-0
vip-center.vue
pages/index/mine/components/vip-center.vue
+1
-0
plan-view.vue
pages/index/schedule/components/plan-view.vue
+2
-0
login.vue
pages/login/login.vue
+2
-0
quick-login - 副本.vue
pages/login/quick-login/quick-login - 副本.vue
+1
-0
quick-login.vue
pages/login/quick-login/quick-login.vue
+1
-0
show.vue
pages/maintain-bill/show.vue
+26
-6
about.vue
pages/mine/about/about.vue
+1
-0
cd-key.vue
pages/mine/cd-key/cd-key.vue
+1
-0
package-card.vue
pages/mine/import-export/components/package-card.vue
+1
-0
pay - 副本.vue
pages/mine/pay/pay - 副本.vue
+3
-0
pay.vue
pages/mine/pay/pay.vue
+3
-0
create-timed.vue
pages/mine/timed/create-timed/create-timed.vue
+1
-0
schedule-detail.vue
pages/schedule/schedule-detail/schedule-detail.vue
+1
-0
common.js
utils/common.js
+51
-2
request.js
utils/request.js
+6
-6
No files found.
components/billing-daily/billing-daily.vue
View file @
cda4a970
...
...
@@ -378,7 +378,8 @@ export default {
billingCategoryChange
(
item
)
{
if
(
item
.
id
===
'setting'
)
{
uni
.
navigateTo
({
url
:
'/pages/mine/payments-setting/payments-setting'
url
:
'/pages/mine/payments-setting/payments-setting'
,
animationType
:
'pop-in'
});
uni
.
$on
(
this
.
notification
,
res
=>
{
this
.
getBillTypeOptions
();
...
...
components/cell-card-back/index.vue
View file @
cda4a970
...
...
@@ -121,7 +121,7 @@ export default {
},
methods
:
{
handleCanvasSuccessSave
(
url
)
{
handleCanvasSuccessSave
(
url
)
{
this
.
saveUrl
=
url
this
.
currentBlock
(
url
)
},
...
...
@@ -138,6 +138,11 @@ export default {
})
},
fail
:
(
err
)
=>
{
// #ifdef APP-PLUS
if
(
err
.
errCode
==
2
)
{
return
}
// #endif
var
str
=
err
&&
err
.
errMsg
if
(
str
&&
str
.
indexOf
(
'cancel'
)
!=
-
1
)
{
str
=
'取消保存'
...
...
components/cell-card-swiper/index.vue
View file @
cda4a970
...
...
@@ -43,6 +43,8 @@
<
script
>
import
Card
from
'@/components/cell-card'
import
CardBack
from
'@/components/cell-card-back'
import
{
getSetting
}
from
'@/utils/common.js'
export
default
{
components
:
{
Card
,
...
...
@@ -80,6 +82,16 @@ export default {
this
.
$emit
(
'update'
,
url
)
},
handleCanvasBack
(
res
)
{
console
.
log
(
'------handleCanvasBack------'
,
res
)
// #ifdef APP-PLUS
if
(
res
.
errCode
==
2
)
{
uni
.
hideLoading
()
getSetting
(
'photoLibrary'
,
'检测到您没打开保存到相册功能权限,是否去设置打开?'
,
(
res
)
=>
{
this
.
$refs
.
cardBack
.
saveImage
()
})
return
}
// #endif
this
.
$refs
.
card
.
saveImage
()
},
handleChange
(
event
)
{
...
...
components/cell-card/index.vue
View file @
cda4a970
...
...
@@ -1050,6 +1050,11 @@ export default {
})
},
fail
:
(
err
)
=>
{
// #ifdef APP-PLUS
if
(
err
.
errCode
==
2
)
{
return
}
// #endif
var
str
=
err
&&
err
.
errMsg
if
(
str
&&
str
.
indexOf
(
'cancel'
)
!=
-
1
)
{
str
=
'取消保存'
...
...
components/mid-popup/mid-popup.vue
View file @
cda4a970
...
...
@@ -64,7 +64,8 @@ export default {
}
else
{
if
(
item
.
path
)
{
uni
.
navigateTo
({
url
:
`
${
item
.
path
}
`
url
:
`
${
item
.
path
}
`
,
animationType
:
'pop-in'
});
}
}
...
...
components/pop-normal/index.vue
View file @
cda4a970
...
...
@@ -177,6 +177,7 @@ export default {
// 去开通会员
uni
.
navigateTo
({
url
:
'pages/mine/pay/pay'
,
animationType
:
'pop-in'
,
})
}
},
...
...
pages/bill/bill-detail/bill-detail.vue
View file @
cda4a970
...
...
@@ -136,6 +136,7 @@ export default {
toEdit
()
{
if
(
this
.
detail
.
repairId
)
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
`/pages/maintain-bill/create?billId=
${
this
.
detail
.
repairId
}
`
});
}
else
{
...
...
@@ -144,6 +145,7 @@ export default {
},
toRepair
(){
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
`/pages/maintain-bill/detail?billId=
${
this
.
detail
.
repairId
}
`
});
},
...
...
pages/bill/bill-statistics/components/scroll-box.vue
View file @
cda4a970
...
...
@@ -100,6 +100,7 @@ export default {
},
handleSelectCell
(
id
)
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
`/pages/bill/bill-detail/bill-detail?id=
${
id
}
`
});
},
...
...
pages/bill/quoted-price/choose-category/choose-category - 副本.vue
View file @
cda4a970
...
...
@@ -33,6 +33,7 @@ export default {
methods
:
{
next
(
item
)
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
`./choose-category/choose-category?id=
${
item
.
id
}
`
});
},
...
...
pages/bill/quoted-price/choose-category/choose-category.vue
View file @
cda4a970
...
...
@@ -97,6 +97,7 @@
toPrice
(
item
,
item2
){
let
{
prodCode
}
=
item2
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
`/pages/bill/quoted-price/price/price?serviceType=
${
this
.
serviceType
}
&brandCode=
${
this
.
brandCode
}
&prodCode=
${
prodCode
}
`
})
},
...
...
pages/bill/quoted-price/quoted-price.vue
View file @
cda4a970
...
...
@@ -35,6 +35,7 @@ export default {
methods
:
{
next
(
item
)
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
`./choose-category/choose-category?serviceType=
${
item
.
value
}
`
});
},
...
...
pages/card/index.vue
View file @
cda4a970
...
...
@@ -256,9 +256,11 @@ export default {
.
then
((
res
)
=>
{
if
(
res
.
data
)
{
this
.
info
=
res
.
data
this
.
$nextTick
(()
=>
{
this
.
$refs
.
card
.
updateImage
()
})
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
card
.
updateImage
()
})
},
500
)
}
this
.
loadingCard
=
false
})
...
...
@@ -326,9 +328,21 @@ export default {
},
})
}
else
if
(
index
==
1
)
{
// #ifdef APP-PLUS
// getSetting('photoLibrary', '检测到您没打开保存到相册功能权限,是否去设置打开?', (res)=> {
this
.
saveImage
()
// })
// #endif
// #ifdef MP-WEIXIN
getSetting
(
'scope.writePhotosAlbum'
,
'检测到您没打开保存到相册功能权限,是否去设置打开?'
,
(
res
)
=>
{
this
.
saveImage
()
})
// #endif
// #ifdef MP-TOUTIAO
getSetting
(
'scope.album'
,
'检测到您没打开保存到相册功能权限,是否去设置打开?'
,
(
res
)
=>
{
this
.
saveImage
()
})
// #endif
}
else
if
(
index
==
2
)
{
}
},
...
...
@@ -350,7 +364,7 @@ export default {
},
handleCanvas
(
res
)
{
uni
.
hideLoading
()
console
.
log
(
'------保存
成功
-------'
,
res
)
console
.
log
(
'------保存
结果
-------'
,
res
)
},
handleUpdate
(
url
)
{
this
.
shareImage
=
url
...
...
pages/index/bill/components/scroll-box.vue
View file @
cda4a970
...
...
@@ -115,6 +115,7 @@ export default {
},
handleSelectCell
(
id
)
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
`/pages/bill/bill-detail/bill-detail?id=
${
id
}
`
});
},
...
...
pages/index/index.vue
View file @
cda4a970
...
...
@@ -422,6 +422,7 @@ export default {
}
else
{
console
.
log
(
"navigateTo"
)
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
item
.
path
});
}
...
...
@@ -429,11 +430,13 @@ export default {
handleClickOperate
(
path
)
{
if
(
!
this
.
checkVip
())
return
;
uni
.
navigateTo
({
url
:
path
url
:
path
,
animationType
:
'pop-in'
,
});
},
handleSelectCell
(
id
)
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
`/pages/bill/bill-detail/bill-detail?id=
${
id
}
`
});
},
...
...
pages/index/mine/components/my-package.vue
View file @
cda4a970
...
...
@@ -52,6 +52,7 @@ export default {
}
}
else
if
(
item
.
path
)
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
item
.
path
});
}
...
...
pages/index/mine/components/user-header.vue
View file @
cda4a970
...
...
@@ -65,6 +65,7 @@ export default {
toLogin
()
{
if
(
!
this
.
userInfo
.
id
)
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/login/login'
});
}
...
...
@@ -72,12 +73,14 @@ export default {
toUserSetting
(){
if
(
this
.
userInfo
.
id
)
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/mine/user-setting/user-setting'
});
}
},
toPay
(){
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/mine/pay/pay'
})
}
...
...
pages/index/mine/components/user-total.vue
View file @
cda4a970
...
...
@@ -38,6 +38,7 @@ export default {
// this.$emit('hanldClick', item);
if
(
item
.
path
){
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
item
.
path
})
}
...
...
pages/index/mine/components/vip-center.vue
View file @
cda4a970
...
...
@@ -34,6 +34,7 @@ export default {
methods
:{
toPay
(){
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/mine/pay/pay'
})
}
...
...
pages/index/schedule/components/plan-view.vue
View file @
cda4a970
...
...
@@ -78,6 +78,7 @@ export default {
},
toAdd
()
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'pages/schedule/create-schedule/create-schedule'
});
},
...
...
@@ -112,6 +113,7 @@ export default {
},
handleClick
(
item
)
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
`/pages/schedule/schedule-detail/schedule-detail?id=
${
item
.
id
}
`
});
}
...
...
pages/login/login.vue
View file @
cda4a970
...
...
@@ -77,6 +77,7 @@ export default {
methods
:
{
handleClick
(
type
)
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/login/agreement/agreement?type='
+
type
});
},
...
...
@@ -101,6 +102,7 @@ export default {
});
}
else
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'./quick-login/quick-login'
});
}
...
...
pages/login/quick-login/quick-login - 副本.vue
View file @
cda4a970
...
...
@@ -412,6 +412,7 @@ export default {
handleClick
(
e
)
{
var
type
=
e
.
currentTarget
.
dataset
.
type
;
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/login/agreement?type='
+
type
});
}
...
...
pages/login/quick-login/quick-login.vue
View file @
cda4a970
...
...
@@ -409,6 +409,7 @@ export default {
handleClick
(
e
)
{
var
type
=
e
.
currentTarget
.
dataset
.
type
;
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/login/agreement?type='
+
type
});
}
...
...
pages/maintain-bill/show.vue
View file @
cda4a970
...
...
@@ -592,6 +592,15 @@ export default {
})
},
fail
:
(
err
)
=>
{
// #ifdef APP-PLUS
if
(
err
.
errCode
==
2
)
{
uni
.
hideLoading
()
getSetting
(
'photoLibrary'
,
'检测到您没打开保存到相册功能权限,是否去设置打开?'
,
(
res
)
=>
{
this
.
handleClickSave
()
})
return
}
// #endif
var
str
=
err
&&
err
.
errMsg
if
(
str
&&
str
.
indexOf
(
'cancel'
)
!=
-
1
)
{
str
=
'取消保存'
...
...
@@ -608,10 +617,23 @@ export default {
},
})
}
getSetting
(
'scope.writePhotosAlbum'
,
'检测到您没打开保存到相册功能权限,是否去设置打开?'
,
(
res
)
=>
{
// #ifdef APP-PLUS
// getSetting('photoLibrary', '检测到您没打开保存到相册功能权限,是否去设置打开?', (res)=> {
this
.
saveBillImage
()
// })
// #endif
// #ifdef MP-WEIXIN
getSetting
(
'scope.writePhotosAlbum'
,
'检测到您没打开保存到相册功能权限,是否去设置打开?'
,
(
res
)
=>
{
this
.
saveBillImage
()
})
// #endif
// #ifdef MP-TOUTIAO
getSetting
(
'scope.album'
,
'检测到您没打开保存到相册功能权限,是否去设置打开?'
,
(
res
)
=>
{
this
.
saveBillImage
()
})
// #endif
},
saveBillImage
()
{
uni
.
showLoading
({
title
:
'保存中'
,
})
...
...
@@ -1132,8 +1154,6 @@ export default {
],
}
}
}
)
},
handleClickScan
()
{
this
.
visible
=
true
...
...
pages/mine/about/about.vue
View file @
cda4a970
...
...
@@ -42,6 +42,7 @@ export default {
methods
:
{
handleClick
(
type
)
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/login/agreement/agreement?type='
+
type
});
},
...
...
pages/mine/cd-key/cd-key.vue
View file @
cda4a970
...
...
@@ -349,6 +349,7 @@ export default {
handleService
()
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'../mine/service/service'
});
}
...
...
pages/mine/import-export/components/package-card.vue
View file @
cda4a970
...
...
@@ -33,6 +33,7 @@ export default {
// this.$emit('hanldClick', item);
if
(
item
.
path
){
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
item
.
path
})
}
...
...
pages/mine/pay/pay - 副本.vue
View file @
cda4a970
...
...
@@ -398,6 +398,7 @@ export default {
});
setTimeout
(
function
()
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/login/login'
})
},
1500
);
...
...
@@ -554,12 +555,14 @@ export default {
handleService
()
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/mine/service/service'
});
},
handleExchange
()
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/mine/cd-key/cd-key'
});
}
...
...
pages/mine/pay/pay.vue
View file @
cda4a970
...
...
@@ -413,6 +413,7 @@ export default {
});
setTimeout
(
function
()
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/login/login'
});
},
1500
);
...
...
@@ -570,12 +571,14 @@ export default {
handleService
()
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/mine/service/service'
});
},
handleExchange
()
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/mine/cd-key/cd-key'
});
}
...
...
pages/mine/timed/create-timed/create-timed.vue
View file @
cda4a970
...
...
@@ -227,6 +227,7 @@ export default {
},
toChooseType
()
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/mine/timed/choose-type/choose-type'
});
uni
.
$once
(
this
.
notification
,
res
=>
{
...
...
pages/schedule/schedule-detail/schedule-detail.vue
View file @
cda4a970
...
...
@@ -115,6 +115,7 @@ export default {
},
toEdit
()
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
`/pages/schedule/create-schedule/create-schedule?id=
${
this
.
id
}
`
});
},
...
...
utils/common.js
View file @
cda4a970
...
...
@@ -5,6 +5,9 @@ import {
userinfo
,
headName
,
}
from
"./config.js"
import
permision
from
"@/js_sdk/wa-permission/permission.js"
export
function
setToken
(
data
)
{
uni
.
setStorageSync
(
token
,
data
);
setTimetamp
()
...
...
@@ -138,6 +141,7 @@ export function checkLoginAndVip(callback) {
success
()
{
setTimeout
(()
=>
{
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
'/pages/login/login'
})
},
1500
)
...
...
@@ -219,9 +223,54 @@ export function checkCodeTimetamp() {
}
return
false
;
}
// 查询权限
export
function
getSetting
(
scope
,
text
,
block
,
errBlock
=
()
=>
{})
{
// #ifdef APP-PLUS
if
(
uni
.
getSystemInfoSync
().
platform
===
"ios"
)
{
var
result
=
permision
.
judgeIosPermission
(
scope
)
console
.
log
(
'------------------'
,
result
)
if
(
result
)
{
block
()
}
else
{
uni
.
showModal
({
content
:
text
,
confirmText
:
'去设置'
,
cancelText
:
'取消'
,
showCancel
:
true
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
permision
.
gotoAppPermissionSetting
()
}
else
{
errBlock
(
res
)
}
},
})
}
}
else
{
var
result
=
requestAndroidPermission
(
scope
)
// result == 1 "已获得授权"
// result == 0 "未获得授权"
if
(
result
==
1
||
result
==
0
)
{
block
()
}
else
{
uni
.
showModal
({
content
:
text
,
confirmText
:
'去设置'
,
cancelText
:
'取消'
,
showCancel
:
true
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
permision
.
gotoAppPermissionSetting
()
}
else
{
errBlock
(
res
)
}
},
})
}
}
// #endif
// #ifdef MP
uni
.
authorize
({
scope
:
scope
,
success
:
()
=>
{
...
...
@@ -257,9 +306,9 @@ export function getSetting(scope, text, block, errBlock = () => {}) {
})
},
})
// #endif
}
// 自定义filter
export
function
myFilter
(
value
,
options
)
{
if
(
options
&&
options
instanceof
Array
)
{
...
...
utils/request.js
View file @
cda4a970
...
...
@@ -78,14 +78,14 @@ function refreshTokenRequst() {
console
.
log
(
"subscribers"
,
subscribers
)
console
.
log
(
"登陆已过期"
)
console
.
log
(
err
)
log
.
info
(
"refreshTokenRequst=>params: "
+
JSON
.
stringify
(
header
))
log
.
info
(
"refreshTokenRequst=>err: "
+
JSON
.
stringify
(
err
))
showToast
(
"登陆已过期"
,
true
)
log
.
error
(
"refreshTokenRequst=>params: "
,
header
)
log
.
error
(
"refreshTokenRequst=>err: "
,
err
)
uni
.
navigateTo
({
animationType
:
'pop-in'
,
url
:
"/pages/login/login"
,
})
setTimeout
(()
=>
{
store
.
dispatch
(
"LogOut"
)
uni
.
navigateTo
({
url
:
"/pages/login/login"
,
})
isRefreshing
=
true
;
// 刷新锁
refreshLock
=
false
...
...
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