对比新文件 |
| | |
| | | <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> |