Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 685aeed2
authored
Apr 25, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
flx 修复BUG
1 parent
bba50b52
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
99 additions
and
58 deletions
api/module/userApi.js
env.js
pages/detail/components/ToolBox.vue
pages/detail/components/payPop.vue
pages/detail/detail.vue
pages/home/components/RecordList.vue
pages/home/components/SettingBox.vue
pages/home/home.vue
store/modules/user.js
api/module/userApi.js
View file @
685aeed
...
@@ -2,7 +2,7 @@ import http from "../request/http";
...
@@ -2,7 +2,7 @@ import http from "../request/http";
module
.
exports
=
{
module
.
exports
=
{
/**获取短信 */
/**获取短信 */
getSmsCode
(
data
=
{})
{
getSmsCode
(
data
=
{})
{
data
.
projectName
=
"boutique"
;
data
.
projectName
=
"boutique"
;
return
http
.
fetch
(
"dj.api.smartcarlife.sms.get.code"
,
data
);
return
http
.
fetch
(
"dj.api.smartcarlife.sms.get.code"
,
data
);
},
},
...
@@ -14,12 +14,12 @@ module.exports = {
...
@@ -14,12 +14,12 @@ module.exports = {
return
http
.
fetch
(
'dj.api.smartcarlife.sms.applogin'
,
data
)
return
http
.
fetch
(
'dj.api.smartcarlife.sms.applogin'
,
data
)
},
},
/**免登 */
/**免登 */
autoLogin
(
data
=
{})
{
autoLogin
(
data
=
{})
{
data
.
projectName
=
"boutique"
;
data
.
projectName
=
"boutique"
;
return
http
.
fetch
(
"dj.api.smartcarlife.sms.noSignIn.login"
,
data
);
return
http
.
fetch
(
"dj.api.smartcarlife.sms.noSignIn.login"
,
data
);
},
},
// 获取园区店下的4s店
// 获取园区店下的4s店
getSceneMerchantRefStoreList
(
data
)
{
getSceneMerchantRefStoreList
(
data
)
{
data
.
projectName
=
"boutique"
;
data
.
projectName
=
"boutique"
;
return
http
.
post
({
return
http
.
post
({
method
:
"dj.api.scenemerchantref.query4SRefByYqShopByLogin"
,
method
:
"dj.api.scenemerchantref.query4SRefByYqShopByLogin"
,
...
@@ -27,12 +27,12 @@ module.exports = {
...
@@ -27,12 +27,12 @@ module.exports = {
});
});
},
},
/**获取帐号列表 */
/**获取帐号列表 */
getListSelectAccount
(
data
=
{})
{
getListSelectAccount
(
data
=
{})
{
data
.
projectName
=
"boutique"
;
data
.
projectName
=
"boutique"
;
return
http
.
fetch
(
"dj.api.smartcarlife.workWechat.listSelectAccount"
,
data
);
return
http
.
fetch
(
"dj.api.smartcarlife.workWechat.listSelectAccount"
,
data
);
},
},
/**选择帐号登陆 */
/**选择帐号登陆 */
selectAccountLogin
(
data
)
{
selectAccountLogin
(
data
)
{
data
.
projectName
=
"boutique"
;
data
.
projectName
=
"boutique"
;
return
http
.
fetch
(
return
http
.
fetch
(
"dj.api.smartcarlife.workWechat.selectAccountLogin"
,
"dj.api.smartcarlife.workWechat.selectAccountLogin"
,
...
@@ -40,7 +40,7 @@ module.exports = {
...
@@ -40,7 +40,7 @@ module.exports = {
);
);
},
},
// 选择4s店和场景
// 选择4s店和场景
selectMerchantScene
(
data
)
{
selectMerchantScene
(
data
)
{
data
.
projectName
=
"boutique"
;
data
.
projectName
=
"boutique"
;
return
http
.
fetch
(
return
http
.
fetch
(
"dj.api.smartcarlife.selectMerchantScene"
,
"dj.api.smartcarlife.selectMerchantScene"
,
...
@@ -48,11 +48,16 @@ module.exports = {
...
@@ -48,11 +48,16 @@ module.exports = {
);
);
},
},
// 获取园区店开通的场景入口
// 获取园区店开通的场景入口
getYqMerchantSceneConfigAPI
(
data
)
{
getYqMerchantSceneConfigAPI
(
data
)
{
data
.
projectName
=
"boutique"
;
data
.
projectName
=
"boutique"
;
return
http
.
post
({
return
http
.
post
({
method
:
"dj.api.smartcarlife.select.openScene.info"
,
method
:
"dj.api.smartcarlife.select.openScene.info"
,
...
data
,
...
data
,
});
});
},
},
/**退出*/
logout
(
data
=
{})
{
data
.
projectName
=
'boutique'
return
http
.
fetch
(
'dj.api.smartcarlife.logout'
,
data
);
},
};
};
env.js
View file @
685aeed
const
target
=
[
"ip"
,
"dev"
,
"uat"
,
"prod"
,
"beta"
];
const
target
=
[
"ip"
,
"dev"
,
"uat"
,
"prod"
,
"beta"
];
const
index
=
1
;
const
index
=
2
;
/**
/**
*
*
0本地
0本地
...
...
pages/detail/components/ToolBox.vue
View file @
685aeed
...
@@ -60,7 +60,7 @@ export default {
...
@@ -60,7 +60,7 @@ export default {
type
:
String
,
type
:
String
,
data
:
Array
,
data
:
Array
,
id
:
[
String
,
Number
],
id
:
[
String
,
Number
],
showPayBtn
:
Object
showPayBtn
:
Boolean
},
},
data
()
{
data
()
{
return
{
return
{
...
...
pages/detail/components/payPop.vue
View file @
685aeed
...
@@ -107,40 +107,34 @@ const ACCOUT_LIST = [
...
@@ -107,40 +107,34 @@ const ACCOUT_LIST = [
export
default
{
export
default
{
name
:
"payPop"
,
name
:
"payPop"
,
props
:
{
props
:
{
payInfo
:
Object
,
// 支付信息
accountInfo
:
Object
// 对公账户信息
},
},
data
()
{
data
()
{
return
{
return
{
payActive
:
1
,
payActive
:
1
,
paymentType
:
[],
paymentType
:
[],
accountList
:
ACCOUT_LIST
,
accountList
:
ACCOUT_LIST
,
title
:
''
title
:
''
,
accountInfo
:
{},
payInfo
:
{}
};
};
},
},
computed
:
{
watchPayInfo
()
{
return
this
.
$store
.
state
.
user
.
paymentType
},
},
watch
:
{
watch
:
{
payInfo
(
n
)
{
watchPayInfo
:
{
if
(
n
)
{
immediate
:
true
,
let
item
=
{
handler
(
newval
)
{
name
:
"扫码支付"
,
this
.
paymentType
=
newval
type
:
1
,
if
(
newval
.
length
)
{
title
:
'付款二维码'
this
.
payInfo
=
newval
.
find
(
i
=>
i
.
paymentType
==
1
)
||
{}
this
.
accountInfo
=
newval
.
find
(
i
=>
i
.
paymentType
==
2
)
||
{}
this
.
handleSwitchTab
(
newval
[
0
])
}
}
this
.
paymentType
.
push
(
item
)
this
.
handleSwitchTab
(
item
)
}
}
},
},
accountInfo
(
n
)
{
if
(
n
)
{
let
item
=
{
name
:
"对公账户"
,
type
:
2
,
title
:
'付款方式'
}
this
.
paymentType
.
push
(
item
)
if
(
this
.
paymentType
.
length
==
1
)
this
.
handleSwitchTab
(
item
)
}
}
},
},
methods
:
{
methods
:
{
// 切换tab
// 切换tab
...
@@ -221,8 +215,8 @@ export default {
...
@@ -221,8 +215,8 @@ export default {
border-radius
:
0
48
rpx
48
rpx
0
;
border-radius
:
0
48
rpx
48
rpx
0
;
}
}
}
}
.single
{
.single
{
border-radius
:
48
rpx
!important
;
border-radius
:
48
rpx
!important
;
}
}
}
}
.payment-content
{
.payment-content
{
...
...
pages/detail/detail.vue
View file @
685aeed
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
@
finish=
"open"
@
finish=
"open"
:id=
"id"
:id=
"id"
@
toPay=
"toPay"
@
toPay=
"toPay"
:showPayBtn=
"
payInfo || accountInfo
"
:showPayBtn=
"
showPayBtn
"
/>
/>
<view
<view
class=
"pen-box"
class=
"pen-box"
...
@@ -60,8 +60,6 @@
...
@@ -60,8 +60,6 @@
</
template
>
</
template
>
<pay-pop
<pay-pop
ref=
"pay"
ref=
"pay"
:payInfo=
"payInfo"
:accountInfo=
"accountInfo"
></pay-pop>
></pay-pop>
<finish-step
<finish-step
ref=
"stepRef"
ref=
"stepRef"
...
@@ -94,15 +92,13 @@ export default {
...
@@ -94,15 +92,13 @@ export default {
type
:
{
type
:
{
type
:
String
,
type
:
String
,
default
:
'preview'
default
:
'preview'
},
}
payInfo
:
Object
,
// 支付信息
accountInfo
:
Object
// 对公账户信息
},
},
data
()
{
data
()
{
return
{
return
{
drawStatus
:
false
,
drawStatus
:
false
,
finishVisible
:
false
,
finishVisible
:
false
,
showPayBtn
:
false
};
};
},
},
computed
:
{
computed
:
{
...
@@ -111,7 +107,10 @@ export default {
...
@@ -111,7 +107,10 @@ export default {
},
},
penSwitch
()
{
penSwitch
()
{
return
this
.
type
!=
'preview'
&&
this
.
drawStatus
return
this
.
type
!=
'preview'
&&
this
.
drawStatus
}
},
watchPayInfo
()
{
return
this
.
$store
.
state
.
user
.
paymentType
},
},
},
watch
:
{
watch
:
{
watchStatus
:
{
watchStatus
:
{
...
@@ -120,6 +119,12 @@ export default {
...
@@ -120,6 +119,12 @@ export default {
if
(
newval
)
this
.
drawStatus
=
false
if
(
newval
)
this
.
drawStatus
=
false
}
}
},
},
watchPayInfo
:
{
immediate
:
true
,
handler
(
newval
)
{
this
.
showPayBtn
=
newval
.
length
?
true
:
false
}
}
},
},
mounted
()
{
mounted
()
{
...
...
pages/home/components/RecordList.vue
View file @
685aeed
...
@@ -212,8 +212,8 @@ export default {
...
@@ -212,8 +212,8 @@ export default {
}
}
}
,
}
,
formatTime
(
num
)
{
formatTime
(
num
)
{
let
minutes
=
Math
.
floor
(
num
/
60
)
||
'0
0
'
,
let
minutes
=
Math
.
floor
(
num
/
60
)
||
'0'
,
seconds
=
num
%
60
||
'0
0
'
seconds
=
num
%
60
||
'0'
seconds
=
seconds
<
10
?
`0${seconds
}
`
:
seconds
seconds
=
seconds
<
10
?
`0${seconds
}
`
:
seconds
minutes
=
minutes
<
10
?
`0${minutes
}
`
:
minutes
minutes
=
minutes
<
10
?
`0${minutes
}
`
:
minutes
return
{
return
{
...
@@ -295,12 +295,12 @@ export default {
...
@@ -295,12 +295,12 @@ export default {
background
:
#
ffffff
;
background
:
#
ffffff
;
border
-
radius
:
16
rpx
;
border
-
radius
:
16
rpx
;
box
-
sizing
:
border
-
box
;
box
-
sizing
:
border
-
box
;
padding
:
16
rpx
32
rpx
;
padding
:
24
rpx
32
rpx
;
position
:
relative
;
position
:
relative
;
.
status
{
.
status
{
position
:
absolute
;
position
:
absolute
;
top
:
2
2
rpx
;
top
:
2
4
rpx
;
right
:
24
rpx
;
right
:
32
rpx
;
width
:
88
rpx
;
width
:
88
rpx
;
height
:
44
rpx
;
height
:
44
rpx
;
background
:
#
fdece9
;
background
:
#
fdece9
;
...
@@ -318,9 +318,10 @@ export default {
...
@@ -318,9 +318,10 @@ export default {
font
-
weight
:
500
;
font
-
weight
:
500
;
font
-
size
:
32
rpx
;
font
-
size
:
32
rpx
;
color
:
#
292
d33
;
color
:
#
292
d33
;
.
sprite
-
icon
{
white
-
space
:
nowrap
;
margin
-
left
:
8
rpx
;
overflow
:
hidden
;
}
text
-
overflow
:
ellipsis
;
width
:
70
%
;
}
}
.
goods
-
name
{
.
goods
-
name
{
font
-
weight
:
500
;
font
-
weight
:
500
;
...
...
pages/home/components/SettingBox.vue
View file @
685aeed
...
@@ -34,7 +34,10 @@
...
@@ -34,7 +34,10 @@
@
click=
"logout"
@
click=
"logout"
>
退出
</view>
>
退出
</view>
</view>
</view>
<view
class=
"a"
@
click=
"jump('agreement')"
>
《用户隐私协议》
</view>
<view
class=
"a"
@
click=
"jump('agreement')"
>
《用户隐私协议》
</view>
<view
<view
class=
"icp flex"
class=
"icp flex"
@
click=
"jump('icp')"
@
click=
"jump('icp')"
...
@@ -74,14 +77,33 @@ export default {
...
@@ -74,14 +77,33 @@ export default {
})
})
},
},
// 退出
// 退出
logout
()
{
async
logout
()
{
// this.stopAudio();
try
{
uni
.
showLoading
()
const
{
code
,
message
}
=
await
uni
.
$api
.
userApi
.
logout
()
console
.
log
(
code
)
if
(
code
==
0
)
{
uni
.
$storage
.
rm
(
"userInfo"
);
uni
.
$storage
.
rm
(
"userInfo"
);
uni
.
$storage
.
rm
(
"sessionId"
);
uni
.
$storage
.
rm
(
"sessionId"
);
uni
.
$storage
.
rm
(
"noSignInUuid"
);
uni
.
$storage
.
rm
(
"noSignInUuid"
);
this
.
stopAudio
();
setTimeout
(()
=>
{
uni
.
hideLoading
()
uni
.
reLaunch
({
uni
.
reLaunch
({
url
:
"/pages/common/login"
,
url
:
"/pages/common/login"
,
});
});
},
500
)
}
else
throw
message
}
catch
(
error
)
{
console
.
log
(
error
)
uni
.
hideLoading
()
uni
.
showToast
({
title
:
error
,
icon
:
"none"
,
});
}
},
},
jump
(
type
)
{
jump
(
type
)
{
let
url
=
type
==
'icp'
?
'https://beian.miit.gov.cn/'
:
'https://img01.glsx.com.cn/weapp/resource/saas/app/privacy.html'
let
url
=
type
==
'icp'
?
'https://beian.miit.gov.cn/'
:
'https://img01.glsx.com.cn/weapp/resource/saas/app/privacy.html'
...
...
pages/home/home.vue
View file @
685aeed
...
@@ -143,8 +143,6 @@
...
@@ -143,8 +143,6 @@
:id
.
sync=
"id"
:id
.
sync=
"id"
:media=
"moduleList"
:media=
"moduleList"
:type
.
sync=
"type"
:type
.
sync=
"type"
:payInfo=
"payInfo"
:accountInfo=
"accountInfo"
@
back=
"back"
@
back=
"back"
@
done=
"done"
@
done=
"done"
ref=
"detail"
ref=
"detail"
...
@@ -216,8 +214,6 @@ export default {
...
@@ -216,8 +214,6 @@ export default {
icon
:
'record'
icon
:
'record'
}],
}],
tabIndex
:
0
,
tabIndex
:
0
,
payInfo
:
null
,
accountInfo
:
null
,
dateKey
:
null
dateKey
:
null
};
};
},
},
...
@@ -374,8 +370,22 @@ export default {
...
@@ -374,8 +370,22 @@ export default {
const
data
=
await
uni
.
$api
.
commonApi
.
findPayInfo
({
const
data
=
await
uni
.
$api
.
commonApi
.
findPayInfo
({
merchantId
:
shopMerchantId
,
merchantId
:
shopMerchantId
,
});
});
this
.
payInfo
=
data
.
find
((
item
)
=>
item
.
paymentType
==
1
);
let
paymentType
=
[]
this
.
accountInfo
=
data
.
find
((
item
)
=>
item
.
paymentType
==
2
);
data
.
find
((
item
)
=>
{
if
(
item
.
paymentType
==
1
)
paymentType
.
push
({
name
:
"扫码支付"
,
type
:
1
,
title
:
'付款二维码'
,
...
item
})
if
(
item
.
paymentType
==
2
)
paymentType
.
push
(
{
name
:
"对公账户"
,
type
:
2
,
title
:
'付款方式'
,
...
item
})
})
this
.
$store
.
dispatch
(
"setPaymentType"
,
paymentType
)
},
},
changeIndex
(
index
)
{
changeIndex
(
index
)
{
this
.
tabIndex
=
index
this
.
tabIndex
=
index
...
...
store/modules/user.js
View file @
685aeed
...
@@ -21,6 +21,7 @@ export default {
...
@@ -21,6 +21,7 @@ export default {
historyStatus
:
Date
.
now
(),
historyStatus
:
Date
.
now
(),
carBrands
:
[],
carBrands
:
[],
employeeList
:
[],
employeeList
:
[],
paymentType
:
[]
};
};
},
},
mutations
:
{
mutations
:
{
...
@@ -54,6 +55,9 @@ export default {
...
@@ -54,6 +55,9 @@ export default {
clearHistory
({
state
})
{
clearHistory
({
state
})
{
state
.
historyStatus
=
Date
.
now
()
state
.
historyStatus
=
Date
.
now
()
},
},
setPaymentType
({
state
},
value
)
{
state
.
paymentType
=
value
},
setCarBrandsList
({
state
},
value
)
{
setCarBrandsList
({
state
},
value
)
{
state
.
carBrands
=
value
state
.
carBrands
=
value
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment