InfoContact.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!-- Concat.vue -->
  2. <template>
  3. <view class="div main-content" v-if="detailInfo">
  4. <flex-line :is-link="true" :show-border="true" @click.native="goNavigate('/pages/home/goodsdetail/GoodsConsult',{goods_id:detailInfo.goods_id})">
  5. <text class="span">商品咨询</text>
  6. </flex-line>
  7. </view>
  8. </template>
  9. <script>
  10. import { urlencode } from '@/util/common'
  11. import { mapState, mapMutations } from 'vuex'
  12. import flexLine from '../../../flexLine'
  13. export default {
  14. data () {
  15. return {}
  16. },
  17. components:{flexLine},
  18. computed: {
  19. ...mapState({
  20. detailInfo: state => state.goodsdetail.detailInfo,
  21. user: state => state.member.info,
  22. isOnline: state => state.member.isOnline
  23. })
  24. },
  25. watch: {},
  26. mounted () {
  27. this.$nextTick(() => {})
  28. },
  29. created () {},
  30. methods:{
  31. goNavigate(path,query=false){
  32. uni.navigateTo({url:path+(query?('?'+urlencode(query)):'')})
  33. },
  34. goSingin () {
  35. uni.navigateTo({ url: '/pages/home/memberlogin/Login' })
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. .main-content{padding:0 $pageSpace;background-color: #fff;}
  42. </style>