Commit b2851209 by zhangxw

Merge remote-tracking branch 'origin/Saas+v4.14.0_1223' into v3.3.0

2 parents 5765221c 72feb1ac
import { http } from '@/main'
const defaultPath = 'entmicro.api.payment.'
const url = '/rop-scrm-entmicro/router'
// 获取支付商户列表数据
const getListApi = params => {
params.method = `${defaultPath}pageListPayment`
return http({
url: url,
method: 'POST',
data: params,
sign: true
})
}
// 获取所属商户数据
const getBusinessListApi = params => {
params.method = `${defaultPath}listMerchant`
return http({
url: url,
method: 'POST',
data: params,
sign: true
})
}
// 创建支付商户账号
const creatPayMerchantApi = params => {
params.method = `${defaultPath}createPayment`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 删除支付商户账号
const delPayMerchantApi = params => {
params.method = `${defaultPath}deleteById`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 生成收款测试公众号码
const creatBizQrcodeApi = params => {
params.method = `${defaultPath}createBizQrCode`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 生成收款测试微信小程序码
const createWeappQrcodeApi = params => {
params.method = `${defaultPath}createWeappQrcode`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 上传证书
const uploadCertApi = params => {
params.method = `${defaultPath}uploadCert`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 获取应用Id列表
const getlistAppInfoApi = params => {
params.method = `${defaultPath}listAppInfo`
return http({
url: url,
method: 'POST',
data: params,
sign: true
})
}
export default {
getListApi,
getBusinessListApi,
creatPayMerchantApi,
delPayMerchantApi,
creatBizQrcodeApi,
createWeappQrcodeApi,
uploadCertApi,
getlistAppInfoApi
}
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
getList() { getList() {
var params = { var params = {
goodsStatus: 1, goodsStatus: 1,
// goodsSource: 1, isActivityUsing: 1,
goodsSources: [1, 3], goodsSources: [1, 3],
pageNum: 1, pageNum: 1,
pageSize: 100000, pageSize: 100000,
......
...@@ -62,6 +62,19 @@ const staticRoutes = Object.freeze([ ...@@ -62,6 +62,19 @@ const staticRoutes = Object.freeze([
path: '/seckillActivity/dataBoard', path: '/seckillActivity/dataBoard',
component: resolve => require([`@/views/seckillActivity/dataBoard.vue`], resolve), component: resolve => require([`@/views/seckillActivity/dataBoard.vue`], resolve),
meta: {} meta: {}
},
// 支付商户管理
{
name: '支付商户管理',
path: '/payMerchantsManage/index',
component: resolve => require([`@/views/payMerchantsManage/index.vue`], resolve),
meta: {}
},
{
name: '新增支付商户',
path: '/payMerchantsManage/addPayMerchant',
component: resolve => require([`@/views/payMerchantsManage/addPayMerchant.vue`], resolve),
meta: {}
} }
]) ])
export default staticRoutes export default staticRoutes
...@@ -17,6 +17,7 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -17,6 +17,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$merchantId = merchantId Vue.prototype.$merchantId = merchantId
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$request = request
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
......
<template>
<GLDialog title="收款测试" mode="mid" okText="关闭" :visible.sync="isShowTestDialog" :close-on-click-modal="false" :close-on-press-escape="false" :before-close="handleDialogClose" :hasFooter="false">
<div class="dialog-look">
<div class="qrcode-box" v-for="(item, index) in dialogData" :key="index">
<div class="qrcode-tiltle">{{ item.title }}</div>
<div class="qrcode-tips">请扫码完成支付</div>
<img class="qrcode-img" :src="item.url" alt="" />
</div>
</div>
</GLDialog>
</template>
<script>
export default {
name: 'collection-test-dialog',
props: {
dialogData: {
type: Array,
default: () => []
},
isShowTestDialog: {
type: Boolean,
default: false
}
},
data() {
return {}
},
methods: {
handleDialogClose() {
this.$emit('handleDialogClose')
}
}
}
</script>
<style lang="scss" scoped>
.dialog-look {
padding: 24px 40px 48px 40px;
display: flex;
align-items: center;
justify-content: center;
.qrcode-box {
display: flex;
flex-flow: column;
align-items: center;
margin: 0 20px;
.qrcode-tiltle {
font-size: 16px;
color: #333;
}
.qrcode-tips {
font-size: 14px;
color: #666;
margin: 8px;
}
.qrcode-img {
width: 118px;
height: 118px;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!