cashier_app/pages/list/render/MchAppRender.vue

37 lines
875 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--
订单列表页面 数据渲染
业务 示例模板
@author terrfly
@site https://www.jeequan.com
@date 2022/11/23 16:57
-->
<template>
<JeepayTableListItem :subtitle="props.record.appId" @tap="toDetailPage" :state="props.record.state">
<template #title>
{{ props.record.appName }}
<JeepayTag v-if="props.record.defaultFlag == 1" type="green-rgba">默认</JeepayTag>
</template>
</JeepayTableListItem>
</template>
<script setup>
import { reactive, ref } from 'vue'
import go from '@/commons/utils/go.js'
import ak from '@/commons/utils/ak.js'
// 定义传入属性
const props = defineProps({
record: { type: Object, default: () => {} }, // 渲染对象
})
function toDetailPage() {
if(ak.ent.has('ENT_MCH_APP_VIEW')){
go.to('PAGES_APP_DETAIL', { appId: props.record.appId })
}
}
</script>
<style lang="scss" scoped></style>