1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <template name="second-price">
- <!-- 商品详情价格判断 -->
- <view class="wrap-main">
- <template v-if="!hasLogin">
- <view class="p-login grade tui-skeleton-fillet">
- <view class="floor-item-btn" v-if="product.detailTalkFlag !=2">
- <view class="btn" @click.stop="loginClick">登录查看价格</view>
- </view>
- <template v-else>
- <text class="p-no">¥</text>
- <text class="txt big" >详聊</text>
- </template>
- </view>
- </template>
- <template v-else>
- <view class="wrap-main-item">
- <view class="p-price tui-skeleton-fillet">
- <text class="txt sm">¥</text>
- <text class="txt big" v-if="product.detailTalkFlag==2">详聊</text>
- <text class="txt big" v-else>{{product.price1Str}}</text>
- </view>
- </view>
-
- </template>
-
- </view>
- </template>
- <script>
- import { mapState,mapMutations } from 'vuex'
- export default{
- name:'second-price',
- props:{
- product:{
- type:Object,
- },
- },
- data() {
- return{
-
- }
- },
- filters: {
- NumFormat:function(text) {//处理金额
- return Number(text).toFixed(2);
- },
- },
- created() {
- console.log(this.product)
- },
- computed: {
- ...mapState(['hasLogin','isWxAuthorize'])
- },
- methods:{
- loginClick(){
- this.$api.navigateTo('/pages/login/login')
- },
- },
-
- }
- </script>
- <style lang="scss">
- </style>
|