This commit is contained in:
魏啾
2024-03-11 14:32:48 +08:00
parent 6e3a4c5ce3
commit d407cb81be
5 changed files with 627 additions and 13 deletions

View File

@@ -82,7 +82,7 @@
<keyboard v-if="props.membershow == '1'" @consumeFees="consumeFees"></keyboard>
<div class="orderbox_right_button" v-if="props.membershow == '0'">
<router-link to="/" style="width: 35%;">
<el-button style="width: 100%;" >创建订单</el-button>
<el-button style="width: 100%;">创建订单</el-button>
</router-link>
<el-button style="width: 60%;" type="primary" @click="recharge = true">账户充值</el-button>
</div>
@@ -152,11 +152,14 @@
</cwxeyboard>
</div>
</div>
</div>
</el-dialog>
</div>
<el-dialog width="500" v-model="payCarddialogVisible" style="padding: 0; " title="会员充值" :close-on-click-modal="false">
<payCard :amount="moneys" :orderId="props.orderId" @paySuccess="paySuccess" />
</el-dialog>
</template>
<script setup>
@@ -168,6 +171,8 @@ import lodash from 'lodash'
import add from '@/views/member/components/add.vue'
import cwxeyboard from '@/components/cwx-keyboard/cwx-keyboard.vue'
import keyboard from '@/views/home/components/keyboard.vue'
import payCard from '@/views/member/components/payCard/payCard.vue'
const store = useUser()
const stored = ref(false)//储值余额
@@ -184,6 +189,14 @@ const props = defineProps({//首页传值
placeholder: {
type: String,
default: '提示'
},
amount: {
type: [Number, String],
default: 0
},
orderId: {
type: [String, Number],
default: ''
}
})
@@ -200,7 +213,10 @@ const consumeFees = (e) => {
tableData.phone = e
}
const payCarddialogVisible = ref(false)
const confirmEvent = async () => {//子组件 确认按钮
// payCarddialogVisible.value = true
try {
let res = await accountPaymember({
shopId: store.userInfo.shopId,