From 89b3095bf67e97650cad53c7c6f6134f2aa5fd60 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期四, 11 七月 2024 17:34:04 +0800 Subject: [PATCH] 1 --- detail.vue | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sub_pages/customer/trade/detail.vue | 0 2 files changed, 56 insertions(+), 0 deletions(-) diff --git a/detail.vue b/detail.vue new file mode 100644 index 0000000..2198b28 --- /dev/null +++ b/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> \ No newline at end of file diff --git a/sub_pages/customer/detail.vue b/sub_pages/customer/trade/detail.vue similarity index 100% rename from sub_pages/customer/detail.vue rename to sub_pages/customer/trade/detail.vue -- Gitblit v1.9.3