You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
713 B
31 lines
713 B
<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>
|