123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <template>
- <view class="cm-product-info">
- <view class="title tui-ellipsis-2">{{ productInfo.name }}</view>
- <view class="row tags">
- <template v-if="productInfo.tagsList.length > 0">
- <view class="tag" v-for="(tag, index) in productInfo.tagsList" :key="index">{{ tag }}</view>
- </template>
- </view>
- <button open-type="share" class="share-btn">
- <text class="iconfont icon-fenxiang"></text> <view class="name">分享</view>
- </button>
- <view class="remark" v-if="false">
- <text class="name">备注:</text>
- <text class="content">这里是备注名称这里是备注名称这里是备注名称名称称名...</text>
- </view>
- <view class="line"></view>
- <view class="service">
- <view class="iconfont icon-wuyoushouhou"><text>无忧退货</text></view>
- <view class="iconfont icon-wuyoushouhou"><text>快速退款</text></view>
- <view class="iconfont icon-wuyoushouhou"><text>正品保证</text></view>
- </view>
- </view>
- </template>
- <script>
- export default {
- props: {
- productInfo: {
- type: Object,
- default: () => {}
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .cm-product-info {
- position: relative;
- padding: 24rpx 0;
- .share-btn {
- position: absolute;
- right: 24rpx;
- top: 24rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- color: #999;
- .name {
- font-size: 22rpx;
- }
- }
- .title {
- width: 544rpx;
- font-size: 32rpx;
- line-height: 48rpx;
- text-align: justify;
- color: #333333;
- }
- .tags {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- flex-wrap: wrap;
- margin-top: 16rpx;
- min-height: 36rpx;
- .tag {
- margin-right: 20rpx;
- margin-top: 4rpx;
- padding: 0 4rpx;
- line-height: 34rpx;
- font-size: 20rpx;
- color: #ff457b;
- background: #fff3f7;
- border-radius: 8rpx;
- }
- }
- .remark {
- width: 100%;
- font-size: 24rpx;
- line-height: 24rpx;
- margin-top: 42rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- .name {
- color: #999999;
- }
- .content {
- color: #3f3f3f;
- }
- }
- .line {
- width: 100%;
- height: 1rpx;
- margin: 24rpx 0;
- background: #e1e1e1;
- }
- .service {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- color: #ff457b;
- .iconfont {
- margin-right: 60rpx;
- font-size: 22rpx;
- line-height: 24rpx;
- text {
- color: #999999;
- margin-left: 4rpx;
- }
- }
- }
- }
- </style>
|