吃个甘蔗嚼一年 преди 3 години
родител
ревизия
bacb05448f

+ 70
- 32
src/components/CompoentsOrder/OrderCard/index.jsx Целия файл

@@ -75,45 +75,83 @@ export default (props) => {
75 75
                   item.isVerified == true && item.isEvaluated > 0 ? <Action.Image image={Evaluated} /> :
76 76
                     item.isVerified == true ? <Action.Icon icon={Evaluation} text='评价' onClick={() => evaluation(item)} /> : null
77 77
 
78
+
78 79
   return (
79 80
     <>
80 81
       {
81 82
         sh != '1' || kkp == '1' ? <view className='OrderNumber'>订单编号:{item.orderId}</view> : null
82 83
       }
83
-      <SlideViewOrder del onDelete={() => handeDelete(item)} >
84
-        <CouponCard action={PayAction}>
85
-          <CouponMedia>
86
-            <CouponMedia.Header
87
-              cashback={item.cashback}
88
-              image={item.poster}
89
-              badge='food'
90
-            />
91
-            <CouponMedia.Body star={kkp == '1' ? 'ss' : item.score}>
92
-              <View className='orderCard'>
93
-                <View className='cpn-card-text'>
94
-                  <View style={{ flex: '1' }}>{(item.packageDescription).toString().length > 25 ? (item.packageDescription).substring(0, 25) + '...' : (item.packageDescription)}</View>
95
-                  <text className={kkp == '1' ? 'shanchu' : 'title-money-2'}>
96
-                    数量:{item.amount}张
97
-                  </text>
98
-                </View>
99
-                <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
100
-                  <Text className='cpn-card-text_mn'>¥{`${(item.unitPrice / 100)?.toFixed(2)}元`}</Text>
84
+      {
85
+        item.status === 0 ? <SlideViewOrder del onDelete={() => handeDelete(item)} >
86
+          <CouponCard action={PayAction}>
87
+            <CouponMedia>
88
+              <CouponMedia.Header
89
+                cashback={item.cashback}
90
+                image={item.poster}
91
+                badge='food'
92
+              />
93
+              <CouponMedia.Body star={kkp == '1' ? 'ss' : item.score}>
94
+                <View className='orderCard'>
95
+                  <View className='cpn-card-text'>
96
+                    <View style={{ flex: '1' }}>{(item.packageDescription).toString().length > 25 ? (item.packageDescription).substring(0, 25) + '...' : (item.packageDescription)}</View>
97
+                    <text className={kkp == '1' ? 'shanchu' : 'title-money-2'}>
98
+                      数量:{item.amount}张
99
+                    </text>
100
+                  </View>
101
+                  <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
102
+                    <Text className='cpn-card-text_mn'>¥{`${(item.unitPrice / 100)?.toFixed(2)}元`}</Text>
103
+                  </View>
104
+                  <View className='cpn-md-act'>
105
+                    <view className={item.isVerified == 1 ? 'title-time' : ''}>
106
+                      {
107
+                        sh == 1 ? '有效期:' + formatTime(item.endTime, "yyyy/MM/dd") :
108
+                          item.isVerified == 1 ? '核销时间 :' + formatTime(item?.verifiedDate, "yyyy/MM/dd") :
109
+                            '有效期:' + formatTime(item?.startTime, "yyyy/MM/dd") + '-' +
110
+                            formatTime(item.endTime, "yyyy/MM/dd")
111
+                      }
112
+                    </view>
113
+                  </View>
101 114
                 </View>
102
-                <View className='cpn-md-act'>
103
-                  <view className={item.isVerified == 1 ? 'title-time' : ''}>
104
-                    {
105
-                      sh == 1 ? '有效期:' + formatTime(item.endTime, "yyyy/MM/dd") :
106
-                        item.isVerified == 1 ? '核销时间 :' + formatTime(item?.verifiedDate, "yyyy/MM/dd") :
107
-                          '有效期:' + formatTime(item?.startTime, "yyyy/MM/dd") + '-' +
108
-                          formatTime(item.endTime, "yyyy/MM/dd")
109
-                    }
110
-                  </view>
115
+              </CouponMedia.Body>
116
+            </CouponMedia>
117
+          </CouponCard>
118
+        </SlideViewOrder>
119
+          :
120
+          <CouponCard action={PayAction}>
121
+            <CouponMedia>
122
+              <CouponMedia.Header
123
+                cashback={item.cashback}
124
+                image={item.poster}
125
+                badge='food'
126
+              />
127
+              <CouponMedia.Body star={kkp == '1' ? 'ss' : item.score}>
128
+                <View className='orderCard'>
129
+                  <View className='cpn-card-text'>
130
+                    <View style={{ flex: '1' }}>{(item.packageDescription).toString().length > 25 ? (item.packageDescription).substring(0, 25) + '...' : (item.packageDescription)}</View>
131
+                    <text className={kkp == '1' ? 'shanchu' : 'title-money-2'}>
132
+                      数量:{item.amount}张
133
+                    </text>
134
+                  </View>
135
+                  <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
136
+                    <Text className='cpn-card-text_mn'>¥{`${(item.unitPrice / 100)?.toFixed(2)}元`}</Text>
137
+                  </View>
138
+                  <View className='cpn-md-act'>
139
+                    <view className={item.isVerified == 1 ? 'title-time' : ''}>
140
+                      {
141
+                        sh == 1 ? '有效期:' + formatTime(item.endTime, "yyyy/MM/dd") :
142
+                          item.isVerified == 1 ? '核销时间 :' + formatTime(item?.verifiedDate, "yyyy/MM/dd") :
143
+                            '有效期:' + formatTime(item?.startTime, "yyyy/MM/dd") + '-' +
144
+                            formatTime(item.endTime, "yyyy/MM/dd")
145
+                      }
146
+                    </view>
147
+                  </View>
111 148
                 </View>
112
-              </View>
113
-            </CouponMedia.Body>
114
-          </CouponMedia>
115
-        </CouponCard>
116
-      </SlideViewOrder>
149
+              </CouponMedia.Body>
150
+            </CouponMedia>
151
+          </CouponCard>
152
+      }
153
+
117 154
     </>
155
+
118 156
   )
119 157
 }

