瀏覽代碼

个人中心

吃个甘蔗嚼一年 3 年之前
父節點
當前提交
3e191d3d8e
共有 73 個文件被更改,包括 4593 次插入316 次删除
  1. 5
    0
      package-lock.json
  2. 1
    0
      package.json
  3. 8
    0
      src/app.config.js
  4. 二進制
      src/assets/icons/GuideCheck/AAAAAAAA.png
  5. 二進制
      src/assets/icons/GuideCheck/Attractions.png
  6. 二進制
      src/assets/icons/GuideCheck/BlackSpot.png
  7. 二進制
      src/assets/icons/GuideCheck/GoHere.png
  8. 二進制
      src/assets/icons/GuideCheck/SeeDetails.png
  9. 二進制
      src/assets/icons/GuideCheck/WiFi.png
  10. 二進制
      src/assets/icons/GuideCheck/taxi.png
  11. 二進制
      src/assets/icons/UserCenter/AllOrder.png
  12. 二進制
      src/assets/icons/UserCenter/ContactMe.png
  13. 二進制
      src/assets/icons/UserCenter/Evaluation.png
  14. 二進制
      src/assets/icons/UserCenter/HomeLogo.png
  15. 二進制
      src/assets/icons/UserCenter/MyTravel.png
  16. 二進制
      src/assets/icons/UserCenter/QRcode.png
  17. 二進制
      src/assets/icons/UserCenter/Refund.png
  18. 二進制
      src/assets/icons/UserCenter/Rules.png
  19. 二進制
      src/assets/icons/UserCenter/ToShop.png
  20. 二進制
      src/assets/icons/UserCenter/awaitPay.png
  21. 二進制
      src/assets/icons/UserCenter/boy.png
  22. 二進制
      src/assets/icons/UserCenter/collect.png
  23. 二進制
      src/assets/icons/UserCenter/girl.png
  24. 二進制
      src/assets/icons/UserCenter/null_logo.png
  25. 116
    0
      src/components/CompoentsOrder/AlreadyExpired/index.jsx
  26. 255
    0
      src/components/CompoentsOrder/AlreadyExpired/style.less
  27. 115
    0
      src/components/CompoentsOrder/AlreadyUsed/index.jsx
  28. 269
    0
      src/components/CompoentsOrder/AlreadyUsed/style.less
  29. 114
    0
      src/components/CompoentsOrder/TobePaid/index.jsx
  30. 268
    0
      src/components/CompoentsOrder/TobePaid/style.less
  31. 74
    0
      src/components/CompoentsOrder/TobeWritten/index.jsx
  32. 269
    0
      src/components/CompoentsOrder/TobeWritten/style.less
  33. 166
    0
      src/components/CompoentsOrder/complete/index.jsx
  34. 255
    0
      src/components/CompoentsOrder/complete/style.less
  35. 32
    0
      src/components/OrderMolded/index.jsx
  36. 124
    0
      src/components/OrderMolded/style.less
  37. 12
    0
      src/components/Popup/index.jsx
  38. 6
    0
      src/components/Popup/style.less
  39. 4
    1
      src/components/ProCard/index.jsx
  40. 148
    0
      src/components/tabs/index.js
  41. 4
    0
      src/components/tabs/index.json
  42. 20
    0
      src/components/tabs/index.wxml
  43. 1
    0
      src/components/tabs/index.wxss
  44. 9
    0
      src/pages/MineUserAll/AllOrder/index.config.js
  45. 103
    0
      src/pages/MineUserAll/AllOrder/index.jsx
  46. 27
    0
      src/pages/MineUserAll/AllOrder/style.less
  47. 4
    0
      src/pages/MineUserAll/Collect/index.config.js
  48. 157
    0
      src/pages/MineUserAll/Collect/index.jsx
  49. 244
    0
      src/pages/MineUserAll/Collect/style.less
  50. 4
    0
      src/pages/MineUserAll/ContactMe/index.config.js
  51. 26
    0
      src/pages/MineUserAll/ContactMe/index.jsx
  52. 38
    0
      src/pages/MineUserAll/ContactMe/style.less
  53. 4
    0
      src/pages/MineUserAll/HomeLogo/index.config.js
  54. 11
    0
      src/pages/MineUserAll/HomeLogo/index.jsx
  55. 2
    0
      src/pages/MineUserAll/HomeLogo/style.less
  56. 4
    0
      src/pages/MineUserAll/RefundMoney/CheckRefund/index.config.js
  57. 146
    0
      src/pages/MineUserAll/RefundMoney/CheckRefund/index.jsx
  58. 426
    0
      src/pages/MineUserAll/RefundMoney/CheckRefund/style.less
  59. 8
    0
      src/pages/MineUserAll/RefundMoney/index.config.js
  60. 116
    0
      src/pages/MineUserAll/RefundMoney/index.jsx
  61. 251
    0
      src/pages/MineUserAll/RefundMoney/style.less
  62. 4
    0
      src/pages/MineUserAll/Rules/index.config.js
  63. 29
    0
      src/pages/MineUserAll/Rules/index.jsx
  64. 14
    0
      src/pages/MineUserAll/Rules/style.less
  65. 2
    1
      src/pages/PayOrder/index.config.js
  66. 235
    199
      src/pages/PayOrder/style.less
  67. 1
    0
      src/pages/index/index.config.js
  68. 27
    13
      src/pages/index/index.jsx
  69. 81
    2
      src/pages/index/tabs/Guide.jsx
  70. 97
    9
      src/pages/index/tabs/GuideCss/style.less
  71. 126
    4
      src/pages/index/tabs/Mine.jsx
  72. 131
    0
      src/pages/index/tabs/MineCss/style.less
  73. 0
    87
      yarn-error.log

+ 5
- 0
package-lock.json 查看文件

@@ -1416,6 +1416,11 @@
1416 1416
         "@hapi/hoek": "^9.0.0"
1417 1417
       }
1418 1418
     },
