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 85db6bec
authored
Jul 02, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
521c4c00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
112 additions
and
84 deletions
pages/equity/detail/components/History.vue
pages/equity/index.vue
pages/equity/detail/components/History.vue
View file @
85db6be
...
@@ -2,22 +2,30 @@
...
@@ -2,22 +2,30 @@
<view
class=
"layout"
>
<view
class=
"layout"
>
<view
class=
"title"
>
{{
title
}}
</view>
<view
class=
"title"
>
{{
title
}}
</view>
<template
v-if=
"list.length > 0"
>
<template
v-if=
"list.length > 0"
>
<scroll-view
class=
"record-box"
scroll-y
@
scrolltolower=
"pageonReachBottom"
>
<scroll-view
class=
"record-box"
scroll-y
@
scrolltolower=
"pageonReachBottom"
>
<view
class=
"card-list"
>
<view
class=
"card-list"
>
<view
class=
"card-item"
v-for=
"item in list"
:key=
"item.id"
>
<view
<template>
class=
"card-item"
<image
v-for=
"item in list"
v-if=
"item.vdQuotationPaymentDoc && item.vdQuotationPaymentDoc.paymentDocUrl"
:key=
"item.id"
class=
"image-box"
>
:src=
"item.vdQuotationPaymentDoc.paymentDocUrl"
<template>
/>
<image
<image
v-if=
"item.vdQuotationPaymentDoc && item.vdQuotationPaymentDoc.paymentDocUrl"
v-else
class=
"image-box"
class=
"image-box"
:src=
"item.vdQuotationPaymentDoc.paymentDocUrl"
src=
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/common/pay.webp"
/>
/>
<image
<view
class=
"gradient-overlay"
></view>
v-else
</
template
>
class=
"image-box"
src=
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/common/pay.webp"
/>
<view
class=
"gradient-overlay"
></view>
</
template
>
<view>
<view>
<!-- <view class="name">{{ nameHide(item.customerName) }}</view> -->
<!-- <view class="name">{{ nameHide(item.customerName) }}</view> -->
<view
class=
"name"
>
{{ item.id }}
</view>
<view
class=
"name"
>
{{ item.id }}
</view>
...
@@ -36,21 +44,30 @@
...
@@ -36,21 +44,30 @@
</view>
</view>
<view
class=
"card-info"
>
<view
class=
"card-info"
>
<view
class=
"label"
>
实收金额
</view>
<view
class=
"label"
>
实收金额
</view>
<view
class=
"price"
><view
class=
"flag"
>
¥
</view>
{{ accDiv(item.equityPrice) }}
</view>
<view
class=
"price"
>
<view
class=
"flag"
>
¥
</view>
{{ accDiv(item.equityPrice) }}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"end-text"
v-if=
"list.length > 0 && isEnd"
>
我是一个有底线的人
</view>
<view
class=
"end-text"
v-if=
"list.length > 0 && isEnd"
>
我是一个有底线的人
</view>
</scroll-view>
</scroll-view>
</template>
</template>
<
template
v-else
>
<
template
v-else
>
<view
class=
"no-data"
>
<view
class=
"no-data"
>
<glsx-image
class=
"no-data-img"
src=
"media/no-data.png"
mode=
"scaleToFill"
/>
<glsx-image
class=
"no-data-img"
src=
"media/no-data.png"
mode=
"scaleToFill"
/>
<view
class=
"no-data-text"
>
暂无数据
</view>
<view
class=
"no-data-text"
>
暂无数据
</view>
</view>
</view>
</
template
>
</
template
>
</view>
</view>
</template>
</template>
...
@@ -59,13 +76,13 @@ import utils from '@/utils/utils';
...
@@ -59,13 +76,13 @@ import utils from '@/utils/utils';
import
Record
from
"@/mixin/record"
;
import
Record
from
"@/mixin/record"
;
export
default
{
export
default
{
name
:
'History'
,
name
:
'History'
,
mixins
:[
Record
],
mixins
:
[
Record
],
props
:
{
props
:
{
title
:
String
,
title
:
String
,
madiaId
:
Number
,
madiaId
:
Number
,
show
:
Boolean
,
show
:
Boolean
,
},
},
data
()
{
data
()
{
return
{
return
{
isEnd
:
false
,
isEnd
:
false
,
shopMerchantId
:
''
,
shopMerchantId
:
''
,
...
@@ -80,12 +97,12 @@ export default {
...
@@ -80,12 +97,12 @@ export default {
immediate
:
true
,
immediate
:
true
,
handler
(
newval
)
{
handler
(
newval
)
{
this
.
pageNum
=
1
this
.
pageNum
=
1
this
.
list
=
uni
.
$storage
.
get
(
`
${
this
.
shopMerchantId
}
-historyList`
)
this
.
list
=
uni
.
getStorageSync
(
`
${
this
.
shopMerchantId
}
-historyList`
)
}
}
},
},
watchCarModel
:
{
watchCarModel
:
{
immediate
:
true
,
immediate
:
true
,
handler
(
newval
)
{
handler
(
newval
)
{
console
.
log
(
newval
)
console
.
log
(
newval
)
if
(
this
.
madiaId
==
4
)
{
if
(
this
.
madiaId
==
4
)
{
// this.list = uni.$storage.get("historyList")
// this.list = uni.$storage.get("historyList")
...
@@ -115,33 +132,33 @@ export default {
...
@@ -115,33 +132,33 @@ export default {
init
()
{
init
()
{
const
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
"userInfo"
);
const
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
"userInfo"
);
this
.
shopMerchantId
=
shopMerchantId
this
.
shopMerchantId
=
shopMerchantId
this
.
getQuotationList
(
true
);
if
(
this
.
pageNum
==
1
)
this
.
getQuotationList
(
);
},
},
async
getQuotationList
()
{
async
getQuotationList
()
{
const
{
goodsName
,
shopMerchantId
,
pageNum
,
pageSize
}
=
this
const
{
goodsName
,
shopMerchantId
,
pageNum
,
pageSize
}
=
this
this
.
getList
(
'getQuotationList'
,
{
await
this
.
getList
(
'getQuotationList'
,
{
merchantIds
:
shopMerchantId
,
merchantIds
:
shopMerchantId
,
pageNum
,
pageNum
,
pageSize
,
pageSize
,
goodsName
,
goodsName
,
orderStatus
:
3
,
orderStatus
:
3
,
})
})
if
(
pageNum
==
1
)
uni
.
setStorageSync
(
`
${
shopMerchantId
}
-historyList`
,
thisuni
.
onGetWifiList
()
)
if
(
pageNum
==
1
)
uni
.
setStorageSync
(
`
${
shopMerchantId
}
-historyList`
,
this
.
list
)
},
},
pageonReachBottom
()
{
pageonReachBottom
()
{
let
{
pageNum
,
total
,
isEnd
,
pageSize
}
=
this
let
{
pageNum
,
total
,
isEnd
,
pageSize
}
=
this
if
(
!
isEnd
)
isEnd
=
false
if
(
!
isEnd
)
isEnd
=
false
if
(
Math
.
ceil
(
total
/
pageSize
)
>
pageNum
)
{
if
(
Math
.
ceil
(
total
/
pageSize
)
>
pageNum
)
{
this
.
pageNum
+=
1
this
.
pageNum
+=
1
this
.
getQuotationList
()
this
.
getQuotationList
()
}
else
this
.
isEnd
=
true
}
else
this
.
isEnd
=
true
},
},
// 脱敏
// 脱敏
nameHide
(
name
)
{
nameHide
(
name
)
{
return
name
.
substring
(
0
,
1
)
+
'*'
;
return
name
.
substring
(
0
,
1
)
+
'*'
;
},
},
accDiv
(
val
)
{
accDiv
(
val
)
{
return
utils
.
accDiv
(
val
,
100
)
return
utils
.
accDiv
(
val
||
0
,
100
)
},
},
}
}
}
}
...
@@ -169,19 +186,18 @@ export default {
...
@@ -169,19 +186,18 @@ export default {
z-index
:
2
;
z-index
:
2
;
}
}
.record-box
{
.record-box
{
height
:
100%
;
height
:
100%
;
padding-top
:
244
rpx
;
padding-top
:
244
rpx
;
}
}
.card-list
{
.card-list
{
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1
fr
);
grid-template-columns
:
repeat
(
3
,
1
fr
);
gap
:
48
rpx
;
gap
:
48
rpx
;
padding
:
0
64
rpx
48
rpx
;
padding
:
0
64
rpx
48
rpx
;
.card-item
{
.card-item
{
background-color
:
#
F7F9FF
;
background-color
:
#
f7f9ff
;
border-radius
:
32
rpx
;
border-radius
:
32
rpx
;
height
:
372
rpx
;
height
:
372
rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
@@ -193,14 +209,14 @@ export default {
...
@@ -193,14 +209,14 @@ export default {
.name
{
.name
{
font-weight
:
500
;
font-weight
:
500
;
font-size
:
32
rpx
;
font-size
:
32
rpx
;
color
:
#292
D
33
;
color
:
#292
d
33
;
}
}
.goods-name
{
.goods-name
{
margin-top
:
12
rpx
;
margin-top
:
12
rpx
;
margin-bottom
:
16
rpx
;
margin-bottom
:
16
rpx
;
font-weight
:
500
;
font-weight
:
500
;
font-size
:
32
rpx
;
font-size
:
32
rpx
;
color
:
#2
C66F
7
;
color
:
#2
c66f
7
;
}
}
.card-info
{
.card-info
{
display
:
flex
;
display
:
flex
;
...
@@ -211,7 +227,7 @@ export default {
...
@@ -211,7 +227,7 @@ export default {
}
}
.label
{
.label
{
font-size
:
24
rpx
;
font-size
:
24
rpx
;
color
:
#999
EA
8
;
color
:
#999
ea
8
;
width
:
136
rpx
;
width
:
136
rpx
;
}
}
.value
{
.value
{
...
@@ -223,7 +239,7 @@ export default {
...
@@ -223,7 +239,7 @@ export default {
align-items
:
baseline
;
align-items
:
baseline
;
font-weight
:
500
;
font-weight
:
500
;
font-size
:
32
rpx
;
font-size
:
32
rpx
;
color
:
#22
AC
38
;
color
:
#22
ac
38
;
.flag
{
.flag
{
font-size
:
24
rpx
;
font-size
:
24
rpx
;
}
}
...
@@ -239,18 +255,18 @@ export default {
...
@@ -239,18 +255,18 @@ export default {
z-index
:
-1
;
z-index
:
-1
;
}
}
.gradient-overlay
{
.gradient-overlay
{
z-index
:
-1
;
z-index
:
-1
;
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
right
:
0
;
right
:
0
;
width
:
252
rpx
;
width
:
252
rpx
;
height
:
372
rpx
;
height
:
372
rpx
;
background
:
linear-gradient
(
background
:
linear-gradient
(
to
left
,
to
left
,
rgba
(
247
,
249
,
255
,
0
)
0%
,
rgba
(
247
,
249
,
255
,
0
)
0%
,
rgba
(
247
,
249
,
255
,
1
)
100%
rgba
(
247
,
249
,
255
,
1
)
100%
);
);
}
}
}
}
}
}
}
}
...
...
pages/equity/index.vue
View file @
85db6be
...
@@ -9,7 +9,10 @@
...
@@ -9,7 +9,10 @@
@
backHome=
"backHome"
@
backHome=
"backHome"
@
changeTab=
"changeTab"
@
changeTab=
"changeTab"
>
>
<view
class=
"module-box"
slot=
"module"
>
<view
class=
"module-box"
slot=
"module"
>
<template
v-for=
"(i, index) in moduleList"
>
<template
v-for=
"(i, index) in moduleList"
>
<view
<view
:key=
"index"
:key=
"index"
...
@@ -44,10 +47,13 @@
...
@@ -44,10 +47,13 @@
/>
/>
</
template
>
</
template
>
<
template
slot=
"content"
>
<
template
slot=
"content"
>
<novice-guide
@
nextStep=
"nextStep"
@
back=
"back"
/>
<novice-guide
@
nextStep=
"nextStep"
@
back=
"back"
/>
</
template
>
</
template
>
</home-frame>
</home-frame>
<!--
<!--
<cover-view class="webview-container">
<cover-view class="webview-container">
<web-view
<web-view
@message="handlerMessage"
@message="handlerMessage"
...
@@ -66,7 +72,7 @@ import HomeFrame from "@/components/HomeFrame/index.vue";
...
@@ -66,7 +72,7 @@ import HomeFrame from "@/components/HomeFrame/index.vue";
export
default
{
export
default
{
// mixins: [storge],
// mixins: [storge],
components
:
{
HomeFrame
,
detail
,
NoviceGuide
},
components
:
{
HomeFrame
,
detail
,
NoviceGuide
},
data
()
{
data
()
{
return
{
return
{
moduleList
:
[],
moduleList
:
[],
toolList
:
[],
toolList
:
[],
...
@@ -77,7 +83,7 @@ export default {
...
@@ -77,7 +83,7 @@ export default {
recording
:
false
,
recording
:
false
,
};
};
},
},
onBackPress
(
options
)
{
onBackPress
(
options
)
{
if
(
options
.
from
===
"backbutton"
)
{
if
(
options
.
from
===
"backbutton"
)
{
// 物理返回按钮触发
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
// 阻止默认行为,即不执行页面返回
...
@@ -87,13 +93,13 @@ export default {
...
@@ -87,13 +93,13 @@ export default {
// 其他情况允许正常返回
// 其他情况允许正常返回
return
false
;
return
false
;
},
},
onLoad
()
{
onLoad
()
{
const
mock_data
=
uni
.
$storage
.
get
(
"mock_data"
)
||
{};
const
mock_data
=
uni
.
$storage
.
get
(
"mock_data"
)
||
{};
this
.
moduleList
=
mock_data
.
moduleList
||
[];
this
.
moduleList
=
mock_data
.
moduleList
||
[];
this
.
toolList
=
mock_data
.
toolList
||
[];
this
.
toolList
=
mock_data
.
toolList
||
[];
this
.
get_Vehicle_Sales_Data
();
this
.
get_Vehicle_Sales_Data
();
},
},
onShow
()
{
onShow
()
{
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
);
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
);
if
(
!
userInfo
.
shopMerchantId
||
!
userInfo
.
shopMerchantName
)
{
if
(
!
userInfo
.
shopMerchantId
||
!
userInfo
.
shopMerchantName
)
{
uni
.
$storage
.
rm
(
"userInfo"
);
uni
.
$storage
.
rm
(
"userInfo"
);
...
@@ -107,12 +113,12 @@ export default {
...
@@ -107,12 +113,12 @@ export default {
},
},
methods
:
{
methods
:
{
...
mapMutations
(
"audio"
,
[
"setReceptionStatus"
]),
...
mapMutations
(
"audio"
,
[
"setReceptionStatus"
]),
init
()
{
init
()
{
this
.
getSoure
();
this
.
getSoure
();
this
.
findPayInfo
();
this
.
findPayInfo
();
},
},
/**获取车型&销售数据 */
/**获取车型&销售数据 */
get_Vehicle_Sales_Data
()
{
get_Vehicle_Sales_Data
()
{
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
storageCarBrandList
=
uni
.
$storage
.
get
(
"carBrandList"
),
storageCarBrandList
=
uni
.
$storage
.
get
(
"carBrandList"
),
storageEmployeeList
=
uni
.
$storage
.
get
(
"employeeList"
),
storageEmployeeList
=
uni
.
$storage
.
get
(
"employeeList"
),
...
@@ -165,7 +171,7 @@ export default {
...
@@ -165,7 +171,7 @@ export default {
});
});
},
},
// 查询素材
// 查询素材
async
getSoure
()
{
async
getSoure
()
{
const
{
moduleList
,
toolList
}
=
await
uni
.
$api
.
systemApi
.
getMockData
(
const
{
moduleList
,
toolList
}
=
await
uni
.
$api
.
systemApi
.
getMockData
(
true
true
);
);
...
@@ -182,13 +188,19 @@ export default {
...
@@ -182,13 +188,19 @@ export default {
);
);
});
});
this
.
moduleList
=
moduleList
;
this
.
moduleList
=
moduleList
;
this
.
toolList
=
toolList
;
uni
.
$api
.
systemApi
.
updateMockData
(
moduleList
,
"moduleList"
);
uni
.
$api
.
systemApi
.
updateMockData
(
moduleList
,
"moduleList"
);
this
.
toolList
=
await
uni
.
$api
.
systemApi
.
imgToBase64
(
toolList
,
"shortTitleUrl"
);
setTimeout
(()
=>
{
uni
.
$api
.
systemApi
.
updateMockData
(
this
.
toolList
,
"toolList"
);
},
1
e3
)
},
},
errorImg
(
index
)
{
errorImg
(
index
)
{
this
.
moduleList
[
index
].
showAlt
=
true
;
this
.
moduleList
[
index
].
showAlt
=
true
;
},
},
async
start
()
{
async
start
()
{
const
result
=
await
this
.
$permision
.
requestAndroidPermission
(
const
result
=
await
this
.
$permision
.
requestAndroidPermission
(
"android.permission.RECORD_AUDIO"
"android.permission.RECORD_AUDIO"
);
);
...
@@ -206,21 +218,21 @@ export default {
...
@@ -206,21 +218,21 @@ export default {
this
.
recording
=
true
;
this
.
recording
=
true
;
},
},
toDetail
(
item
)
{
toDetail
(
item
)
{
this
.
chooseItem
=
item
;
this
.
chooseItem
=
item
;
this
.
$refs
.
home
.
previewRef
.
open
();
this
.
$refs
.
home
.
previewRef
.
open
();
},
},
cancel
()
{
cancel
()
{
this
.
$refs
.
home
.
previewRef
.
close
();
this
.
$refs
.
home
.
previewRef
.
close
();
},
},
preview
()
{
preview
()
{
let
{
id
}
=
this
.
chooseItem
;
let
{
id
}
=
this
.
chooseItem
;
this
.
type
=
"preview"
;
this
.
type
=
"preview"
;
this
.
id
=
id
;
this
.
id
=
id
;
this
.
cancel
();
this
.
cancel
();
},
},
// 完成接待
// 完成接待
done
(
e
)
{
done
(
e
)
{
this
.
$refs
.
home
.
finishRef
.
close
();
this
.
$refs
.
home
.
finishRef
.
close
();
if
(
this
.
recording
)
this
.
$refs
.
home
.
stopAudio
();
if
(
this
.
recording
)
this
.
$refs
.
home
.
stopAudio
();
this
.
recording
=
false
;
this
.
recording
=
false
;
...
@@ -230,14 +242,14 @@ export default {
...
@@ -230,14 +242,14 @@ export default {
this
.
setReceptionStatus
(
e
);
this
.
setReceptionStatus
(
e
);
},
1500
);
},
1500
);
},
},
back
()
{
back
()
{
const
detailRef
=
this
.
$refs
.
detail
const
detailRef
=
this
.
$refs
.
detail
if
(
detailRef
.
showPayPage
)
return
detailRef
.
showPayPage
=
false
if
(
detailRef
.
showPayPage
)
return
detailRef
.
showPayPage
=
false
if
(
!
this
.
id
)
return
uni
.
navigateBack
();
if
(
!
this
.
id
)
return
uni
.
navigateBack
();
if
(
this
.
type
!=
"preview"
)
return
this
.
$refs
.
home
.
finishRef
.
open
();
if
(
this
.
type
!=
"preview"
)
return
this
.
$refs
.
home
.
finishRef
.
open
();
this
.
backHome
();
this
.
backHome
();
},
},
backHome
()
{
backHome
()
{
if
(
this
.
recording
)
this
.
$refs
.
home
.
stopAudio
(
true
);
if
(
this
.
recording
)
this
.
$refs
.
home
.
stopAudio
(
true
);
this
.
$refs
.
home
.
finishRef
.
close
();
this
.
$refs
.
home
.
finishRef
.
close
();
this
.
id
=
""
;
this
.
id
=
""
;
...
@@ -246,22 +258,22 @@ export default {
...
@@ -246,22 +258,22 @@ export default {
this
.
init
();
this
.
init
();
this
.
recording
=
false
;
this
.
recording
=
false
;
},
},
nextStep
()
{
nextStep
()
{
let
{
id
}
=
this
.
moduleList
[
0
];
let
{
id
}
=
this
.
moduleList
[
0
];
this
.
type
=
"preview"
;
this
.
type
=
"preview"
;
this
.
id
=
id
;
this
.
id
=
id
;
},
},
clearHistory
()
{
clearHistory
()
{
this
.
$store
.
dispatch
(
"clearCustomerInfo"
);
this
.
$store
.
dispatch
(
"clearCustomerInfo"
);
this
.
$store
.
dispatch
(
"clearHistory"
);
this
.
$store
.
dispatch
(
"clearHistory"
);
this
.
$refs
.
home
.
setBooks
([]);
this
.
$refs
.
home
.
setBooks
([]);
},
},
openStep
()
{
openStep
()
{
this
.
$refs
.
home
.
finishRef
.
close
();
this
.
$refs
.
home
.
finishRef
.
close
();
this
.
$refs
.
detail
.
open
();
this
.
$refs
.
detail
.
open
();
},
},
// 查询门店支付配置
// 查询门店支付配置
async
findPayInfo
()
{
async
findPayInfo
()
{
const
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
"userInfo"
);
const
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
"userInfo"
);
const
data
=
await
uni
.
$api
.
commonApi
.
findPayInfo
({
const
data
=
await
uni
.
$api
.
commonApi
.
findPayInfo
({
merchantId
:
shopMerchantId
,
merchantId
:
shopMerchantId
,
...
@@ -285,7 +297,7 @@ export default {
...
@@ -285,7 +297,7 @@ export default {
});
});
this
.
$store
.
dispatch
(
"setPaymentType"
,
paymentType
);
this
.
$store
.
dispatch
(
"setPaymentType"
,
paymentType
);
},
},
changeTab
(
index
)
{
changeTab
(
index
)
{
this
.
tabIndex
=
index
;
this
.
tabIndex
=
index
;
if
(
index
==
0
)
this
.
init
();
if
(
index
==
0
)
this
.
init
();
},
},
...
...
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