InfoChain.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!-- Concat.vue -->
  2. <template>
  3. <view class="div main-content" v-if="detailInfo && detailInfo.if_chain">
  4. <flex-line :is-link="true" :show-border="true" @click.native="goNavigate('/pages/home/goodsdetail/ChainList',{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. },
  18. components:{flexLine},
  19. computed: {
  20. ...mapState({
  21. detailInfo: state => state.goodsdetail.detailInfo
  22. })
  23. },
  24. watch: {},
  25. created () {
  26. },
  27. methods:{
  28. goNavigate(path,query=false){
  29. uni.navigateTo({url:path+(query?('?'+urlencode(query)):'')})
  30. },
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .main-content{padding:0 $pageSpace;background-color: #fff;}
  36. .ui-promotions-wrapper {
  37. height: auto;
  38. &.ui-detail-common {
  39. padding: 0;
  40. }
  41. .promotions-header {
  42. padding: 0 $pageSpace;
  43. margin-top: 0.4rem;
  44. height: 2rem;
  45. line-height: 2rem;
  46. background:#fff;
  47. .h3 {
  48. font-size:$subFontSize;
  49. color: #333;
  50. .iconfont{float:right;}
  51. }
  52. .img {
  53. width:0.25rem;
  54. height: 0.5rem;
  55. }
  56. }
  57. }
  58. </style>