|
|
- <template>
- <view class="active-card">
- <view >
- <u--image :showLoading="true" :src="item.image" ></u--image>
- </view>
- <view class="active-title">{{item.title}}</view>
- <view class="active-time flex align-center">
- <text>{{item.longTitle}}</text>
- </view>
-
- <view class="active-time2 flex align-center">
- <text >
- 【库存】{{item.num}}
- </text>
-
-
- </view>
- <view class="active-time2 flex align-center">
-
- <text>
- 【浏览量】{{item.clickNum}}
- </text>
-
- </view>
-
- <view class="active-time2 flex align-center">
-
- <text>
- 【价格】{{item.price}}
- </text>
-
- </view>
- <view class="active-menu flex align-center justify-between">
- <view class="menu-price">
- <text class="price">积分: {{item.intgerPrice}}</text>
- </view>
- <view class="menu-btn" @click="seeDetail">{{text}}</view>
- </view>
- </view>
- </template>
-
- <script>
- export default{
- props:{
- text:{
- type:String,
- default:'查看详情'
- },
- item:{
- type:Object,
- },
- i:{
- type:Number,
- }
- },
- data(){
- return{
-
- }
- },
- methods:{
- seeDetail(){
- this.$emit('seeDetail',this.item)
- }
- }
- }
- </script>
-
- <style lang="scss" scoped>
- .active-card {
-
- background: #ffffff;
- border-radius: 24rpx;
- box-shadow: 13rpx 13rpx 16rpx 15rpx rgba(0,0,0,0.16);
- overflow: hidden;
- padding-bottom: 10rpx;
- margin-bottom: 20rpx;
- font-size: 28rpx;
- padding: 16rpx 16rpx;
-
-
- .active-title {
- word-wrap:break-word;
- word-break:break-all;
- font-size: 32rpx;
- color: #000;
- font-weight: 700;
- margin-top: 20rpx;
- line-height: 60rpx;
- /* 文本不会换行显示 */
- white-space: nowrap;
- /* 超出盒子部分隐藏 */
- overflow: hidden;
- /* 文本超出的部分打点显示 */
- text-overflow: ellipsis;
- }
-
- .active-time {
- word-wrap:break-word;
- word-break:break-all;
- color: #707070;
- font-size: 28rpx;
- margin: 20rpx 0;
- image {
- width: 33rpx;
- height: 33rpx;
- margin-right: 27rpx;
- }
- /* 文本不会换行显示 */
- white-space: nowrap;
- /* 超出盒子部分隐藏 */
- overflow: hidden;
- /* 文本超出的部分打点显示 */
- text-overflow: ellipsis;
- }
- .active-add {
- color: #707070;
- font-size: 28rpx;
- word-wrap:break-word;
- word-break:break-all;
- /* 文本不会换行显示 */
- white-space: nowrap;
- /* 超出盒子部分隐藏 */
- overflow: hidden;
- /* 文本超出的部分打点显示 */
- text-overflow: ellipsis;
- // overflow: hidden;/*这个参数根据需求来决定要不要*/
- image {
- width: 30rpx;
- height: 35rpx;
- margin-right: 27rpx;
- }
- }
- .active-time2 {
- color: #707070;
- font-size: 28rpx;
- margin: 20rpx 0;
- image {
- width: 33rpx;
- height: 33rpx;
- margin-right: 27rpx;
- }
- }
-
- .active-menu {
- margin-top: 21rpx;
- padding: 0 10rpx;
- .menu-price {
- font-size: 32rpx;
- .price {
- color: #D33D3E;
- font-size: 40rpx;
- }
- }
- .menu-btn {
- width: 213rpx;
- height: 79rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- //background-color: #00CCCC;
- //border-radius: 40rpx;
- color: #00CCCC;
- font-size: 32rpx;
- }
- }
- }
- </style>
|