57 lines
941 B
Vue
57 lines
941 B
Vue
|
<script setup>
|
||
|
// 店铺 客服 收藏 支付
|
||
|
import {
|
||
|
ref,
|
||
|
reactive,
|
||
|
getCurrentInstance,
|
||
|
computed,
|
||
|
defineEmits,
|
||
|
onMounted
|
||
|
} from 'vue'
|
||
|
//
|
||
|
import util from '@/common/js/util.js'
|
||
|
//
|
||
|
import api from '@/api/index.js'
|
||
|
//
|
||
|
import {
|
||
|
useStore
|
||
|
} from 'vuex'
|
||
|
// 生成订单
|
||
|
import makeOrder from '@/components/shop/detail/makeOrder.vue'
|
||
|
|
||
|
const {
|
||
|
proxy
|
||
|
} = getCurrentInstance()
|
||
|
//
|
||
|
const store = useStore()
|
||
|
//
|
||
|
const props = defineProps({
|
||
|
// 商品信息
|
||
|
detail: {
|
||
|
type: Object,
|
||
|
default: () => ({})
|
||
|
},
|
||
|
})
|
||
|
//
|
||
|
const emit = defineEmits(['update'])
|
||
|
// 用户信息
|
||
|
const userinfo = computed(() => store.state.userinfo)
|
||
|
|
||
|
/**
|
||
|
* 跳转
|
||
|
* @param {Object} url 跳转路径
|
||
|
*/
|
||
|
function link(url) {
|
||
|
uni.navigateTo({
|
||
|
url,
|
||
|
})
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<!-- 立即支付 -->
|
||
|
<makeOrder ref="makeOrderRef" :detail="detail" @confirm="handlePay" />
|
||
|
</template>
|
||
|
|
||
|
<style scoped lang="scss">
|
||
|
</style>
|