123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <!-- Concat.vue -->
- <template>
- <view class="div main-content" v-if="detailInfo">
- <flex-line :is-link="true" :show-border="true" @click.native="goNavigate('/pages/home/goodsdetail/GoodsConsult',{goods_id:detailInfo.goods_id})">
- <text class="span">商品咨询</text>
- </flex-line>
- </view>
- </template>
- <script>
- import { urlencode } from '@/util/common'
- import { mapState, mapMutations } from 'vuex'
- import flexLine from '../../../flexLine'
- export default {
- data () {
- return {}
- },
- components:{flexLine},
- computed: {
- ...mapState({
- detailInfo: state => state.goodsdetail.detailInfo,
- user: state => state.member.info,
- isOnline: state => state.member.isOnline
- })
- },
- watch: {},
- mounted () {
- this.$nextTick(() => {})
- },
- created () {},
- methods:{
- goNavigate(path,query=false){
- uni.navigateTo({url:path+(query?('?'+urlencode(query)):'')})
- },
- goSingin () {
- uni.navigateTo({ url: '/pages/home/memberlogin/Login' })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .main-content{padding:0 $pageSpace;background-color: #fff;}
- </style>
|