<script>
import { go2 } from '@/utils/hook.js'
import store from '@/store/index.js'
export default {
  onLaunch: function (options) {
    const { query } = options
    // 判断是否从分享进入
    if (query.share) {
      let supplierId = query.id
      if (!supplierId) {
        go2('error')
      } else {
        store.commit('setSupplierId', supplierId)
      }
    } else {
      console.log('非分享进入', store.state.supplierId)
      if (!store.state.supplierId) {
        go2('error')
      }
    }
  },
  onShow: function () {},
  onHide: function () {}
}
</script>

<style>
/*每个页面公共css */
@import url('./common/css/reset.scss');
@import '@/static/icon/iconfont.css';
</style>