1419
+    "@miniprogram-component-plus/tabs": {
1420
+      "version": "1.0.0",
1421
+      "resolved": "https://registry.npm.taobao.org/@miniprogram-component-plus/tabs/download/@miniprogram-component-plus/tabs-1.0.0.tgz",
1422
+      "integrity": "sha1-y/a04858SsiteQqES0BxVfB9ntc="
1423
+    },
1419 1424
     "@mrmlnc/readdir-enhanced": {
1420 1425
       "version": "2.2.1",
1421 1426
       "resolved": "https://registry.npm.taobao.org/@mrmlnc/readdir-enhanced/download/@mrmlnc/readdir-enhanced-2.2.1.tgz",

+ 1
- 0
package.json 查看文件

@@ -36,6 +36,7 @@
36 36
   "author": "",
37 37
   "dependencies": {
38 38
     "@babel/runtime": "^7.7.7",
39
+    "@miniprogram-component-plus/tabs": "^1.0.0",
39 40
     "@tarojs/components": "3.3.2",
40 41
     "@tarojs/react": "3.3.2",
41 42
     "@tarojs/runtime": "3.3.2",

+ 8
- 0
src/app.config.js 查看文件

@@ -3,6 +3,14 @@ export default {
3 3
     'pages/index/index',
4 4
     'pages/test/index',
5 5
     'pages/PayOrder/index',
6
+    'pages/MineUserAll/ContactMe/index',
7
+    'pages/MineUserAll/HomeLogo/index',
8
+    'pages/MineUserAll/Collect/index',
9
+    'pages/MineUserAll/Rules/index',
10
+    'pages/MineUserAll/RefundMoney/index',
11
+    'pages/MineUserAll/RefundMoney/CheckRefund/index',
12
+    'pages/MineUserAll/AllOrder/index',//我的订单
13
+    // 'pages/Molded/index',
6 14
   ],
7 15
   window: {
8 16
     backgroundTextStyle: 'light',

二進制
src/assets/icons/GuideCheck/AAAAAAAA.png 查看文件


二進制
src/assets/icons/GuideCheck/Attractions.png 查看文件


二進制
src/assets/icons/GuideCheck/BlackSpot.png 查看文件


二進制
src/assets/icons/GuideCheck/GoHere.png 查看文件


二進制
src/assets/icons/GuideCheck/SeeDetails.png 查看文件


二進制
src/assets/icons/GuideCheck/WiFi.png 查看文件


二進制
src/assets/icons/GuideCheck/taxi.png 查看文件


二進制
src/assets/icons/UserCenter/AllOrder.png 查看文件


二進制
src/assets/icons/UserCenter/ContactMe.png 查看文件


二進制
src/assets/icons/UserCenter/Evaluation.png 查看文件


二進制
src/assets/icons/UserCenter/HomeLogo.png 查看文件


二進制
src/assets/icons/UserCenter/MyTravel.png 查看文件


二進制
src/assets/icons/UserCenter/QRcode.png 查看文件


二進制
src/assets/icons/UserCenter/Refund.png 查看文件


二進制
src/assets/icons/UserCenter/Rules.png 查看文件


二進制
src/assets/icons/UserCenter/ToShop.png 查看文件


二進制
src/assets/icons/UserCenter/awaitPay.png 查看文件


二進制
src/assets/icons/UserCenter/boy.png 查看文件


二進制
src/assets/icons/UserCenter/collect.png 查看文件


二進制
src/assets/icons/UserCenter/girl.png 查看文件


二進制
src/assets/icons/UserCenter/null_logo.png 查看文件


+ 116
- 0
src/components/CompoentsOrder/AlreadyExpired/index.jsx 查看文件

@@ -0,0 +1,116 @@
1
+
2
+import { useState } from "react";
3
+
4
+import image from '@/assets/icons/ProCard/8kb.jpg'
5
+
6
+
7
+import food from '@/assets/icons/ProCard/food.png'
8
+import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
9
+
10
+import Null from '@/assets/icons/UserCenter/null_logo.png'
11
+
12
+
13
+import starOn from '@/assets/icons/GuideCheck/starOn.png'
14
+import starOff from '@/assets/icons/GuideCheck/starOff.png'
15
+import './style.less'
16
+
17
+
18
+
19
+const scoreList = new Array(5).fill(0)
20
+const score = '3.9'
21
+
22
+
23
+export default (props) => {
24
+
25
+  return (
26
+    <scroll-view scroll-y style='height: 90vh;'  >
27
+
28
+      <view className='AlreadyExpired-box' >
29
+
30
+        {/* 已过期 */}
31
+        <view className='OrderNumber'>订单编号:ABC123456789</view>
32
+        <view class='wrapper'>
33
+          <view class='left-complete-one'>
34
+            <image className='left-image-1' src={ProCard_hot}></image>
35
+            <view className='left-viewText'>
36
+              返现¥16.00
37
+            </view>
38
+            {/* 评分 */}
39
+            <view className='card-box-star'>
40
+              {
41
+                scoreList.map((_, index) => {
42
+                  console.log(index)
43
+                  const src = (index + '0.1') < score ? starOn : starOff
44
+                  return (
45
+                    <image className='card-star-image' key={index} src={src} />
46
+                  )
47
+                })
48
+              }
49
+              <text className='card-star-text' >{score}</text>
50
+            </view>
51
+            <view className='title-image'>
52
+              <image className='image-1' mode='scaleToFill' src={image}></image>
53
+              <image className='image-2' src={food}></image>
54
+            </view>
55
+            <view className='title-content'>
56
+              <view className='Pro-title'>
57
+                <view className='title-text'>【SEOUL·创意韩国料理】 <text className='title-money-2' >数量:1张</text></view>
58
+              </view>
59
+              <text className='title-money' >¥6990元</text>
60
+              <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
61
+            </view>
62
+          </view>
63
+          <view class='right-complete-two'>
64
+            <view className='right-content'>
65
+              <image className='right-image-2' src={Null} />
66
+            </view>
67
+          </view>
68
+        </view>
69
+        {/* 已过期 */}
70
+        <view className='OrderNumber'>订单编号:ABC123456789</view>
71
+        <view class='wrapper'>
72
+          <view class='left-complete-one'>
73
+            <image className='left-image-1' src={ProCard_hot}></image>
74
+            <view className='left-viewText'>
75
+              返现¥16.00
76
+            </view>
77
+            {/* 评分 */}
78
+            <view className='card-box-star'>
79
+              {
80
+                scoreList.map((_, index) => {
81
+                  console.log(index)
82
+                  const src = (index + '0.1') < score ? starOn : starOff
83
+                  return (
84
+                    <image className='card-star-image' key={index} src={src} />
85
+                  )
86
+                })
87
+              }
88
+              <text className='card-star-text' >{score}</text>
89
+            </view>
90
+            <view className='title-image'>
91
+              <image className='image-1' mode='scaleToFill' src={image}></image>
92
+              <image className='image-2' src={food}></image>
93
+            </view>
94
+            <view className='title-content'>
95
+              <view className='Pro-title'>
96
+                <view className='title-text'>【SEOUL·创意韩国料理】 <text className='title-money-2' >数量:1张</text></view>
97
+              </view>
98
+              <text className='title-money' >¥6990元</text>
99
+              <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
100
+            </view>
101
+          </view>
102
+          <view class='right-complete-two'>
103
+            <view className='right-content'>
104
+              <image className='right-image-2' src={Null} />
105
+            </view>
106
+          </view>
107
+        </view>
108
+
109
+        <view className='foot'>
110
+          已经到底了~
111
+        </view>
112
+      </view>
113
+    </scroll-view>
114
+
115
+  )
116
+}

+ 255
- 0
src/components/CompoentsOrder/AlreadyExpired/style.less 查看文件

@@ -0,0 +1,255 @@
1
+@whiteColor: #fff;
2
+
3
+.AlreadyExpired-box {
4
+  margin: 40px auto;
5
+  padding: 0 30px;
6
+  .OrderNumber {
7
+    // width: 234px;
8
+    height: 19px;
9
+    font-size: 20px;
10
+    font-weight: 400;
11
+    color: #666666;
12
+    line-height: 44px;
13
+  }
14
+  .wrapper {
15
+    margin-top: 40px;
16
+    display: flex;
17
+    position: relative;
18
+    // margin-top: 600px;
19
+    margin: 30px auto;
20
+    width: 700px;
21
+
22
+    // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
23
+    // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
24
+    filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
25
+    .card-box-star {
26
+      position: absolute;
27
+      width: auto;
28
+      height: 44.3px;
29
+      position: absolute;
30
+      left: 200px;
31
+      top: 28px;
32
+      font-size: 20px;
33
+      color: @whiteColor;
34
+      .card-star-image {
35
+        padding-left: 6px;
36
+        width: 21px;
37
+        height: 21px;
38
+      }
39
+      .card-star-text {
40
+        padding-left: 10px;
41
+        font-size: 20px;
42
+        color: #333;
43
+        font-weight: 700;
44
+      }
45
+    }
46
+
47
+    .left-complete-one {
48
+      padding-top: 85px;
49
+      padding-bottom: 43px;
50
+      position: relative;
51
+      display: flex;
52
+      background: @whiteColor;
53
+      background: radial-gradient(
54
+            circle at top right,
55
+            transparent 15px,
56
+            @whiteColor 0
57
+          )
58
+          top right,
59
+        radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
60
+          bottom right;
61
+      background-size: 100% 60%;
62
+      background-repeat: no-repeat;
63
+
64
+      width: 573px;
65
+      border-radius: 15px 0px 0px 15px;
66
+      // border-radius: 12px;
67
+
68
+      align-items: center;
69
+      .left-image-1 {
70
+        width: 145px;
71
+        height: 44px;
72
+        position: absolute;
73
+        top: 22px;
74
+      }
75
+      .left-viewText {
76
+        // background-image: url(@Image-ProCard_hot);
77
+        // width: 287px;
78
+        width: auto;
79
+        height: 44.3px;
80
+        position: absolute;
81
+        left: 1px;
82
+        top: 28px;
83
+        font-size: 20px;
84
+        color: @whiteColor;
85
+      }
86
+      //图片
87
+      .title-image {
88
+        width: 145px;
89
+        margin-left: 20px;
90
+        border-radius: 24px;
91
+        overflow: hidden;
92
+        position: relative;
93
+        .image-1 {
94
+          width: 100%;
95
+          height: 145px;
96
+        }
97
+        .image-2 {
98
+          width: 89px;
99
+          height: 34px;
100
+          position: absolute;
101
+          left: 0;
102
+          top: 0;
103
+        }
104
+      }
105
+      // 商品标题
106
+      .title-content {
107
+        // padding: 84px 0 56px 20px;
108
+        padding-left: 18px;
109
+
110
+        .Pro-title {
111
+          .title-text {
112
+            width: 375px;
113
+            overflow: hidden;
114
+            text-overflow: ellipsis;
115
+            // display: -webkit-box; //必须要
116
+            -webkit-line-clamp: 1;
117
+            -webkit-box-orient: vertical;
118
+            // word-break: break-all; /* 多出文本省略号代替 */
119
+            text-align: left;
120
+            font-size: 24px;
121
+            // padding-bottom: 10px;
122
+          }
123
+        }
124
+        .title-money {
125
+          // padding-top: 34px;
126
+          font-size: 24px;
127
+          // color: red;
128
+          font-weight: 800;
129
+        }
130
+        .title-money-2 {
131
+          height: 19px;
132
+          font-size: 20px;
133
+          font-weight: 400;
134
+          color: #333333;
135
+          padding-left: 40px;
136
+        }
137
+
138
+        .title-time {
139
+          font-size: 24px;
140
+          // padding-top: 20px;
141
+          color: #c0c8d3;
142
+        }
143
+        .title-position-on {
144
+          display: flex;
145
+          font-size: 20px;
146
+          .title-position {
147
+            width: 18px;
148
+            height: 24px;
149
+            padding-right: 10px;
150
+            padding-top: 5px;
151
+          }
152
+          .title-position-image {
153
+            align-items: center;
154
+            font-size: 20px;
155
+            color: #333;
156
+          }
157
+          .title-on {
158
+            // margin-bottom: 10px;
159
+            padding-top: 5px;
160
+            padding-left: 40px;
161
+            width: 21px;
162
+            height: 21px;
163
+            padding-right: 10px;
164
+          }
165
+          .title-on-text {
166
+            align-items: center;
167
+
168
+            font-size: 20px;
169
+            color: #333;
170
+          }
171
+        }
172
+      }
173
+    }
174
+    // .left-complete-one:nth-child(2) {
175
+    //   background: rgb(182, 0, 0);
176
+    //   padding-top: 10px;
177
+    // }
178
+  }
179
+
180
+  .right-complete-two {
181
+    background: @whiteColor;
182
+    background: radial-gradient(
183
+          circle at top left,
184
+          transparent 15px,
185
+          @whiteColor 0
186
+        )
187
+        top left,
188
+      radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
189
+        bottom left;
190
+    background-size: 100% 60%;
191
+    background-repeat: no-repeat;
192
+    width: 129px;
193
+    border-radius: 0 15px 15px 0;
194
+    position: relative;
195
+    //右面部分
196
+    .right-content {
197
+      // width: 100px;
198
+      height: 120px;
199
+      position: absolute;
200
+      top: 50%;
201
+      left: 50%;
202
+      transform: translate(-50%, -50%);
203
+      // border: 1px solid red;
204
+      .right-image-2 {
205
+        width: 76px;
206
+        height: 66px;
207
+        margin-top: 1em;
208
+      }
209
+      .right-number {
210
+        // width: 32px;
211
+        // font-size: 20px;
212
+        // border-radius: 4px;
213
+        // border: 2px solid #999;
214
+        // margin: auto;
215
+        // text-align: center;
216
+      }
217
+      .right-image {
218
+        // float: convert();
219
+        width: 35px;
220
+        height: 34px;
221
+        margin: 0 auto;
222
+        align-items: center;
223
+        margin: auto;
224
+        padding-left: 8px;
225
+        // text-align: center;
226
+      }
227
+
228
+      .right-title {
229
+        font-weight: 700;
230
+        font-size: 24px;
231
+        padding-top: 15px;
232
+        text-align: center;
233
+      }
234
+    }
235
+  }
236
+  //线条
237
+  .right-complete-two::after {
238
+    content: "";
239
+    position: absolute;
240
+    top: 15px;
241
+    margin: 26px auto;
242
+    height: 70%;
243
+    border-left: 1px dashed #595959;
244
+  }
245
+  .foot {
246
+    width: 100%;
247
+    height: 26px;
248
+    font-size: 28px;
249
+    font-weight: 400;
250
+    color: #c0c8d3;
251
+    line-height: 34px;
252
+    margin-top: 40px;
253
+    text-align: center;
254
+  }
255
+}

+ 115
- 0
src/components/CompoentsOrder/AlreadyUsed/index.jsx 查看文件

@@ -0,0 +1,115 @@
1
+import { useState } from "react";
2
+
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
+
7
+import Evaluation from '@/assets/icons/UserCenter/Evaluation.png'
8
+
9
+
10
+import starOn from '@/assets/icons/GuideCheck/starOn.png'
11
+import starOff from '@/assets/icons/GuideCheck/starOff.png'
12
+import './style.less'
13
+
14
+
15
+const scoreList = new Array(5).fill(0)
16
+const score = '3.9'
17
+
18
+
19
+
20
+export default (props) => {
21
+
22
+  return (
23
+    <scroll-view scroll-y style='height: 90vh;'  >
24
+
25
+      <view className='AlreadyUsed-box' >
26
+        {/* 已使用 */}
27
+        <view className='OrderNumber'>订单编号:ABC123456789</view>
28
+        <view class='wrapper'>
29
+          <view class='left-complete-one'>
30
+            <image className='left-image-1' src={ProCard_hot}></image>
31
+            <view className='left-viewText'>
32
+              返现¥16.00
33
+            </view>
34
+            {/* 评分 */}
35
+            <view className='card-box-star'>
36
+              {
37
+                scoreList.map((_, index) => {
38
+                  console.log(index)
39
+                  const src = (index + '0.1') < score ? starOn : starOff
40
+                  return (
41
+                    <image className='card-star-image' key={index} src={src} />
42
+                  )
43
+                })
44
+              }
45
+              <text className='card-star-text' >{score}</text>
46
+            </view>
47
+            <view className='title-image'>
48
+              <image className='image-1' mode='scaleToFill' src={image}></image>
49
+              <image className='image-2' src={food}></image>
50
+            </view>
51
+            <view className='title-content'>
52
+              <view className='Pro-title'>
53
+                <view className='title-text'>【米啊糯】新街口店 <text className='title-money-2' >数量:1张</text></view>
54
+              </view>
55
+              <text className='title-money' >¥6990元</text>
56
+              <view className='title-time' >核销时间:2021/06/21  12:00</view>
57
+            </view>
58
+          </view>
59
+          <view class='right-complete-two'>
60
+            <view className='right-content'>
61
+              <image className='right-image' src={Evaluation} />
62
+              <view className='right-title'>评价</view>
63
+
64
+            </view>
65
+          </view>
66
+        </view>
67
+
68
+        {/* 已使用 */}
69
+        <view className='OrderNumber'>订单编号:ABC123456789</view>
70
+        <view class='wrapper'>
71
+          <view class='left-complete-one'>
72
+            <image className='left-image-1' src={ProCard_hot}></image>
73
+            <view className='left-viewText'>
74
+              返现¥16.00
75
+            </view>
76
+            {/* 评分 */}
77
+            <view className='card-box-star'>
78
+              {
79
+                scoreList.map((_, index) => {
80
+                  console.log(index)
81
+                  const src = (index + '0.1') < score ? starOn : starOff
82
+                  return (
83
+                    <image className='card-star-image' key={index} src={src} />
84
+                  )
85
+                })
86
+              }
87
+              <text className='card-star-text' >{score}</text>
88
+            </view>
89
+            <view className='title-image'>
90
+              <image className='image-1' mode='scaleToFill' src={image}></image>
91
+              <image className='image-2' src={food}></image>
92
+            </view>
93
+            <view className='title-content'>
94
+              <view className='Pro-title'>
95
+                <view className='title-text'>【米啊糯】新街口店 <text className='title-money-2' >数量:1张</text></view>
96
+              </view>
97
+              <text className='title-money' >¥6990元</text>
98
+              <view className='title-time' >核销时间:2021/06/21  12:00</view>
99
+            </view>
100
+          </view>
101
+          <view class='right-complete-two'>
102
+            <view className='right-content'>
103
+              <image className='right-image' src={Evaluation} />
104
+              <view className='right-title'>评价</view>
105
+            </view>
106
+          </view>
107
+        </view>
108
+        <view className='foot'>
109
+          已经到底了~
110
+        </view>
111
+      </view>
112
+    </scroll-view>
113
+
114
+  )
115
+}

+ 269
- 0
src/components/CompoentsOrder/AlreadyUsed/style.less 查看文件

@@ -0,0 +1,269 @@
1
+@whiteColor: #fff;
2
+
3
+.AlreadyUsed-box {
4
+  margin: 40px auto;
5
+  padding: 0 30px;
6
+  .OrderNumber {
7
+    // width: 234px;
8
+    height: 19px;
9
+    font-size: 20px;
10
+    font-weight: 400;
11
+    color: #666666;
12
+    line-height: 44px;
13
+  }
14
+  .wrapper {
15
+    margin-top: 40px;
16
+    display: flex;
17
+    position: relative;
18
+    // margin-top: 600px;
19
+    margin: 30px auto;
20
+    width: 700px;
21
+
22
+    // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
23
+    // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
24
+    filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
25
+    .card-box-star {
26
+      position: absolute;
27
+      width: auto;
28
+      height: 44.3px;
29
+      position: absolute;
30
+      left: 200px;
31
+      top: 28px;
32
+      font-size: 20px;
33
+      color: @whiteColor;
34
+      .card-star-image {
35
+        padding-left: 6px;
36
+        width: 21px;
37
+        height: 21px;
38
+      }
39
+      .card-star-text {
40
+        padding-left: 10px;
41
+        font-size: 20px;
42
+        color: #333;
43
+        font-weight: 700;
44
+      }
45
+    }
46
+
47
+    .left-complete-one {
48
+      padding-top: 85px;
49
+      padding-bottom: 43px;
50
+      position: relative;
51
+      display: flex;
52
+      background: @whiteColor;
53
+      background: radial-gradient(
54
+            circle at top right,
55
+            transparent 15px,
56
+            @whiteColor 0
57
+          )
58
+          top right,
59
+        radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
60
+          bottom right;
61
+      background-size: 100% 60%;
62
+      background-repeat: no-repeat;
63
+
64
+      width: 573px;
65
+      border-radius: 15px 0px 0px 15px;
66
+      // border-radius: 12px;
67
+
68
+      align-items: center;
69
+      .left-image-1 {
70
+        width: 145px;
71
+        height: 44px;
72
+        position: absolute;
73
+        top: 22px;
74
+      }
75
+      .left-viewText {
76
+        // background-image: url(@Image-ProCard_hot);
77
+        // width: 287px;
78
+        width: auto;
79
+        height: 44.3px;
80
+        position: absolute;
81
+        left: 1px;
82
+        top: 28px;
83
+        font-size: 20px;
84
+        color: @whiteColor;
85
+      }
86
+      //图片
87
+      .title-image {
88
+        width: 145px;
89
+        margin-left: 20px;
90
+        border-radius: 24px;
91
+        overflow: hidden;
92
+        position: relative;
93
+        .image-1 {
94
+          width: 100%;
95
+          height: 145px;
96
+        }
97
+        .image-2 {
98
+          width: 89px;
99
+          height: 34px;
100
+          position: absolute;
101
+          left: 0;
102
+          top: 0;
103
+        }
104
+      }
105
+      // 商品标题
106
+      .title-content {
107
+        // padding: 84px 0 56px 20px;
108
+        padding-left: 18px;
109
+
110
+        .Pro-title {
111
+          .title-text {
112
+            width: 375px;
113
+            overflow: hidden;
114
+            text-overflow: ellipsis;
115
+            // display: -webkit-box; //必须要
116
+            -webkit-line-clamp: 1;
117
+            -webkit-box-orient: vertical;
118
+            // word-break: break-all; /* 多出文本省略号代替 */
119
+            text-align: left;
120
+            font-size: 24px;
121
+            // padding-bottom: 10px;
122
+          }
123
+        }
124
+        .title-money {
125
+          // padding-top: 34px;
126
+          font-size: 24px;
127
+          // color: red;
128
+          font-weight: 800;
129
+        }
130
+        .title-money-2 {
131
+          height: 19px;
132
+          font-size: 20px;
133
+          font-weight: 400;
134
+          color: #333333;
135
+          padding-left: 40px;
136
+        }
137
+
138
+        .title-time {
139
+          font-size: 24px;
140
+          // padding-top: 20px;
141
+          color: #c0c8d3;
142
+        }
143
+        .title-position-on {
144
+          display: flex;
145
+          font-size: 20px;
146
+          .title-position {
147
+            width: 18px;
148
+            height: 24px;
149
+            padding-right: 10px;
150
+            padding-top: 5px;
151
+          }
152
+          .title-position-image {
153
+            align-items: center;
154
+            font-size: 20px;
155
+            color: #333;
156
+          }
157
+          .title-on {
158
+            // margin-bottom: 10px;
159
+            padding-top: 5px;
160
+            padding-left: 40px;
161
+            width: 21px;
162
+            height: 21px;
163
+            padding-right: 10px;
164
+          }
165
+          .title-on-text {
166
+            align-items: center;
167
+
168
+            font-size: 20px;
169
+            color: #333;
170
+          }
171
+        }
172
+      }
173
+    }
174
+    // .left-complete-one:nth-child(2) {
175
+    //   background: rgb(182, 0, 0);
176
+    //   padding-top: 10px;
177
+    // }
178
+  }
179
+
180
+  .right-complete-two {
181
+    background: @whiteColor;
182
+    background: radial-gradient(
183
+          circle at top left,
184
+          transparent 15px,
185
+          @whiteColor 0
186
+        )
187
+        top left,
188
+      radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
189
+        bottom left;
190
+    background-size: 100% 60%;
191
+    background-repeat: no-repeat;
192
+    width: 129px;
193
+    border-radius: 0 15px 15px 0;
194
+    position: relative;
195
+    //右面部分
196
+    .right-content {
197
+      // width: 100px;
198
+      height: 120px;
199
+      position: absolute;
200
+      top: 50%;
201
+      left: 50%;
202
+      transform: translate(-50%, -50%);
203
+      // border: 1px solid red;
204
+      .right-image-2 {
205
+        width: 76px;
206
+        height: 66px;
207
+        margin-top: 1em;
208
+      }
209
+      .right-number {
210
+        // width: 32px;
211
+        // font-size: 20px;
212
+        // border-radius: 4px;
213
+        // border: 2px solid #999;
214
+        // margin: auto;
215
+        // text-align: center;
216
+      }
217
+      .right-image {
218
+        // float: convert();
219
+        width: 35px;
220
+        height: 34px;
221
+        margin: 0 auto;
222
+        align-items: center;
223
+        margin: auto;
224
+        padding-left: 8px;
225
+        // text-align: center;
226
+      }
227
+
228
+      .right-title {
229
+        font-weight: 700;
230
+        font-size: 24px;
231
+        padding-top: 15px;
232
+        text-align: center;
233
+      }
234
+    }
235
+  }
236
+  //线条
237
+  .right-complete-two::after {
238
+    content: "";
239
+    position: absolute;
240
+    top: 15px;
241
+    margin: 26px auto;
242
+    height: 70%;
243
+    border-left: 1px dashed #595959;
244
+  }
245
+  .foot {
246
+    width: 100%;
247
+    height: 26px;
248
+    font-size: 28px;
249
+    font-weight: 400;
250
+    color: #c0c8d3;
251
+    line-height: 34px;
252
+    margin-top: 40px;
253
+    text-align: center;
254
+  }
255
+
256
+  .button-info {
257
+    margin-bottom: 70px;
258
+
259
+    .button-box {
260
+      margin: 60px 0;
261
+      width: 690px;
262
+      height: 88px;
263
+      line-height: 88px;
264
+      background: #274291;
265
+      border-radius: 12px;
266
+      color: @whiteColor;
267
+    }
268
+  }
269
+}

+ 114
- 0
src/components/CompoentsOrder/TobePaid/index.jsx 查看文件

@@ -0,0 +1,114 @@
1
+
2
+import { useState } from "react";
3
+import { Button, } from '@tarojs/components'
4
+
5
+import image from '@/assets/icons/ProCard/8kb.jpg'
6
+
7
+import food from '@/assets/icons/ProCard/food.png'
8
+import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
9
+
10
+import Pay from '@/assets/icons/GuideCheck/Pay_logo.png'
11
+import './style.less'
12
+
13
+
14
+export default (props) => {
15
+
16
+  return (
17
+    <scroll-view scroll-y style='height: 90vh;'  >
18
+
19
+      <view className='TobePaid-box'>
20
+        <view className='OrderNumber'>订单编号:ABC123456789</view>
21
+        {/* 待支付 */}
22
+        <view class='wrapper'>
23
+          <view class='left-complete-one'>
24
+            <image className='left-image-1' src={ProCard_hot}></image>
25
+            <view className='left-viewText'>
26
+              返现¥16.00
27
+            </view>
28
+            <view className='title-image'>
29
+              <image className='image-1' mode='scaleToFill' src={image}></image>
30
+              <image className='image-2' src={food}></image>
31
+            </view>
32
+            <view className='title-content'>
33
+              <view className='Pro-title'>
34
+                <view className='title-text'>【大巴山火锅】 <text className='title-money-2' >数量:1张</text></view>
35
+              </view>
36
+              <text className='title-money' >¥6990元</text>
37
+              <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
38
+            </view>
39
+          </view>
40
+          <view class='right-complete-two'>
41
+            <view className='right-content'>
42
+              <image className='right-image' src={Pay} />
43
+              <view className='right-title'>支付</view>
44
+            </view>
45
+          </view>
46
+        </view>
47
+        {/* 待支付 */}
48
+        <view className='OrderNumber'>订单编号:ABC123456789</view>
49
+
50
+        <view class='wrapper'>
51
+          <view class='left-complete-one'>
52
+            <image className='left-image-1' src={ProCard_hot}></image>
53
+            <view className='left-viewText'>
54
+              返现¥16.00
55
+            </view>
56
+            <view className='title-image'>
57
+              <image className='image-1' mode='scaleToFill' src={image}></image>
58
+              <image className='image-2' src={food}></image>
59
+            </view>
60
+            <view className='title-content'>
61
+              <view className='Pro-title'>
62
+                <view className='title-text'>【大巴山火锅】 <text className='title-money-2' >数量:1张</text></view>
63
+              </view>
64
+              <text className='title-money' >¥6990元</text>
65
+              <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
66
+            </view>
67
+          </view>
68
+          <view class='right-complete-two'>
69
+            <view className='right-content'>
70
+              <image className='right-image' src={Pay} />
71
+              <view className='right-title'>支付</view>
72
+            </view>
73
+          </view>
74
+        </view>
75
+        {/* 待支付 */}
76
+        <view className='OrderNumber'>订单编号:ABC123456789</view>
77
+
78
+        <view class='wrapper'>
79
+
80
+          <view class='left-complete-one'>
81
+            <image className='left-image-1' src={ProCard_hot}></image>
82
+            <view className='left-viewText'>
83
+              返现¥16.00
84
+            </view>
85
+            <view className='title-image'>
86
+              <image className='image-1' mode='scaleToFill' src={image}></image>
87
+              <image className='image-2' src={food}></image>
88
+            </view>
89
+            <view className='title-content'>
90
+              <view className='Pro-title'>
91
+                <view className='title-text'>【大巴山火锅】 <text className='title-money-2' >数量:1张</text></view>
92
+              </view>
93
+              <text className='title-money' >¥6990元</text>
94
+              <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
95
+            </view>
96
+          </view>
97
+          <view class='right-complete-two'>
98
+            <view className='right-content'>
99
+              <image className='right-image' src={Pay} />
100
+              <view className='right-title'>支付</view>
101
+            </view>
102
+          </view>
103
+        </view>
104
+        <view className='foot'>
105
+          已经到底了~
106
+        </view>
107
+        <view className='button-info'>
108
+          <Button className='button-box'>全部支付</Button>
109
+        </view>
110
+      </view>
111
+    </scroll-view>
112
+
113
+  )
114
+}

+ 268
- 0
src/components/CompoentsOrder/TobePaid/style.less 查看文件

@@ -0,0 +1,268 @@
1
+@whiteColor: #fff;
2
+.TobePaid-box {
3
+  margin: 40px auto;
4
+  padding: 0 30px;
5
+  .OrderNumber {
6
+    // width: 234px;
7
+    height: 19px;
8
+    font-size: 20px;
9
+    font-weight: 400;
10
+    color: #666666;
11
+    line-height: 44px;
12
+  }
13
+  .wrapper {
14
+    margin-top: 40px;
15
+    display: flex;
16
+    position: relative;
17
+    // margin-top: 600px;
18
+    margin: 30px auto;
19
+    width: 700px;
20
+
21
+    // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
22
+    // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
23
+    filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
24
+    .card-box-star {
25
+      position: absolute;
26
+      width: auto;
27
+      height: 44.3px;
28
+      position: absolute;
29
+      left: 200px;
30
+      top: 28px;
31
+      font-size: 20px;
32
+      color: @whiteColor;
33
+      .card-star-image {
34
+        padding-left: 6px;
35
+        width: 21px;
36
+        height: 21px;
37
+      }
38
+      .card-star-text {
39
+        padding-left: 10px;
40
+        font-size: 20px;
41
+        color: #333;
42
+        font-weight: 700;
43
+      }
44
+    }
45
+
46
+    .left-complete-one {
47
+      padding-top: 85px;
48
+      padding-bottom: 43px;
49
+      position: relative;
50
+      display: flex;
51
+      background: @whiteColor;
52
+      background: radial-gradient(
53
+            circle at top right,
54
+            transparent 15px,
55
+            @whiteColor 0
56
+          )
57
+          top right,
58
+        radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
59
+          bottom right;
60
+      background-size: 100% 60%;
61
+      background-repeat: no-repeat;
62
+
63
+      width: 573px;
64
+      border-radius: 15px 0px 0px 15px;
65
+      // border-radius: 12px;
66
+
67
+      align-items: center;
68
+      .left-image-1 {
69
+        width: 145px;
70
+        height: 44px;
71
+        position: absolute;
72
+        top: 22px;
73
+      }
74
+      .left-viewText {
75
+        // background-image: url(@Image-ProCard_hot);
76
+        // width: 287px;
77
+        width: auto;
78
+        height: 44.3px;
79
+        position: absolute;
80
+        left: 1px;
81
+        top: 28px;
82
+        font-size: 20px;
83
+        color: @whiteColor;
84
+      }
85
+      //图片
86
+      .title-image {
87
+        width: 145px;
88
+        margin-left: 20px;
89
+        border-radius: 24px;
90
+        overflow: hidden;
91
+        position: relative;
92
+        .image-1 {
93
+          width: 100%;
94
+          height: 145px;
95
+        }
96
+        .image-2 {
97
+          width: 89px;
98
+          height: 34px;
99
+          position: absolute;
100
+          left: 0;
101
+          top: 0;
102
+        }
103
+      }
104
+      // 商品标题
105
+      .title-content {
106
+        // padding: 84px 0 56px 20px;
107
+        padding-left: 18px;
108
+
109
+        .Pro-title {
110
+          .title-text {
111
+            width: 375px;
112
+            overflow: hidden;
113
+            text-overflow: ellipsis;
114
+            // display: -webkit-box; //必须要
115
+            -webkit-line-clamp: 1;
116
+            -webkit-box-orient: vertical;
117
+            // word-break: break-all; /* 多出文本省略号代替 */
118
+            text-align: left;
119
+            font-size: 24px;
120
+            // padding-bottom: 10px;
121
+          }
122
+        }
123
+        .title-money {
124
+          // padding-top: 34px;
125
+          font-size: 24px;
126
+          // color: red;
127
+          font-weight: 800;
128
+        }
129
+        .title-money-2 {
130
+          height: 19px;
131
+          font-size: 20px;
132
+          font-weight: 400;
133
+          color: #333333;
134
+          padding-left: 40px;
135
+        }
136
+
137
+        .title-time {
138
+          font-size: 24px;
139
+          // padding-top: 20px;
140
+          color: #c0c8d3;
141
+        }
142
+        .title-position-on {
143
+          display: flex;
144
+          font-size: 20px;
145
+          .title-position {
146
+            width: 18px;
147
+            height: 24px;
148
+            padding-right: 10px;
149
+            padding-top: 5px;
150
+          }
151
+          .title-position-image {
152
+            align-items: center;
153
+            font-size: 20px;
154
+            color: #333;
155
+          }
156
+          .title-on {
157
+            // margin-bottom: 10px;
158
+            padding-top: 5px;
159
+            padding-left: 40px;
160
+            width: 21px;
161
+            height: 21px;
162
+            padding-right: 10px;
163
+          }
164
+          .title-on-text {
165
+            align-items: center;
166
+
167
+            font-size: 20px;
168
+            color: #333;
169
+          }
170
+        }
171
+      }
172
+    }
173
+    // .left-complete-one:nth-child(2) {
174
+    //   background: rgb(182, 0, 0);
175
+    //   padding-top: 10px;
176
+    // }
177
+  }
178
+
179
+  .right-complete-two {
180
+    background: @whiteColor;
181
+    background: radial-gradient(
182
+          circle at top left,
183
+          transparent 15px,
184
+          @whiteColor 0
185
+        )
186
+        top left,
187
+      radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
188
+        bottom left;
189
+    background-size: 100% 60%;
190
+    background-repeat: no-repeat;
191
+    width: 129px;
192
+    border-radius: 0 15px 15px 0;
193
+    position: relative;
194
+    //右面部分
195
+    .right-content {
196
+      // width: 100px;
197
+      height: 120px;
198
+      position: absolute;
199
+      top: 50%;
200
+      left: 50%;
201
+      transform: translate(-50%, -50%);
202
+      // border: 1px solid red;
203
+      .right-image-2 {
204
+        width: 76px;
205
+        height: 66px;
206
+        margin-top: 1em;
207
+      }
208
+      .right-number {
209
+        // width: 32px;
210
+        // font-size: 20px;
211
+        // border-radius: 4px;
212
+        // border: 2px solid #999;
213
+        // margin: auto;
214
+        // text-align: center;
215
+      }
216
+      .right-image {
217
+        // float: convert();
218
+        width: 35px;
219
+        height: 34px;
220
+        margin: 0 auto;
221
+        align-items: center;
222
+        margin: auto;
223
+        padding-left: 8px;
224
+        // text-align: center;
225
+      }
226
+
227
+      .right-title {
228
+        font-weight: 700;
229
+        font-size: 24px;
230
+        padding-top: 15px;
231
+        text-align: center;
232
+      }
233
+    }
234
+  }
235
+  //线条
236
+  .right-complete-two::after {
237
+    content: "";
238
+    position: absolute;
239
+    top: 15px;
240
+    margin: 26px auto;
241
+    height: 70%;
242
+    border-left: 1px dashed #595959;
243
+  }
244
+  .foot {
245
+    width: 100%;
246
+    height: 26px;
247
+    font-size: 28px;
248
+    font-weight: 400;
249
+    color: #c0c8d3;
250
+    line-height: 34px;
251
+    margin-top: 40px;
252
+    text-align: center;
253
+  }
254
+
255
+  .button-info {
256
+    margin-bottom: 70px;
257
+
258
+    .button-box {
259
+      margin: 60px 0;
260
+      width: 690px;
261
+      height: 88px;
262
+      line-height: 88px;
263
+      background: #274291;
264
+      border-radius: 12px;
265
+      color: @whiteColor;
266
+    }
267
+  }
268
+}

+ 74
- 0
src/components/CompoentsOrder/TobeWritten/index.jsx 查看文件

@@ -0,0 +1,74 @@
1
+
2
+import image from '@/assets/icons/ProCard/8kb.jpg'
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
+import './style.less'
7
+
8
+
9
+export default (props) => {
10
+
11
+  return (
12
+    <scroll-view scroll-y style='height: 90vh;'  >
13
+
14
+      <view className='TobeWritten-box'>
15
+        <view className='OrderNumber'>订单编号:ABC123456789</view>
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
+              返现¥16.00
21
+            </view>
22
+            <view className='title-image'>
23
+              <image className='image-1' mode='scaleToFill' src={image}></image>
24
+              <image className='image-2' src={food}></image>
25
+            </view>
26
+            <view className='title-content'>
27
+              <view className='Pro-title'>
28
+                <view className='title-text'>【SEOUL·创意韩国料理】 <text className='title-money-2' >数量:1张</text></view>
29
+              </view>
30
+              <text className='title-money' >¥6990元</text>
31
+              <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
32
+            </view>
33
+          </view>
34
+          <view class='right-complete-two'>
35
+            <view className='right-content'>
36
+              <image className='right-image' src={QRcode} />
37
+              <view className='right-title'>扫码核销</view>
38
+            </view>
39
+          </view>
40
+        </view>
41
+        <view className='OrderNumber'>订单编号:ABC123456789</view>
42
+        <view class='wrapper'>
43
+          <view class='left-complete-one'>
44
+            <image className='left-image-1' src={ProCard_hot}></image>
45
+            <view className='left-viewText'>
46
+              返现¥16.00
47
+            </view>
48
+            <view className='title-image'>
49
+              <image className='image-1' mode='scaleToFill' src={image}></image>
50
+              <image className='image-2' src={food}></image>
51
+            </view>
52
+            <view className='title-content'>
53
+              <view className='Pro-title'>
54
+                <view className='title-text'>【大巴山火锅】 <text className='title-money-2' >数量:1张</text></view>
55
+              </view>
56
+              <text className='title-money' >¥6990元</text>
57
+              <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
58
+            </view>
59
+          </view>
60
+          <view class='right-complete-two'>
61
+            <view className='right-content'>
62
+              <image className='right-image' src={QRcode} />
63
+              <view className='right-title'>扫码核销</view>
64
+            </view>
65
+          </view>
66
+        </view>
67
+
68
+        <view className='foot'>
69
+          已经到底了~
70
+        </view>
71
+      </view>
72
+    </scroll-view>
73
+  )
74
+}

+ 269
- 0
src/components/CompoentsOrder/TobeWritten/style.less 查看文件

@@ -0,0 +1,269 @@
1
+@whiteColor: #fff;
2
+
3
+.TobeWritten-box {
4
+  margin: 40px auto;
5
+  padding: 0 30px;
6
+  .OrderNumber {
7
+    // width: 234px;
8
+    height: 19px;
9
+    font-size: 20px;
10
+    font-weight: 400;
11
+    color: #666666;
12
+    line-height: 44px;
13
+  }
14
+  .wrapper {
15
+    margin-top: 40px;
16
+    display: flex;
17
+    position: relative;
18
+    // margin-top: 600px;
19
+    margin: 30px auto;
20
+    width: 700px;
21
+
22
+    // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
23
+    // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
24
+    filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
25
+    .card-box-star {
26
+      position: absolute;
27
+      width: auto;
28
+      height: 44.3px;
29
+      position: absolute;
30
+      left: 200px;
31
+      top: 28px;
32
+      font-size: 20px;
33
+      color: @whiteColor;
34
+      .card-star-image {
35
+        padding-left: 6px;
36
+        width: 21px;
37
+        height: 21px;
38
+      }
39
+      .card-star-text {
40
+        padding-left: 10px;
41
+        font-size: 20px;
42
+        color: #333;
43
+        font-weight: 700;
44
+      }
45
+    }
46
+
47
+    .left-complete-one {
48
+      padding-top: 85px;
49
+      padding-bottom: 43px;
50
+      position: relative;
51
+      display: flex;
52
+      background: @whiteColor;
53
+      background: radial-gradient(
54
+            circle at top right,
55
+            transparent 15px,
56
+            @whiteColor 0
57
+          )
58
+          top right,
59
+        radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
60
+          bottom right;
61
+      background-size: 100% 60%;
62
+      background-repeat: no-repeat;
63
+
64
+      width: 573px;
65
+      border-radius: 15px 0px 0px 15px;
66
+      // border-radius: 12px;
67
+
68
+      align-items: center;
69
+      .left-image-1 {
70
+        width: 145px;
71
+        height: 44px;
72
+        position: absolute;
73
+        top: 22px;
74
+      }
75
+      .left-viewText {
76
+        // background-image: url(@Image-ProCard_hot);
77
+        // width: 287px;
78
+        width: auto;
79
+        height: 44.3px;
80
+        position: absolute;
81
+        left: 1px;
82
+        top: 28px;
83
+        font-size: 20px;
84
+        color: @whiteColor;
85
+      }
86
+      //图片
87
+      .title-image {
88
+        width: 145px;
89
+        margin-left: 20px;
90
+        border-radius: 24px;
91
+        overflow: hidden;
92
+        position: relative;
93
+        .image-1 {
94
+          width: 100%;
95
+          height: 145px;
96
+        }
97
+        .image-2 {
98
+          width: 89px;
99
+          height: 34px;
100
+          position: absolute;
101
+          left: 0;
102
+          top: 0;
103
+        }
104
+      }
105
+      // 商品标题
106
+      .title-content {
107
+        // padding: 84px 0 56px 20px;
108
+        padding-left: 18px;
109
+
110
+        .Pro-title {
111
+          .title-text {
112
+            width: 375px;
113
+            overflow: hidden;
114
+            text-overflow: ellipsis;
115
+            // display: -webkit-box; //必须要
116
+            -webkit-line-clamp: 1;
117
+            -webkit-box-orient: vertical;
118
+            // word-break: break-all; /* 多出文本省略号代替 */
119
+            text-align: left;
120
+            font-size: 24px;
121
+            // padding-bottom: 10px;
122
+          }
123
+        }
124
+        .title-money {
125
+          // padding-top: 34px;
126
+          font-size: 24px;
127
+          // color: red;
128
+          font-weight: 800;
129
+        }
130
+        .title-money-2 {
131
+          height: 19px;
132
+          font-size: 20px;
133
+          font-weight: 400;
134
+          color: #333333;
135
+          padding-left: 40px;
136
+        }
137
+
138
+        .title-time {
139
+          font-size: 24px;
140
+          // padding-top: 20px;
141
+          color: #c0c8d3;
142
+        }
143
+        .title-position-on {
144
+          display: flex;
145
+          font-size: 20px;
146
+          .title-position {
147
+            width: 18px;
148
+            height: 24px;
149
+            padding-right: 10px;
150
+            padding-top: 5px;
151
+          }
152
+          .title-position-image {
153
+            align-items: center;
154
+            font-size: 20px;
155
+            color: #333;
156
+          }
157
+          .title-on {
158
+            // margin-bottom: 10px;
159
+            padding-top: 5px;
160
+            padding-left: 40px;
161
+            width: 21px;
162
+            height: 21px;
163
+            padding-right: 10px;
164
+          }
165
+          .title-on-text {
166
+            align-items: center;
167
+
168
+            font-size: 20px;
169
+            color: #333;
170
+          }
171
+        }
172
+      }
173
+    }
174
+    // .left-complete-one:nth-child(2) {
175
+    //   background: rgb(182, 0, 0);
176
+    //   padding-top: 10px;
177
+    // }
178
+  }
179
+
180
+  .right-complete-two {
181
+    background: @whiteColor;
182
+    background: radial-gradient(
183
+          circle at top left,
184
+          transparent 15px,
185
+          @whiteColor 0
186
+        )
187
+        top left,
188
+      radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
189
+        bottom left;
190
+    background-size: 100% 60%;
191
+    background-repeat: no-repeat;
192
+    width: 129px;
193
+    border-radius: 0 15px 15px 0;
194
+    position: relative;
195
+    //右面部分
196
+    .right-content {
197
+      // width: 100px;
198
+      height: 120px;
199
+      position: absolute;
200
+      top: 50%;
201
+      left: 50%;
202
+      transform: translate(-50%, -50%);
203
+      // border: 1px solid red;
204
+      .right-image-2 {
205
+        width: 76px;
206
+        height: 66px;
207
+        margin-top: 1em;
208
+      }
209
+      .right-number {
210
+        // width: 32px;
211
+        // font-size: 20px;
212
+        // border-radius: 4px;
213
+        // border: 2px solid #999;
214
+        // margin: auto;
215
+        // text-align: center;
216
+      }
217
+      .right-image {
218
+        // float: convert();
219
+        width: 35px;
220
+        height: 34px;
221
+        margin: 0 auto;
222
+        align-items: center;
223
+        margin: auto;
224
+        padding-left: 15px;
225
+        // text-align: center;
226
+      }
227
+
228
+      .right-title {
229
+        font-weight: 700;
230
+        font-size: 24px;
231
+        padding-top: 15px;
232
+        text-align: center;
233
+      }
234
+    }
235
+  }
236
+  //线条
237
+  .right-complete-two::after {
238
+    content: "";
239
+    position: absolute;
240
+    top: 15px;
241
+    margin: 26px auto;
242
+    height: 70%;
243
+    border-left: 1px dashed #595959;
244
+  }
245
+  .foot {
246
+    width: 100%;
247
+    height: 26px;
248
+    font-size: 28px;
249
+    font-weight: 400;
250
+    color: #c0c8d3;
251
+    line-height: 34px;
252
+    margin-top: 40px;
253
+    text-align: center;
254
+  }
255
+
256
+  .button-info {
257
+    margin-bottom: 70px;
258
+
259
+    .button-box {
260
+      margin: 60px 0;
261
+      width: 690px;
262
+      height: 88px;
263
+      line-height: 88px;
264
+      background: #274291;
265
+      border-radius: 12px;
266
+      color: @whiteColor;
267
+    }
268
+  }
269
+}

+ 166
- 0
src/components/CompoentsOrder/complete/index.jsx 查看文件

@@ -0,0 +1,166 @@
1
+import { useState } from "react";
2
+
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
+
7
+import Evaluation from '@/assets/icons/UserCenter/Evaluation.png'
8
+import Null from '@/assets/icons/UserCenter/null_logo.png'
9
+import QRcode from '@/assets/icons/UserCenter/QRcode.png'
10
+
11
+import Pay from '@/assets/icons/GuideCheck/Pay_logo.png'
12
+import starOn from '@/assets/icons/GuideCheck/starOn.png'
13
+import starOff from '@/assets/icons/GuideCheck/starOff.png'
14
+import AlreadyUsed from "../AlreadyUsed";
15
+import './style.less'
16
+
17
+
18
+const scoreList = new Array(5).fill(0)
19
+const score = '3.9'
20
+
21
+export default (props) => {
22
+  return (
23
+    <scroll-view scroll-y style='height: 90vh;'  >
24
+      <view className='complete-boxs' >
25
+        {/* 已使用 */}
26
+        <view className='OrderNumber' >订单编号:ABC123456789</view>
27
+        <view class='wrapper'>
28
+          <view class='left-complete-one'>
29
+            <image className='left-image-1' src={ProCard_hot}></image>
30
+            <view className='left-viewText'>
31
+              返现¥16.00
32
+            </view>
33
+            {/* 评分 */}
34
+            <view className='card-box-star'>
35
+              {
36
+                scoreList.map((_, index) => {
37
+                  console.log(index)
38
+                  const src = (index + '0.1') < score ? starOn : starOff
39
+                  return (
40
+                    <image className='card-star-image' key={index} src={src} />
41
+                  )
42
+                })
43
+              }
44
+              <text className='card-star-text' >{score}</text>
45
+            </view>
46
+            <view className='title-image'>
47
+              <image className='image-1' mode='scaleToFill' src={image}></image>
48
+              <image className='image-2' src={food}></image>
49
+            </view>
50
+            <view className='title-content'>
51
+              <view className='Pro-title'>
52
+                <view className='title-text'>【米啊糯】新街口店 <text className='title-money-2' >数量:1张</text></view>
53
+              </view>
54
+              <text className='title-money' >¥6990元</text>
55
+              <view className='title-time' >核销时间:2021/06/21  12:00</view>
56
+            </view>
57
+          </view>
58
+          <view class='right-complete-two'>
59
+            <view className='right-content'>
60
+              <image className='right-image' src={Evaluation} />
61
+              <view className='right-title'>评价</view>
62
+            </view>
63
+          </view>
64
+        </view>
65
+        {/* 待核销 */}
66
+        <view className='OrderNumber'>订单编号:ABC123456789</view>
67
+        <view class='wrapper'>
68
+          <view class='left-complete-one'>
69
+            <image className='left-image-1' src={ProCard_hot}></image>
70
+            <view className='left-viewText'>
71
+              返现¥16.00
72
+            </view>
73
+            <view className='title-image'>
74
+              <image className='image-1' mode='scaleToFill' src={image}></image>
75
+              <image className='image-2' src={food}></image>
76
+            </view>
77
+            <view className='title-content'>
78
+              <view className='Pro-title'>
79
+                <view className='title-text'>【SEOUL·创意韩国料理】 <text className='title-money-2' >数量:1张</text></view>
80
+              </view>
81
+              <text className='title-money' >¥6990元</text>
82
+              <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
83
+            </view>
84
+          </view>
85
+          <view class='right-complete-two'>
86
+            <view className='right-content'>
87
+              <image className='right-image' src={QRcode} />
88
+              <view className='right-title'>扫码核销</view>
89
+            </view>
90
+          </view>
91
+        </view>
92
+        {/* 待支付 */}
93
+        <view className='OrderNumber'>订单编号:ABC123456789</view>
94
+
95
+        <view class='wrapper'>
96
+          <view class='left-complete-one'>
97
+            <image className='left-image-1' src={ProCard_hot}></image>
98
+            <view className='left-viewText'>
99
+              返现¥16.00
100
+            </view>
101
+            <view className='title-image'>
102
+              <image className='image-1' mode='scaleToFill' src={image}></image>
103
+              <image className='image-2' src={food}></image>
104
+            </view>
105
+            <view className='title-content'>
106
+              <view className='Pro-title'>
107
+                <view className='title-text'>【SEOUL·创意韩国料理】 <text className='title-money-2' >数量:1张</text></view>
108
+              </view>
109
+              <text className='title-money' >¥6990元</text>
110
+              <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
111
+            </view>
112
+          </view>
113
+          <view class='right-complete-two'>
114
+            <view className='right-content'>
115
+              <image className='right-image' src={Pay} />
116
+              <view className='right-title'>支付</view>
117
+            </view>
118
+          </view>
119
+        </view>
120
+        {/* 已过期 */}
121
+        <view className='OrderNumber'>订单编号:ABC123456789</view>
122
+        <view class='wrapper'>
123
+          <view class='left-complete-one'>
124
+            <image className='left-image-1' src={ProCard_hot}></image>
125
+            <view className='left-viewText'>
126
+              返现¥16.00
127
+            </view>
128
+            {/* 评分 */}
129
+            <view className='card-box-star'>
130
+              {
131
+                scoreList.map((_, index) => {
132
+                  console.log(index)
133
+                  const src = (index + '0.1') < score ? starOn : starOff
134
+                  return (
135
+                    <image className='card-star-image' key={index} src={src} />
136
+                  )
137
+                })
138
+              }
139
+              <text className='card-star-text' >{score}</text>
140
+            </view>
141
+            <view className='title-image'>
142
+              <image className='image-1' mode='scaleToFill' src={image}></image>
143
+              <image className='image-2' src={food}></image>
144
+            </view>
145
+            <view className='title-content'>
146
+              <view className='Pro-title'>
147
+                <view className='title-text'>【SEOUL·创意韩国料理】 <text className='title-money-2' >数量:1张</text></view>
148
+              </view>
149
+              <text className='title-money' >¥6990元</text>
150
+              <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
151
+            </view>
152
+          </view>
153
+          <view class='right-complete-two'>
154
+            <view className='right-content'>
155
+              <image className='right-image-2' src={Null} />
156
+            </view>
157
+          </view>
158
+        </view>
159
+        <view className='foot'>
160
+          已经到底了~
161
+        </view>
162
+      </view>
163
+    </scroll-view >
164
+
165
+  )
166
+}

+ 255
- 0
src/components/CompoentsOrder/complete/style.less 查看文件

@@ -0,0 +1,255 @@
1
+@whiteColor: #fff;
2
+
3
+.complete-boxs {
4
+  margin: 40px auto;
5
+  padding: 0 30px;
6
+  .OrderNumber {
7
+    // width: 234px;
8
+    height: 19px;
9
+    font-size: 20px;
10
+    font-weight: 400;
11
+    color: #666666;
12
+    line-height: 44px;
13
+  }
14
+  .wrapper {
15
+    margin-top: 40px;
16
+    display: flex;
17
+    position: relative;
18
+    // margin-top: 600px;
19
+    margin: 30px auto;
20
+    width: 700px;
21
+
22
+    // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
23
+    // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
24
+    filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
25
+    .card-box-star {
26
+      position: absolute;
27
+      width: auto;
28
+      height: 44.3px;
29
+      position: absolute;
30
+      left: 200px;
31
+      top: 28px;
32
+      font-size: 20px;
33
+      color: @whiteColor;
34
+      .card-star-image {
35
+        padding-left: 6px;
36
+        width: 21px;
37
+        height: 21px;
38
+      }
39
+      .card-star-text {
40
+        padding-left: 10px;
41
+        font-size: 20px;
42
+        color: #333;
43
+        font-weight: 700;
44
+      }
45
+    }
46
+
47
+    .left-complete-one {
48
+      padding-top: 85px;
49
+      padding-bottom: 43px;
50
+      position: relative;
51
+      display: flex;
52
+      background: @whiteColor;
53
+      background: radial-gradient(
54
+            circle at top right,
55
+            transparent 15px,
56
+            @whiteColor 0
57
+          )
58
+          top right,
59
+        radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
60
+          bottom right;
61
+      background-size: 100% 60%;
62
+      background-repeat: no-repeat;
63
+
64
+      width: 573px;
65
+      border-radius: 15px 0px 0px 15px;
66
+      // border-radius: 12px;
67
+
68
+      align-items: center;
69
+      .left-image-1 {
70
+        width: 145px;
71
+        height: 44px;
72
+        position: absolute;
73
+        top: 22px;
74
+      }
75
+      .left-viewText {
76
+        // background-image: url(@Image-ProCard_hot);
77
+        // width: 287px;
78
+        width: auto;
79
+        height: 44.3px;
80
+        position: absolute;
81
+        left: 1px;
82
+        top: 28px;
83
+        font-size: 20px;
84
+        color: @whiteColor;
85
+      }
86
+      //图片
87
+      .title-image {
88
+        width: 145px;
89
+        margin-left: 20px;
90
+        border-radius: 24px;
91
+        overflow: hidden;
92
+        position: relative;
93
+        .image-1 {
94
+          width: 100%;
95
+          height: 145px;
96
+        }
97
+        .image-2 {
98
+          width: 89px;
99
+          height: 34px;
100
+          position: absolute;
101
+          left: 0;
102
+          top: 0;
103
+        }
104
+      }
105
+      // 商品标题
106
+      .title-content {
107
+        // padding: 84px 0 56px 20px;
108
+        padding-left: 18px;
109
+
110
+        .Pro-title {
111
+          .title-text {
112
+            width: 375px;
113
+            overflow: hidden;
114
+            text-overflow: ellipsis;
115
+            // display: -webkit-box; //必须要
116
+            -webkit-line-clamp: 1;
117
+            -webkit-box-orient: vertical;
118
+            // word-break: break-all; /* 多出文本省略号代替 */
119
+            text-align: left;
120
+            font-size: 24px;
121
+            // padding-bottom: 10px;
122
+          }
123
+        }
124
+        .title-money {
125
+          // padding-top: 34px;
126
+          font-size: 24px;
127
+          // color: red;
128
+          font-weight: 800;
129
+        }
130
+        .title-money-2 {
131
+          height: 19px;
132
+          font-size: 20px;
133
+          font-weight: 400;
134
+          color: #333333;
135
+          padding-left: 40px;
136
+        }
137
+
138
+        .title-time {
139
+          font-size: 24px;
140
+          // padding-top: 20px;
141
+          color: #c0c8d3;
142
+        }
143
+        .title-position-on {
144
+          display: flex;
145
+          font-size: 20px;
146
+          .title-position {
147
+            width: 18px;
148
+            height: 24px;
149
+            padding-right: 10px;
150
+            padding-top: 5px;
151
+          }
152
+          .title-position-image {
153
+            align-items: center;
154
+            font-size: 20px;
155
+            color: #333;
156
+          }
157
+          .title-on {
158
+            // margin-bottom: 10px;
159
+            padding-top: 5px;
160
+            padding-left: 40px;
161
+            width: 21px;
162
+            height: 21px;
163
+            padding-right: 10px;
164
+          }
165
+          .title-on-text {
166
+            align-items: center;
167
+
168
+            font-size: 20px;
169
+            color: #333;
170
+          }
171
+        }
172
+      }
173
+    }
174
+    // .left-complete-one:nth-child(2) {
175
+    //   background: rgb(182, 0, 0);
176
+    //   padding-top: 10px;
177
+    // }
178
+  }
179
+
180
+  .right-complete-two {
181
+    background: @whiteColor;
182
+    background: radial-gradient(
183
+          circle at top left,
184
+          transparent 15px,
185
+          @whiteColor 0
186
+        )
187
+        top left,
188
+      radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
189
+        bottom left;
190
+    background-size: 100% 60%;
191
+    background-repeat: no-repeat;
192
+    width: 129px;
193
+    border-radius: 0 15px 15px 0;
194
+    position: relative;
195
+    //右面部分
196
+    .right-content {
197
+      // width: 100px;
198
+      height: 120px;
199
+      position: absolute;
200
+      top: 50%;
201
+      left: 50%;
202
+      transform: translate(-50%, -50%);
203
+      // border: 1px solid red;
204
+      .right-image-2 {
205
+        width: 76px;
206
+        height: 66px;
207
+        margin-top: 1em;
208
+      }
209
+      .right-number {
210
+        // width: 32px;
211
+        // font-size: 20px;
212
+        // border-radius: 4px;
213
+        // border: 2px solid #999;
214
+        // margin: auto;
215
+        // text-align: center;
216
+      }
217
+      .right-image {
218
+        // float: convert();
219
+        width: 35px;
220
+        height: 34px;
221
+        margin: 0 auto;
222
+        align-items: center;
223
+        margin: auto;
224
+        padding-left: 8px;
225
+        // text-align: center;
226
+      }
227
+
228
+      .right-title {
229
+        font-weight: 700;
230
+        font-size: 24px;
231
+        padding-top: 15px;
232
+        text-align: center;
233
+      }
234
+    }
235
+  }
236
+  //线条
237
+  .right-complete-two::after {
238
+    content: "";
239
+    position: absolute;
240
+    top: 15px;
241
+    margin: 26px auto;
242
+    height: 70%;
243
+    border-left: 1px dashed #595959;
244
+  }
245
+  .foot {
246
+    width: 100%;
247
+    height: 26px;
248
+    font-size: 28px;
249
+    font-weight: 400;
250
+    color: #c0c8d3;
251
+    line-height: 34px;
252
+    margin-top: 40px;
253
+    text-align: center;
254
+  }
255
+}

+ 32
- 0
src/components/OrderMolded/index.jsx 查看文件

@@ -0,0 +1,32 @@
1
+import { useState } from 'react'
2
+import image from '@/assets/icons/ProCard/8kb.jpg'
3
+import { Button, Radio } from '@tarojs/components'
4
+
5
+import food from '@/assets/icons/ProCard/food.png'
6
+import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
7
+import './style.less'
8
+
9
+export default (props) => {
10
+
11
+  return (
12
+    <view class='wrapper-box'>
13
+      <view class='left-complete-one'>
14
+        <image className='left-image-1' src={ProCard_hot}></image>
15
+        <view className='left-viewText'>
16
+          返现¥16.00
17
+        </view>
18
+        <view className='title-image'>
19
+          <image className='image-1' mode='scaleToFill' src={image}></image>
20
+          <image className='image-2' src={food}></image>
21
+        </view>
22
+        <view className='title-content'>
23
+          <view className='Pro-title'>
24
+            <view className='title-text'>【橘里橘气咖啡店】新鲜出炉啦!</view>
25
+          </view>
26
+          <text className='title-money' >¥6990元</text>
27
+          <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
28
+        </view>
29
+      </view>
30
+    </view>
31
+  )
32
+}

+ 124
- 0
src/components/OrderMolded/style.less 查看文件

@@ -0,0 +1,124 @@
1
+@whiteColor: #fff;
2
+
3
+.wrapper-box {
4
+  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
5
+
6
+  .left-complete-one {
7
+    padding-top: 87px;
8
+    padding-bottom: 21px;
9
+    position: relative;
10
+    display: flex;
11
+    background: @whiteColor;
12
+    background: radial-gradient(
13
+          circle at top right,
14
+          transparent 15px,
15
+          @whiteColor 0
16
+        )
17
+        top right,
18
+      radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
19
+        bottom right;
20
+    background-size: 100% 60%;
21
+    background-repeat: no-repeat;
22
+
23
+    width: 573px;
24
+    border-radius: 15px 0px 0px 15px;
25
+    // border-radius: 12px;
26
+
27
+    align-items: center;
28
+    .left-image-1 {
29
+      width: 145px;
30
+      height: 44px;
31
+      position: absolute;
32
+      top: 22px;
33
+    }
34
+    .left-viewText {
35
+      // background-image: url(@Image-ProCard_hot);
36
+      // width: 287px;
37
+      width: auto;
38
+      height: 44.3px;
39
+      position: absolute;
40
+      left: 1px;
41
+      top: 28px;
42
+      font-size: 24px;
43
+      color: @whiteColor;
44
+      font-weight: 600;
45
+    }
46
+    //图片
47
+    .title-image {
48
+      width: 145px;
49
+      margin-left: 20px;
50
+      border-radius: 24px;
51
+      overflow: hidden;
52
+      position: relative;
53
+      .image-1 {
54
+        width: 100%;
55
+        height: 145px;
56
+      }
57
+      .image-2 {
58
+        width: 89px;
59
+        height: 34px;
60
+        position: absolute;
61
+        left: 0;
62
+        top: 0;
63
+      }
64
+    }
65
+    // 商品标题
66
+    .title-content {
67
+      // padding: 84px 0 56px 20px;
68
+      padding-left: 18px;
69
+
70
+      .Pro-title {
71
+        .title-text {
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 {
85
+        padding-top: 34px;
86
+        font-size: 24px;
87
+        // color: red;
88
+        position: relative;
89
+        right: 136px;
90
+        font-weight: 800;
91
+      }
92
+      .title-money-2 {
93
+        font-size: 18px;
94
+        color: #666;
95
+        padding-left: 10px;
96
+        text-decoration: line-through;
97
+      }
98
+
99
+      .title-time {
100
+        font-size: 24px;
101
+        padding-top: 20px;
102
+        color: #c0c8d3;
103
+      }
104
+    }
105
+  }
106
+}
107
+
108
+.right-complete-two {
109
+  background: @whiteColor;
110
+  background: radial-gradient(
111
+        circle at top left,
112
+        transparent 15px,
113
+        @whiteColor 0
114
+      )
115
+      top left,
116
+    radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
117
+      bottom left;
118
+  background-size: 100% 60%;
119
+  background-repeat: no-repeat;
120
+  width: 129px;
121
+  border-radius: 0 15px 15px 0;
122
+  position: relative;
123
+}
124
+//线条

+ 12
- 0
src/components/Popup/index.jsx 查看文件

@@ -0,0 +1,12 @@
1
+
2
+import './style.less'
3
+
4
+export default (props) => {
5
+  const { show, mask = true, maskClosable, onClose } = props
6
+
7
+  return (
8
+    <mp-dialog extClass='x-popup' buttons={[]} show={show} mask={mask} maskClosable={maskClosable} onClose={onClose}>
9
+      {props.children}
10
+    </mp-dialog>
11
+  )
12
+}

+ 6
- 0
src/components/Popup/style.less 查看文件

@@ -0,0 +1,6 @@
1
+.x-popup {
2
+  .weui-dialog__hd,
3
+  .weui-dialog__ft {
4
+    display: none;
5
+  }
6
+}

+ 4
- 1
src/components/ProCard/index.jsx 查看文件

@@ -7,7 +7,8 @@ export default (props) => {
7 7
   return (
8 8
     <view class='wrapper'>
9 9
       <view class='left-complete-one'>
10
-        <image className='left-image-1' src={ProCard_hot}></image>
10
+        <image className='left-image-1' src={ProCard_hot} />
11
+        {props.children}
11 12
         {/* <view className='left-viewText'>
12 13
               返现¥16.00
13 14
             </view> */}
@@ -16,6 +17,7 @@ export default (props) => {
16 17
           {/* <image className='image-2' src={food}></image> */}
17 18
         </view>
18 19
         <view className='title-content'>
20
+          {props.children}
19 21
           {/* <view className='Pro-title'>
20 22
                 <view className='title-text'>【橘里橘气咖啡店】新鲜出炉啦!</view>
21 23
               </view>
@@ -25,6 +27,7 @@ export default (props) => {
25 27
       </view>
26 28
       <view class='right-complete-two'>
27 29
         <view className='right-content'>
30
+          {props.children}
28 31
           {/* <view className='right-number'>×1</view> */}
29 32
           {/* <view className='right-title'>数量</view> */}
30 33
         </view>

+ 148
- 0
src/components/tabs/index.js 查看文件

@@ -0,0 +1,148 @@
1
+module.exports =
2
+/******/ (function(modules) { // webpackBootstrap
3
+/******/ 	// The module cache
4
+/******/ 	var installedModules = {};
5
+/******/
6
+/******/ 	// The require function
7
+/******/ 	function __webpack_require__(moduleId) {
8
+/******/
9
+/******/ 		// Check if module is in cache
10
+/******/ 		if(installedModules[moduleId]) {
11
+/******/ 			return installedModules[moduleId].exports;
12
+/******/ 		}
13
+/******/ 		// Create a new module (and put it into the cache)
14
+/******/ 		var module = installedModules[moduleId] = {
15
+/******/ 			i: moduleId,
16
+/******/ 			l: false,
17
+/******/ 			exports: {}
18
+/******/ 		};
19
+/******/
20
+/******/ 		// Execute the module function
21
+/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
+/******/
23
+/******/ 		// Flag the module as loaded
24
+/******/ 		module.l = true;
25
+/******/
26
+/******/ 		// Return the exports of the module
27
+/******/ 		return module.exports;
28
+/******/ 	}
29
+/******/
30
+/******/
31
+/******/ 	// expose the modules object (__webpack_modules__)
32
+/******/ 	__webpack_require__.m = modules;
33
+/******/
34
+/******/ 	// expose the module cache
35
+/******/ 	__webpack_require__.c = installedModules;
36
+/******/
37
+/******/ 	// define getter function for harmony exports
38
+/******/ 	__webpack_require__.d = function(exports, name, getter) {
39
+/******/ 		if(!__webpack_require__.o(exports, name)) {
40
+/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
+/******/ 		}
42
+/******/ 	};
43
+/******/
44
+/******/ 	// define __esModule on exports
45
+/******/ 	__webpack_require__.r = function(exports) {
46
+/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
+/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
+/******/ 		}
49
+/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
50
+/******/ 	};
51
+/******/
52
+/******/ 	// create a fake namespace object
53
+/******/ 	// mode & 1: value is a module id, require it
54
+/******/ 	// mode & 2: merge all properties of value into the ns
55
+/******/ 	// mode & 4: return value when already ns object
56
+/******/ 	// mode & 8|1: behave like require
57
+/******/ 	__webpack_require__.t = function(value, mode) {
58
+/******/ 		if(mode & 1) value = __webpack_require__(value);
59
+/******/ 		if(mode & 8) return value;
60
+/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
+/******/ 		var ns = Object.create(null);
62
+/******/ 		__webpack_require__.r(ns);
63
+/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
+/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
+/******/ 		return ns;
66
+/******/ 	};
67
+/******/
68
+/******/ 	// getDefaultExport function for compatibility with non-harmony modules
69
+/******/ 	__webpack_require__.n = function(module) {
70
+/******/ 		var getter = module && module.__esModule ?
71
+/******/ 			function getDefault() { return module['default']; } :
72
+/******/ 			function getModuleExports() { return module; };
73
+/******/ 		__webpack_require__.d(getter, 'a', getter);
74
+/******/ 		return getter;
75
+/******/ 	};
76
+/******/
77
+/******/ 	// Object.prototype.hasOwnProperty.call
78
+/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
+/******/
80
+/******/ 	// __webpack_public_path__
81
+/******/ 	__webpack_require__.p = "";
82
+/******/
83
+/******/
84
+/******/ 	// Load entry module and return exports
85
+/******/ 	return __webpack_require__(__webpack_require__.s = 5);
86
+/******/ })
87
+/************************************************************************/
88
+/******/ ({
89
+
90
+/***/ 5:
91
+/***/ (function(module, exports, __webpack_require__) {
92
+
93
+"use strict";
94
+
95
+
96
+Component({
97
+    options: {
98
+        addGlobalClass: true,
99
+        pureDataPattern: /^_/,
100
+        multipleSlots: true
101
+    },
102
+    properties: {
103
+        tabs: { type: Array, value: [] },
104
+        tabClass: { type: String, value: '' },
105
+        swiperClass: { type: String, value: '' },
106
+        activeClass: { type: String, value: '' },
107
+        tabUnderlineColor: { type: String, value: '#07c160' },
108
+        tabActiveTextColor: { type: String, value: '#000000' },
109
+        tabInactiveTextColor: { type: String, value: '#000000' },
110
+        tabBackgroundColor: { type: String, value: '#ffffff' },
111
+        activeTab: { type: Number, value: 0 },
112
+        swipeable: { type: Boolean, value: true },
113
+        animation: { type: Boolean, value: true },
114
+        duration: { type: Number, value: 500 }
115
+    },
116
+    data: {
117
+        currentView: 0
118
+    },
119
+    observers: {
120
+        activeTab: function activeTab(_activeTab) {
121
+            var len = this.data.tabs.length;
122
+            if (len === 0) return;
123
+            var currentView = _activeTab - 1;
124
+            if (currentView < 0) currentView = 0;
125
+            if (currentView > len - 1) currentView = len - 1;
126
+            this.setData({ currentView: currentView });
127
+        }
128
+    },
129
+    lifetimes: {
130
+        created: function created() {}
131
+    },
132
+    methods: {
133
+        handleTabClick: function handleTabClick(e) {
134
+            var index = e.currentTarget.dataset.index;
135
+            this.setData({ activeTab: index });
136
+            this.triggerEvent('tabclick', { index: index });
137
+        },
138
+        handleSwiperChange: function handleSwiperChange(e) {
139
+            var index = e.detail.current;
140
+            this.setData({ activeTab: index });
141
+            this.triggerEvent('change', { index: index });
142
+        }
143
+    }
144
+});
145
+
146
+/***/ })
147
+
148
+/******/ });

+ 4
- 0
src/components/tabs/index.json 查看文件

@@ -0,0 +1,4 @@
1
+{
2
+    "component": true,
3
+    "usingComponents": {}
4
+}

+ 20
- 0
src/components/tabs/index.wxml 查看文件

@@ -0,0 +1,20 @@
1
+<view class="weui-tabs">
2
+  <view class="weui-tabs-bar__wrp">
3
+    <scroll-view scroll-x scroll-into-view="item_{{currentView}}" scroll-with-animation="{{animation}}">
4
+      <view class="weui-tabs-bar__content">
5
+        <block wx:for="{{tabs}}" wx:key="title">
6
+          <view id="item_{{index}}" class="weui-tabs-bar__item" style="background-color: {{tabBackgroundColor}}; color: {{activeTab === index ? tabActiveTextColor : tabInactiveTextColor}};" bindtap="handleTabClick" data-index="{{index}}">
7
+            <view class="weui-tabs-bar__title {{tabClass}} {{activeTab === index ? activeClass : ''}}" style="border-bottom-color: {{activeTab === index ? tabUnderlineColor : 'transparent'}}">
8
+              <text class="">{{item.title}}</text>
9
+            </view>
10
+          </view>
11
+        </block>
12
+      </view>
13
+    </scroll-view>
14
+  </view>
15
+  <swiper class="{{swiperClass}}" current="{{activeTab}}" duration="{{duration}}" bindchange="handleSwiperChange">
16
+    <swiper-item wx:for="{{tabs}}" wx:key="title">
17
+      <slot name="tab-content-{{index}}"></slot>
18
+    </swiper-item>
19
+  </swiper>
20
+</view>

+ 1
- 0
src/components/tabs/index.wxss 查看文件

@@ -0,0 +1 @@
1
+.weui-tabs{width:100%}.weui-tabs-bar__wrp{width:100%;background:#fff}.weui-tabs-bar__content{width:100%;white-space:nowrap}.weui-tabs-bar__item{display:inline-block}.weui-tabs-bar__title{display:inline-block;border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:transparent}

+ 9
- 0
src/pages/MineUserAll/AllOrder/index.config.js 查看文件

@@ -0,0 +1,9 @@
1
+export default {
2
+  navigationBarTitleText: '我的订单',
3
+  navigationStyle: 'custom',
4
+  "usingComponents": {
5
+    "mp-dialog": "weui-miniprogram/dialog/dialog",
6
+    "mp-tabs": "../../../components/tabs/index"
7
+  }
8
+
9
+}

+ 103
- 0
src/pages/MineUserAll/AllOrder/index.jsx 查看文件

@@ -0,0 +1,103 @@
1
+
2
+import { useState, useEffect, } from 'react'
3
+import { Taro, useRouter } from '@tarojs/taro'
4
+
5
+import CustomNav from '@/components/CustomNav'
6
+import AlreadyExpired from '@/components/CompoentsOrder/AlreadyExpired'
7
+import AlreadyUsed from '@/components/CompoentsOrder/AlreadyUsed'
8
+import Complete from '@/components/CompoentsOrder/complete'
9
+import TobePaid from '@/components/CompoentsOrder/TobePaid'
10
+import TobeWritten from '@/components/CompoentsOrder/TobeWritten'
11
+
12
+import './style.less'
13
+
14
+
15
+
16
+export default (props) => {
17
+  const [activeTab, setActiveTab] = useState(0)
18
+  const [swiperHeight, setSwiperHeight] = useState(0)
19
+
20
+
21
+  const { params } = useRouter()
22
+  const { tabJump } = params || {}
23
+
24
+
25
+  useEffect(() => {
26
+    if (tabJump) {
27
+      setActiveTab(tabJump - 0)
28
+    }
29
+    console.log('---------------------', tabJump);
30
+
31
+  }, [tabJump])
32
+
33
+
34
+
35
+  const tabs = [
36
+    {
37
+      title: '全部',
38
+    },
39
+    {
40
+      title: '待支付',
41
+
42
+    },
43
+    {
44
+      title: '待核销',
45
+
46
+    },
47
+    {
48
+      title: '已使用',
49
+
50
+    },
51
+    {
52
+      title: '已过期',
53
+
54
+    },
55
+  ]
56
+
57
+  const handleTabChange = (e) => {
58
+    const { index } = e.detail
59
+    setActiveTab(index)
60
+  }
61
+
62
+  const abccc = () => [
63
+    Taro.getSystemInfo({
64
+      success: function (res) {
65
+        let clientHeight = res.windowHeight;
66
+        let clientWidth = res.windowWidth;
67
+        let ratio = 750 / clientWidth;
68
+        let Height = ratio * clientHeight;
69
+        setSwiperHeight(`height:${Height}rpx;`)
70
+        console.log('------------->', swiperHeight);
71
+
72
+
73
+      }
74
+
75
+    })
76
+  ]
77
+
78
+
79
+  return (
80
+    <view className='box-content'>
81
+      <CustomNav title='我的订单' />
82
+      <view className='index-tabs'>
83
+        <mp-tabs
84
+          tabClass='tabs-Unselected'
85
+          swiperClass='tabs-swiper'
86
+          activeClass='tabs-Selected'
87
+          tabUnderlineColor='#000'
88
+          tabInactiveTextColor='#C0C8D3'
89
+          tabs={tabs}
90
+          current={activeTab}
91
+          onChange={handleTabChange}
92
+          activeTab={activeTab}
93
+        >
94
+        </mp-tabs>
95
+      </view>
96
+      {activeTab === 0 && <Complete />}
97
+      {activeTab === 1 && <TobePaid />}
98
+      {activeTab === 2 && <TobeWritten />}
99
+      {activeTab === 3 && <AlreadyUsed />}
100
+      {activeTab === 4 && <AlreadyExpired />}
101
+    </view>
102
+  )
103
+}

+ 27
- 0
src/pages/MineUserAll/AllOrder/style.less 查看文件

@@ -0,0 +1,27 @@
1
+.box-content {
2
+  width: 100%;
3
+  .index-tabs {
4
+    width: 100%;
5
+
6
+    .tabs-Unselected {
7
+      width: 20vw;
8
+      text-align: center;
9
+      height: 26px;
10
+      font-size: 28px;
11
+      font-weight: bold;
12
+      color: #c0c8d3;
13
+    }
14
+    .tabs-swiper {
15
+      max-height: 0px;
16
+    }
17
+    .tabs-Selected {
18
+      height: 30px;
19
+      font-size: 32px;
20
+      font-weight: bold;
21
+      color: #4c4c4c;
22
+      padding-top: 33px;
23
+      padding-bottom: 28px;
24
+      border-bottom: 5px solid black;
25
+    }
26
+  }
27
+}

+ 4
- 0
src/pages/MineUserAll/Collect/index.config.js 查看文件

@@ -0,0 +1,4 @@
1
+export default {
2
+  navigationBarTitleText: '我的收藏',
3
+  navigationStyle: 'custom',
4
+}

+ 157
- 0
src/pages/MineUserAll/Collect/index.jsx 查看文件

@@ -0,0 +1,157 @@
1
+
2
+import CustomNav from '@/components/CustomNav'
3
+import { useState } from "react";
4
+
5
+import Taro from '@tarojs/taro'
6
+import image from '@/assets/icons/ProCard/8kb.jpg'
7
+import Pay from '@/assets/icons/GuideCheck/Pay_logo.png'
8
+import SeeDetails from '@/assets/icons/GuideCheck/SeeDetails.png'
9
+
10
+import Attractions from '@/assets/icons/GuideCheck/Attractions.png'
11
+import food from '@/assets/icons/ProCard/food.png'
12
+import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
13
+import position from '@/assets/icons/GuideCheck/position_logo.png'
14
+
15
+import starOn from '@/assets/icons/GuideCheck/starOn.png'
16
+import starOff from '@/assets/icons/GuideCheck/starOff.png'
17
+
18
+import './style.less'
19
+
20
+const scoreList = new Array(5).fill(0)
21
+const score = '3.9'
22
+
23
+export default (props) => {
24
+
25
+  const [value, setVaule] = useState('已收藏')
26
+  const [imageSrc, setImageSrc] = useState(starOn)
27
+
28
+
29
+
30
+
31
+  const Ac = () => {
32
+    setImageSrc(starOff)
33
+    setVaule('加入收藏')
34
+    // console.log('------------', value);
35
+
36
+  }
37
+  return (
38
+    <view className='box-content'>
39
+      <CustomNav title='我的收藏' />
40
+      <view class='wrapper'>
41
+        <view class='left-complete-one'>
42
+          <image className='left-image-1' src={ProCard_hot}></image>
43
+          <view className='left-viewText'>
44
+            返现¥16.00
45
+          </view>
46
+          {/* 评分 */}
47
+          <view className='card-box-star'>
48
+            {
49
+              scoreList.map((_, index) => {
50
+                console.log(index)
51
+                const src = (index + '0.1') < score ? starOn : starOff
52
+                return (
53
+                  <image className='card-star-image' key={index} src={src} />
54
+                )
55
+              })
56
+            }
57
+            <text className='card-star-text' >{score}</text>
58
+          </view>
59
+          <view className='title-image'>
60
+            <image className='image-1' mode='scaleToFill' src={image}></image>
61
+            <image className='image-2' src={food}></image>
62
+          </view>
63
+          <view className='title-content'>
64
+            <view className='Pro-title'>
65
+              <view className='title-text'>【橘里橘啊换行啊啊啊气咖啡店】新鲜出炉啦!</view>
66
+            </view>
67
+            <text className='title-money' >¥6990元<text className='title-money-2'>门市价78元</text></text>
68
+            <view className='title-position-on'>
69
+              <image className='title-position' src={position} />
70
+              <text className='title-position-image'>南京市/秦淮区</text>
71
+              <image className='title-on' src={imageSrc} />
72
+              <text onClick={() => Ac()} className='title-on-text'>{value}</text>
73
+            </view>
74
+          </view>
75
+        </view>
76
+        <view class='right-complete-two'>
77
+          <view className='right-content'>
78
+            <image className='right-image' src={SeeDetails} />
79
+            <view className='right-title'>查看详情</view>
80
+          </view>
81
+        </view>
82
+      </view>
83
+      <view class='wrapper'>
84
+        <view class='left-complete-one'>
85
+          <image className='left-image-1' src={ProCard_hot}></image>
86
+          <view className='left-viewText'>
87
+            返现¥16.00
88
+          </view>
89
+          {/* 评分 */}
90
+          <view className='card-box-star'>
91
+            {
92
+              scoreList.map((_, index) => {
93
+                console.log(index)
94
+                const src = (index + '0.1') < score ? starOn : starOff
95
+                return (
96
+                  <image className='card-star-image' key={index} src={src} />
97
+                )
98
+              })
99
+            }
100
+            <text className='card-star-text' >{score}</text>
101
+          </view>
102
+          <view className='title-image'>
103
+            <image className='image-1' mode='scaleToFill' src={image}></image>
104
+            <image className='image-2' src={food}></image>
105
+          </view>
106
+          <view className='title-content'>
107
+            <view className='Pro-title'>
108
+              <view className='title-text'>【橘里橘啊换行啊啊啊气咖啡店】新鲜出炉啦!</view>
109
+            </view>
110
+            <text className='title-money' >¥6990元<text className='title-money-2'>门市价78元</text></text>
111
+            <view className='title-position-on'>
112
+              <image className='title-position' src={position} />
113
+              <text className='title-position-image'>南京市/秦淮区</text>
114
+              <image className='title-on' src={imageSrc} />
115
+              <text onClick={() => Ac()} className='title-on-text'>{value}</text>
116
+            </view>
117
+          </view>
118
+        </view>
119
+        <view class='right-complete-two'>
120
+          <view className='right-content'>
121
+            <image className='right-image' src={SeeDetails} />
122
+            <view className='right-title'>查看详情</view>
123
+          </view>
124
+        </view>
125
+      </view>
126
+      <view class='wrapper'>
127
+        <view class='left-complete-one' style='padding-top: 20px;'>
128
+          <view className='title-image'>
129
+            <image className='image-1' mode='scaleToFill' src={image}></image>
130
+            <image className='image-2' src={Attractions}></image>
131
+          </view>
132
+          <view className='title-content'>
133
+            <view className='Pro-title'>
134
+              <view className='title-text'>【橘里橘啊换行啊啊啊气咖啡店】新鲜出炉啦!</view>
135
+            </view>
136
+            <text className='title-money' >¥6990元<text className='title-money-2'>门市价78元</text></text>
137
+            <view className='title-position-on'>
138
+              <image className='title-position' src={position} />
139
+              <text className='title-position-image'>南京市/秦淮区</text>
140
+              <image className='title-on' src={imageSrc} />
141
+              <text onClick={() => Ac()} className='title-on-text'>{value}</text>
142
+            </view>
143
+          </view>
144
+        </view>
145
+        <view class='right-complete-two'>
146
+          <view className='right-content'>
147
+            <image className='right-image' src={SeeDetails} />
148
+            <view className='right-title'>查看详情</view>
149
+          </view>
150
+        </view>
151
+      </view>
152
+      <view className='foot'>
153
+        已经到底了~
154
+      </view>
155
+    </view>
156
+  )
157
+}

+ 244
- 0
src/pages/MineUserAll/Collect/style.less 查看文件

@@ -0,0 +1,244 @@
1
+@whiteColor: #fff;
2
+
3
+.box-content {
4
+  padding: 0 25px;
5
+
6
+  //卡片---------------
7
+
8
+  .wrapper {
9
+    margin-top: 40px;
10
+    display: flex;
11
+    position: relative;
12
+    // margin-top: 600px;
13
+    // margin: 30px auto;
14
+    width: 700px;
15
+
16
+    // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
17
+    // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
18
+    filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
19
+    .card-box-star {
20
+      position: absolute;
21
+      width: auto;
22
+      height: 44.3px;
23
+      position: absolute;
24
+      left: 200px;
25
+      top: 28px;
26
+      font-size: 20px;
27
+      color: @whiteColor;
28
+      .card-star-image {
29
+        padding-left: 6px;
30
+        width: 21px;
31
+        height: 21px;
32
+      }
33
+      .card-star-text {
34
+        padding-left: 10px;
35
+        font-size: 20px;
36
+        color: #333;
37
+        font-weight: 700;
38
+      }
39
+    }
40
+
41
+    .left-complete-one {
42
+      padding-top: 85px;
43
+      padding-bottom: 43px;
44
+      position: relative;
45
+      display: flex;
46
+      background: @whiteColor;
47
+      background: radial-gradient(
48
+            circle at top right,
49
+            transparent 15px,
50
+            @whiteColor 0
51
+          )
52
+          top right,
53
+        radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
54
+          bottom right;
55
+      background-size: 100% 60%;
56
+      background-repeat: no-repeat;
57
+
58
+      width: 573px;
59
+      border-radius: 15px 0px 0px 15px;
60
+      // border-radius: 12px;
61
+
62
+      align-items: center;
63
+      .left-image-1 {
64
+        width: 145px;
65
+        height: 44px;
66
+        position: absolute;
67
+        top: 22px;
68
+      }
69
+      .left-viewText {
70
+        // background-image: url(@Image-ProCard_hot);
71
+        // width: 287px;
72
+        width: auto;
73
+        height: 44.3px;
74
+        position: absolute;
75
+        left: 1px;
76
+        top: 28px;
77
+        font-size: 20px;
78
+        color: @whiteColor;
79
+      }
80
+      //图片
81
+      .title-image {
82
+        width: 145px;
83
+        margin-left: 20px;
84
+        border-radius: 24px;
85
+        overflow: hidden;
86
+        position: relative;
87
+        .image-1 {
88
+          width: 100%;
89
+          height: 145px;
90
+        }
91
+        .image-2 {
92
+          width: 89px;
93
+          height: 34px;
94
+          position: absolute;
95
+          left: 0;
96
+          top: 0;
97
+        }
98
+      }
99
+      // 商品标题
100
+      .title-content {
101
+        // padding: 84px 0 56px 20px;
102
+        padding-left: 18px;
103
+
104
+        .Pro-title {
105
+          .title-text {
106
+            width: 375px;
107
+            overflow: hidden;
108
+            text-overflow: ellipsis;
109
+            // display: -webkit-box; //必须要
110
+            -webkit-line-clamp: 1;
111
+            -webkit-box-orient: vertical;
112
+            // word-break: break-all; /* 多出文本省略号代替 */
113
+            text-align: left;
114
+            font-size: 24px;
115
+            // padding-bottom: 10px;
116
+          }
117
+        }
118
+        .title-money {
119
+          // padding-top: 34px;
120
+          font-size: 24px;
121
+          // color: red;
122
+          font-weight: 800;
123
+        }
124
+        .title-money-2 {
125
+          font-size: 18px;
126
+          color: #666;
127
+          padding-left: 10px;
128
+          text-decoration: line-through;
129
+        }
130
+
131
+        .title-time {
132
+          font-size: 24px;
133
+          // padding-top: 20px;
134
+          color: #c0c8d3;
135
+        }
136
+        .title-position-on {
137
+          display: flex;
138
+          font-size: 20px;
139
+          .title-position {
140
+            width: 18px;
141
+            height: 24px;
142
+            padding-right: 10px;
143
+            padding-top: 5px;
144
+          }
145
+          .title-position-image {
146
+            align-items: center;
147
+            font-size: 20px;
148
+            color: #333;
149
+          }
150
+          .title-on {
151
+            // margin-bottom: 10px;
152
+            padding-top: 5px;
153
+            padding-left: 40px;
154
+            width: 21px;
155
+            height: 21px;
156
+            padding-right: 10px;
157
+          }
158
+          .title-on-text {
159
+            align-items: center;
160
+
161
+            font-size: 20px;
162
+            color: #333;
163
+          }
164
+        }
165
+      }
166
+    }
167
+    // .left-complete-one:nth-child(2) {
168
+    //   background: rgb(182, 0, 0);
169
+    //   padding-top: 10px;
170
+    // }
171
+  }
172
+
173
+  .right-complete-two {
174
+    background: @whiteColor;
175
+    background: radial-gradient(
176
+          circle at top left,
177
+          transparent 15px,
178
+          @whiteColor 0
179
+        )
180
+        top left,
181
+      radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
182
+        bottom left;
183
+    background-size: 100% 60%;
184
+    background-repeat: no-repeat;
185
+    width: 129px;
186
+    border-radius: 0 15px 15px 0;
187
+    position: relative;
188
+    //右面部分
189
+    .right-content {
190
+      // width: 100px;
191
+      height: 120px;
192
+      position: absolute;
193
+      top: 50%;
194
+      left: 50%;
195
+      transform: translate(-50%, -50%);
196
+      // border: 1px solid red;
197
+
198
+      .right-number {
199
+        // width: 32px;
200
+        // font-size: 20px;
201
+        // border-radius: 4px;
202
+        // border: 2px solid #999;
203
+        // margin: auto;
204
+        // text-align: center;
205
+      }
206
+      .right-image {
207
+        // float: convert();
208
+        width: 35px;
209
+        height: 34px;
210
+        margin: 0 auto;
211
+        align-items: center;
212
+        margin: auto;
213
+        padding-left: 8px;
214
+        // text-align: center;
215
+      }
216
+
217
+      .right-title {
218
+        font-weight: 700;
219
+        font-size: 24px;
220
+        padding-top: 15px;
221
+        text-align: center;
222
+      }
223
+    }
224
+  }
225
+  //线条
226
+  .right-complete-two::after {
227
+    content: "";
228
+    position: absolute;
229
+    top: 15px;
230
+    margin: 26px auto;
231
+    height: 70%;
232
+    border-left: 1px dashed #595959;
233
+  }
234
+  .foot {
235
+    width: 100%;
236
+    height: 26px;
237
+    font-size: 28px;
238
+    font-weight: 400;
239
+    color: #c0c8d3;
240
+    line-height: 34px;
241
+    margin-top: 40px;
242
+    text-align: center;
243
+  }
244
+}

+ 4
- 0
src/pages/MineUserAll/ContactMe/index.config.js 查看文件

@@ -0,0 +1,4 @@
1
+export default {
2
+  navigationBarTitleText: '联系我们',
3
+  navigationStyle: 'custom',
4
+}

+ 26
- 0
src/pages/MineUserAll/ContactMe/index.jsx 查看文件

@@ -0,0 +1,26 @@
1
+
2
+import CustomNav from '@/components/CustomNav'
3
+// import { Button } from '@tarojs/components'
4
+import Taro from '@tarojs/taro'
5
+
6
+import { Button, Text, Textarea } from '@tarojs/components'
7
+import './style.less'
8
+
9
+export default (props) => {
10
+  const back = () => {
11
+    Taro.navigateBack()
12
+  }
13
+
14
+  return (
15
+    <view className='box-content'>
16
+      <CustomNav title='联系我们' />
17
+      <view class='section'>
18
+        <Textarea placeholder='请输入您的建议或意见!' confirm-type='done' />
19
+      </view>
20
+      <view className='button-info'>
21
+        <Button className='button-box'>提交</Button>
22
+        <Button className='button-box-Cancel' onClick={back} >取消</Button>
23
+      </view>
24
+    </view>
25
+  )
26
+}

+ 38
- 0
src/pages/MineUserAll/ContactMe/style.less 查看文件

@@ -0,0 +1,38 @@
1
+.box-content {
2
+  .section {
3
+    width: 690px;
4
+    height: 254px;
5
+    background: #ffffff;
6
+    border: 1px solid #b5b5b5;
7
+    box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.08);
8
+    padding: 0 20px 0 20px;
9
+    margin: auto;
10
+    textarea {
11
+      padding-top: 20px;
12
+      width: 100%;
13
+      font-size: 24px;
14
+      font-weight: 400;
15
+      color: #666666;
16
+    }
17
+  }
18
+  .button-info {
19
+    .button-box {
20
+      margin-top: 20%;
21
+      width: 690px;
22
+      height: 88px;
23
+      line-height: 88px;
24
+
25
+      background: #274291;
26
+      border-radius: 12px;
27
+    }
28
+    .button-box-Cancel {
29
+      width: 690px;
30
+      height: 88px;
31
+      line-height: 88px;
32
+      margin-top: 40px;
33
+      color: #274291;
34
+      border: 2px solid #274291;
35
+      border-radius: 12px;
36
+    }
37
+  }
38
+}

+ 4
- 0
src/pages/MineUserAll/HomeLogo/index.config.js 查看文件

@@ -0,0 +1,4 @@
1
+export default {
2
+  navigationBarTitleText: '入住指引',
3
+  navigationStyle: 'custom',
4
+}

+ 11
- 0
src/pages/MineUserAll/HomeLogo/index.jsx 查看文件

@@ -0,0 +1,11 @@
1
+
2
+import CustomNav from '@/components/CustomNav'
3
+import './style.less'
4
+
5
+export default (props) => {
6
+  return (
7
+    <view className='box-content'>
8
+      <CustomNav title='入住指引' />
9
+    </view>
10
+  )
11
+}

+ 2
- 0
src/pages/MineUserAll/HomeLogo/style.less 查看文件

@@ -0,0 +1,2 @@
1
+.box-content {
2
+}

+ 4
- 0
src/pages/MineUserAll/RefundMoney/CheckRefund/index.config.js 查看文件

@@ -0,0 +1,4 @@
1
+export default {
2
+  navigationBarTitleText: '售后退款2',
3
+  navigationStyle: 'custom',
4
+}

+ 146
- 0
src/pages/MineUserAll/RefundMoney/CheckRefund/index.jsx 查看文件

@@ -0,0 +1,146 @@
1
+import BlackSpot from '@/assets/icons/GuideCheck/BlackSpot.png'
2
+import Taro from '@tarojs/taro'
3
+import { Button, Icon, Text, Textarea } from '@tarojs/components'
4
+
5
+import { useState } from 'react'
6
+import image from '@/assets/icons/ProCard/8kb.jpg'
7
+import food from '@/assets/icons/ProCard/food.png'
8
+import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
9
+import CustomNav from '@/components/CustomNav'
10
+import './style.less'
11
+
12
+export default (props) => {
13
+  const [view, setView] = useState(true)
14
+  const [view2, setView2] = useState(false)
15
+  const [view3, setView3] = useState(false)
16
+  const [view4, setView4] = useState(false)
17
+  const [view5, setView5] = useState(false)
18
+  const [view6, setView6] = useState(false)
19
+  let value = view
20
+  let list = [
21
+    {
22
+      className: `Refund-star-view4 ${!value ? 'bg2' : 'Refund-star-view2'}`,
23
+      name: '预约不上',
24
+      value: false,
25
+    }
26
+  ]
27
+
28
+  const viewOK = () => {
29
+    setView(!view)
30
+  }
31
+
32
+  const view2OK = () => {
33
+    setView2(!view2)
34
+  }
35
+
36
+  const view3OK = () => {
37
+    setView3(!view3)
38
+  }
39
+
40
+  const view4OK = () => {
41
+    setView4(!view4)
42
+  }
43
+  const view5OK = () => {
44
+    setView5(!view5)
45
+  }
46
+
47
+  const view6OK = () => {
48
+    setView6(!view6)
49
+  }
50
+
51
+
52
+
53
+  return (
54
+
55
+    <view className='box-content'>
56
+      <CustomNav title='售后退款2' />
57
+      <view className='Refund-Content-box'>
58
+        <view className='title-image'>
59
+          <image mode='scaleToFill' className='title-image-cup' src={BlackSpot} />
60
+          <text className='title-title-boss' >商品信息</text>
61
+        </view>
62
+      </view>
63
+      {/* 商品信息结束 */}
64
+      <view class='wrapper'>
65
+        <view class='left-complete-one'>
66
+          <image className='left-image-1' src={ProCard_hot}></image>
67
+          <view className='left-viewText'>
68
+            返现¥16.00
69
+          </view>
70
+          <view className='title-image'>
71
+            <image className='image-1' mode='scaleToFill' src={image}></image>
72
+            <image className='image-2' src={food}></image>
73
+          </view>
74
+          <view className='title-content'>
75
+            <view className='Pro-title'>
76
+              <view className='title-text'>【米啊糯】新街口店 <text className='title-money-2' >数量:1张</text></view>
77
+
78
+            </view>
79
+            <text className='title-money' >¥6990元<text className='title-money-2'>门市价78元</text></text>
80
+            <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
81
+          </view>
82
+        </view>
83
+        <view class='right-complete-two'>
84
+          <view className='right-content'>
85
+          </view>
86
+        </view>
87
+      </view>
88
+      {/* 卡片结束 */}
89
+      <view className='Refund-Content-box'>
90
+        <view className='title-image'>
91
+          <image mode='scaleToFill' className='title-image-cup' src={BlackSpot} />
92
+          <text className='title-title-boss' >退款原因</text>
93
+        </view>
94
+        {/* 退款结束 */}
95
+      </view>
96
+      <view className='Refund-content'>
97
+        <text className={`Refund-star-view ${view ? 'bg2' : 'Refund-star-view'}`} onClick={() => viewOK()} >计划有变,没时间消费</text>
98
+        <text className={`Refund-star-view2 ${view2 ? 'bg2' : 'Refund-star-view2'}`} onClick={() => view2OK()}  >误认为是外卖</text>
99
+        <text className={`Refund-star-view3 ${view3 ? 'bg2' : 'Refund-star-view3'}`} onClick={() => view3OK()} >没看清楚使用规则,要用时才发现限制很多</text>
100
+        <text className={`Refund-star-view4 ${view4 ? 'bg2' : 'Refund-star-view4'}`} onClick={() => view4OK()} >预约不上</text>
101
+        <text className={`Refund-star-view5 ${view5 ? 'bg2' : 'Refund-star-view5'}`} onClick={() => view5OK()} >店里更优惠</text>
102
+        <text className={`Refund-star-view6 ${view6 ? 'bg2' : 'Refund-star-view6'}`} onClick={() => view6OK()} >网友/朋友评价不好</text>
103
+
104
+        <view>
105
+          {
106
+            list.map(item => {
107
+              return <text onClick={() => view4OK()} key={item.value} className={item.className}>
108
+                {item.name}
109
+              </text>
110
+
111
+            })
112
+          }
113
+        </view>
114
+      </view>
115
+
116
+      <view className='Refund-Content-box'>
117
+        <view className='title-image'>
118
+          <image mode='scaleToFill' className='title-image-cup' src={BlackSpot} />
119
+          <text className='title-title-boss' >退款说明</text>
120
+        </view>
121
+      </view>
122
+      <view class='section'>
123
+        <Textarea placeholder='请补充退款说明(选填)!' confirm-type='done' />
124
+      </view>
125
+      <view className='money-title' >实付金额: <text className='money-name' >58元</text></view>
126
+      <view className='money-title' >已获返现: <text className='money-name' >1.88元</text></view>
127
+      <view className='money-title' >退款金额: <text className='money-name' >56.12元</text></view>
128
+      <view className='ul-li-text'>
129
+        <view className='ul-li-view' ></view>
130
+        <text className='ul-li-textname'>退款金额不可修改</text>
131
+      </view>
132
+      <view className='ul-li-text'>
133
+        <view className='ul-li-view' ></view>
134
+        <text className='ul-li-textname'>下单获得返现金额,会在退款时被扣除;</text>
135
+      </view>
136
+      <view className='ul-li-text'>
137
+        <view className='ul-li-view' ></view>
138
+        <text className='ul-li-textname'>退款将在七个工作日内原路退还。</text>
139
+      </view>
140
+
141
+      <view className='button-info'>
142
+        <Button className='button-box'>提交申请</Button>
143
+      </view>
144
+    </view>
145
+  )
146
+}

+ 426
- 0
src/pages/MineUserAll/RefundMoney/CheckRefund/style.less 查看文件

@@ -0,0 +1,426 @@
1
+@whiteColor: #fff;
2
+.page-index {
3
+  padding: 0 25px;
4
+}
5
+
6
+.box-content {
7
+  width: 100%;
8
+  margin: 0 35px;
9
+
10
+  .Refund-Content-box {
11
+    .title-image {
12
+      margin-top: 39px;
13
+      display: flex;
14
+      width: 270px;
15
+      height: 40px;
16
+      .title-image-cup {
17
+        width: 32px;
18
+        height: 32px;
19
+        margin-top: 10px;
20
+        padding-right: 10px;
21
+        align-items: center;
22
+      }
23
+      .title-title-boss {
24
+        align-items: center;
25
+        font-size: 32px;
26
+        font-weight: 800;
27
+        color: #202020;
28
+      }
29
+    }
30
+  }
31
+
32
+  .wrapper {
33
+    margin: auto;
34
+
35
+    margin-top: 40px;
36
+    display: flex;
37
+    position: relative;
38
+    // margin-top: 600px;
39
+    // margin: 30px auto;
40
+    // width: 700px;
41
+
42
+    // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
43
+    // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
44
+    filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
45
+    .card-box-star {
46
+      position: absolute;
47
+      width: auto;
48
+      height: 44.3px;
49
+      position: absolute;
50
+      left: 200px;
51
+      top: 28px;
52
+      font-size: 20px;
53
+      color: @whiteColor;
54
+      .card-star-image {
55
+        padding-left: 6px;
56
+        width: 21px;
57
+        height: 21px;
58
+      }
59
+      .card-star-text {
60
+        padding-left: 10px;
61
+        font-size: 20px;
62
+        color: #333;
63
+        font-weight: 700;
64
+      }
65
+    }
66
+
67
+    .left-complete-one {
68
+      padding-top: 87px;
69
+      padding-bottom: 43px;
70
+      position: relative;
71
+      display: flex;
72
+      background: @whiteColor;
73
+      background: radial-gradient(
74
+            circle at top right,
75
+            transparent 15px,
76
+            @whiteColor 0
77
+          )
78
+          top right,
79
+        radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
80
+          bottom right;
81
+      background-size: 100% 60%;
82
+      background-repeat: no-repeat;
83
+
84
+      width: 573px;
85
+      border-radius: 15px 0px 0px 15px;
86
+      // border-radius: 12px;
87
+
88
+      align-items: center;
89
+      .left-image-1 {
90
+        width: 145px;
91
+        height: 44px;
92
+        position: absolute;
93
+        top: 22px;
94
+      }
95
+      .left-viewText {
96
+        // background-image: url(@Image-ProCard_hot);
97
+        // width: 287px;
98
+        width: auto;
99
+        height: 44.3px;
100
+        position: absolute;
101
+        left: 1px;
102
+        top: 28px;
103
+        font-size: 20px;
104
+        color: @whiteColor;
105
+      }
106
+      //图片
107
+      .title-image {
108
+        width: 145px;
109
+        margin-left: 20px;
110
+        border-radius: 24px;
111
+        overflow: hidden;
112
+        position: relative;
113
+        .image-1 {
114
+          width: 100%;
115
+          height: 145px;
116
+        }
117
+        .image-2 {
118
+          width: 89px;
119
+          height: 34px;
120
+          position: absolute;
121
+          left: 0;
122
+          top: 0;
123
+        }
124
+      }
125
+      // 商品标题
126
+      .title-content {
127
+        // padding: 84px 0 56px 20px;
128
+        padding-left: 18px;
129
+
130
+        .Pro-title {
131
+          .title-text {
132
+            width: 375px;
133
+            overflow: hidden;
134
+            text-overflow: ellipsis;
135
+            // display: -webkit-box; //必须要
136
+            -webkit-line-clamp: 1;
137
+            -webkit-box-orient: vertical;
138
+            // word-break: break-all; /* 多出文本省略号代替 */
139
+            text-align: left;
140
+            font-size: 24px;
141
+            // padding-bottom: 10px;
142
+          }
143
+        }
144
+        .title-money {
145
+          // padding-top: 34px;
146
+          font-size: 24px;
147
+          // color: red;
148
+          display: inline-block;
149
+          font-weight: 800;
150
+          margin: 15px auto;
151
+        }
152
+        .title-money-2 {
153
+          height: 19px;
154
+          font-size: 20px;
155
+          font-weight: 400;
156
+          color: #333333;
157
+          padding-left: 50px;
158
+        }
159
+
160
+        .title-time {
161
+          font-size: 24px;
162
+          // padding-top: 20px;
163
+          color: #c0c8d3;
164
+        }
165
+        .title-position-on {
166
+          display: flex;
167
+          font-size: 20px;
168
+          .title-position {
169
+            width: 18px;
170
+            height: 24px;
171
+            padding-right: 10px;
172
+            padding-top: 5px;
173
+          }
174
+          .title-position-image {
175
+            align-items: center;
176
+            font-size: 20px;
177
+            color: #333;
178
+          }
179
+          .title-on {
180
+            // margin-bottom: 10px;
181
+            padding-top: 5px;
182
+            padding-left: 40px;
183
+            width: 21px;
184
+            height: 21px;
185
+            padding-right: 10px;
186
+          }
187
+          .title-on-text {
188
+            align-items: center;
189
+
190
+            font-size: 20px;
191
+            color: #333;
192
+          }
193
+        }
194
+      }
195
+    }
196
+  }
197
+
198
+  .right-complete-two {
199
+    background: @whiteColor;
200
+    background: radial-gradient(
201
+          circle at top left,
202
+          transparent 15px,
203
+          @whiteColor 0
204
+        )
205
+        top left,
206
+      radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
207
+        bottom left;
208
+    background-size: 100% 60%;
209
+    background-repeat: no-repeat;
210
+    width: 129px;
211
+    border-radius: 0 15px 15px 0;
212
+    position: relative;
213
+    //右面部分
214
+    .right-content {
215
+      // width: 100px;
216
+      height: 120px;
217
+      position: absolute;
218
+      top: 50%;
219
+      left: 50%;
220
+      transform: translate(-50%, -50%);
221
+      // border: 1px solid red;
222
+
223
+      .right-number {
224
+        // width: 32px;
225
+        // font-size: 20px;
226
+        // border-radius: 4px;
227
+        // border: 2px solid #999;
228
+        // margin: auto;
229
+        // text-align: center;
230
+      }
231
+      .right-image {
232
+        // float: convert();
233
+        width: 36px;
234
+        height: 36px;
235
+        margin: 0 auto;
236
+        align-items: center;
237
+        margin: auto;
238
+        padding-left: 8px;
239
+        // text-align: center;
240
+      }
241
+
242
+      .right-title {
243
+        font-weight: 700;
244
+        font-size: 24px;
245
+        padding-top: 10px;
246
+        text-align: center;
247
+      }
248
+    }
249
+  }
250
+  .Refund-content {
251
+    width: 100%;
252
+    margin-top: 45px;
253
+    .Refund-star-view {
254
+      display: inline-block;
255
+      width: 295px;
256
+      height: 60px;
257
+      border: 1px solid #999999;
258
+
259
+      border-radius: 30px;
260
+      font-size: 24px;
261
+      font-weight: bold;
262
+      color: #666666;
263
+
264
+      text-align: center;
265
+      line-height: 60px;
266
+    }
267
+    .Refund-star-view2 {
268
+      width: 198px;
269
+      height: 60px;
270
+      border: 1px solid #999999;
271
+
272
+      border-radius: 30px;
273
+      font-size: 24px;
274
+      font-weight: bold;
275
+      color: #666666;
276
+
277
+      text-align: center;
278
+      line-height: 60px;
279
+      display: inline-block;
280
+      margin-left: 30px;
281
+    }
282
+    .Refund-star-view3 {
283
+      margin: 30px auto;
284
+      display: inline-block;
285
+      width: 507px;
286
+      height: 60px;
287
+      border: 1px solid #999999;
288
+
289
+      border-radius: 30px;
290
+      font-size: 24px;
291
+      font-weight: bold;
292
+      color: #666666;
293
+
294
+      text-align: center;
295
+      line-height: 60px;
296
+    }
297
+    .Refund-star-view4 {
298
+      display: inline-block;
299
+      width: 146px;
300
+      height: 60px;
301
+      background: #ffffff;
302
+      border-radius: 30px;
303
+      border: 1px solid #999999;
304
+      font-size: 24px;
305
+      font-weight: bold;
306
+      color: #666666;
307
+      text-align: center;
308
+      line-height: 60px;
309
+      margin-left: 30px;
310
+    }
311
+    .Refund-star-view5 {
312
+      display: inline-block;
313
+
314
+      width: 220px;
315
+      height: 60px;
316
+      background: #ffffff;
317
+      border-radius: 30px;
318
+      border: 1px solid #999999;
319
+      font-size: 24px;
320
+      font-weight: bold;
321
+      color: #666666;
322
+      text-align: center;
323
+      line-height: 60px;
324
+    }
325
+    .Refund-star-view6 {
326
+      display: inline-block;
327
+
328
+      width: 257px;
329
+      height: 60px;
330
+      background: #ffffff;
331
+      border-radius: 30px;
332
+      border: 1px solid #999999;
333
+      font-size: 24px;
334
+      font-weight: bold;
335
+      color: #666666;
336
+      text-align: center;
337
+      line-height: 60px;
338
+      margin-left: 30px;
339
+    }
340
+
341
+    /* 点击以后的样式 */
342
+    .bg2 {
343
+      color: #274190;
344
+      border: 2px solid #274190;
345
+    }
346
+  }
347
+
348
+  .section {
349
+    width: 86%;
350
+    height: 254px;
351
+    background: #ffffff;
352
+    border: 1px solid #b5b5b5;
353
+    box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.08);
354
+    padding: 0 20px 0 20px;
355
+    margin-top: 40px;
356
+    textarea {
357
+      padding-top: 20px;
358
+      font-size: 24px;
359
+      font-weight: 400;
360
+      color: #666666;
361
+    }
362
+  }
363
+
364
+  .money-title {
365
+    // display: inline-block;
366
+    margin: 40px 0;
367
+    width: 86%;
368
+    padding-bottom: 20px;
369
+    // height: 29px;
370
+    font-size: 30px;
371
+    font-weight: bold;
372
+    color: #202020;
373
+    // border-bottom: 1px solid ;
374
+    background: #ffffff;
375
+    box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.12);
376
+  }
377
+
378
+  .money-name {
379
+    font-size: 30px;
380
+    font-weight: bold;
381
+    color: #ff3434;
382
+  }
383
+  .ul-li-text {
384
+    .ul-li-view {
385
+      display: inline-block;
386
+      margin-bottom: 3px;
387
+      margin-right: 5px;
388
+      width: 10px;
389
+      height: 10px;
390
+      background: #999999;
391
+      border-radius: 50%;
392
+    }
393
+    .ul-li-textname {
394
+      // width: 177px;
395
+      display: inline-block;
396
+      height: 19px;
397
+      font-size: 20px;
398
+      font-weight: 400;
399
+      color: #999999;
400
+    }
401
+  }
402
+
403
+  .button-info {
404
+    margin-bottom: 70px;
405
+
406
+    .button-box {
407
+      margin: 60px 0;
408
+      width: 690px;
409
+      height: 88px;
410
+      line-height: 88px;
411
+      background: #274291;
412
+      border-radius: 12px;
413
+      color: @whiteColor;
414
+    }
415
+  }
416
+
417
+  //线条
418
+  // .right-complete-two::after {
419
+  //   content: "";
420
+  //   position: absolute;
421
+  //   top: 15px;
422
+  //   margin: 26px auto;
423
+  //   height: 70%;
424
+  //   border-left: 1px dashed #595959;
425
+  // }
426
+}

+ 8
- 0
src/pages/MineUserAll/RefundMoney/index.config.js 查看文件

@@ -0,0 +1,8 @@
1
+export default {
2
+  navigationBarTitleText: '售后退款',
3
+  navigationStyle: 'custom',
4
+  "usingComponents": {
5
+    "mp-dialog": "weui-miniprogram/dialog/dialog",
6
+    "mp-tabs": "../../../components/tabs/index"
7
+  }
8
+}

+ 116
- 0
src/pages/MineUserAll/RefundMoney/index.jsx 查看文件

@@ -0,0 +1,116 @@
1
+
2
+import { useState } from "react";
3
+import Taro from '@tarojs/taro'
4
+import image from '@/assets/icons/ProCard/8kb.jpg'
5
+import food from '@/assets/icons/ProCard/food.png'
6
+import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
7
+
8
+import Null from '@/assets/icons/UserCenter/null_logo.png'
9
+import Refund from '@/assets/icons/UserCenter/Refund.png'
10
+
11
+import starOn from '@/assets/icons/GuideCheck/starOn.png'
12
+import starOff from '@/assets/icons/GuideCheck/starOff.png'
13
+
14
+
15
+
16
+
17
+import CustomNav from '@/components/CustomNav'
18
+import './style.less'
19
+
20
+
21
+const scoreList = new Array(5).fill(0)
22
+const score = '3.9'
23
+export default (props) => {
24
+
25
+  const handleRefund2 = () => {
26
+    Taro.navigateTo({ url: '/pages/MineUserAll/RefundMoney/CheckRefund/index' })
27
+    console.log('------------------');
28
+  }
29
+  return (
30
+    <view className='box-content'>
31
+      <CustomNav title='售后退款' />
32
+      <view class='wrapper'>
33
+        <view class='left-complete-one'>
34
+          <image className='left-image-1' src={ProCard_hot}></image>
35
+          <view className='left-viewText'>
36
+            返现¥16.00
37
+          </view>
38
+          {/* 评分 */}
39
+          <view className='card-box-star'>
40
+            {
41
+              scoreList.map((_, index) => {
42
+                console.log(index)
43
+                const src = (index + '0.1') < score ? starOn : starOff
44
+                return (
45
+                  <image className='card-star-image' key={index} src={src} />
46
+                )
47
+              })
48
+            }
49
+            <text className='card-star-text' >{score}</text>
50
+          </view>
51
+          <view className='title-image'>
52
+            <image className='image-1' mode='scaleToFill' src={image}></image>
53
+            <image className='image-2' src={food}></image>
54
+          </view>
55
+          <view className='title-content'>
56
+            <view className='Pro-title'>
57
+              <view className='title-text'>【米啊糯】新街口店 <text className='title-money-2' >数量:1张</text></view>
58
+            </view>
59
+            <text className='title-money' >¥6990元</text>
60
+            <view className='title-time' >有效期:2021/06/21  14:00</view>
61
+          </view>
62
+        </view>
63
+        <view class='right-complete-two' onClick={handleRefund2} >
64
+          <view className='right-content'>
65
+            <image className='right-image' src={Refund} />
66
+            <view className='right-title'>售后</view>
67
+          </view>
68
+        </view>
69
+      </view>
70
+      {/* 已核销 */}
71
+      <view class='wrapper'>
72
+        <view class='left-complete-one'>
73
+          <image className='left-image-1' src={ProCard_hot}></image>
74
+
75
+          <view className='left-viewText'>
76
+            返现¥16.00
77
+          </view>
78
+          {/* 评分 */}
79
+          <view className='card-box-star'>
80
+            {
81
+              scoreList.map((_, index) => {
82
+                console.log(index)
83
+                const src = (index + '0.1') < score ? starOn : starOff
84
+                return (
85
+                  <image className='card-star-image' key={index} src={src} />
86
+                )
87
+              })
88
+            }
89
+            <text className='card-star-text' >{score}</text>
90
+          </view>
91
+          <view className='title-image'>
92
+            <image className='image-1' mode='scaleToFill' src={image}></image>
93
+            <image className='image-2' src={food}></image>
94
+          </view>
95
+          <view className='title-content'>
96
+            <view className='Pro-title'>
97
+              <view className='title-text'>【米啊糯】新街口店 <text className='title-money-2' >数量:1张</text></view>
98
+            </view>
99
+            <text className='title-money' >¥6990元</text>
100
+            <view className='title-time' >有效期:2021/06/21  14:00</view>
101
+          </view>
102
+        </view>
103
+        <view class='right-complete-two' onClick={handleRefund2} >
104
+          <view className='right-content'>
105
+            {/* <image className='right-image-two' src={Null} /> */}
106
+            <image className='right-image' src={Refund} />
107
+            <view className='right-title'>售后</view>
108
+          </view>
109
+        </view>
110
+      </view>
111
+      <view className='foot'>
112
+        已经到底了~
113
+      </view>
114
+    </view>
115
+  )
116
+}

+ 251
- 0
src/pages/MineUserAll/RefundMoney/style.less 查看文件

@@ -0,0 +1,251 @@
1
+@whiteColor: #fff;
2
+.page-index {
3
+  padding: 0 25px;
4
+}
5
+
6
+.box-content {
7
+  width: 100%;
8
+  .wrapper {
9
+    margin: auto;
10
+
11
+    margin-top: 40px;
12
+    display: flex;
13
+    position: relative;
14
+    // margin-top: 600px;
15
+    // margin: 30px auto;
16
+    width: 700px;
17
+
18
+    // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
19
+    // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
20
+    filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
21
+    .card-box-star {
22
+      position: absolute;
23
+      width: auto;
24
+      height: 44.3px;
25
+      position: absolute;
26
+      left: 200px;
27
+      top: 28px;
28
+      font-size: 20px;
29
+      color: @whiteColor;
30
+      .card-star-image {
31
+        padding-left: 6px;
32
+        width: 21px;
33
+        height: 21px;
34
+      }
35
+      .card-star-text {
36
+        padding-left: 10px;
37
+        font-size: 20px;
38
+        color: #333;
39
+        font-weight: 700;
40
+      }
41
+    }
42
+
43
+    .left-complete-one {
44
+      padding-top: 87px;
45
+      padding-bottom: 43px;
46
+      position: relative;
47
+      display: flex;
48
+      background: @whiteColor;
49
+      background: radial-gradient(
50
+            circle at top right,
51
+            transparent 15px,
52
+            @whiteColor 0
53
+          )
54
+          top right,
55
+        radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
56
+          bottom right;
57
+      background-size: 100% 60%;
58
+      background-repeat: no-repeat;
59
+
60
+      width: 573px;
61
+      border-radius: 15px 0px 0px 15px;
62
+      // border-radius: 12px;
63
+
64
+      align-items: center;
65
+      .left-image-1 {
66
+        width: 145px;
67
+        height: 44px;
68
+        position: absolute;
69
+        top: 22px;
70
+      }
71
+      .left-viewText {
72
+        // background-image: url(@Image-ProCard_hot);
73
+        // width: 287px;
74
+        width: auto;
75
+        height: 44.3px;
76
+        position: absolute;
77
+        left: 1px;
78
+        top: 28px;
79
+        font-size: 20px;
80
+        color: @whiteColor;
81
+      }
82
+      //图片
83
+      .title-image {
84
+        width: 145px;
85
+        margin-left: 20px;
86
+        border-radius: 24px;
87
+        overflow: hidden;
88
+        position: relative;
89
+        .image-1 {
90
+          width: 100%;
91
+          height: 145px;
92
+        }
93
+        .image-2 {
94
+          width: 89px;
95
+          height: 34px;
96
+          position: absolute;
97
+          left: 0;
98
+          top: 0;
99
+        }
100
+      }
101
+      // 商品标题
102
+      .title-content {
103
+        // padding: 84px 0 56px 20px;
104
+        padding-left: 18px;
105
+
106
+        .Pro-title {
107
+          .title-text {
108
+            width: 375px;
109
+            overflow: hidden;
110
+            text-overflow: ellipsis;
111
+            // display: -webkit-box; //必须要
112
+            -webkit-line-clamp: 1;
113
+            -webkit-box-orient: vertical;
114
+            // word-break: break-all; /* 多出文本省略号代替 */
115
+            text-align: left;
116
+            font-size: 24px;
117
+            // padding-bottom: 10px;
118
+          }
119
+        }
120
+        .title-money {
121
+          // padding-top: 34px;
122
+          font-size: 24px;
123
+          // color: red;
124
+          display: inline-block;
125
+          font-weight: 800;
126
+          margin: 10px auto;
127
+        }
128
+        .title-money-2 {
129
+          height: 19px;
130
+          font-size: 20px;
131
+          font-weight: 400;
132
+          color: #333333;
133
+          padding-left: 50px;
134
+        }
135
+
136
+        .title-time {
137
+          font-size: 24px;
138
+          // padding-top: 20px;
139
+          color: #c0c8d3;
140
+        }
141
+        .title-position-on {
142
+          display: flex;
143
+          font-size: 20px;
144
+          .title-position {
145
+            width: 18px;
146
+            height: 24px;
147
+            padding-right: 10px;
148
+            padding-top: 5px;
149
+          }
150
+          .title-position-image {
151
+            align-items: center;
152
+            font-size: 20px;
153
+            color: #333;
154
+          }
155
+          .title-on {
156
+            // margin-bottom: 10px;
157
+            padding-top: 5px;
158
+            padding-left: 40px;
159
+            width: 21px;
160
+            height: 21px;
161
+            padding-right: 10px;
162
+          }
163
+          .title-on-text {
164
+            align-items: center;
165
+
166
+            font-size: 20px;
167
+            color: #333;
168
+          }
169
+        }
170
+      }
171
+    }
172
+  }
173
+
174
+  .right-complete-two {
175
+    background: @whiteColor;
176
+    background: radial-gradient(
177
+          circle at top left,
178
+          transparent 15px,
179
+          @whiteColor 0
180
+        )
181
+        top left,
182
+      radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
183
+        bottom left;
184
+    background-size: 100% 60%;
185
+    background-repeat: no-repeat;
186
+    width: 129px;
187
+    border-radius: 0 15px 15px 0;
188
+    position: relative;
189
+    //右面部分
190
+    .right-content {
191
+      // width: 100px;
192
+      height: 120px;
193
+      position: absolute;
194
+      top: 50%;
195
+      left: 50%;
196
+      transform: translate(-50%, -50%);
197
+      // border: 1px solid red;
198
+
199
+      .right-number {
200
+        // width: 32px;
201
+        // font-size: 20px;
202
+        // border-radius: 4px;
203
+        // border: 2px solid #999;
204
+        // margin: auto;
205
+        // text-align: center;
206
+      }
207
+      .right-image {
208
+        // float: convert();
209
+        width: 36px;
210
+        height: 36px;
211
+        margin: 0 auto;
212
+        align-items: center;
213
+        margin: auto;
214
+        padding-left: 8px;
215
+        // text-align: center;
216
+      }
217
+
218
+      .right-title {
219
+        font-weight: 700;
220
+        font-size: 24px;
221
+        padding-top: 10px;
222
+        text-align: center;
223
+      }
224
+    }
225
+  }
226
+  //线条
227
+  .right-complete-two::after {
228
+    content: "";
229
+    position: absolute;
230
+    top: 15px;
231
+    margin: 26px auto;
232
+    height: 70%;
233
+    border-left: 1px dashed #595959;
234
+  }
235
+  //已过期logo
236
+  .right-image-two {
237
+    margin-top: 30px;
238
+    width: 76px;
239
+    height: 66px;
240
+  }
241
+  .foot {
242
+    width: 100%;
243
+    height: 26px;
244
+    font-size: 28px;
245
+    font-weight: 400;
246
+    color: #c0c8d3;
247
+    line-height: 34px;
248
+    margin-top: 40px;
249
+    text-align: center;
250
+  }
251
+}

+ 4
- 0
src/pages/MineUserAll/Rules/index.config.js 查看文件

@@ -0,0 +1,4 @@
1
+export default {
2
+  navigationBarTitleText: '用户协议须知',
3
+  navigationStyle: 'custom',
4
+}

+ 29
- 0
src/pages/MineUserAll/Rules/index.jsx 查看文件

@@ -0,0 +1,29 @@
1
+
2
+import CustomNav from '@/components/CustomNav'
3
+import './style.less'
4
+
5
+export default (props) => {
6
+  return (
7
+    <view className='box-content'>
8
+      <CustomNav title='用户协议须知' />
9
+      <view className='aaa'>
10
+        以下是详细的用户须知:
11
+      </view>
12
+      <view className='content'>
13
+        Lorem ipsumdolorsitamet,consectetur adipiscing elit,
14
+        sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
15
+        Quisipsumsuspendisseultricesgravida. Risuscommodoviverramaecenasaccumsan lacus vel facilisis.
16
+      </view>
17
+      <view className='content'>
18
+        Lorem ipsumdolorsitamet,consectetur adipiscing elit,
19
+        sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
20
+        Quisipsumsuspendisseultricesgravida. Risuscommodoviverramaecenasaccumsan lacus vel facilisis.
21
+        Lorem ipsumdolorsitamet,consectetur adipiscing elit,
22
+      </view>
23
+      <view className='content'>
24
+        sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
25
+        Quisipsumsuspendisseultricesgravida. Risuscommodoviverramaecenasaccumsan lacus vel facilisis.
26
+      </view>
27
+    </view>
28
+  )
29
+}

+ 14
- 0
src/pages/MineUserAll/Rules/style.less 查看文件

@@ -0,0 +1,14 @@
1
+.box-content {
2
+  font-size: 32px;
3
+  font-weight: 400;
4
+  color: #333333;
5
+  width: 685px;
6
+  height: 1314px;
7
+  .aaa {
8
+    margin: 10px auto;
9
+  }
10
+
11
+  .content {
12
+    text-indent: 2em;
13
+  }
14
+}

+ 2
- 1
src/pages/PayOrder/index.config.js 查看文件

@@ -5,7 +5,8 @@ export default {
5 5
   usingComponents: {
6 6
     "mp-checkbox-group": "weui-miniprogram/checkbox-group/checkbox-group",
7 7
     "mp-checkbox": "weui-miniprogram/checkbox/checkbox",
8
-    "mp-cells": "weui-miniprogram/cells/cells"
8
+    "mp-cells": "weui-miniprogram/cells/cells",
9
+    "mp-dialog": "weui-miniprogram/dialog/dialog"
9 10
   }
10 11
 
11 12
 

+ 235
- 199
src/pages/PayOrder/style.less 查看文件

@@ -1,237 +1,273 @@
1 1
 @whiteColor: #fff;
2 2
 @Image-ProCard_hot: "../../assets/icons/ProCard/ProCard_hot.png";
3
+.container {
4
+  width: 100%;
5
+  .item-center-Number {
6
+    width: 100%;
7
+    margin-top: 30px;
8
+    .buy-num-minus {
9
+      display: inline-block;
10
+      width: 60px;
11
+      height: 60px;
12
+      background: #ffffff;
13
+      border: 1px solid #999999;
14
+      border-radius: 8px 0px 0px 8px;
15
+    }
16
+    .buy-num-input {
17
+      display: inline-block;
18
+      width: 90px;
19
+      height: 60px;
3 20
 
4
-.view-button {
5
-  // width: 100%;
6
-  // height: 150px;
7
-  position: relative;
8
-
9
-  .Card-number-box {
10
-    .Card-number {
11
-      width: 100%;
12
-      height: 96px;
13
-      background-color: @whiteColor;
21
+      font-size: 28px;
22
+      font-weight: 400;
23
+      color: #202020;
24
+      background: #ffffff;
25
+      border: 1px solid #999999;
26
+      position: relative;
27
+      top: 26px;
14 28
     }
15
-    .Card-user {
16
-      width: 100%;
17
-      height: 96px;
18
-      background-color: @whiteColor;
29
+    .buy-num-add {
30
+      display: inline-block;
31
+
32
+      width: 60px;
33
+      height: 60px;
34
+      background: #ffffff;
35
+      border: 1px solid #999999;
36
+      border-radius: 0px 8px 8px 0px;
19 37
     }
20 38
   }
21
-  .button-box-button-box {
39
+  .wrapper {
40
+    display: flex;
22 41
     position: relative;
23
-    .button-text-image {
24
-      width: 144;
25
-      height: 45px;
26
-      position: absolute;
27
-      top: -35px;
28
-      left: 267px;
29
-      right: 305px;
30
-      z-index: 1;
31
-      .button-text-money-hot {
42
+    // margin-top: 600px;
43
+    margin: 30px auto;
44
+    width: 700px;
45
+
46
+    // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
47
+    // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
48
+    filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
49
+
50
+    .left-complete-one {
51
+      padding-top: 87px;
52
+      padding-bottom: 43px;
53
+      position: relative;
54
+      display: flex;
55
+      background: @whiteColor;
56
+      background: radial-gradient(
57
+            circle at top right,
58
+            transparent 15px,
59
+            @whiteColor 0
60
+          )
61
+          top right,
62
+        radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
63
+          bottom right;
64
+      background-size: 100% 60%;
65
+      background-repeat: no-repeat;
66
+
67
+      width: 573px;
68
+      border-radius: 15px 0px 0px 15px;
69
+      // border-radius: 12px;
70
+
71
+      align-items: center;
72
+      .left-image-1 {
73
+        width: 145px;
74
+        height: 44px;
32 75
         position: absolute;
33
-        width: 144px;
34
-        height: 43px;
35
-        line-height: 43px;
36
-        font-size: 24px;
37
-        font-weight: bold;
38
-        color: @whiteColor;
76
+        top: 22px;
39 77
       }
40
-      .button-image {
41
-        width: 143px;
42
-        height: 43px;
43
-      }
44
-      .button-text-money {
78
+      .left-viewText {
79
+        // background-image: url(@Image-ProCard_hot);
80
+        // width: 287px;
81
+        width: auto;
82
+        height: 44.3px;
45 83
         position: absolute;
46
-        margin-top: -8;
47
-        width: 157px;
48
-        font-size: 18px;
49
-        font-weight: 400;
50
-        text-decoration: line-through;
84
+        left: 1px;
85
+        top: 28px;
86
+        font-size: 24px;
51 87
         color: @whiteColor;
88
+        font-weight: 600;
52 89
       }
53
-    }
54
-    .button-box-one {
55
-      font-size: 30px;
56
-      line-height: 92px;
57
-      margin-top: 3em;
58
-      background-color: #274190;
59
-      border-radius: 12px;
60
-      width: 690px;
61
-      height: 92px;
62
-      color: @whiteColor;
63
-      // position: absolute;
64
-      bottom: 40px;
65
-      right: 0;
66
-      left: 0;
67
-      .button-text-one {
68
-        right: 133px;
69
-        font-size: 30px;
70
-        padding-left: 220px;
90
+      //图片
91
+      .title-image {
92
+        width: 145px;
93
+        margin-left: 20px;
94
+        border-radius: 24px;
95
+        overflow: hidden;
96
+        position: relative;
97
+        .image-1 {
98
+          width: 100%;
99
+          height: 145px;
100
+        }
101
+        .image-2 {
102
+          width: 89px;
103
+          height: 34px;
104
+          position: absolute;
105
+          left: 0;
106
+          top: 0;
107
+        }
71 108
       }
72
-    }
73
-  }
74
-}
109
+      // 商品标题
110
+      .title-content {
111
+        // padding: 84px 0 56px 20px;
112
+        padding-left: 18px;
75 113
 
76
-.wrapper {
77
-  display: flex;
78
-  position: relative;
79
-  // margin-top: 600px;
80
-  margin: 30px auto;
81
-  width: 700px;
114
+        .Pro-title {
115
+          .title-text {
116
+            width: 375px;
117
+            overflow: hidden;
118
+            text-overflow: ellipsis;
119
+            display: -webkit-box; //必须要
120
+            -webkit-line-clamp: 1;
121
+            -webkit-box-orient: vertical;
122
+            word-break: break-all; /* 多出文本省略号代替 */
123
+            text-align: left;
124
+            font-size: 24px;
125
+            padding-bottom: 10px;
126
+          }
127
+        }
128
+        .title-money {
129
+          padding-top: 34px;
130
+          font-size: 24px;
131
+          // color: red;
132
+          font-weight: 800;
133
+        }
134
+        .title-money-2 {
135
+          font-size: 18px;
136
+          color: #666;
137
+          padding-left: 10px;
138
+          text-decoration: line-through;
139
+        }
82 140
 
83
-  // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
84
-  // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
85
-  filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
141
+        .title-time {
142
+          font-size: 24px;
143
+          padding-top: 20px;
144
+          color: #c0c8d3;
145
+        }
146
+      }
147
+    }
148
+  }
86 149
 
87
-  .left-complete-one {
88
-    padding-top: 87px;
89
-    padding-bottom: 43px;
90
-    position: relative;
91
-    display: flex;
150
+  .right-complete-two {
92 151
     background: @whiteColor;
93 152
     background: radial-gradient(
94
-          circle at top right,
153
+          circle at top left,
95 154
           transparent 15px,
96 155
           @whiteColor 0
97 156
         )
98
-        top right,
99
-      radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
100
-        bottom right;
157
+        top left,
158
+      radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
159
+        bottom left;
101 160
     background-size: 100% 60%;
102 161
     background-repeat: no-repeat;
103
-
104
-    width: 573px;
105
-    border-radius: 15px 0px 0px 15px;
106
-    // border-radius: 12px;
107
-
108
-    align-items: center;
109
-    .left-image-1 {
110
-      width: 145px;
111
-      height: 44px;
112
-      position: absolute;
113
-      top: 22px;
114
-    }
115
-    .left-viewText {
116
-      // background-image: url(@Image-ProCard_hot);
117
-      // width: 287px;
118
-      width: auto;
119
-      height: 44.3px;
162
+    width: 129px;
163
+    border-radius: 0 15px 15px 0;
164
+    position: relative;
165
+    //右面部分
166
+    .right-content {
167
+      // width: 100px;
168
+      // height: 80px;
120 169
       position: absolute;
121
-      left: 1px;
122
-      top: 28px;
123
-      font-size: 24px;
124
-      color: @whiteColor;
125
-      font-weight: 600;
126
-    }
127
-    //图片
128
-    .title-image {
129
-      width: 145px;
130
-      margin-left: 20px;
131
-      border-radius: 24px;
132
-      overflow: hidden;
133
-      position: relative;
134
-      .image-1 {
135
-        width: 100%;
136
-        height: 145px;
137
-      }
138
-      .image-2 {
139
-        width: 89px;
140
-        height: 34px;
141
-        position: absolute;
142
-        left: 0;
143
-        top: 0;
144
-      }
145
-    }
146
-    // 商品标题
147
-    .title-content {
148
-      // padding: 84px 0 56px 20px;
149
-      padding-left: 18px;
170
+      top: 50%;
171
+      left: 50%;
172
+      transform: translate(-50%, -50%);
173
+      // border: 1px solid red;
150 174
 
151
-      .Pro-title {
152
-        .title-text {
153
-          width: 375px;
154
-          overflow: hidden;
155
-          text-overflow: ellipsis;
156
-          display: -webkit-box; //必须要
157
-          -webkit-line-clamp: 1;
158
-          -webkit-box-orient: vertical;
159
-          word-break: break-all; /* 多出文本省略号代替 */
160
-          text-align: left;
161
-          font-size: 24px;
162
-          padding-bottom: 10px;
163
-        }
164
-      }
165
-      .title-money {
166
-        padding-top: 34px;
167
-        font-size: 24px;
168
-        // color: red;
169
-        font-weight: 800;
170
-      }
171
-      .title-money-2 {
172
-        font-size: 18px;
173
-        color: #666;
174
-        padding-left: 10px;
175
-        text-decoration: line-through;
175
+      .right-number {
176
+        width: 40px;
177
+        font-size: 20px;
178
+        border-radius: 4px;
179
+        border: 2px solid #999;
180
+        margin: auto;
181
+        text-align: center;
176 182
       }
177 183
 
178
-      .title-time {
184
+      .right-title {
185
+        font-weight: 700;
179 186
         font-size: 24px;
180 187
         padding-top: 20px;
181
-        color: #c0c8d3;
188
+        text-align: center;
182 189
       }
183 190
     }
184 191
   }
185
-}
186
-
187
-.right-complete-two {
188
-  background: @whiteColor;
189
-  background: radial-gradient(
190
-        circle at top left,
191
-        transparent 15px,
192
-        @whiteColor 0
193
-      )
194
-      top left,
195
-    radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
196
-      bottom left;
197
-  background-size: 100% 60%;
198
-  background-repeat: no-repeat;
199
-  width: 129px;
200
-  border-radius: 0 15px 15px 0;
201
-  position: relative;
202
-  //右面部分
203
-  .right-content {
204
-    // width: 100px;
205
-    // height: 80px;
192
+  //线条
193
+  .right-complete-two::after {
194
+    content: "";
206 195
     position: absolute;
207
-    top: 50%;
208
-    left: 50%;
209
-    transform: translate(-50%, -50%);
210
-    // border: 1px solid red;
196
+    top: 15px;
197
+    margin: 26px auto;
198
+    height: 70%;
199
+    border-left: 1px dashed #595959;
200
+  }
211 201
 
212
-    .right-number {
213
-      width: 32px;
214
-      font-size: 20px;
215
-      border-radius: 4px;
216
-      border: 2px solid #999;
217
-      margin: auto;
218
-      text-align: center;
219
-    }
202
+  .view-button {
203
+    // width: 100%;
204
+    // height: 150px;
205
+    position: relative;
220 206
 
221
-    .right-title {
222
-      font-weight: 700;
223
-      font-size: 24px;
224
-      padding-top: 20px;
225
-      text-align: center;
207
+    .Card-number-box {
208
+      .Card-number {
209
+        width: 100%;
210
+        height: 96px;
211
+        background-color: @whiteColor;
212
+      }
213
+      .Card-user {
214
+        width: 100%;
215
+        height: 96px;
216
+        background-color: @whiteColor;
217
+      }
218
+    }
219
+    .button-box-button-box {
220
+      position: relative;
221
+      .button-text-image {
222
+        width: 144;
223
+        height: 45px;
224
+        position: absolute;
225
+        top: -35px;
226
+        left: 267px;
227
+        right: 305px;
228
+        z-index: 1;
229
+        .button-text-money-hot {
230
+          position: absolute;
231
+          width: 144px;
232
+          height: 43px;
233
+          line-height: 43px;
234
+          font-size: 24px;
235
+          font-weight: bold;
236
+          color: @whiteColor;
237
+        }
238
+        .button-image {
239
+          width: 143px;
240
+          height: 43px;
241
+        }
242
+        .button-text-money {
243
+          position: absolute;
244
+          margin-top: -8;
245
+          width: 157px;
246
+          font-size: 18px;
247
+          font-weight: 400;
248
+          text-decoration: line-through;
249
+          color: @whiteColor;
250
+        }
251
+      }
252
+      .button-box-one {
253
+        font-size: 30px;
254
+        line-height: 92px;
255
+        margin-top: 3em;
256
+        background-color: #274190;
257
+        border-radius: 12px;
258
+        width: 690px;
259
+        height: 92px;
260
+        color: @whiteColor;
261
+        // position: absolute;
262
+        bottom: 40px;
263
+        right: 0;
264
+        left: 0;
265
+        .button-text-one {
266
+          right: 133px;
267
+          font-size: 30px;
268
+          padding-left: 220px;
269
+        }
270
+      }
226 271
     }
227 272
   }
228 273
 }
229
-//线条
230
-.right-complete-two::after {
231
-  content: "";
232
-  position: absolute;
233
-  top: 15px;
234
-  margin: 26px auto;
235
-  height: 70%;
236
-  border-left: 1px dashed #595959;
237
-}

+ 1
- 0
src/pages/index/index.config.js 查看文件

@@ -4,5 +4,6 @@ export default {
4 4
   styleIsolation: 'shared',
5 5
   usingComponents: {
6 6
     "mp-tabbar": "weui-miniprogram/tabbar/tabbar"
7
+
7 8
   }
8 9
 }

+ 27
- 13
src/pages/index/index.jsx 查看文件

@@ -1,16 +1,23 @@
1
-import React, { Suspense, useState, lazy } from 'react'
2
-
1
+import React, { Suspense, useState, useEffect, lazy } from 'react'
2
+import { useRouter } from '@tarojs/taro'
3 3
 import CustomNav from '@/components/CustomNav'
4 4
 import logo from '@/assets/icons/comm/logo_small.png'
5 5
 import tabList from './tabbar'
6 6
 import './index.less'
7
+import Guide from './tabs/Guide'
8
+import Mine from './tabs/Mine'
9
+import Recommend from './tabs/Recommend'
10
+import Strategy from './tabs/Strategy'
11
+
12
+// const Recommend = lazy(() => import('./tabs/Recommend'))
13
+// const Guide = lazy(() => import('./tabs/Guide'))
14
+// const Strategy = lazy(() => import('./tabs/Strategy'))
15
+// const Mine =  import'./tabs/Mine'
7 16
 
8
-const Recommend = lazy(() => import('./tabs/Recommend'))
9
-const Guide = lazy(() => import('./tabs/Guide'))
10
-const Strategy = lazy(() => import('./tabs/Strategy'))
11
-const Mine = lazy(() => import('./tabs/Mine'))
17
+export default (props) => {
18
+  const { params } = useRouter()
19
+  const { tab } = params || {}
12 20
 
13
-export default () => {
14 21
   const [currentTab, setCurrentTab] = useState(0)
15 22
 
16 23
   const handleTabChange = (e) => {
@@ -18,22 +25,29 @@ export default () => {
18 25
     setCurrentTab(index)
19 26
   }
20 27
 
28
+  useEffect(() => {
29
+    if (tab) {
30
+      setCurrentTab(tab - 0)
31
+    }
32
+    console.log('---------------------', tab);
33
+
34
+  }, [tab])
21 35
   return (
22 36
     <view className='page-index'>
23 37
       <view className='index-navbar'>
24 38
         <CustomNav logo={logo} title='首页' />
25 39
       </view>
26 40
       <view className='index-container'>
27
-        <Suspense fallback='loading...'>
28
-          {currentTab === 0 && <Recommend />}
29
-          {currentTab === 1 && <Guide />}
30
-          {currentTab === 2 && <Strategy />}
31
-          {currentTab === 3 && <Mine />}
32
-        </Suspense>
41
+        {currentTab === 0 && <Recommend />}
42
+        {currentTab === 1 && <Guide />}
43
+        {currentTab === 2 && <Strategy />}
44
+        {currentTab === 3 && <Mine />}
33 45
       </view>
34 46
       <view className='index-tabbar'>
35 47
         <mp-tabbar extClass='custom-tabbar' current={currentTab} list={tabList} onChange={handleTabChange}></mp-tabbar>
36 48
       </view>
37 49
     </view>
50
+
38 51
   )
52
+
39 53
 }

+ 81
- 2
src/pages/index/tabs/Guide.jsx 查看文件

@@ -5,13 +5,19 @@ import Pay from '@/assets/icons/GuideCheck/Pay_logo.png'
5 5
 import food from '@/assets/icons/ProCard/food.png'
6 6
 import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
7 7
 import sleep from '@/assets/icons/GuideCheck/sleep_logo.png'
8
+import Taxi from '@/assets/icons/GuideCheck/taxi.png'
9
+import WiFi from '@/assets/icons/GuideCheck/WiFi.png'
10
+import GoHere from '@/assets/icons/GuideCheck/GoHere.png'
8 11
 import position from '@/assets/icons/GuideCheck/position_logo.png'
9 12
 import Cup from '@/assets/icons/GuideCheck/Cup.png'
13
+import BlackSpot from '@/assets/icons/GuideCheck/BlackSpot.png'
10 14
 import starOn from '@/assets/icons/GuideCheck/starOn.png'
11 15
 import starOff from '@/assets/icons/GuideCheck/starOff.png'
12 16
 import loveOn from '@/assets/icons/GuideCheck/loveOn.png'
13 17
 import Raiders from '@/assets/icons/GuideCheck/Raiders.png'
14 18
 import RaidersImage from '@/assets/icons/GuideCheck/RaidersImage.jpg'
19
+import AAAAAAAA from '@/assets/icons/GuideCheck/RaidersImage.jpg'
20
+
15 21
 import './GuideCss/style.less'
16 22
 
17 23
 
@@ -47,6 +53,38 @@ export default (props) => {
47 53
         </view> */}
48 54
         {/* 图片结束 */}
49 55
         {/* 有民宿的情况下 */}
56
+        <view className='MessageCard'>
57
+          <view className='MessageCard-title1'>
58
+            <text className='MessageCard-left'>----------</text>
59
+            名称
60
+            <text className='MessageCard-right'>----------</text>
61
+          </view>
62
+          <view className='MessageCard-content'>
63
+            <view className='MessageCard-name' >皇冠假日酒店-2507</view>
64
+            {/* <view className='MessageCard-info' >江苏省南京市秦淮区XXXXXX路</view> */}
65
+          </view>
66
+          {/* <view className='MessageCard-button'>
67
+            <image className='MessageCard-image' src={GoHere} />
68
+            <text className='MessageCard-text'>去这里</text>
69
+          </view> */}
70
+        </view>
71
+        {/* 有民宿的情况下 */}
72
+        <view className='MessageCard'>
73
+          <view className='MessageCard-title1'>
74
+            <text className='MessageCard-left'>----------</text>
75
+            民宿位置
76
+            <text className='MessageCard-right'>----------</text>
77
+          </view>
78
+          <view className='MessageCard-content'>
79
+            <view className='MessageCard-name' >精悦SHOS-北门</view>
80
+            <view className='MessageCard-info' >江苏省南京市秦淮区XXXXXX路</view>
81
+          </view>
82
+          <view className='MessageCard-button'>
83
+            <image className='MessageCard-image' src={GoHere} />
84
+            <text className='MessageCard-text'>去这里</text>
85
+          </view>
86
+        </view>
87
+        {/* 有民宿的情况下 */}
50 88
         <view className='MessageCard'>
51 89
           <view className='MessageCard-title1'>
52 90
             <text className='MessageCard-left'>----------</text>
@@ -58,11 +96,53 @@ export default (props) => {
58 96
             <view className='MessageCard-info' >江苏省南京市秦淮区集庆路</view>
59 97
           </view>
60 98
           <view className='MessageCard-button'>
61
-            <image className='MessageCard-image' />
99
+            <image className='MessageCard-image' src={Taxi} />
62 100
             <text className='MessageCard-text'>去这里</text>
63 101
           </view>
64 102
         </view>
103
+        {/* 有民宿的情况下 */}
104
+        <view className='MessageCard'>
105
+          <view className='MessageCard-title1'>
106
+            <text className='MessageCard-left'>----------</text>
107
+            WiFi信息
108
+            <text className='MessageCard-right'>----------</text>
109
+          </view>
110
+          <view className='MessageCard-content'>
111
+            <view className='MessageCard-name' >名称:2507</view>
112
+            <view className='MessageCard-info' >密码:15s1x5s5</view>
113
+          </view>
114
+          <view className='MessageCard-button'>
115
+            <image className='MessageCard-image' src={WiFi} />
116
+            <text className='MessageCard-text'>复制</text>
117
+          </view>
118
+        </view>
119
+        {/* 更多指引开始 */}
120
+        <view className='Guide-Content-box'>
121
+          <view className='title-image'>
122
+            <image mode='scaleToFill' className='title-image-cup' src={BlackSpot} />
123
+            <text className='title-title-boss' >更多指引</text>
124
+          </view>
125
+        </view>
126
+        <view className='articleCard'>
127
+          <view className='articleCard-title'>
128
+            <text className='articleCard-left'>--------</text>
129
+            南京市·普通公寓里的独立房间
130
+            <text className='articleCard-right'>--------</text>
131
+          </view>
132
+          <view className='articleCard-content'>
133
+            <image className='articleCard-image' src={AAAAAAAA} />
134
+          </view>
135
+          <view className='articleCard-textarea'>
136
+            <view className='articleCard-textarea-title' >位置:<text className='articleCard-textarea-content'>地处繁华街区,餐饮、娱乐选择丰富
137
+              毗邻虹桥CBD,世贸商城展馆,百盛城市购物中心金虹桥购物中心,虹桥艺术中心,领馆聚集区,商务活动频繁,购物、聚会、聚餐、观看演出、表演电影,各项活动一应俱全。
138
+            </text></view>
139
+            <view className='articleCard-textarea-title' >出行信息:<text className='articleCard-textarea-content'>地处繁华街区,餐饮、娱乐选择丰富
140
+              地铁2号线娄山关路站下车3号口出步行5分钟可以到达。周边公交车众多,四通八达,叫车也非常便捷快速。2号线去虹桥机场、虹桥高铁站勻为直达,无需换乘,非常便捷快速,耗时在20分钟左右(4-5站即可抵达).
65 141
 
142
+            </text></view>
143
+          </view>
144
+        </view>
145
+        {/* 更多指引结束 */}
66 146
         <view className='Guide-Content-box'>
67 147
           <view className='title-image'>
68 148
             <image mode='scaleToFill' className='title-image-cup' src={Cup} />
@@ -98,7 +178,6 @@ export default (props) => {
98 178
                 <view className='title-text'>【橘里橘啊换行啊啊啊气咖啡店】新鲜出炉啦!</view>
99 179
               </view>
100 180
               <text className='title-money' >¥6990元<text className='title-money-2'>门市价78元</text></text>
101
-              <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
102 181
               <view className='title-position-on'>
103 182
                 <image className='title-position' src={position} />
104 183
                 <text className='title-position-image'>南京市/秦淮区</text>

+ 97
- 9
src/pages/index/tabs/GuideCss/style.less 查看文件

@@ -8,40 +8,128 @@
8 8
   .MessageCard {
9 9
     width: 690px;
10 10
     height: 175px;
11
-    background: #ffffff;
11
+    background: @whiteColor;
12 12
     border-radius: 12px;
13 13
     margin: 30px auto;
14
+    box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.08);
15
+
14 16
     .MessageCard-title1 {
15
-      width: 55px;
16 17
       height: 26px;
17 18
       font-size: 28px;
18 19
       font-weight: bold;
19 20
       color: #666666;
20 21
       line-height: 44px;
22
+      text-align: center;
21 23
       .MessageCard-left {
22 24
         width: 530px;
23 25
         height: 2px;
24 26
         padding-right: 50px;
25
-
26
-        opacity: 0.5;
27
+        // opacity: 0.5;
27 28
       }
28 29
       .MessageCard-right {
29 30
         width: 530px;
30 31
         height: 2px;
31 32
         padding-left: 50px;
32
-        opacity: 0.5;
33 33
       }
34 34
     }
35 35
     .MessageCard-content {
36
+      // background: @whiteColor;
37
+      width: 13em;
38
+      height: 2.5em;
39
+      margin-top: 45px;
40
+      display: inline-block;
41
+      margin-left: 30px;
42
+
36 43
       .MessageCard-name {
44
+        height: 30px;
45
+        font-size: 32px;
46
+        font-weight: bold;
47
+        color: #202020;
48
+        line-height: 44px;
37 49
       }
38 50
       .MessageCard-info {
51
+        height: 23px;
52
+        font-size: 24px;
53
+        font-weight: 400;
54
+        color: #666666;
55
+        line-height: 44px;
56
+        padding-top: 19px;
39 57
       }
40 58
     }
41 59
     .MessageCard-button {
60
+      width: 168px;
61
+      height: 60px;
62
+      border: 2px solid #000000;
63
+      border-radius: 12px;
64
+      position: relative;
65
+      text-align: center;
66
+      display: inline-block;
67
+      bottom: 10px;
68
+      left: 1.5em;
42 69
       .MessageCard-image {
70
+        width: 30px;
71
+        height: 30px;
72
+        padding-top: 12px;
73
+        padding-right: 5px;
43 74
       }
44 75
       .MessageCard-text {
76
+        line-height: 30px;
77
+        width: 87px;
78
+        height: 28px;
79
+        font-size: 30px;
80
+        font-weight: bold;
81
+        color: #202020;
82
+      }
83
+    }
84
+  }
85
+
86
+  .articleCard {
87
+    margin-top: 60px;
88
+    width: 690px;
89
+    // height: 1066px;
90
+    background: #ffffff;
91
+    border-radius: 12px;
92
+    box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.08);
93
+    padding-bottom: 66px;
94
+    margin-bottom: 20px;
95
+
96
+    .articleCard-title {
97
+      font-size: 28px;
98
+      font-weight: bold;
99
+      color: #202020;
100
+      line-height: 44px;
101
+      text-align: center;
102
+      padding: 30px auto;
103
+      padding-top: 30px;
104
+      .articleCard-left {
105
+      }
106
+      .articleCard-right {
107
+      }
108
+    }
109
+    .articleCard-content {
110
+      width: 100%;
111
+      text-align: center;
112
+      padding: 30px 0 20px 0;
113
+      .articleCard-image {
114
+        width: 630px;
115
+        height: 378px;
116
+      }
117
+    }
118
+    .articleCard-textarea {
119
+      width: 629px;
120
+      margin: 0 auto;
121
+      .articleCard-textarea-title {
122
+        font-size: 28px;
123
+        font-weight: bold;
124
+        color: #202020;
125
+        line-height: 54px;
126
+      }
127
+      .articleCard-textarea-content {
128
+        font-size: 28px;
129
+        font-weight: 400;
130
+        color: #202020;
131
+        line-height: 54px;
132
+        padding-bottom: 10px;
45 133
       }
46 134
     }
47 135
   }
@@ -344,9 +432,8 @@
344 432
     // // background-color: black;
345 433
     margin-bottom: 60px;
346 434
     display: flex;
347
-    flex: 2;
348
-    flex-flow: row wrap;
349
-    align-content: flex-start;
435
+
436
+    justify-content: space-around;
350 437
     .Raiders-imageLove {
351 438
       display: flex;
352 439
       position: absolute;
@@ -373,13 +460,14 @@
373 460
       background: #ffffff;
374 461
       box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
375 462
       border-radius: 24px;
376
-      flex-grow: 1;
463
+      // flex-grow: 1;
377 464
       // padding-right: 30px;
378 465
       // display: flex;
379 466
       // flex-flow: row nowrap;
380 467
       justify-content: space-between;
381 468
       .Raiders-image {
382 469
         width: 330px;
470
+        // width: 100%;
383 471
         height: 439px !important;
384 472
         border-radius: 24px 24px 0px 0px;
385 473
       }

+ 126
- 4
src/pages/index/tabs/Mine.jsx 查看文件

@@ -1,10 +1,132 @@
1 1
 import React from 'react'
2
+import Taro from '@tarojs/taro'
3
+
4
+import girl from '@/assets/icons/UserCenter/girl.png'
5
+import boy from '@/assets/icons/UserCenter/boy.png'
6
+import awaitPay from '@/assets/icons/UserCenter/awaitPay.png'
7
+import AllOrder from '@/assets/icons/UserCenter/AllOrder.png'
8
+import Refund from '@/assets/icons/UserCenter/Refund.png'
9
+import ToShop from '@/assets/icons/UserCenter/ToShop.png'
10
+import HomeLogo from '@/assets/icons/UserCenter/HomeLogo.png'
11
+import ContactMe from '@/assets/icons/UserCenter/ContactMe.png'
12
+import collect from '@/assets/icons/UserCenter/collect.png'
13
+import MyTravel from '@/assets/icons/UserCenter/MyTravel.png'
14
+import Rules from '@/assets/icons/UserCenter/Rules.png'
15
+import Userrrrrrr from '@/assets/icons/ProCard/8kb.jpg'
16
+// import Tbas2 from '@/pages/index/tabs/Guide'
17
+import './MineCss/style.less'
18
+
19
+
2 20
 
3 21
 export default (props) => {
22
+  // // 我的行程 
23
+  // const HomeLogo = () => {
24
+  //   Taro.navigateTo({ url: '/pages/MineUserAll/Rules/index' })
25
+  // }
26
+
27
+  // 待支付
28
+  const handleTobePaid = () => {
29
+    Taro.navigateTo({ url: '/pages/MineUserAll/AllOrder/index?tabJump=1' })
30
+  }
31
+  // 待核销
32
+  const handleTobeWritten = () => {
33
+    Taro.navigateTo({ url: '/pages/MineUserAll/AllOrder/index?tabJump=2' })
34
+  }
35
+  // 我的订单全部
36
+  const handleAllOrder = () => {
37
+    Taro.navigateTo({ url: '/pages/MineUserAll/AllOrder/index?tabJump=0' })
38
+  }
39
+
40
+  //退款
41
+  const handleRefund = () => {
42
+    Taro.navigateTo({ url: '/pages/MineUserAll/RefundMoney/index' })
43
+  }
44
+  //入住指引
45
+  const handleHomeLogo = () => {
46
+    Taro.navigateTo({ url: '/pages/index/index?tab=1' })
47
+  }
48
+  //收藏
49
+  const handleCollect = () => {
50
+    Taro.navigateTo({ url: '/pages/MineUserAll/Collect/index' })
51
+  }
52
+  //联系我们
53
+  const handleContactMe = () => {
54
+    Taro.navigateTo({ url: '/pages/MineUserAll/ContactMe/index' })
55
+  }
56
+
57
+  //条款
58
+  const handleRules = () => {
59
+    Taro.navigateTo({ url: '/pages/MineUserAll/Rules/index' })
60
+  }
61
+
62
+
63
+
64
+
65
+
4 66
   return (
5
-    <view>
6
-      <button openType='getPhoneNumber'>个人中心</button>
67
+    <scroll-view scroll-y style='height: 77vh;' >
68
+      <view className='User-box'>
69
+        <view className='User-info'>
70
+          <view className='User-photos-box'>
71
+            <image src={Userrrrrrr} className='User-photos' />
72
+          </view>
73
+          <view className='User-info-all'>
74
+            <view className='User-name'>福西西<image className='User-sex' src={boy} /></view>
75
+            <view className='User-phone'>136****9434</view>
76
+          </view>
77
+        </view>
78
+        {/* 用户信息结束 */}
79
+        <view className='buy-list-box'>
80
+          <view className='buy-list-Paybox' onClick={handleTobePaid} >
81
+            <image className='buy-list-PayLogo' src={awaitPay} />
82
+            <view className='buy-list-goPay'>待支付</view>
83
+            <view className='buy-list-OrderNumber'>2笔订单</view>
84
+          </view>
85
+          <view className='buy-list-Paybox ' onClick={handleTobeWritten} >
86
+            <image className='buy-list-PayLogo' src={ToShop} />
87
+            <view className='buy-list-goPay'>待核销</view>
88
+            <view className='buy-list-OrderNumber'>1个订单</view>
89
+          </view>
90
+          <view className='buy-list-Paybox ' onClick={handleAllOrder} >
91
+            <image className='buy-list-PayLogo' src={AllOrder} />
92
+            <view className='buy-list-goPay'>全部订单</view>
93
+            <view className='buy-list-OrderNumber'>查看详情</view>
94
+          </view>
95
+          <view className='buy-list-Paybox ' onClick={handleRefund} >
96
+            <image className='buy-list-PayLogo' src={Refund} />
97
+            <view className='buy-list-goPay'>退款/售后</view>
98
+            <view className='buy-list-OrderNumber'>2笔订单</view>
99
+          </view>
100
+        </view>
101
+        <view className='Badge-box'>
102
+          <view className='Badge-list' onClick={handleHomeLogo}>
103
+            <image className='Badge-list-logo' src={HomeLogo} />
104
+            <text className='Badge-list-titme'> 入住指引</text>
105
+            <text className='Badge-list-gt'>&gt;</text>
106
+          </view>
107
+          {/* <view className='Badge-list' onClick={handleRules}>
108
+            <image className='Badge-list-logo' src={MyTravel} />
109
+            <text className='Badge-list-titme'> 我的行程</text>
110
+            <text className='Badge-list-gt'>&gt;</text>
111
+          </view> */}
112
+          <view className='Badge-list' onClick={handleCollect}>
113
+            <image className='Badge-list-logo' src={collect} />
114
+            <text className='Badge-list-titme'> 我的收藏</text>
115
+            <text className='Badge-list-gt'>&gt;</text>
116
+          </view>
117
+          <view className='Badge-list' onClick={handleContactMe}>
118
+            <image className='Badge-list-logo' src={ContactMe} />
119
+            <text className='Badge-list-titme'> 联系我们</text>
120
+            <text className='Badge-list-gt'>&gt;</text>
121
+          </view>
122
+          <view className='Badge-list' onClick={handleRules}>
123
+            <image className='Badge-list-logo' src={Rules} />
124
+            <text className='Badge-list-titme'> 协议声明</text>
125
+            <text className='Badge-list-gt'>&gt;</text>
126
+          </view>
127
+        </view>
7 128
 
8
-    </view>
129
+      </view>
130
+    </scroll-view>
9 131
   )
10
-}
132
+}

+ 131
- 0
src/pages/index/tabs/MineCss/style.less 查看文件

@@ -0,0 +1,131 @@
1
+.page-index {
2
+  padding: 0 25px;
3
+}
4
+
5
+.User-box {
6
+  width: 100%;
7
+  .User-info {
8
+    width: 90%;
9
+    align-items: center;
10
+    display: -webkit-flex;
11
+    margin: 60px auto;
12
+    .User-photos-box {
13
+      display: inline-block;
14
+      .User-photos {
15
+        width: 128px;
16
+        height: 128px;
17
+        border-radius: 50%;
18
+      }
19
+    }
20
+    .User-info-all {
21
+      padding-left: 30px;
22
+      width: 200px;
23
+      display: inline-block;
24
+      .User-name {
25
+        // height: 34px;
26
+        font-size: 38px;
27
+        font-weight: bold;
28
+        color: #202020;
29
+        line-height: 48px;
30
+      }
31
+      .User-sex {
32
+        padding-left: 10px;
33
+        width: 33px;
34
+        height: 32px;
35
+      }
36
+      .User-phone {
37
+        // height: 20px;
38
+        font-size: 30px;
39
+        font-weight: 400;
40
+        color: #202020;
41
+        line-height: 48px;
42
+      }
43
+    }
44
+  }
45
+
46
+  .buy-list-box {
47
+    width: 100%;
48
+    // margin-right: 5px;
49
+    display: flex;
50
+    margin-top: 40px;
51
+    justify-content: space-around;
52
+    flex-wrap: wrap;
53
+
54
+    .buy-list-Paybox {
55
+      width: 47%;
56
+      height: 216px;
57
+      background: #ffffff;
58
+      box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.08);
59
+      border-radius: 24px;
60
+      display: inline-block;
61
+      // margin-right: 16px;
62
+      margin-top: 40px;
63
+
64
+      .buy-list-PayLogo {
65
+        padding-top: 35px;
66
+        width: 44px;
67
+        height: 44px;
68
+        display: block;
69
+        margin: auto;
70
+      }
71
+      .buy-list-goPay {
72
+        padding-top: 28px;
73
+        width: 100%;
74
+        font-size: 30px;
75
+        font-weight: bold;
76
+        color: #202020;
77
+        text-align: center;
78
+      }
79
+      .buy-list-OrderNumber {
80
+        width: 100%;
81
+        padding-top: 20px 0 39px 0;
82
+        font-size: 22px;
83
+        color: #999;
84
+        font-weight: 400;
85
+        text-align: center;
86
+      }
87
+    }
88
+  }
89
+  .Badge-box {
90
+    margin-top: 30px;
91
+    .Badge-list {
92
+      width: 690px;
93
+      height: 102px;
94
+      background: #ffffff;
95
+      box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.08);
96
+      border-radius: 24px;
97
+      display: flex;
98
+      align-items: center;
99
+      margin: 20px auto;
100
+
101
+      .Badge-list-logo {
102
+        width: 39px;
103
+        height: 33px;
104
+        padding: 0 30px;
105
+      }
106
+      .Badge-list-titme {
107
+        display: inline-block;
108
+        width: 160px;
109
+        font-size: 32px;
110
+        font-weight: normal;
111
+        color: #333333;
112
+        line-height: 70px;
113
+      }
114
+      .Badge-list-gt {
115
+        display: inline-block;
116
+        position: absolute;
117
+        right: 1.5em;
118
+        font-size: 35px;
119
+        font-weight: bold;
120
+        color: #999;
121
+      }
122
+    }
123
+    // .Badge-list:nth-child(3) {
124
+    //   margin-top: 20px;
125
+    //   border-radius: 24px 24px 0px 0px;
126
+    // }
127
+    // .Badge-list:nth-child(4) {
128
+    //   border-radius: 0px 0px 24px 24px;
129
+    // }
130
+  }
131
+}

+ 0
- 87
yarn-error.log 查看文件

@@ -1,87 +0,0 @@
1
-Arguments: 
2
-  C:\Program Files\nodejs\node.exe C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js
3
-
4
-PATH: 
5
-  C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\AppData\Roaming\npm;F:\Microsoft VS Code\bin
6
-
7
-Yarn version: 
8
-  1.22.11
9
-
10
-Node version: 
11
-  14.17.3
12
-
13
-Platform: 
14
-  win32 x64
15
-
16
-Trace: 
17
-  Error: getaddrinfo ENOTFOUND registry.npm.taobao.org
18
-      at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:69:26)
19
-
20
-npm manifest: 
21
-  {
22
-    "name": "miniapp",
23
-    "version": "1.0.0",
24
-    "private": true,
25
-    "description": "十公里",
26
-    "templateInfo": {
27
-      "name": "default",
28
-      "typescript": false,
29
-      "css": "less"
30
-    },
31
-    "scripts": {
32
-      "build:weapp": "taro build --type weapp",
33
-      "build:swan": "taro build --type swan",
34
-      "build:alipay": "taro build --type alipay",
35
-      "build:tt": "taro build --type tt",
36
-      "build:h5": "taro build --type h5",
37
-      "build:rn": "taro build --type rn",
38
-      "build:qq": "taro build --type qq",
39
-      "build:jd": "taro build --type jd",
40
-      "build:quickapp": "taro build --type quickapp",
41
-      "dev:weapp": "npm run build:weapp -- --watch",
42
-      "dev:swan": "npm run build:swan -- --watch",
43
-      "dev:alipay": "npm run build:alipay -- --watch",
44
-      "dev:tt": "npm run build:tt -- --watch",
45
-      "dev:h5": "npm run build:h5 -- --watch",
46
-      "dev:rn": "npm run build:rn -- --watch",
47
-      "dev:qq": "npm run build:qq -- --watch",
48
-      "dev:jd": "npm run build:jd -- --watch",
49
-      "dev:quickapp": "npm run build:quickapp -- --watch"
50
-    },
51
-    "browserslist": [
52
-      "last 3 versions",
53
-      "Android >= 4.1",
54
-      "ios >= 8"
55
-    ],
56
-    "author": "",
57
-    "dependencies": {
58
-      "@babel/runtime": "^7.7.7",
59
-      "@tarojs/components": "3.3.2",
60
-      "@tarojs/react": "3.3.2",
61
-      "@tarojs/runtime": "3.3.2",
62
-      "@tarojs/taro": "3.3.2",
63
-      "react": "^17.0.0",
64
-      "react-dom": "^17.0.0",
65
-      "taro-ui": "^2.3.4"
66
-    },
67
-    "devDependencies": {
68
-      "@types/webpack-env": "^1.13.6",
69
-      "@types/react": "^17.0.2",
70
-      "@tarojs/mini-runner": "3.3.2",
71
-      "@babel/core": "^7.8.0",
72
-      "@tarojs/webpack-runner": "3.3.2",
73
-      "babel-preset-taro": "3.3.2",
74
-      "eslint-config-taro": "3.3.2",
75
-      "eslint": "^6.8.0",
76
-      "eslint-plugin-react": "^7.8.2",
77
-      "eslint-plugin-import": "^2.12.0",
78
-      "eslint-plugin-react-hooks": "^4.2.0",
79
-      "stylelint": "9.3.0"
80
-    }
81
-  }
82
-
83
-yarn manifest: 
84
-  No manifest
85
-
86
-Lockfile: 
87
-  No lockfile