<template>
  <view>
    <haiNaBaiXianClassify v-if="sign == 'haiNaBaiXian'"></haiNaBaiXianClassify>
    <hongFuQiTianClassify v-else-if="sign == 'hongFuQiTian'"></hongFuQiTianClassify>
    <chengXinRuYiClassify v-else-if="sign == 'chengXinRuYi'"></chengXinRuYiClassify>
    <baiLiTiaoTiClassify v-else-if="sign == 'baiLiTiaoYi'"></baiLiTiaoTiClassify>
    <Classify v-else-if="sign == 'default'"></Classify>
  </view>
</template>

<script>
var app = getApp();
import { mapState, mapActions } from "vuex";
import Classify from "../themes/default/classify.vue";
import haiNaBaiXianClassify from "../themes/haiNaBaiXian/classify.vue";
import hongFuQiTianClassify from "../themes/hongFuQiTian/classify.vue";
import chengXinRuYiClassify from "../themes/chengXinRuYi/classify.vue";
import baiLiTiaoTiClassify from "../themes/baiLiTiaoTi/classify.vue";
export default {
  components: {
    Classify,
    haiNaBaiXianClassify,
    hongFuQiTianClassify,
    chengXinRuYiClassify,
    baiLiTiaoTiClassify
  },
  computed: {
    ...mapState([
      'opt','sign'
    ]),
  },
  onLoad: function (opt) { 
    let vopt = app.getopts(opt);
    // vopt = app.getopts(opt);
    console.log("打印vopt",vopt)
    vopt.bid = vopt.bid ? vopt.bid : 0;
    vopt.cid = vopt.cid2;
    console.log("打印vopt==========",vopt)
    this.acOpt(vopt);
  },
  methods: {
    ...mapActions([
      'acOpt'
    ]),
  },
};
</script>