123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <template>
- <view class="app-goods-recommend" v-if="goodsList.length > 0">
- <view class="recommend-title dir-left-nowrap main-center">
- <view class="dir-left-nowrap cross-center">
- <view class="border"></view>
- <image src="../../../static/image/icon/icon-favorite.png"></image>
- <view class="text">您或许喜欢</view>
- <view class="border"></view>
- </view>
- </view>
- <view class="recommend-list">
- <u-ordinary-list :theme-object="themeObject" :showBuyBtn="sureCart ? 1 : 0" :isShowAttr="sureCart" :list="goodsList" :theme="theme" :list-style="2"></u-ordinary-list>
- </view>
- </view>
- </template>
- <script>
- import uOrdinaryList from '../../page-component/u-goods-list/u-ordinary-list.vue';
- export default {
- name: "app-goods-recommend",
- components: {
- uOrdinaryList
- },
- props: {
- goodsList: Array,
- theme: String,
- sureCart: Boolean,
- activity: Object,
- is_show_member: {
- type: Boolean,
- default() {
- return true;
- }
- },
- sign: String,
- detail: Object
- },
- computed: {
- themeObject:function() {
- return {
- back: this.theme + '-m-back ' + this.theme,
- theme: this.theme,
- color: this.theme + '-m-text ' + this.theme,
- sBack: this.theme + '-s-back ' + this.theme
- }
- }
- },
- }
- </script>
- <style scoped lang="scss">
- .app-goods-recommend {
- .recommend-title {
- margin: #{40rpx} 0 #{32rpx} 0;
- font-size: $uni-font-size-weak-one;
- color: $uni-general-color-two;
- .text {
- color: #999;
- }
- .border {
- border-top: #{1rpx} solid #bbbbbb;
- height: 0;
- width: #{40rpx};
- margin: 0 #{24rpx};
- }
-
- image {
- width: #{24rpx};
- height: #{24rpx};
- display: block;
- margin-right: #{12rpx};
- }
- }
- }
- </style>
|