闫增涛
2024-02-23 fdfb3ca757ecd6c396632ed276ff354671d3a7e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<view class="page-container">
  <view class="comment-card">
    <view class="goods-info-container">
      <view class="goods-image-container">
        <t-image t-class="goods-image" src="{{imgUrl}}" />
      </view>
      <view class="goods-title-container">
        <view class="goods-title">{{title}}</view>
        <view class="goods-detail">{{goodsDetail}}</view>
      </view>
    </view>
    <view class="rate-container">
      <text class="rate-title">商品评价</text>
      <view class="rate">
        <t-rate
          value="{{goodRateValue}}"
          bind:change="onRateChange"
          size="26"
          gap="6"
          color="{{['#ffc51c', '#ddd']}}"
          data-item="goodRateValue"
        />
      </view>
    </view>
    <view class="textarea-container">
      <t-textarea
        t-class="textarea"
        maxlength="{{500}}"
        indicator
        placeholder="对商品满意吗?评论一下"
        bind:change="onTextAreaChange"
      />
    </view>
    <view class="upload-container">
      <t-upload
        media-type="{{['image','video']}}"
        files="{{uploadFiles}}"
        bind:remove="handleRemove"
        bind:success="handleSuccess"
        gridConfig="{{gridConfig}}"
        imageProps="{{imageProps}}"
      />
    </view>
 
    <view class="anonymous-box">
      <t-checkbox bind:change="onAnonymousChange" checked="{{isAnonymous}}" color="#FA4126" />
      <view class="name">匿名评价</view>
    </view>
  </view>
</view>
<view class="comment-card convey-card">
  <view class="convey-comment-title">物流服务评价</view>
  <view class="rate-container">
    <text class="rate-title">物流评价</text>
    <view class="rate">
      <t-rate
        value="{{conveyRateValue}}"
        bind:change="onRateChange"
        variant="filled"
        size="26"
        gap="6"
        color="{{['#ffc51c', '#ddd']}}"
        data-item="conveyRateValue"
      />
    </view>
  </view>
  <view class="rate-container">
    <text class="rate-title">服务评价</text>
    <view class="rate">
      <t-rate
        value="{{serviceRateValue}}"
        bind:change="onRateChange"
        size="26"
        gap="6"
        color="{{['#ffc51c', '#ddd']}}"
        data-item="serviceRateValue"
      />
    </view>
  </view>
</view>
<view class="submit-button-container">
  <t-button
    content="提交"
    block
    shape="round"
    t-class="submit-button{{isAllowedSubmit ? '' : '-disabled'}}"
    bind:tap="onSubmitBtnClick"
  />
</view>
<t-toast id="t-toast" />