Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d8e9a956
authored
Mar 10, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
流量方二维码功能开发
1 parent
2c3f3d60
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
100 deletions
src/views/systemConfig/merchant/components/qRcodeDialog.vue
src/views/systemConfig/merchant/merchantManage.vue
src/views/systemConfig/yqStoreManage/qRcodeDialog.vue
src/views/systemConfig/yqStoreManage/yqStoreManage.vue
src/views/systemConfig/merchant/components/qRcodeDialog.vue
View file @
d8e9a95
<!-- 下载对账单 -->
<
template
>
<
template
>
<d2-dialog
title=
"收款二维码"
<d2-dialog
title=
"收款二维码"
:is-visible=
"qRcodeVisible"
class=
"qRcodeDailog"
width=
"750px"
btn-ok-label=
"全部下载"
:is-visible=
"qRcodeVisible"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
class=
"qRcodeDailog"
width=
"750px"
btn-ok-label=
"全部下载"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
<div
class=
"qrcon"
>
<div
class=
"qrcon"
>
<div
class=
"wxcon"
>
<div
class=
"wxcon"
>
<div
class=
"codeDiv"
<div
class=
"codeDiv"
id=
"wxview"
>
id=
"wxview"
>
<img
style=
"width:100%;height:100%"
src=
"../../images/code3.png"
>
<img
style=
"width:100%;height:100%"
src=
"../../images/code3.png"
>
<!-- v-if="qrCodeURL"
<div
class=
"imgDiv"
>
-->
<!-- v-if="qrCodeURL"
<div
class=
"imgDiv"
>
-->
<img
v-if=
"qrCodeURL"
<img
v-if=
"qrCodeURL"
class=
"qrImg"
crossorigin=
"anonymous"
:src=
"qrCodeURL"
>
class=
"qrImg"
crossorigin=
"anonymous"
:src=
"qrCodeURL"
>
<!-- crossorigin="anonymous" -->
<!-- crossorigin="anonymous" -->
<div
v-if=
"!qrCodeURL"
<div
v-if=
"!qrCodeURL"
class=
"el-icon-loading loadingIcon"
/>
class=
"el-icon-loading loadingIcon"
/>
<!--
</div>
-->
<!--
</div>
-->
<div
class=
"merchantNameDiv"
>
{{
info
.
yqMerchantName
}}
</div>
<div
class=
"merchantNameDiv"
>
{{
info
.
yqMerchantName
}}
</div>
</div>
</div>
<el-button
style=
"marginTop:20px"
<el-button
style=
"marginTop:20px"
type=
"primary "
type=
"primary "
@
click=
"takeScreenshot('wxview', `$
{info.yqMerchantName}微信支付收款码`)">下载
</el-button>
@
click=
"takeScreenshot('wxview',`$
{info.yqMerchantName}微信支付收款码`)">下载
</el-button>
</div>
</div>
<div
class=
"alicon"
>
<div
class=
"alicon"
>
<div
class=
"codeDiv"
<div
class=
"codeDiv"
id=
"aliview"
>
id=
"aliview"
>
<img
style=
"width:100%;height:100%"
src=
"../../images/alipay.png"
>
<img
style=
"width:100%;height:100%"
src=
"../../images/alipay.png"
>
<!--
<img
v-if=
"aliqrCodeURL"
<!--
<img
v-if=
"aliqrCodeURL"
class=
"qrImg imgs"
class=
"qrImg imgs"
:src=
"aliqrCodeURL"
:src=
"aliqrCodeURL"
crossorigin=
"anonymous"
>
-->
crossorigin=
"anonymous"
>
-->
<div
id=
"qrcodeDiv"
<div
id=
"qrcodeDiv"
class=
"qrImg"
/>
class=
"qrImg"
/>
<!-- -->
<!-- -->
<!-- :src="aliqrCodeURL"> -->
<!-- :src="aliqrCodeURL"> -->
<div
v-if=
"!aliqrCodeURL"
<div
v-if=
"!aliqrCodeURL"
class=
"el-icon-loading loadingIcon"
/>
class=
"el-icon-loading loadingIcon"
/>
<!--
</div>
-->
<!--
</div>
-->
<div
class=
"merchantNameDiv"
>
{{
info
.
yqMerchantName
}}
</div>
<div
class=
"merchantNameDiv"
>
{{
info
.
yqMerchantName
}}
</div>
</div>
</div>
<el-button
style=
"marginTop:20px"
<el-button
style=
"marginTop:20px"
type=
"primary "
type=
"primary "
@
click=
"takeScreenshot('aliview', `$
{info.yqMerchantName}支付宝支付收款码`)">下载
@
click=
"takeScreenshot('aliview',`$
{info.yqMerchantName}支付宝支付收款码`)">下载
</el-button>
</el-button>
</div>
</div>
</div>
</div>
...
@@ -139,9 +121,8 @@ export default {
...
@@ -139,9 +121,8 @@ export default {
// oParams.appId = 'wx902f0b9c4b2c669d'
// oParams.appId = 'wx902f0b9c4b2c669d'
oParams
.
qrcodeType
=
'QR_WXA_UNLIMIT'
oParams
.
qrcodeType
=
'QR_WXA_UNLIMIT'
oParams
.
path
=
'packagesPayment/pages/QRPayment/QRPayment'
oParams
.
path
=
'packagesPayment/pages/QRPayment/QRPayment'
oParams
.
scene
=
`merchantId=
${
this
.
info
.
yqMerchantId
}
&merchantName=
${
this
.
info
.
yqMerchantName
}
`
// oParams.scene = `merchantId=${this.info.yqMerchantId}&merchantName=${this.info.yqMerchantName}`
// oParams.path = 'pages/webpage/webpage'
oParams
.
scene
=
`shopMerchantId=
${
this
.
info
.
merchantId
}
&shopMerchantName=
${
this
.
info
.
merchantName
}
`
// oParams.scene = `jumpLink=https://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/`
createWeappQrcode
(
oParams
).
then
(
res
=>
{
createWeappQrcode
(
oParams
).
then
(
res
=>
{
this
.
qrCodeURL
=
res
this
.
qrCodeURL
=
res
...
@@ -226,7 +207,7 @@ export default {
...
@@ -226,7 +207,7 @@ export default {
// this
// this
// const that = this
// const that = this
// let shareUrl = `https://www.baidu.com/`;
// let shareUrl = `https://www.baidu.com/`;
const
shareUrl
=
`
${
baseConfig
.
alipayPath
}
?
merchantId=
${
this
.
info
.
yqMerchantId
}
&merchantName=
${
this
.
info
.
yqM
erchantName
}
`
const
shareUrl
=
`
${
baseConfig
.
alipayPath
}
?
shopMerchantId=
${
this
.
info
.
merchantId
}
&shopMerchantName=
${
this
.
info
.
m
erchantName
}
`
console
.
log
(
baseConfig
.
alipayPath
)
console
.
log
(
baseConfig
.
alipayPath
)
console
.
log
(
shareUrl
)
console
.
log
(
shareUrl
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
@@ -288,10 +269,12 @@ export default {
...
@@ -288,10 +269,12 @@ export default {
.qrcon
{
.qrcon
{
display
:
flex
;
display
:
flex
;
}
}
.wxcon
,
.wxcon
,
.alicon
{
.alicon
{
text-align
:
center
;
text-align
:
center
;
}
}
.wxcon
{
.wxcon
{
margin-right
:
20px
;
margin-right
:
20px
;
}
}
...
@@ -303,6 +286,7 @@ export default {
...
@@ -303,6 +286,7 @@ export default {
position
:
relative
;
position
:
relative
;
/* background-image: url('./images/code3.png'); */
/* background-image: url('./images/code3.png'); */
}
}
.qrImg
{
.qrImg
{
position
:
absolute
;
position
:
absolute
;
width
:
150px
;
width
:
150px
;
...
@@ -332,6 +316,7 @@ export default {
...
@@ -332,6 +316,7 @@ export default {
top
:
40%
;
top
:
40%
;
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
}
}
.merchantNameDiv
{
.merchantNameDiv
{
width
:
150px
;
width
:
150px
;
/* height: 20px; */
/* height: 20px; */
...
...
src/views/systemConfig/merchant/merchantManage.vue
View file @
d8e9a95
This diff is collapsed.
Click to expand it.
src/views/systemConfig/yqStoreManage/qRcodeDialog.vue
View file @
d8e9a95
<!-- 下载对账单 -->
<
template
>
<
template
>
<d2-dialog
title=
"收款二维码"
<d2-dialog
title=
"收款二维码"
:is-visible=
"qRcodeVisible"
class=
"qRcodeDailog"
width=
"750px"
btn-ok-label=
"全部下载"
:is-visible=
"qRcodeVisible"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
class=
"qRcodeDailog"
width=
"750px"
btn-ok-label=
"全部下载"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
<div
class=
"qrcon"
>
<div
class=
"qrcon"
>
<div
class=
"wxcon"
>
<div
class=
"wxcon"
>
<div
class=
"codeDiv"
<div
class=
"codeDiv"
id=
"wxview"
>
id=
"wxview"
>
<img
style=
"width:100%;height:100%"
src=
"./images/code3.png"
>
<img
style=
"width:100%;height:100%"
src=
"./images/code3.png"
>
<!-- v-if="qrCodeURL"
<div
class=
"imgDiv"
>
-->
<!-- v-if="qrCodeURL"
<div
class=
"imgDiv"
>
-->
<img
v-if=
"qrCodeURL"
<img
v-if=
"qrCodeURL"
class=
"qrImg"
crossorigin=
"anonymous"
:src=
"qrCodeURL"
>
class=
"qrImg"
crossorigin=
"anonymous"
:src=
"qrCodeURL"
>
<!-- crossorigin="anonymous" -->
<!-- crossorigin="anonymous" -->
<div
v-if=
"!qrCodeURL"
<div
v-if=
"!qrCodeURL"
class=
"el-icon-loading loadingIcon"
/>
class=
"el-icon-loading loadingIcon"
/>
<!--
</div>
-->
<!--
</div>
-->
<div
class=
"merchantNameDiv"
>
{{
info
.
yqMerchantName
}}
</div>
<div
class=
"merchantNameDiv"
>
{{
info
.
yqMerchantName
}}
</div>
</div>
</div>
<el-button
style=
"marginTop:20px"
<el-button
style=
"marginTop:20px"
type=
"primary "
type=
"primary "
@
click=
"takeScreenshot('wxview', `$
{info.yqMerchantName}微信支付收款码`)">下载
</el-button>
@
click=
"takeScreenshot('wxview',`$
{info.yqMerchantName}微信支付收款码`)">下载
</el-button>
</div>
</div>
<div
class=
"alicon"
>
<div
class=
"alicon"
>
<div
class=
"codeDiv"
<div
class=
"codeDiv"
id=
"aliview"
>
id=
"aliview"
>
<img
style=
"width:100%;height:100%"
src=
"./images/alipay.png"
>
<img
style=
"width:100%;height:100%"
src=
"./images/alipay.png"
>
<!--
<img
v-if=
"aliqrCodeURL"
<!--
<img
v-if=
"aliqrCodeURL"
class=
"qrImg imgs"
class=
"qrImg imgs"
:src=
"aliqrCodeURL"
:src=
"aliqrCodeURL"
crossorigin=
"anonymous"
>
-->
crossorigin=
"anonymous"
>
-->
<div
id=
"qrcodeDiv"
<div
id=
"qrcodeDiv"
class=
"qrImg"
/>
class=
"qrImg"
/>
<!-- -->
<!-- -->
<!-- :src="aliqrCodeURL"> -->
<!-- :src="aliqrCodeURL"> -->
<div
v-if=
"!aliqrCodeURL"
<div
v-if=
"!aliqrCodeURL"
class=
"el-icon-loading loadingIcon"
/>
class=
"el-icon-loading loadingIcon"
/>
<!--
</div>
-->
<!--
</div>
-->
<div
class=
"merchantNameDiv"
>
{{
info
.
yqMerchantName
}}
</div>
<div
class=
"merchantNameDiv"
>
{{
info
.
yqMerchantName
}}
</div>
</div>
</div>
<el-button
style=
"marginTop:20px"
<el-button
style=
"marginTop:20px"
type=
"primary "
type=
"primary "
@
click=
"takeScreenshot('aliview', `$
{info.yqMerchantName}支付宝支付收款码`)">下载
@
click=
"takeScreenshot('aliview',`$
{info.yqMerchantName}支付宝支付收款码`)">下载
</el-button>
</el-button>
</div>
</div>
</div>
</div>
...
@@ -288,10 +270,12 @@ export default {
...
@@ -288,10 +270,12 @@ export default {
.qrcon
{
.qrcon
{
display
:
flex
;
display
:
flex
;
}
}
.wxcon
,
.wxcon
,
.alicon
{
.alicon
{
text-align
:
center
;
text-align
:
center
;
}
}
.wxcon
{
.wxcon
{
margin-right
:
20px
;
margin-right
:
20px
;
}
}
...
@@ -303,6 +287,7 @@ export default {
...
@@ -303,6 +287,7 @@ export default {
position
:
relative
;
position
:
relative
;
/* background-image: url('./images/code3.png'); */
/* background-image: url('./images/code3.png'); */
}
}
.qrImg
{
.qrImg
{
position
:
absolute
;
position
:
absolute
;
width
:
150px
;
width
:
150px
;
...
@@ -332,6 +317,7 @@ export default {
...
@@ -332,6 +317,7 @@ export default {
top
:
40%
;
top
:
40%
;
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
}
}
.merchantNameDiv
{
.merchantNameDiv
{
width
:
150px
;
width
:
150px
;
/* height: 20px; */
/* height: 20px; */
...
...
src/views/systemConfig/yqStoreManage/yqStoreManage.vue
View file @
d8e9a95
<!-- 服务商管理 -->
<!-- 服务商管理 -->
<
template
>
<
template
>
<d2-container
class=
"service-manage"
>
<d2-container
class=
"service-manage"
>
<div
class=
"header"
<div
class=
"header"
slot=
"header"
>
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
/>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
/>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
size=
"small"
type=
"primary"
>
查询
查询
</el-button>
</el-button>
<el-button
size=
"small"
<el-button
size=
"small"
@
click=
"handleReset"
>
@
click=
"handleReset"
>
重置
重置
</el-button>
</el-button>
</div>
</div>
...
@@ -24,34 +17,18 @@
...
@@ -24,34 +17,18 @@
<span
slot=
"left"
>
园区店服务商关联列表
</span>
<span
slot=
"left"
>
园区店服务商关联列表
</span>
<auth-button
category=
"Button"
/>
<auth-button
category=
"Button"
/>
</d2-table-header>
</d2-table-header>
<d2-table
ref=
"serviceStoreTable"
<d2-table
ref=
"serviceStoreTable"
:search-form=
"searchForm"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:search-form=
"searchForm"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
:before-search-fn=
"beforeSearchFn"
>
<auth-button
slot=
"auth-button"
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
slot-scope=
"scope"
:data=
"scope.scope"
>
<!--
<el-button
type=
"text"
size=
"mini"
style=
"margin-right: 10px;"
@
click=
"collectionQRcode(scope.row)"
>
收款二维码
</el-button>
-->
</auth-button>
</auth-button>
</d2-table>
</d2-table>
<qrcode-dialog
:q-rcode-visible=
"qRcodeVisible"
<qrcode-dialog
:q-rcode-visible=
"qRcodeVisible"
:info=
"recordInfo"
v-if=
"qRcodeVisible"
:info=
"recordInfo"
v-if=
"qRcodeVisible"
@
dialogClose=
"dialogClose"
/>
@
dialogClose=
"dialogClose"
/>
</div>
</div>
<wxQRcodeDialog
:q-rcode-visible
.
sync=
"QRcodeDialog"
<wxQRcodeDialog
:q-rcode-visible
.
sync=
"QRcodeDialog"
v-if=
"QRcodeDialog"
:merchant-info=
"recordInfo"
/>
v-if=
"QRcodeDialog"
<scene-entry-dialog
:scene-entry-visible=
"sceneEntryVisible"
:info=
"recordInfo"
v-if=
"sceneEntryVisible"
:merchant-info=
"recordInfo"
/>
<scene-entry-dialog
:scene-entry-visible=
"sceneEntryVisible"
:info=
"recordInfo"
v-if=
"sceneEntryVisible"
@
dialogClose=
"sceneDialogClose"
/>
@
dialogClose=
"sceneDialogClose"
/>
</d2-container>
</d2-container>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -324,6 +301,7 @@ export default {
...
@@ -324,6 +301,7 @@ export default {
display
:
inline-block
;
display
:
inline-block
;
margin-left
:
20px
;
margin-left
:
20px
;
}
}
.delete-dialog
.delete-title
{
.delete-dialog
.delete-title
{
font-size
:
16px
;
font-size
:
16px
;
}
}
...
...
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