微信小程序支付集成
CI/CD / build (push) Successful in 4m59s
Details
CI/CD / build (push) Successful in 4m59s
Details
This commit is contained in:
parent
7caff23099
commit
11530518f3
|
|
@ -56,6 +56,7 @@
|
||||||
import { ref, computed } from 'vue'
|
import { ref, computed } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { ElIcon } from 'element-plus'
|
import { ElIcon } from 'element-plus'
|
||||||
|
import { isWeChatBrowser,WechatBus } from '@deotaland/utils'
|
||||||
import {
|
import {
|
||||||
CloseBold,
|
CloseBold,
|
||||||
InfoFilled,
|
InfoFilled,
|
||||||
|
|
@ -74,9 +75,23 @@ const props = defineProps({
|
||||||
series: { type: String, default: '' }
|
series: { type: String, default: '' }
|
||||||
})
|
})
|
||||||
const emit = defineEmits(['close', 'acknowledge'])
|
const emit = defineEmits(['close', 'acknowledge'])
|
||||||
const handleOverlayClick = () => onClose()
|
const handleOverlayClick = () => onClose();
|
||||||
const onClose = () => emit('close')
|
const onClose = () => emit('close');
|
||||||
const handleAcknowledge = () => {
|
const handleAcknowledge = () => {
|
||||||
|
if(isWeChatBrowser()){
|
||||||
|
WechatBus.BusWechartForNavigate('/pages/pay/pay',{
|
||||||
|
method:'pay',
|
||||||
|
payData:JSON.stringify({
|
||||||
|
orderId: 1,
|
||||||
|
series:1,
|
||||||
|
name:{
|
||||||
|
D1:'定制模型',
|
||||||
|
E1:'定制模型',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
emit('acknowledge', props.modelData)
|
emit('acknowledge', props.modelData)
|
||||||
onClose()
|
onClose()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
||||||
// import VueLazyload from 'vue3-lazyload'
|
// import VueLazyload from 'vue3-lazyload'
|
||||||
import 'element-plus/dist/index.css'
|
import 'element-plus/dist/index.css'
|
||||||
import 'nprogress/nprogress.css'
|
import 'nprogress/nprogress.css'
|
||||||
import {ElMessage,ElLoading } from 'element-plus'
|
import {ElMessage} from 'element-plus'
|
||||||
import dtUI from '@deotaland/ui'
|
import dtUI from '@deotaland/ui'
|
||||||
import '@deotaland/ui/style.css'
|
import '@deotaland/ui/style.css'
|
||||||
import { environmentUtils,WechatBus,isWeChatBrowser } from '@deotaland/utils';
|
import { environmentUtils,WechatBus,isWeChatBrowser } from '@deotaland/utils';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue