|
|
- <template>
- <view class="active-card">
- <view class="active-title">【{{item.title}}】</view>
- <view class="active-time flex align-center">
- <text>【商品】{{item.shopName}}</text>
- </view>
- <view class="active-add flex align-center">
- <text>【地址】{{item.addressText}}</text>
- </view>
- <view class="active-add flex align-center">
- <text>【价格】{{item.price}}</text>
- </view>
- <view class="active-add flex align-center">
- <text>【数量】{{item.num}}</text>
- </view>
- <view class="active-add flex align-center" v-if="item.type == 1">
- <text>【类型】微信订单</text>
- </view>
- <view class="active-add flex align-center" v-else>
- <text>【类型】积分订单</text>
- </view>
-
- <view class="active-time2 flex align-center">
- <text>【下单时间】{{item.createTime}}</text>
- </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: 12rpx;
- box-shadow: 3rpx 3rpx 6rpx 5rpx rgba(0,0,0,0.16);
- overflow: hidden;
- padding-bottom: 10rpx;
- margin-bottom: 20rpx;
-
- .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: 34rpx;
- font-weight: 500;
- }
- }
- .menu-btn {
- width: 213rpx;
- height: 79rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- color: #00CCCC;
- font-size: 30rpx;
- font-weight: 500;
- }
- .menu-btn::after {
- content: " ";
- width: 15rpx;
- height: 15rpx;
- border-bottom: 3rpx solid #00CCCC;
- border-right: 3rpx solid #00CCCC;
- transform: rotate(-45deg);
- margin-left: 8rpx;
- }
- }
- }
- </style>
|