+ 0
- 58
src/components/CompoentsOrder/TobeWritten/index.jsx Целия файл

@@ -1,58 +0,0 @@
1
-
2
-import formatTime from "@/utils/formatTime";
3
-import food from "@/assets/icons/ProCard/food.png";
4
-import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
5
-import QRcode from "@/assets/icons/UserCenter/QRcode.png";
6
-
7
-import './style.less'
8
-
9
-
10
-export default (props) => {
11
-
12
-  const { item, onWrite } = props
13
-
14
-  return (
15
-    <view class='wrapper'>
16
-      <view class='left-complete-one'>
17
-        <image className='left-image-1' src={ProCard_hot}></image>
18
-        <view className='left-viewText'>
19
-          返现¥{(item.cashback / 100).toFixed(2)}
20
-        </view>
21
-        <view className='title-image'>
22
-          <image
23
-            className='image-1'
24
-            mode='scaleToFill'
25
-            src={item.poster || []}
26
-          ></image>
27
-          <image className='image-2' src={food}></image>
28
-        </view>
29
-        <view className='title-content'>
30
-          <view className='Pro-title'>
31
-            <view className='title-text'>
32
-              {item.packageDescription}
33
-              <text className='title-money-2'>
34
-                数量:{item.amount}张
35
-              </text>
36
-            </view>
37
-          </view>
38
-          <text className='title-money'>
39
-            ¥{(item.unitPrice / 100).toFixed(2)}元
40
-          </text>
41
-          <view className='title-time'>
42
-            有效期:{formatTime(item?.startTime, "yyyy/MM/dd")}-
43
-            {formatTime(item.endTime, "yyyy/MM/dd")}
44
-          </view>
45
-        </view>
46
-      </view>
47
-      <view class='right-complete-two'>
48
-        <view
49
-          className='right-content'
50
-          onClick={() => onWrite(item)}
51
-        >
52
-          <image className='right-image' src={QRcode} />
53
-          <view className='right-title'>扫码核销</view>
54
-        </view>
55
-      </view>
56
-    </view>
57
-  )
58
-}

+ 0
- 180
src/components/CompoentsOrder/TobeWritten/style.less Целия файл

