|
|
- <template>
- <view class="page__view">
-
- <navbar title="我的评价" leftClick @leftClick="$utils.navigateBack" bgColor="#FFFFFF" />
-
- <view class="main">
-
- <view class="list" v-if="total">
- <view class="list-item" v-for="item in list" :key="item.id">
- <view class="flex list-item-header">
- <view class="flex mark">
- <image class="icon" src="@/static/image/icon-mark-highlight.png" mode="widthFix"></image>
- </view>
- <view class="title">
- {{ `来自 ${item.productName}` }}
- </view>
- </view>
- <commentCard :data="item"></commentCard>
- </view>
- </view>
-
- </view>
-
- </view>
- </template>
-
- <script>
- import mixinsList from '@/mixins/list.js'
-
- import commentCard from '@/pages_order/comment/commentCard.vue'
-
- export default {
- mixins: [mixinsList],
- components: {
- commentCard,
- },
- data() {
- return {
- // todo
- mixinsListApi: '',
- }
- },
- onShow() {
- console.log('onShow')
- },
- onLoad(arg) {
- console.log('onLoad')
- const { productId } = arg
-
- this.queryParams.productId = productId
-
- this.getData()
- },
- methods: {
- },
- }
- </script>
-
- <style scoped lang="scss">
- .page__view {
- background: $uni-bg-color;
- }
-
- .main {
- padding: 40rpx;
- }
-
- .list {
- padding: 32rpx;
- background: #FFFFFF;
- border-radius: 24rpx;
-
- &-item {
- padding-bottom: 40rpx;
- border-bottom: 2rpx solid #F5F5F5;
-
- & + & {
- margin-top: 40rpx;
- }
-
- &:last-child {
- border: none;
- }
-
- &-header {
- justify-content: flex-start;
- column-gap: 24rpx;
- margin-bottom: 14rpx;
-
- .mark {
- width: 36rpx;
- height: 36rpx;
- background: linear-gradient(to right, #21FEEC, #019AF9);
- border-radius: 50%;
-
- .icon {
- width: 24rpx;
- height: auto;
- }
- }
-
- .title {
- flex: 1;
- font-size: 30rpx;
- font-weight: 600;
- line-height: 1.4;
- color: #00A9FF;
- }
- }
- }
- }
-
- </style>
|