1
xuxueyang
2024-07-11 89b3095bf67e97650cad53c7c6f6134f2aa5fd60
1
已重命名1个文件
已添加1个文件
56 ■■■■■ 文件已修改
detail.vue 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
sub_pages/customer/trade/detail.vue 补丁 | 查看 | 原始文档 | blame | 历史
detail.vue
对比新文件
@@ -0,0 +1,56 @@
<template>
    <view class="shop-detail">
        <view v-if="dto.id">
            <!-- 图片+2个icon -->
            <view>
            </view>
        </view>
    </view>
</template>
<script>
    export default {
        data() {
            return {
                dto: {
                },
                id: ''
            };
        },
        async onLoad(options) {
            this.id = options.id || ''
            await this.init()
        },
        async onPullDownRefresh() {
            await this.init()
            uni.stopPullDownRefresh()
        },
        methods: {
            async init() {
                this.$message.showLoading()
                const {
                    data
                } = await this.$http.request('get', '/api/customer/flower/list/view' + this.id, {
                })
                this.$message.hideLoading()
                this.dto = {
                    ...data
                }
            },
        }
    }
</script>
<style lang="scss" scoped>
    .shop-detail{
    }
</style>
sub_pages/customer/trade/detail.vue