InfoTranslate.vue 876 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!-- Concat.vue -->
  2. <template>
  3. <view class="div main-content" v-if="storeInfo.store_baozh">
  4. <flex-line :is-link="true" :show-border="true" @click.native="changeTranslateState()">
  5. <text>保障</text>
  6. </flex-line>
  7. </view>
  8. </template>
  9. <script>
  10. import { mapState, mapMutations } from 'vuex'
  11. import flexLine from '../../../flexLine'
  12. export default {
  13. data () {
  14. return {}
  15. },
  16. components:{flexLine},
  17. computed: {
  18. ...mapState({
  19. storeInfo: state => state.goodsdetail.storeInfo,
  20. })
  21. },
  22. watch: {},
  23. mounted () {
  24. this.$nextTick(() => {})
  25. },
  26. created () {},
  27. methods: {
  28. ...mapMutations({
  29. saveTranslateState: 'saveTranslateState',
  30. }),
  31. changeTranslateState () {
  32. this.saveTranslateState(true)
  33. },
  34. }
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. .main-content{padding:0 $pageSpace;background-color: #fff;}
  39. </style>