Files
crmeb_java/app/components/promotionGood/index.vue
stivepeim 6827148d7a 更新Note
1. 修复购物车,订单和退单后后置任务正确执行
	2. 修复佣金记录金额和详情
	3. 修复管理端 移动应用界面下订单管理数据统计不准确的问题
	4. 修复短信API升级-后台使用一号通
	5. 修复用户管理相关问题
	6. 修复核销点核销后核销地址不准确
	7. 修复资源同步云服务的问题
新增功能
	1. 秒杀
		a. 秒杀时段配置
		b. 秒杀商品维护
	2. 财务管理
		a. 申请提现
		b. 财务记录
			i. 充值记录
			ii. 资金监控
		c. 佣金记录
	3. 普通商品显示该商品正在参加的活动信息[秒杀]
2020-11-05 16:21:06 +08:00

111 lines
2.5 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<view class='promotionGood'>
<block v-for="(item,index) in benefit" :key="index">
<view class='item acea-row row-between-wrapper' @tap="goDetail(item)" hover-class="none">
<view class='pictrue'>
<image :src='item.image'></image>
<span class="pictrue_log pictrue_log_class" v-if="item.activityH5 && item.activityH5.type === '1'">秒杀</span>
<span class="pictrue_log pictrue_log_class" v-if="item.activityH5 && item.activityH5.type === '2'">砍价</span>
<span class="pictrue_log pictrue_log_class" v-if="item.activityH5 && item.activityH5.type === '3'">拼团</span>
</view>
<view class='text'>
<view class='name line1'>{{item.store_name}}</view>
<view class='sp-money acea-row'>
<view class='moneyCon'>促销价: <text class='num'>{{item.price}}</text></view>
</view>
<view class='acea-row row-between-wrapper'>
<view class='money'>日常价{{item.ot_price}}</view>
<view>仅剩{{item.stock}}{{item.unit_name}}</view>
</view>
</view>
</view>
</block>
</view>
</template>
<script>
import {mapGetters} from "vuex";
import { goShopDetail } from '@/libs/order.js'
export default {
computed: mapGetters(['uid']),
props: {
benefit: {
type: Array,
default: function() {
return [];
}
}
},
data() {
return {
};
},
methods: {
goDetail(item){
goShopDetail(item,this.uid).then(res=>{
uni.navigateTo({
url:`/pages/goods_details/index?id=${item.id}`
})
})
}
}
}
</script>
<style scoped lang='scss'>
.promotionGood {
padding: 0 30rpx;
}
.promotionGood .item {
border-bottom: 1rpx solid #eee;
height: 250rpx;
}
.promotionGood .item .pictrue {
position: relative;
width: 188rpx;
height: 188rpx;
}
.promotionGood .item .pictrue image {
width: 100%;
height: 100%;
border-radius: 8rpx;
}
.promotionGood .item .text {
font-size: 24rpx;
color: #999;
width: 472rpx;
}
.promotionGood .item .text .name {
font-size: 30rpx;
color: #333;
}
.promotionGood .item .text .sp-money {
margin: 34rpx 0 20rpx 0;
}
.promotionGood .item .text .sp-money .moneyCon {
padding: 0 18rpx;
background-color: red;
height: 46rpx;
line-height: 46rpx;
background-image: linear-gradient(to right, #ff6248 0%, #ff3e1e 100%);
font-size: 20rpx;
color: #fff;
border-radius: 24rpx 3rpx 24rpx 3rpx;
}
.promotionGood .item .text .sp-money .moneyCon .num {
font-size: 24rpx;
}
.promotionGood .item .text .money {
text-decoration: line-through;
}
</style>