<template>
	<view class="admin-product-list">
		<x-table :widget="widget" ref="xTable" type="ProductTable" :appendPara="appendPara" v-if="appendPara"> </x-table>
	</view>
</template>

<script>
	import ala from '@/service/ala.js'
	export default {
		props: {
			widget: {}
		},
		data() {
			return {
				reload: true, // 是否刷新
				priceStyleId: null,
				appendPara: null,
				viewModel: ''
			}
		},
		created() {
			this.init()
		},
		methods: {
			async init() {
				if (this.widget && this.widget.value) {
					this.priceStyleId = this.widget.value.priceStyleId
				}
				if (!this.priceStyleId) {
					ala.toast('商城模式不正确,请在DIY系统中配置')
				}
				this.appendPara = {
					priceStyleId: this.priceStyleId
				}
			}
		}
	}
</script>

<style>
</style>
