123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <template name="cm-price">
- <!-- 商品促销活动弹窗提示判断 -->
- <view class="wrap-main">
-
- </view>
- </template>
- <script>
- import { mapState,mapMutations } from 'vuex'
- export default{
- name:'cm-price',
- props:{
- product:{
- type:Object,
- },
- userIdentity: {
- type: Number,
- default: 2
- },
- ladderPriceList:{
- type: Array,
- },
- retailPrice:{
- type:String,
- },
- minBuyNumber:{
- type: Number,
- default: 1
- }
- },
- data() {
- return{
- popupShow:false
- }
- },
- filters: {
- NumFormat:function(text) {//处理金额
- return Number(text).toFixed(2);
- },
- },
- created() {
-
- },
- computed: {
- ...mapState(['hasLogin','isWxAuthorize'])
- },
- methods:{
- clickPopupShow(){
- this.popupShow = true
- },
- hidePopup(){
- this.popupShow = false
- },
- goUpgradeApply(){
- this.$api.navigateTo('/pages/login/apply')
- },
- loginClick(){
- this.$api.navigateTo('/pages/login/login')
- }
- },
-
- }
- </script>
- <style lang="scss">
- .tui-flex-1 {
- flex: 1;
- padding: 16rpx;
- }
- .tui-popup-box {
- position: relative;
- padding: 30rpx 0 100rpx 0;
- }
- .tui-popup-title{
- line-height: 60rpx;
- text-align: center;
- color: #333;
- font-size: 28rpx;
- border-bottom: 1px solid #EBEBEB;
- }
- .tui-popup-attr{
- width: 100%;
- padding: 0 20rpx;
- .tui-popup-attr-cell{
- width: 100%;
- height: auto;
- border-bottom: 1px solid #EFEFEF;
- font-size: 24rpx;
- line-height: 24rpx;
- display: flex;
- flex-wrap: wrap;
- .attr-cell-td{
- width: 238rpx;
- float: left;
- color: #999999;
- padding:24rpx 20rpx;
- display: flex;
- flex: 3;
- flex-direction: column;
- }
- .attr-cell-tr{
- width: 462rpx;
- float: left;
- color: #333333;
- padding:20rpx;
- display: flex;
- flex: 7;
- flex-direction: column;
- }
- &:last-child{
- border-bottom: none;
- }
- }
- }
- .tui-popup-btn {
- width: 100%;
- position: absolute;
- left: 0;
- bottom: 0;
- z-index: 9999;
- }
- </style>
|