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 802bd451
authored
Aug 06, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 功能开发
1 parent
2868d746
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
231 additions
and
144 deletions
src/api/merchant.js
src/views/systemConfig/ShopConfig/index.vue
src/views/systemConfig/merchant/financialRules/components/channelSelectDialog.vue
src/views/systemConfig/merchant/financialRules/components/classificationCpt.vue
src/views/systemConfig/merchant/financialRules/components/financialCalculationDialog.vue
src/views/systemConfig/merchant/financialRules/components/tipsDialog.vue
src/views/systemConfig/merchant/financialRules/index.vue
src/views/systemConfig/yqStoreManage/qRcodeDialog.vue
src/views/systemConfig/yqStoreManage/yqStoreManage.vue
src/api/merchant.js
View file @
802bd45
...
@@ -382,10 +382,16 @@ export function get4sAndServiceMerchantListApi(data) {
...
@@ -382,10 +382,16 @@ export function get4sAndServiceMerchantListApi(data) {
}
}
/**
/**
*
* 获取车品牌列表
* 获取车品牌列表
*/
*/
export
function
getCarBrandList
(
data
=
{})
{
export
function
getCarBrandList
(
data
=
{})
{
data
.
method
=
'dj.api.smartcarlife.common.car.brand.list'
data
.
method
=
"dj.api.smartcarlife.common.car.brand.list"
return
request
(
data
,
RequestMethods
.
POST
)
}
/**
* 获取支付渠道列表
*/
export
function
paymentChannelList
(
data
=
{})
{
data
.
method
=
"dj.api.smartcarlife.paymentChannel.list"
return
request
(
data
,
RequestMethods
.
POST
)
return
request
(
data
,
RequestMethods
.
POST
)
}
}
src/views/systemConfig/ShopConfig/index.vue
View file @
802bd45
This diff is collapsed.
Click to expand it.
src/views/systemConfig/merchant/financialRules/components/channelSelectDialog.vue
0 → 100644
View file @
802bd45
<!-- 分账测试渠道 -->
<
template
>
<d2-dialog
title=
"选择分账测试渠道"
:is-visible=
"verificationCodeVisible"
class=
"verificationCode"
width=
"750px"
btn-ok-label=
"申请虚拟对公账户"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<!--
<div
class=
"box"
v-for=
"(item, index) in accountValidMerchants"
:key=
"index"
>
-->
<el-radio-group
v-model=
"paymentChannelId"
class=
"radio-group"
>
<el-radio
:label=
"item.paymentChannelId"
v-for=
"(item, index) in divisionRuleTests"
:key=
"index"
>
{{
item
.
paymentChannelName
}}
</el-radio>
</el-radio-group>
<!--
</div>
-->
</d2-dialog>
</
template
>
<
script
>
// import { sendSms, getAdminInfo } from '@api/merchant'
import
{
mapActions
}
from
'vuex'
export
default
{
name
:
'ChannelSelectDialog'
,
props
:
{
visible
:
{
// 弹窗是否展示
type
:
Boolean
,
default
:
false
},
accountValidMerchants
:
{
type
:
Array
,
default
:
()
=>
[]
},
divisionRuleTests
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
computed
:
{
verificationCodeVisible
:
{
// return this.
get
()
{
return
this
.
visible
},
set
(
val
)
{
this
.
$emit
(
'update:visible'
,
false
)
}
},
paymentChannelObj
()
{
return
this
.
divisionRuleTests
.
find
(
item
=>
item
.
paymentChannelId
===
this
.
paymentChannelId
)
}
},
data
()
{
return
{
paymentChannelId
:
''
}
},
mounted
()
{
},
methods
:
{
...
mapActions
({
close
:
'd2admin/page/close'
}),
handleClose
()
{
// this.$emit('dialogClose')
// this.$update
this
.
verificationCodeVisible
=
false
},
// handleApply() {
// },
// 选择并确认
handleConfirm
()
{
if
(
!
this
.
paymentChannelId
)
{
return
this
.
$message
.
error
(
'请选择渠道'
);
}
this
.
$emit
(
'handleConfirm'
,
this
.
paymentChannelObj
)
this
.
handleClose
()
// this.$router.push({ name: 'accountList_new' })
// this.close({ tagName: '/merchantDetail' })
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.container
{
padding
:
16px
44px
;
color
:
#333333
;
background
:
#f6f8fa
;
}
.channel
{
color
:
#333333
;
font-size
:
16px
;
}
.info
{
color
:
#666666
;
font-size
:
14px
;
}
</
style
>
src/views/systemConfig/merchant/financialRules/components/classificationCpt.vue
View file @
802bd45
...
@@ -777,6 +777,8 @@
...
@@ -777,6 +777,8 @@
:visible
.
sync=
"tipsDialogVisible"
/>
:visible
.
sync=
"tipsDialogVisible"
/>
<financialCalculationDialog
v-if=
"financialCalculationVisible"
v-on=
"$listeners"
<financialCalculationDialog
v-if=
"financialCalculationVisible"
v-on=
"$listeners"
:financial-calculation-obj=
"financialCalculationObj"
:visible
.
sync=
"financialCalculationVisible"
/>
:financial-calculation-obj=
"financialCalculationObj"
:visible
.
sync=
"financialCalculationVisible"
/>
<channelSelectDialog
v-if=
"channelSelectDialogVisible"
v-on=
"$listeners"
:divisionRuleTests=
"divisionRuleTests"
@
handleConfirm=
"channelConfirm"
:visible
.
sync=
"channelSelectDialogVisible"
/>
</div>
</div>
</template>
</template>
...
@@ -799,13 +801,15 @@ import {
...
@@ -799,13 +801,15 @@ import {
goodsSourceList
goodsSourceList
}
from
"@/common/constant/merchant"
}
from
"@/common/constant/merchant"
import
tipsDialog
from
"./tipsDialog"
import
tipsDialog
from
"./tipsDialog"
import
financialCalculationDialog
from
"./financialCalculationDialog.vue"
import
financialCalculationDialog
from
"./financialCalculationDialog"
import
channelSelectDialog
from
"./channelSelectDialog"
export
default
{
export
default
{
name
:
"ClassificationCpt"
,
name
:
"ClassificationCpt"
,
components
:
{
components
:
{
tableAccount
,
tableAccount
,
tipsDialog
,
tipsDialog
,
financialCalculationDialog
financialCalculationDialog
,
channelSelectDialog
},
},
props
:
{
props
:
{
goodsTypeGroupRules
:
{
goodsTypeGroupRules
:
{
...
@@ -960,6 +964,7 @@ export default {
...
@@ -960,6 +964,7 @@ export default {
}
}
}
}
return
{
return
{
divisionRuleTests
:
[],
financialCalculationVisible
:
false
,
financialCalculationVisible
:
false
,
tipsDialogVisible
:
false
,
tipsDialogVisible
:
false
,
accountValidMerchants
:
[],
accountValidMerchants
:
[],
...
@@ -1562,20 +1567,36 @@ export default {
...
@@ -1562,20 +1567,36 @@ export default {
divisionRuleTestGet
({
divisionRuleTestGet
({
goodsTypeGroupDivisionId
:
this
.
goodsTypeGroupDivisionId
goodsTypeGroupDivisionId
:
this
.
goodsTypeGroupDivisionId
}).
then
((
result
)
=>
{
}).
then
((
result
)
=>
{
const
{
subProgress
,
accountValidMerchants
}
=
result
// const { notInForceAccountMerchantMap, divisionRuleTestMap } = result
// 没有虚拟对公账户
const
{
notInForceAccountMerchants
,
divisionRuleTests
}
=
result
if
(
subProgress
==
32
)
{
// 如果有没有管理的虚拟对公账户
if
(
notInForceAccountMerchants
)
{
this
.
tipsDialogVisible
=
true
this
.
tipsDialogVisible
=
true
this
.
accountValidMerchants
=
accountValid
Merchants
this
.
accountValidMerchants
=
notInForceAccount
Merchants
}
}
console
.
log
([
34
,
35
,
36
,
31
].
includes
(
subProgress
))
// const { subProgress, accountValidMerchants } = result
if
([
34
,
35
,
36
,
31
].
includes
(
subProgress
))
{
// 没有虚拟对公账户
// if (subProgress == 32) {
// this.tipsDialogVisible = true
// this.accountValidMerchants = accountValidMerchants
// }
// console.log([34, 35, 36, 31].includes(subProgress))
// [34, 35, 36, 31].includes(subProgress)
// 需要做分账测算
if
(
divisionRuleTests
)
{
this
.
financialCalculationVisible
=
true
this
.
financialCalculationVisible
=
true
this
.
financialCalculationObj
=
result
this
.
financialCalculationObj
=
result
}
}
console
.
log
(
"result"
,
result
)
console
.
log
(
"result"
,
result
)
})
})
},
},
channelConfirm
(
result
)
{
// if (divisionRuleTests) {
this
.
financialCalculationVisible
=
true
this
.
financialCalculationObj
=
result
// }
},
ruleTest
()
{
ruleTest
()
{
this
.
$emit
(
"rulesTest"
)
this
.
$emit
(
"rulesTest"
)
},
},
...
...
src/views/systemConfig/merchant/financialRules/components/financialCalculationDialog.vue
View file @
802bd45
...
@@ -69,11 +69,6 @@
...
@@ -69,11 +69,6 @@
<!-- v-if="financialCalculationObj.orderCode" -->
<!-- v-if="financialCalculationObj.orderCode" -->
<div
class=
"txt-box"
>
<div
class=
"txt-box"
>
<div
id=
"qrcodeDiv"
class=
"qrImg"
/>
<div
id=
"qrcodeDiv"
class=
"qrImg"
/>
<!--
<vue-qr
class=
"middle"
:margin=
"0"
width=
"134"
height=
"134"
:text=
"financialCalculationObj.orderCode"
/>
-->
</div>
</div>
</div>
</div>
<div
class=
"step-desc-box"
>
<div
class=
"step-desc-box"
>
...
@@ -112,88 +107,6 @@
...
@@ -112,88 +107,6 @@
</el-button>
-->
</el-button>
-->
</p>
</p>
</el-form-item>
</el-form-item>
<!--
</
template
>
-->
<!-- <el-form-item v-if="Object.values(needJudgeMerchantList).includes(3)">
<p class="one-line-ellipsis"
:title="merchantInfo.realityDivisionMerchant ? merchantInfo.realityDivisionMerchant.merchantName : ''">
<img class="point"
src="./images/point.png">{{ merchantInfo.realityDivisionMerchant ? merchantInfo.realityDivisionMerchant.merchantName : '' }}
</p>
<p class="flex">
<el-input :disabled="merchantInfo.divisionStatus !== 3"
:size="size"
v-model="moneyForm.realityShopDivisionMoney"
placeholder="导流方收款金额"
@input="handlePartnerDivisionMoney($event,'realityShopDivisionMoney')" />
<el-button :size="size"
:disabled="merchantInfo.divisionStatus !== 3"
type="primary"
@click="handleSave">
确认
</el-button>
</p>
</el-form-item>
<el-form-item v-if="Object.values(needJudgeMerchantList).includes(2)">
<p class="one-line-ellipsis"
:title="merchantInfo.singlePartnerMerchant ? merchantInfo.singlePartnerMerchant.merchantName : ''">
<img class="point"
src="./images/point.png">{{ merchantInfo.singlePartnerMerchant ? merchantInfo.singlePartnerMerchant.merchantName : '' }}
</p>
<p class="flex">
<el-input :size="size"
:disabled="merchantInfo.divisionStatus !== 3"
v-model="moneyForm.singlePartnerDivisionMoney"
placeholder="服务商收款金额"
@input="handlePartnerDivisionMoney($event,'singlePartnerDivisionMoney')" />
<el-button :size="size"
:disabled="merchantInfo.divisionStatus !== 3"
type="primary"
@click="handleSave">
确认
</el-button>
</p>
</el-form-item>
<el-form-item v-if="Object.values(needJudgeMerchantList).includes(4)">
<p class="one-line-ellipsis"
:title="merchantInfo.installCostPartnerMerchant ? merchantInfo.installCostPartnerMerchant.merchantName : ''">
<img class="point"
src="./images/point.png">{{ merchantInfo.installCostPartnerMerchant ? merchantInfo.installCostPartnerMerchant.merchantName : '' }}
</p>
<p class="flex">
<el-input :size="size"
:disabled="merchantInfo.divisionStatus !== 3"
v-model="moneyForm.installCostMerchantDivisionMoney"
placeholder="安装费服务商收款金额"
@input="handlePartnerDivisionMoney($event,'installCostMerchantDivisionMoney')" />
<el-button :size="size"
:disabled="merchantInfo.divisionStatus !== 3"
type="primary"
@click="handleSave">
确认
</el-button>
</p>
</el-form-item>
<el-form-item v-if="Object.values(needJudgeMerchantList).includes(5)">
<p class="one-line-ellipsis"
:title="merchantInfo.marketingCostPartnerMerchant ? merchantInfo.marketingCostPartnerMerchant.merchantName : ''">
<img class="point"
src="./images/point.png">{{ merchantInfo.marketingCostPartnerMerchant ? merchantInfo.marketingCostPartnerMerchant.merchantName : '' }}
</p>
<p class="flex">
<el-input :size="size"
:disabled="merchantInfo.divisionStatus !== 3"
v-model="moneyForm.marketingCostMerchantDivisionMoney"
placeholder="营销费服务商收款金额"
@input="handlePartnerDivisionMoney($event,'marketingCostMerchantDivisionMoney')" />
<el-button :size="size"
:disabled="merchantInfo.divisionStatus !== 3"
type="primary"
@click="handleSave">
确认
</el-button>
</p>
</el-form-item> -->
</el-form>
</el-form>
</div>
</div>
</div>
</div>
...
...
src/views/systemConfig/merchant/financialRules/components/tipsDialog.vue
View file @
802bd45
<!-- 财务分账测试 -->
<!-- 财务分账测试 -->
<
template
>
<
template
>
<!-- btn-ok-label="全部下载" -->
<!-- btn-ok-label="全部下载" -->
<d2-dialog
title=
"提示"
<d2-dialog
title=
"提示"
:is-visible=
"verificationCodeVisible"
class=
"verificationCode"
width=
"750px"
:is-visible=
"verificationCodeVisible"
btn-ok-label=
"申请虚拟对公账户"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
class=
"verificationCode"
width=
"750px"
btn-ok-label=
"申请虚拟对公账户"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<!--
<div>
55
</div>
-->
<!--
<div>
55
</div>
-->
<p>
分账对象未开通虚拟对公账户,请继续前往申请开通:
</p>
<div
class=
"box"
v-for=
"(item, index) in accountValidMerchants"
:key=
"index"
>
<div
class=
"container"
>
<p
class=
"channel"
>
渠道:
{{
item
.
paymentChannelName
}}
分账对象未开通虚拟对公账户,请继续前往申请开通:
</p>
<p
v-for=
"(item,index) in accountValidMerchants"
<div
class=
"info"
v-if=
"item.shopMerchants.length"
>
:key=
"index"
>
流量方:
<span
v-for=
"(child, childIndex) in item.shopMerchants"
:key=
'childIndex'
>
{{
child
.
merchantName
}}
</span>
<span
class=
"label"
>
名称:
{{
item
.
merchantName
}}
</span>
</div>
</p>
<div
class=
"info"
v-if=
"item.partners.length"
>
服务商:
<span
v-for=
"(child, childIndex) in item.partners"
:key=
'childIndex'
>
{{
child
.
merchantName
}}
</span>
</div>
<div
class=
"info"
v-if=
"item.platformMerchants.length"
>
平台方:
<span
v-for=
"(child, childIndex) in item.platformMerchants"
:key=
'childIndex'
>
{{
child
.
merchantName
}}
</span>
</div>
</div>
</div>
<!--
<div
class=
"box"
v-for=
"(item, index) in accountValidMerchants"
:key=
"index"
>
<p
class=
"channel"
>
渠道:
{{
item
.
paymentChannelName
}}
分账对象未开通虚拟对公账户,请继续前往申请开通:
</p>
<div
class=
"info"
v-if=
"item.shopMerchants.length"
>
流量方:
<span
v-for=
"(child, childIndex) in item.shopMerchants"
:key=
'childIndex'
>
{{
child
.
merchantName
}}
</span>
</div>
<div
class=
"info"
v-if=
"item.partners.length"
>
服务商:
<span
v-for=
"(child, childIndex) in item.partners"
:key=
'childIndex'
>
{{
child
.
merchantName
}}
</span>
</div>
<div
class=
"info"
v-if=
"item.platformMerchants.length"
>
平台方:
<span
v-for=
"(child, childIndex) in item.platformMerchants"
:key=
'childIndex'
>
{{
child
.
merchantName
}}
</span>
</div>
</div>
-->
</d2-dialog>
</d2-dialog>
</
template
>
</
template
>
...
@@ -82,4 +96,14 @@ export default {
...
@@ -82,4 +96,14 @@ export default {
color
:
#333333
;
color
:
#333333
;
background
:
#f6f8fa
;
background
:
#f6f8fa
;
}
}
.channel
{
color
:
#333333
;
font-size
:
16px
;
}
.info
{
color
:
#666666
;
font-size
:
14px
;
}
</
style
>
</
style
>
src/views/systemConfig/merchant/financialRules/index.vue
View file @
802bd45
This diff is collapsed.
Click to expand it.
src/views/systemConfig/yqStoreManage/qRcodeDialog.vue
View file @
802bd45
<
template
>
<
template
>
<d2-dialog
title=
"收款二维码"
:is-visible=
"qRcodeVisible"
class=
"qRcodeDailog"
width=
"750px"
btn-ok-label=
"全部下载"
<d2-dialog
title=
"收款二维码"
:is-visible=
"qRcodeVisible"
class=
"qRcodeDailog"
width=
"750px"
btn-ok-label=
"全部下载"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
<div
class=
"channelBox"
>
<span>
支付渠道:
</span>
<el-select
v-model=
"paymentChannelId"
placeholder=
"请选择"
class=
"elSelect"
>
<el-option
v-for=
"item in paymentChannelList"
:key=
"item.paymentChannelId"
:label=
"item.paymentChannelName"
:value=
"item.paymentChannelId"
>
</el-option>
</el-select>
<el-button
type=
"primary"
@
click=
"savaAll"
>
重新生成
</el-button>
</div>
<div
class=
"qrcon"
>
<div
class=
"qrcon"
>
<div
class=
"wxcon"
>
<div
class=
"wxcon"
>
<div
class=
"codeDiv"
id=
"wxview"
>
<div
class=
"codeDiv"
id=
"wxview"
>
...
@@ -13,7 +22,7 @@
...
@@ -13,7 +22,7 @@
<div
class=
"merchantNameDiv"
>
{{
info
.
yqMerchantName
}}
</div>
<div
class=
"merchantNameDiv"
>
{{
info
.
yqMerchantName
}}
</div>
</div>
</div>
<el-button
style=
"marginTop:20px"
type=
"primary "
<el-button
style=
"marginTop:20px"
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"
id=
"aliview"
>
<div
class=
"codeDiv"
id=
"aliview"
>
...
@@ -30,7 +39,7 @@
...
@@ -30,7 +39,7 @@
<div
class=
"merchantNameDiv"
>
{{
info
.
yqMerchantName
}}
</div>
<div
class=
"merchantNameDiv"
>
{{
info
.
yqMerchantName
}}
</div>
</div>
</div>
<el-button
style=
"marginTop:20px"
type=
"primary "
<el-button
style=
"marginTop:20px"
type=
"primary "
@
click=
"takeScreenshot('aliview', `$
{info.yqMerchantName}支付宝支付收款码`)">下载
@
click=
"takeScreenshot('aliview', `$
{info.yqMerchantName}支付宝支付收款码`)">下载
</el-button>
</el-button>
</div>
</div>
</div>
</div>
...
@@ -39,8 +48,8 @@
...
@@ -39,8 +48,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
// alipayQrcode
import
{
createWeappQrcode
}
from
'@api/serviceManage'
import
{
createWeappQrcode
}
from
'@api/serviceManage'
import
{
paymentChannelList
}
from
"@api/merchant"
import
{
baseConfig
}
from
'@/main'
import
{
baseConfig
}
from
'@/main'
import
html2canvas
from
'html2canvas'
import
html2canvas
from
'html2canvas'
import
QRCode
from
"qrcodejs2"
import
QRCode
from
"qrcodejs2"
...
@@ -48,6 +57,8 @@ export default {
...
@@ -48,6 +57,8 @@ export default {
name
:
'QRcodeDialog'
,
name
:
'QRcodeDialog'
,
data
()
{
data
()
{
return
{
return
{
paymentChannelList
:
[],
paymentChannelId
:
'8881A96B22B84A348263EE4F314A2A23'
,
infoForm
:
{
infoForm
:
{
merchantType
:
''
,
merchantType
:
''
,
merchant
:
[],
merchant
:
[],
...
@@ -61,7 +72,8 @@ export default {
...
@@ -61,7 +72,8 @@ export default {
},
},
qrCodeURL
:
''
,
qrCodeURL
:
''
,
aliqrCodeURL
:
''
,
aliqrCodeURL
:
''
,
defaultImg
:
require
(
'./images/defaultImg.png'
)
defaultImg
:
require
(
'./images/defaultImg.png'
),
qrcode
:
''
}
}
},
},
...
@@ -84,11 +96,24 @@ export default {
...
@@ -84,11 +96,24 @@ export default {
components
:
{},
components
:
{},
mounted
()
{
mounted
()
{
this
.
initPaymentChannelList
()
this
.
createQrcodeImage
()
this
.
createQrcodeImage
()
this
.
alipayQrcode
()
this
.
alipayQrcode
()
},
},
methods
:
{
methods
:
{
savaAll
()
{
this
.
createQrcodeImage
()
this
.
alipayQrcode
()
// this.takeScreenshot('wxview', `${this.info.yqMerchantName}微信支付收款码`)
// this.takeScreenshot('aliview', `${this.info.yqMerchantName}支付宝支付收款码`)
},
initPaymentChannelList
()
{
paymentChannelList
().
then
((
res
)
=>
{
this
.
paymentChannelList
=
res
})
},
/**
/**
* @description: 图片转base64
* @description: 图片转base64
* @param {String} url 需要转换的图片原链接(http://....jpg)
* @param {String} url 需要转换的图片原链接(http://....jpg)
...
@@ -117,11 +142,10 @@ export default {
...
@@ -117,11 +142,10 @@ export default {
createQrcodeImage
()
{
createQrcodeImage
()
{
const
oParams
=
{}
const
oParams
=
{}
oParams
.
channelType
=
1
oParams
.
channelType
=
1
oParams
.
appId
=
'wx06d1198e751435d1'
oParams
.
appId
=
this
.
paymentChannelId
==
'8881A96B22B84A348263EE4F314A2A23'
?
'wx06d1198e751435d1'
:
'wx3d2ee7f8bda398cc'
// 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
}
&paymentChannelId=
${
this
.
paymentChannelId
}
`
// oParams.appId = 'wx902f0b9c4b2c669d'
// oParams.appId = 'wx902f0b9c4b2c669d'
// oParams.appId = 'wx570d9331f9ace0bd'
// oParams.appId = 'wx570d9331f9ace0bd'
// oParams.qrcodeType = 'QR_WXA_UNLIMIT'
// oParams.qrcodeType = 'QR_WXA_UNLIMIT'
...
@@ -161,9 +185,6 @@ export default {
...
@@ -161,9 +185,6 @@ export default {
// 下载保存图片
// 下载保存图片
takeScreenshot
(
eleId
,
name
)
{
takeScreenshot
(
eleId
,
name
)
{
// const opts = {
// useCORS: true
// }
const
that
=
this
const
that
=
this
html2canvas
(
document
.
getElementById
(
eleId
),
{
html2canvas
(
document
.
getElementById
(
eleId
),
{
backgroundColor
:
null
,
backgroundColor
:
null
,
...
@@ -211,18 +232,23 @@ export default {
...
@@ -211,18 +232,23 @@ export default {
// 生成支付宝中间二维码
// 生成支付宝中间二维码
alipayQrcode
()
{
alipayQrcode
()
{
// const that = this
// const that = this
const
shareUrl
=
`
${
baseConfig
.
alipayPath
}
?merchantId=
${
this
.
info
.
yqMerchantId
}
&merchantName=
${
this
.
info
.
yqMerchantName
}
`
// pay 支付渠道
const
shareUrl
=
`
${
baseConfig
.
alipayPath
}
?merchantId=
${
this
.
info
.
yqMerchantId
}
&merchantName=
${
this
.
info
.
yqMerchantName
}
&pay=
${
this
.
paymentChannelId
}
`
console
.
log
(
baseConfig
.
alipayPath
)
console
.
log
(
baseConfig
.
alipayPath
)
console
.
log
(
shareUrl
)
console
.
log
(
shareUrl
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
console
.
log
(
document
.
getElementById
(
'qrcodeDiv'
))
console
.
log
(
document
.
getElementById
(
'qrcodeDiv'
))
const
qrcode
=
new
QRCode
(
"qrcodeDiv"
,
{
if
(
this
.
qrcode
)
{
text
:
shareUrl
,
this
.
qrcode
.
clear
()
// 清除二维码
width
:
150
,
// 图像宽度
}
else
{
height
:
150
// 图像高度
this
.
qrcode
=
new
QRCode
(
"qrcodeDiv"
,
{
})
text
:
shareUrl
,
qrcode
.
clear
()
// 清除二维码
width
:
150
,
// 图像宽度
qrcode
.
makeCode
(
shareUrl
)
// 生成另一个新的二维码
height
:
150
// 图像高度
})
}
// qrcode.clear() // 清除二维码
this
.
qrcode
.
makeCode
(
shareUrl
)
// 生成另一个新的二维码
this
.
aliqrCodeURL
=
qrcode
this
.
aliqrCodeURL
=
qrcode
},
500
)
},
500
)
// this.$nextTick(() => {
// this.$nextTick(() => {
...
@@ -269,7 +295,7 @@ export default {
...
@@ -269,7 +295,7 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
lang=
"scss"
>
.qrcon
{
.qrcon
{
display
:
flex
;
display
:
flex
;
}
}
...
@@ -345,4 +371,12 @@ export default {
...
@@ -345,4 +371,12 @@ export default {
/* 自定义行数 */
/* 自定义行数 */
-webkit-line-clamp
:
2
;
-webkit-line-clamp
:
2
;
}
}
.channelBox
{
margin
:
auto
;
.elSelect
{
margin
:
0
10px
10px
;
}
}
</
style
>
</
style
>
src/views/systemConfig/yqStoreManage/yqStoreManage.vue
View file @
802bd45
...
@@ -18,33 +18,24 @@
...
@@ -18,33 +18,24 @@
<auth-button
category=
"Button"
/>
<auth-button
category=
"Button"
/>
</d2-table-header>
</d2-table-header>
<d2-table
ref=
"serviceStoreTable"
:search-form=
"searchForm"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
<d2-table
ref=
"serviceStoreTable"
:search-form=
"searchForm"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
:before-search-fn=
"beforeSearchFn"
>
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
</auth-button>
</auth-button>
</d2-table>
</d2-table>
<qrcode-dialog
:q-rcode-visible=
"qRcodeVisible"
:info=
"recordInfo"
v-if=
"qRcodeVisible"
<qrcode-dialog
:q-rcode-visible=
"qRcodeVisible"
:info=
"recordInfo"
v-if=
"qRcodeVisible"
@
dialogClose=
"dialogClose"
/>
@
dialogClose=
"dialogClose"
/>
</div>
</div>
<wxQRcodeDialog
:q-rcode-visible
.
sync=
"QRcodeDialog"
v-if=
"QRcodeDialog"
:merchant-info=
"recordInfo"
/>
<wxQRcodeDialog
:q-rcode-visible
.
sync=
"QRcodeDialog"
v-if=
"QRcodeDialog"
:merchant-info=
"recordInfo"
/>
<scene-entry-dialog
:scene-entry-visible=
"sceneEntryVisible"
:info=
"recordInfo"
v-if=
"sceneEntryVisible"
<scene-entry-dialog
:scene-entry-visible=
"sceneEntryVisible"
:info=
"recordInfo"
v-if=
"sceneEntryVisible"
@
dialogClose=
"sceneDialogClose"
/>
@
dialogClose=
"sceneDialogClose"
/>
</d2-container>
</d2-container>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
// import _ from 'lodash'
import
{
getYqMerchantConfig
}
from
'@api/serviceManage'
import
{
// getList,
// getMerchantList,
// addParentMerchant,
// deleteParentMerchant,
getYqMerchantConfig
}
from
'@api/serviceManage'
import
{
mapActions
}
from
'vuex'
import
{
mapActions
}
from
'vuex'
import
{
BaseData
,
manageTypeList
}
from
'@/common/constants.js'
import
{
BaseData
,
manageTypeList
}
from
'@/common/constants.js'
// import { sendSms, getAdminInfo } from '@api/merchant'
// import { getParkStore } from '@api/editCustomer'
import
qrcodeDialog
from
'./qRcodeDialog'
import
qrcodeDialog
from
'./qRcodeDialog'
import
wxQRcodeDialog
from
'./wxQRcodeDialog'
import
wxQRcodeDialog
from
'./wxQRcodeDialog'
import
sceneEntryDialog
from
'./sceneEntryDialog'
import
sceneEntryDialog
from
'./sceneEntryDialog'
...
...
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