@@ -1,180 +0,0 @@
1
-@whiteColor: #fff;
2
-
3
-.wrapper-Written {
4
-  margin-top: 40px;
5
-  display: flex;
6
-  position: relative;
7
-  margin: 30px auto;
8
-  width: 100%;
9
-  filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
10
-
11
-  .left-complete-one-Written {
12
-    padding-top: 85px;
13
-    padding-bottom: 43px;
14
-    position: relative;
15
-    display: flex;
16
-    background: @whiteColor;
17
-    background: radial-gradient(circle at top right, transparent 15px, #fff 0 0)
18
-        top right,
19
-      radial-gradient(circle at bottom right, transparent 15px, #fff 0 0) bottom
20
-        right;
21
-    background-size: 100% 60%;
22
-    background-repeat: no-repeat;
23
-
24
-    width: 573px;
25
-    border-radius: 15px 0px 0px 15px;
26
-    // border-radius: 12px;
27
-
28
-    align-items: center;
29
-    .left-image-1-Written {
30
-      width: 145px;
31
-      height: 44px;
32
-      position: absolute;
33
-      top: 22px;
34
-    }
35
-    .left-viewText-Written {
36
-      // background-image: url(@Image-ProCard_hot);
37
-      // width: 287px;
38
-      width: auto;
39
-      height: 44.3px;
40
-      position: absolute;
41
-      left: 1px;
42
-      top: 28px;
43
-      font-size: 20px;
44
-      color: @whiteColor;
45
-    }
46
-    //图片
47
-    .title-image-Written {
48
-      height: 144px;
49
-      margin-left: 20px;
50
-      border-radius: 24px;
51
-      overflow: hidden;
52
-      position: relative;
53
-      .image-1-Written {
54
-        width: 144px;
55
-        height: 144px;
56
-        margin: 0;
57
-      }
58
-      .image-2-Written {
59
-        width: 89px;
60
-        height: 34px;
61
-        position: absolute;
62
-        left: 0;
63
-      }
64
-    }
65
-    // 商品标题
66
-    .title-content-Written {
67
-      // padding: 84px 0 56px 20px;
68
-      padding-left: 18px;
69
-
70
-      .Pro-title-Written {
71
-        .title-text-Written {
72
-          width: 375px;
73
-          overflow: hidden;
74
-          text-overflow: ellipsis;
75
-          // display: -webkit-box; //必须要
76
-          -webkit-line-clamp: 1;
77
-          -webkit-box-orient: vertical;
78
-          // word-break: break-all; /* 多出文本省略号代替 */
79
-          text-align: left;
80
-          font-size: 24px;
81
-          // padding-bottom: 10px;
82
-        }
83
-      }
84
-      .title-money-Written {
85
-        // padding-top: 34px;
86
-        font-size: 24px;
87
-        // color: red;
88
-        font-weight: 800;
89
-      }
90
-      .title-money-2-Written {
91
-        height: 19px;
92
-        font-size: 20px;
93
-        font-weight: 400;
94
-        color: #333333;
95
-        padding-left: 40px;
96
-      }
97
-
98
-      .title-time-Written {
99
-        font-size: 24px;
100
-        // padding-top: 20px;
101
-        color: #c0c8d3;
102
-      }
103
-      .title-position-on-Written {
104
-        display: flex;
105
-        font-size: 20px;
106
-        .title-position-Written {
107
-          width: 18px;
108
-          height: 24px;
109
-          padding-right: 10px;
110
-          padding-top: 5px;
111
-        }
112
-        .title-position-image-Written {
113
-          align-items: center;
114
-          font-size: 20px;
115
-          color: #333;
116
-        }
117
-        .title-on-Written {
118
-          // margin-bottom: 10px;
119
-          padding-top: 5px;
120
-          padding-left: 40px;
121
-          width: 21px;
122
-          height: 21px;
123
-          padding-right: 10px;
124
-        }
125
-        .title-on-text-Written {
126
-          align-items: center;
127
-
128
-          font-size: 20px;
129
-          color: #333;
130
-        }
131
-      }
132
-    }
133
-  }
134
-  .right-complete-two-Written {
135
-    background: @whiteColor;
136
-    background: radial-gradient(circle at top left, transparent 15px, #fff 0 0)
137
-        top left,
138
-      radial-gradient(circle at bottom left, transparent 15px, #fff 0 0) bottom
139
-        left;
140
-    background-size: 100% 60%;
141
-    background-repeat: no-repeat;
142
-    width: 129px;
143
-    border-radius: 0 15px 15px 0;
144
-    position: relative;
145
-    //右面部分
146
-    .right-content-Written {
147
-      width: 100px;
148
-      height: 134px;
149
-      position: absolute;
150
-      top: calc(50% - 45px);
151
-      left: calc(50% - 46px);
152
-      .right-image-2-Written {
153
-        width: 76px;
154
-        height: 66px;
155
-        margin-top: 1em;
156
-      }
157
-      .right-image-Written {
158
-        width: 35px;
159
-        height: 34px;
160
-        margin-left: calc(50% - 17.5px);
161
-      }
162
-      .right-title-Written {
163
-        font-weight: 700;
164
-        font-size: 24px;
165
-        padding-top: 15px;
166
-        text-align: center;
167
-      }
168
-    }
169
-  }
170
-  //线条
171
-  .right-complete-two-Written::after {
172
-    content: "";
173
-    position: absolute;
174
-    top: 15px;
175
-    margin: 26px auto;
176
-    height: 70%;
177
-    border-left: 1px dashed #595959;
178
-    opacity: 0.12;
179
-  }
180
-}

+ 2
- 4
src/components/add-tips/index.wxss Целия файл

@@ -26,16 +26,14 @@
26 26
   zoom: 1.5;
27 27
 }
28 28
 .tips {
29
-  height: 200px;
30
-  width: 200px;
31 29
   flex: 1;
32 30
   color: #fff;
33 31
   font-size: 20px;
34 32
   font-weight: 700;
35 33
 }
36 34
 .logo {
37
-  height: 200px;
38
-  width: 200px;
35
+  height: 42px;
36
+  width: 42px;
39 37
   border-radius: 8px;
40 38
   margin-right: 10px;
41 39
 }