|
@@ -29,6 +29,7 @@ import {
|
|
|
import UseCoupons, { couponEnum } from '@/views/order-detail/use-coupons'
|
|
|
import { addressInfo, resestState } from '@/views/address/address'
|
|
|
import { orderInfos } from '@/views/order-detail/orderStatus'
|
|
|
+import ColHeader from '@/components/col-header'
|
|
|
export default defineComponent({
|
|
|
name: 'cartConfirm',
|
|
|
setup() {
|
|
@@ -78,14 +79,14 @@ export default defineComponent({
|
|
|
const authPopup = ref(false)
|
|
|
const orderInfo = ref<any>()
|
|
|
//修复实名认证头部问题
|
|
|
- watch(authPopup, (value, oldValue) => {
|
|
|
- if (authPopup.value) {
|
|
|
- // 设置是否显示导航栏 0 显示 1 不显示
|
|
|
- postMessage({ api: 'setBarStatus', content: { status: 0 } })
|
|
|
- } else {
|
|
|
- postMessage({ api: 'setBarStatus', content: { status: 1 } })
|
|
|
- }
|
|
|
- })
|
|
|
+ // watch(authPopup, (value, oldValue) => {
|
|
|
+ // if (authPopup.value) {
|
|
|
+ // // 设置是否显示导航栏 0 显示 1 不显示
|
|
|
+ // postMessage({ api: 'setBarStatus', content: { status: 0 } })
|
|
|
+ // } else {
|
|
|
+ // postMessage({ api: 'setBarStatus', content: { status: 1 } })
|
|
|
+ // }
|
|
|
+ // })
|
|
|
// 提交
|
|
|
const onSubmit = () => {
|
|
|
if (!address.value?.id) {
|
|
@@ -152,10 +153,12 @@ export default defineComponent({
|
|
|
//认证成功
|
|
|
const onAuthSuccess = () => {
|
|
|
authPopup.value = false
|
|
|
+ console.log(state.user.data)
|
|
|
onSubmit() // 实名成功后自动支付
|
|
|
}
|
|
|
return () => (
|
|
|
<>
|
|
|
+ <ColHeader />
|
|
|
{loading.value ? null : (
|
|
|
<div>
|
|
|
{cartConfirm.cartPromotionItemList.length ? (
|