吃个甘蔗嚼一年 3 gadus atpakaļ
vecāks
revīzija
5f52ca0cb0
1 mainītis faili ar 59 papildinājumiem un 0 dzēšanām
  1. 59
    0
      src/components/CompoentsOrder/TobeWritten/index.jsx

+ 59
- 0
src/components/CompoentsOrder/TobeWritten/index.jsx Parādīt failu

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