Browse Source

Merge branch 'dev' of http://git.ycjcjy.com/shigongli/miniapp-v2 into dev

张延森 3 years ago
parent
commit
73250b918d
38 changed files with 650 additions and 2063 deletions
  1. BIN
      src/assets/icons/UserCenter/Cancel.png
  2. BIN
      src/assets/icons/UserCenter/evaluated.png
  3. 0
    64
      src/components/AlreadyUsedMolded/index.jsx
  4. 0
    129
      src/components/AlreadyUsedMolded/style.less
  5. 12
    10
      src/components/BossCard/index.jsx
  6. 30
    257
      src/components/BossCard/style.less
  7. 82
    20
      src/components/CompoentsOrder/AlreadyUsed/index.jsx
  8. 101
    30
      src/components/CompoentsOrder/AlreadyUsed/style.less
  9. 46
    23
      src/components/CompoentsOrder/OrderCard/index.jsx
  10. 41
    33
      src/components/CompoentsOrder/OrderCard/style.less
  11. 8
    5
      src/components/CompoentsOrder/complete/index.jsx
  12. 2
    66
      src/components/CompoentsOrder/complete/style.less
  13. 4
    1
      src/components/CouponCard/Media/Body.jsx
  14. 0
    1
      src/components/MoreGuide/index.jsx
  15. 4
    2
      src/components/ShopUsed/index.jsx
  16. 34
    33
      src/components/ShopUsed/style.less
  17. 13
    12
      src/components/foodCards/foodCards.jsx
  18. 29
    27
      src/components/foodCards/style.less
  19. 16
    18
      src/components/toggleRole/ToggleRole.less
  20. 1
    0
      src/hotel/components/HouseManage/houseManage.jsx
  21. 0
    8
      src/hotel/pages/landlord/landlord.jsx
  22. 14
    0
      src/layouts/Loading.jsx
  23. 1
    0
      src/layouts/index.jsx
  24. 4
    3
      src/pages/MineUserAll/ContactMe/index.jsx
  25. 100
    139
      src/pages/MineUserAll/RefundMoney/CheckRefund/index.jsx
  26. 21
    344
      src/pages/MineUserAll/RefundMoney/CheckRefund/style.less
  27. 8
    73
      src/pages/MineUserAll/RefundMoney/index.jsx
  28. 2
    226
      src/pages/MineUserAll/RefundMoney/style.less
  29. 1
    229
      src/pages/PayOrder/style.less
  30. 20
    18
      src/pages/TobeShop/index.jsx
  31. 37
    147
      src/pages/TobeShop/style.less
  32. 4
    62
      src/pages/index/tabs/Guide.jsx
  33. 0
    40
      src/pages/index/tabs/GuideCss/style.less
  34. 0
    19
      src/services/guide.js
  35. 1
    11
      src/services/mine.js
  36. 0
    9
      src/services/payOrder.js
  37. 1
    1
      src/shop/components/ShopKeeper/shopKeeper.jsx
  38. 13
    3
      src/shop/components/Sparead/spreadMoney.jsx

BIN
src/assets/icons/UserCenter/Cancel.png View File


BIN
src/assets/icons/UserCenter/evaluated.png View File


+ 0
- 64
src/components/AlreadyUsedMolded/index.jsx View File

1
-
2
-
3
-import food from '@/assets/icons/ProCard/food.png'
4
-import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
5
-import formatTime from '@/utils/formatTime'
6
-
7
-import { useState } from 'react'
8
-import './style.less'
9
-
10
-
11
-
12
-
13
-const scoreList = new Array(5).fill(0);
14
-const score = "3.9";
15
-
16
-export default (props) => {
17
-  const [detail, setDetail] = useState({})
18
-
19
-  const star = parseFloat(((detail.sweetScore + detail.environmentScore + detail.serviceScore) / 3).toFixed(1));
20
-
21
-  const { list } = props
22
-
23
-  return (
24
-    <view>
25
-      {
26
-        list.map((item, index) => {
27
-          return (
28
-            <view class='wrapper-box' key={index} >
29
-              <view class='left-complete-one'  >
30
-                <image className='left-image-1' src={ProCard_hot}></image>
31
-                <view className='left-viewText'>
32
-                  返现¥{(item.cashback / 100)?.toFixed(2)}
33
-                </view>
34
-                <view className='title-image' >
35
-                  <image className='image-1' mode='scaleToFill' src={item.poster || []}></image>
36
-                  <image className='image-2' src={food}></image>
37
-                </view>
38
-                <view className='title-content'>
39
-                  <view className='Pro-title'  >
40
-                    <view className='title-text'>
41
-                      {item.packageDescription}
42
-                      <text className='title-money-2'>
43
-                        数量:{item.amount}张
44
-                      </text>
45
-                    </view>
46
-                  </view>
47
-                  <text className='title-money' >¥{(item.unitPrice / 100)?.toFixed(2)}元<text className='title-money-3'>订单编号:{item.orderId}</text></text>
48
-                  <view className='title-time'>
49
-                    核销时间:{" "}
50
-                    {formatTime(item.verifiedDate, "yyyy/MM/dd hh:mm")}
51
-                  </view>
52
-                </view>
53
-              </view>
54
-            </view>
55
-          )
56
-
57
-        })
58
-      }
59
-    </view>
60
-
61
-
62
-
63
-  )
64
-}

+ 0
- 129
src/components/AlreadyUsedMolded/style.less View File

1
-@whiteColor: #fff;
2
-
3
-.wrapper-box {
4
-  display: flex;
5
-  position: relative;
6
-  margin: 30px auto;
7
-  // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
8
-  // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
9
-  filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
10
-
11
-  .left-complete-one {
12
-    padding-top: 87px;
13
-    padding-bottom: 43px;
14
-    position: relative;
15
-    display: flex;
16
-    background: @whiteColor;
17
-    background: radial-gradient(circle at top right, transparent 15px, #fff 0)
18
-        top right,
19
-      radial-gradient(circle at bottom right, transparent 15px, #fff 0) bottom
20
-        right;
21
-    background-size: 100% 60%;
22
-    background-repeat: no-repeat;
23
-
24
-    width: 100%;
25
-    border-radius: 15px 0px 0px 15px;
26
-    // border-radius: 12px;
27
-
28
-    align-items: center;
29
-    .left-image-1 {
30
-      width: 145px;
31
-      height: 44px;
32
-      position: absolute;
33
-      top: 22px;
34
-    }
35
-    .left-viewText {
36
-      // background-image: url(@Image-ProCard_hot);
37
-      // width: 287px;
38
-      width: auto;
39
-      height: 44.3px;
40
-      position: absolute;
41
-      left: 1px;
42
-      top: 28px;
43
-      font-size: 24px;
44
-      color: @whiteColor;
45
-      font-weight: 600;
46
-    }
47
-    //图片
48
-    .title-image {
49
-      height: 144px;
50
-      margin-left: 20px;
51
-      border-radius: 24px;
52
-      overflow: hidden;
53
-      position: relative;
54
-      .image-1 {
55
-        width: 144px;
56
-        height: 144px;
57
-        margin: 0;
58
-      }
59
-      .image-2 {
60
-        width: 89px;
61
-        height: 34px;
62
-        position: absolute;
63
-        left: 0;
64
-      }
65
-    }
66
-    // 商品标题
67
-    .title-content {
68
-      // padding: 84px 0 56px 20px;
69
-      padding-left: 18px;
70
-
71
-      .Pro-title {
72
-        .title-text {
73
-          width: 375px;
74
-          overflow: hidden;
75
-          text-overflow: ellipsis;
76
-          display: -webkit-box; //必须要
77
-          -webkit-line-clamp: 1;
78
-          -webkit-box-orient: vertical;
79
-          word-break: break-all; /* 多出文本省略号代替 */
80
-          text-align: left;
81
-          font-size: 24px;
82
-          padding-bottom: 10px;
83
-          .title-money-2 {
84
-            height: 19px;
85
-            font-size: 20px;
86
-            font-weight: 400;
87
-            color: #333333;
88
-            padding-left: 40px;
89
-          }
90
-        }
91
-      }
92
-      .title-money {
93
-        width: 58px;
94
-        height: 21px;
95
-        font-size: 24px;
96
-        font-weight: bold;
97
-        color: #333333;
98
-        font-weight: 800;
99
-      }
100
-      .title-time {
101
-        font-size: 24px;
102
-        // padding-top: 20px;
103
-        color: #c0c8d3;
104
-      }
105
-      .title-money-3 {
106
-        font-size: 18px;
107
-        padding-left: 10px;
108
-        color: rgba(102, 102, 102, 0.8);
109
-      }
110
-
111
-      .title-time {
112
-        font-size: 24px;
113
-        padding-top: 20px;
114
-        color: #c0c8d3;
115
-      }
116
-    }
117
-  }
118
-}
119
-
120
-//线条
121
-.right-complete-two::after {
122
-  content: "";
123
-  position: absolute;
124
-  top: 15px;
125
-  margin: 26px auto;
126
-  height: 70%;
127
-  border-left: 1px dashed #595959;
128
-  opacity: 0.12;
129
-}

+ 12
- 10
src/components/BossCard/index.jsx View File

36
           badge='food'
36
           badge='food'
37
         />
37
         />
38
         <CouponMedia.Body star={st}>
38
         <CouponMedia.Body star={st}>
39
-          <View className='cpn-card-text'>
40
-            {(item.description).toString().length > 25 ? (item.description).substring(0, 25) + '...' : (item.description)}
41
-          </View>
42
-          <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
43
-            <Text className='cpn-card-text_mn'>¥{`${(item.actualPrice / 100)?.toFixed(2)}元`}</Text>
44
-            <Text className='cpn-card-text_rm'>{`门市价${(item.standardPrice / 100)?.toFixed(2)}元`}</Text>
45
-          </View>
46
-          <View className='cpn-md-act'>
47
-            <Location {...det} />
48
-            <SaveIcon saved={item.isSaved > 0} targetType='shop_package' targetId={item.packageId} />
39
+          <View className='bossCard'>
40
+            <View className='cpn-card-text'>
41
+              {(item.description).toString().length > 25 ? (item.description).substring(0, 25) + '...' : (item.description)}
42
+            </View>
43
+            <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
44
+              <Text className='cpn-card-text_mn'>¥{`${(item.actualPrice / 100)?.toFixed(2)}元`}</Text>
45
+              <Text className='cpn-card-text_rm'>{`门市价${(item.standardPrice / 100)?.toFixed(2)}元`}</Text>
46
+            </View>
47
+            <View className='cpn-md-act'>
48
+              <Location {...det} />
49
+              <SaveIcon saved={item.isSaved > 0} targetType='shop_package' targetId={item.packageId} />
50
+            </View>
49
           </View>
51
           </View>
50
         </CouponMedia.Body>
52
         </CouponMedia.Body>
51
       </CouponMedia>
53
       </CouponMedia>

+ 30
- 257
src/components/BossCard/style.less View File

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

+ 82
- 20
src/components/CompoentsOrder/AlreadyUsed/index.jsx View File

1
-import { useState, useEffect } from 'react'
1
+import { useState } from 'react'
2
+import Taro from '@tarojs/taro'
3
+import { View } from '@tarojs/components'
2
 import starOn from '@/assets/icons/GuideCheck/starOn.png'
4
 import starOn from '@/assets/icons/GuideCheck/starOn.png'
3
 import starOff from '@/assets/icons/GuideCheck/starOff.png'
5
 import starOff from '@/assets/icons/GuideCheck/starOff.png'
4
-import AlreadyUsedMolded from '@/components/AlreadyUsedMolded'
6
+import formatTime from '@/utils/formatTime'
7
+import food from '@/assets/icons/ProCard/food.png'
5
 import Popup from '@/components/Popup'
8
 import Popup from '@/components/Popup'
9
+import { saveEvaluate } from '@/services/mine'
6
 import './style.less'
10
 import './style.less'
7
 
11
 
8
 
12
 
9
-const scoreList = new Array(5).fill(0)
10
-const score = '3.9'
11
 
13
 
12
 
14
 
13
 
15
 
14
-export default (props) => {
15
-  const { showCutover, maskClosable, list, onClose } = props
16
 
16
 
17
-  const [CollectNub, setCollectNub] = useState(1)
17
+export default (props) => {
18
+  const { showCutover, maskClosable, item, onClose } = props
19
+  const scoreList = new Array(5).fill(0)
18
 
20
 
19
   const ButtonCancel = () => {
21
   const ButtonCancel = () => {
20
     onClose()
22
     onClose()
21
   }
23
   }
22
   const ButtonOK = (e) => {
24
   const ButtonOK = (e) => {
23
-    onClose()
25
+    if (evaluate.sweetScore == 0 || evaluate.environmentScore == 0 || evaluate.serviceScore == 0) {
26
+      Taro.showToast({
27
+        title: '请您给本店点亮小星星哦',
28
+        icon: 'none'
29
+      })
30
+      return;
31
+    }
32
+    else {
33
+      saveEvaluate(evaluate.targetType, evaluate.targetId, evaluate).then((res) => {
34
+        console.log(res)
35
+      })
36
+      onClose()
37
+    }
38
+  }
39
+  const [evaluate, setEvaluate] = useState({
40
+    sweetScore: 0,//口味
41
+    environmentScore: 0,//环境
42
+    serviceScore: 0,//服务
43
+    targetId: '',
44
+    targetType: 'shop'
45
+  })
46
+  const [kwCollectNub, setkwCollectNub] = useState(0)
47
+  const kwChange = (val) => {
48
+    setkwCollectNub(val + 1)
49
+    setEvaluate({ ...evaluate, sweetScore: val + 1, targetId: item.shopId })
50
+  }
51
+
52
+  const [hjCollectNub, sethjCollectNub] = useState(0)
53
+  const hjChange = (val) => {
54
+    sethjCollectNub(val + 1)
55
+    setEvaluate({ ...evaluate, serviceScore: val + 1 })
24
 
56
 
25
   }
57
   }
26
 
58
 
27
-  const Nuberr = () => {
28
-    setCollectNub(+1)
59
+  const [fwCollectNub, setfwCollectNub] = useState(0)
60
+  const fwChange = (val) => {
61
+    setfwCollectNub(val + 1)
62
+    setEvaluate({ ...evaluate, environmentScore: val + 1 })
29
   }
63
   }
30
 
64
 
31
   return (
65
   return (
32
     <Popup show={showCutover} maskClosable={maskClosable} onClose={onClose} className='box-content' >
66
     <Popup show={showCutover} maskClosable={maskClosable} onClose={onClose} className='box-content' >
33
-      <AlreadyUsedMolded list={list} />
67
+      <View class='left-complete-one'  >
68
+        <View className='v1'>
69
+          <View className='left-viewText'>
70
+            返现¥{(item.cashback / 100)?.toFixed(2)}
71
+          </View>
72
+        </View>
73
+        <View className='v2'>
74
+          <View className='title-image' >
75
+            <image className='image-1' mode='scaleToFill' src={item.poster || []}></image>
76
+            <image className='image-2' src={food}></image>
77
+          </View>
78
+          <View className='title-content'>
79
+            <View className='Pro-title'  >
80
+              <View className='title-text'>
81
+                {item.packageDescription}
82
+              </View>
83
+              <View className='title-money-2'>
84
+                数量:{item.amount}张
85
+              </View>
86
+            </View>
87
+            <text className='title-money' >¥{(item.unitPrice / 100)?.toFixed(2)}元</text><text className='title-money-3'>订单编号:{item.orderId}</text>
88
+            <View className='title-time'>
89
+              核销时间:{" "}
90
+              {formatTime(item.verifiedDate, "yyyy/MM/dd hh:mm")}
91
+            </View>
92
+          </View>
93
+        </View>
94
+      </View>
95
+      <View className='pjLine'></View>
34
       <view className='item-center-Number' >
96
       <view className='item-center-Number' >
35
         {/* 评分 */}
97
         {/* 评分 */}
36
         <view className='card-box-star'>
98
         <view className='card-box-star'>
37
-          <text className='card-box-star-text' onClick={Nuberr} >口味:</text>
99
+          <text className='card-box-star-text'  >口味:</text>
38
           {
100
           {
39
             scoreList.map((_, index) => {
101
             scoreList.map((_, index) => {
40
 
102
 
41
-              const src = (index + `${CollectNub}`) < score ? starOn : starOff
103
+              const src = index < kwCollectNub ? starOn : starOff
42
               return (
104
               return (
43
-                <image className='card-star-image' key={index} src={src} onClick={Nuberr} />
105
+                <image className='card-star-image' key={index} src={src} onClick={() => kwChange(index)} />
44
               )
106
               )
45
             })
107
             })
46
           }
108
           }
47
         </view>
109
         </view>
48
         <view className='card-box-star'>
110
         <view className='card-box-star'>
49
-          <text className='card-box-star-text' onClick={Nuberr} >环境:</text>
111
+          <text className='card-box-star-text' >环境:</text>
50
           {
112
           {
51
             scoreList.map((_, index) => {
113
             scoreList.map((_, index) => {
52
 
114
 
53
-              const src = (index + `${CollectNub}`) < score ? starOn : starOff
115
+              const src = index < hjCollectNub ? starOn : starOff
54
               return (
116
               return (
55
-                <image className='card-star-image' key={index} src={src} onClick={Nuberr} />
117
+                <image className='card-star-image' key={index} src={src} onClick={() => hjChange(index)} />
56
               )
118
               )
57
             })
119
             })
58
           }
120
           }
59
         </view>
121
         </view>
60
         <view className='card-box-star'>
122
         <view className='card-box-star'>
61
-          <text className='card-box-star-text' onClick={Nuberr} >服务:</text>
123
+          <text className='card-box-star-text'  >服务:</text>
62
           {
124
           {
63
             scoreList.map((_, index) => {
125
             scoreList.map((_, index) => {
64
 
126
 
65
-              const src = (index + `${CollectNub}`) < score ? starOn : starOff
127
+              const src = index < fwCollectNub ? starOn : starOff
66
               return (
128
               return (
67
-                <image className='card-star-image' key={index} src={src} onClick={Nuberr} />
129
+                <image className='card-star-image' key={index} src={src} onClick={() => fwChange(index)} />
68
               )
130
               )
69
             })
131
             })
70
           }
132
           }

+ 101
- 30
src/components/CompoentsOrder/AlreadyUsed/style.less View File

1
 @whiteColor: #fff;
1
 @whiteColor: #fff;
2
-
3
-// .box-content {
4
-
5
-
6
-  .item-center-Number {
7
-    .card-box-star {
8
-      margin-top: 23px;
9
-      width: auto;
10
-      height: 44.3px;
11
-      font-size: 20px;
12
-      color: @whiteColor;
13
-      .card-box-star-text {
14
-        display: inline-block;
15
-        height: 22px;
16
-        font-size: 24px;
17
-        font-weight: 400;
18
-        color: #666666;
2
+.box-content{
3
+  .weui-dialog__bd{
4
+    padding: 30px 20px 28px 20px;
5
+  }
6
+  .left-complete-one{
7
+    .v1{    
8
+      flex: none;
9
+      box-sizing: border-box;
10
+      width: 160px;
11
+      position: relative;
12
+      padding-bottom:20px;
13
+      .left-viewText{
14
+        box-sizing: border-box;
15
+        background: url('~@/assets/icons/ProCard/ProCard_hot.png') no-repeat;
16
+        background-size: 100% 100%;
17
+        padding: 16px 25px 10px 10px;
18
+        font-size: 20px;
19
+        color: #fff;
20
+        line-height: 1em;
19
       }
21
       }
20
-      .card-star-image {
21
-        padding-left: 30px;
22
-        width: 21px;
23
-        height: 21px;
22
+    }
23
+    .v2{
24
+      display: flex;
25
+      padding-bottom: 20px;
26
+      .title-image{
27
+        opacity: none;
28
+        width: 144px;
29
+        height: 144px;
30
+        border-radius: 24px;
31
+        position: relative;
32
+        overflow: hidden;
33
+        flex: none;
34
+        .image-1{
35
+          width: 100%;
36
+          height: 100%;
37
+          display: block;
38
+        }
39
+        .image-2{
40
+          box-sizing: border-box;
41
+          position: absolute;
42
+          width: 99px;
43
+          height: 36px;
44
+          left: 0;
45
+          top: 0;
46
+        }
24
       }
47
       }
25
-      .card-star-text {
26
-        padding-left: 10px;
27
-        font-size: 20px;
28
-        color: #333;
29
-        font-weight: 700;
48
+      .title-content {
49
+        padding-left: 18px;
50
+        flex: auto;
51
+        text-align: left;
52
+        .Pro-title {
53
+          display: flex;
54
+          .title-text {
55
+            flex: auto;
56
+            font-size: 24px;
57
+            padding-bottom: 10px;          
58
+          }
59
+          .title-money-2 {
60
+            flex: none;
61
+            font-size: 20px;
62
+            color: #333333;
63
+            padding-left: 40px;
64
+          }
65
+        }
66
+        .title-money {
67
+          font-size: 24px;
68
+          font-weight: bold;
69
+          color: #333333;
70
+        }
71
+        .title-time {
72
+          font-size: 24px;
73
+          padding-top: 20px;
74
+          color: #c0c8d3;
75
+        }
76
+        .title-money-3 {
77
+          font-size: 20px;
78
+          padding-left: 10px;
79
+          color: #666;
80
+        }
30
       }
81
       }
31
     }
82
     }
32
   }
83
   }
33
-
84
+  .pjLine{
85
+    height: 2px;
86
+    background: #000;
87
+    width: 100%;
88
+    opacity: 0.1;
89
+  }
34
   .buy-button-box {
90
   .buy-button-box {
35
     width: 100%;
91
     width: 100%;
36
-    margin: 40px 0 0 0;
92
+    margin-top: 53px;
37
 
93
 
38
     .button-Cancel {
94
     .button-Cancel {
39
       display: inline-block;
95
       display: inline-block;
48
     }
104
     }
49
     .button-OK {
105
     .button-OK {
50
       display: inline-block;
106
       display: inline-block;
51
-
52
       width: 236px;
107
       width: 236px;
53
       height: 78px;
108
       height: 78px;
54
       background: #274291;
109
       background: #274291;
58
       color: #ffffff;
113
       color: #ffffff;
59
     }
114
     }
60
   }
115
   }
116
+  .item-center-Number {
117
+    .card-box-star {
118
+      margin: 23px 0 7px 0;
119
+      .card-box-star-text {
120
+        font-size: 24px;
121
+        color: #666;
122
+      }
123
+      .card-star-image {
124
+        padding-left: 35px;
125
+        width: 22px;
126
+        height: 21px;
127
+      }
128
+    }
129
+  }
130
+}
131
+
132
+
61
 
133
 
62
-// }

+ 46
- 23
src/components/CompoentsOrder/OrderCard/index.jsx View File

4
 import CouponCard from '@/components/CouponCard'
4
 import CouponCard from '@/components/CouponCard'
5
 import QRcode from "@/assets/icons/UserCenter/QRcode.png";
5
 import QRcode from "@/assets/icons/UserCenter/QRcode.png";
6
 import refund from "@/assets/icons/GuideCheck/refund.png";
6
 import refund from "@/assets/icons/GuideCheck/refund.png";
7
+import Cancel from "@/assets/icons/UserCenter/Cancel.png";
7
 import Pay from "@/assets/icons/GuideCheck/Pay_logo.png";
8
 import Pay from "@/assets/icons/GuideCheck/Pay_logo.png";
8
 import Null from "@/assets/icons/UserCenter/null_logo.png";
9
 import Null from "@/assets/icons/UserCenter/null_logo.png";
10
+import Evaluated from "@/assets/icons/UserCenter/evaluated.png";
11
+import Refund from "@/assets/icons/UserCenter/Refund.png";
9
 import Evaluation from "@/assets/icons/UserCenter/Evaluation.png";
12
 import Evaluation from "@/assets/icons/UserCenter/Evaluation.png";
10
 import './style.less'
13
 import './style.less'
11
 
14
 
14
 const Action = CouponCard.Action
17
 const Action = CouponCard.Action
15
 
18
 
16
 export default (props) => {
19
 export default (props) => {
17
-  const { item, setShowCutover } = props
20
+  const { item, setShowCutover, show, sh, kkp } = props
18
 
21
 
19
   const handleDetail = () => {
22
   const handleDetail = () => {
20
     if (item.status === 0) {
23
     if (item.status === 0) {
46
     });
49
     });
47
   }
50
   }
48
   //评价
51
   //评价
49
-  const evaluation = () => {
52
+  const evaluation = (val) => {
53
+    show(val)
50
     setShowCutover(true)
54
     setShowCutover(true)
51
   }
55
   }
56
+  //售后
57
+  const handleRefund = (item) => {
58
+    Taro.navigateTo({
59
+      url: `/pages/MineUserAll/RefundMoney/CheckRefund/index?id=${item.orderId}`,
60
+    });
61
+  };
52
   const PayAction =
62
   const PayAction =
53
-    item.status === 0 ? <Action.Icon icon={Pay} text='支付' onClick={handleDetail} /> :
54
-      item.status === 1 && item.isVerified == 0 ? <Action.Icon icon={QRcode} text='扫码核销' onClick={() => onWriteOff(item)} /> :
55
-        item.status === 2 && item.isVerified == 0 ? <Action.Image image={refund} /> :
56
-          item.status === 9 ? <Action.Image image={Null} /> :
57
-            item.isVerified == 1 ? <Action.Icon icon={Evaluation} text='评价' onClick={() => evaluation()} /> : ''
63
+    kkp == '1' ? null :
64
+      sh == '1' ? <Action.Icon icon={Refund} text='售后/退款' onClick={() => handleRefund(item)} /> :
65
+        item.status === 0 ? <Action.Icon icon={Pay} text='支付' onClick={handleDetail} /> :
66
+          item.status === 1 && item.isVerified == false ? <Action.Icon icon={QRcode} text='扫码核销' onClick={() => onWriteOff(item)} /> :
67
+            item.status === 2 && item.isVerified == false ? <Action.Image image={refund} /> :
68
+              item.status === 7 && item.isVerified == false ? <Action.Image image={Cancel} /> :
69
+                item.status === 9 ? <Action.Image image={Null} /> :
70
+                  item.isVerified == true && item.isEvaluated > 0 ? <Action.Image image={Evaluated} /> :
71
+                    item.isVerified == true ? <Action.Icon icon={Evaluation} text='评价' onClick={() => evaluation(item)} /> : null
72
+
58
 
73
 
59
   return (
74
   return (
60
     <>
75
     <>
61
-      <view className='OrderNumber'>订单编号:{item.orderId}</view>
76
+      {
77
+        sh != '1'|| kkp == '1'? <view className='OrderNumber'>订单编号:{item.orderId}</view> : null
78
+      }
62
       <CouponCard action={PayAction}>
79
       <CouponCard action={PayAction}>
63
         <CouponMedia>
80
         <CouponMedia>
64
           <CouponMedia.Header
81
           <CouponMedia.Header
66
             image={item.poster}
83
             image={item.poster}
67
             badge='food'
84
             badge='food'
68
           />
85
           />
69
-          <CouponMedia.Body star={item.score}>
70
-            <View className='cpn-card-text'>
71
-              <View style={{ flex: '1' }}>{(item.packageDescription).toString().length > 25 ? (item.packageDescription).substring(0, 25) + '...' : (item.packageDescription)}</View>
72
-              <text className='title-money-2'>
73
-                数量:{item.amount}张
74
-              </text>
75
-            </View>
76
-            <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
77
-              <Text className='cpn-card-text_mn'>¥{`${(item.unitPrice / 100)?.toFixed(2)}元`}</Text>
78
-            </View>
79
-            <View className='cpn-md-act'>
80
-              <view className='title-time'>
81
-                有效期:{formatTime(item?.startTime, "yyyy/MM/dd")}-
82
-                {formatTime(item.endTime, "yyyy/MM/dd")}
83
-              </view>
86
+          <CouponMedia.Body star={kkp == '1' ? null : item.score}>
87
+            <View className='orderCard'>
88
+              <View className='cpn-card-text'>
89
+                <View style={{ flex: '1' }}>{(item.packageDescription).toString().length > 25 ? (item.packageDescription).substring(0, 25) + '...' : (item.packageDescription)}</View>
90
+                <text className={kkp == '1' ? 'shanchu' : 'title-money-2'}>
91
+                  数量:{item.amount}张
92
+                </text>
93
+              </View>
94
+              <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
95
+                <Text className='cpn-card-text_mn'>¥{`${(item.unitPrice / 100)?.toFixed(2)}元`}</Text>
96
+              </View>
97
+              <View className='cpn-md-act'>
98
+                <view className={item.isVerified == 1 ? 'title-time' : ''}>
99
+                  {
100
+                    sh == 1 ? '有效期:' + formatTime(item.endTime, "yyyy/MM/dd") :
101
+                      item.isVerified == 1 ? '核销时间 :' + formatTime(item?.verifiedDate, "yyyy/MM/dd") :
102
+                        '有效期:' + formatTime(item?.startTime, "yyyy/MM/dd") + '-' +
103
+                        formatTime(item.endTime, "yyyy/MM/dd")
104
+                  }
105
+                </view>
106
+              </View>
84
             </View>
107
             </View>
85
           </CouponMedia.Body>
108
           </CouponMedia.Body>
86
         </CouponMedia>
109
         </CouponMedia>

+ 41
- 33
src/components/CompoentsOrder/OrderCard/style.less View File

1
-.cpn-card-text {
2
-  font-size: 24px;
3
-  font-weight: 400;
4
-  color: #333333;
5
-  line-height: 40px;
6
-  vertical-align: baseline;
7
-  display: flex;
8
-  .title-money-2 {
9
-    font-size: 20px;
1
+.orderCard{
2
+  .cpn-card-text {
3
+    font-size: 24px;
4
+    font-weight: 400;
10
     color: #333333;
5
     color: #333333;
11
-  }
12
-  & > text {
13
-    display: inline-block;
6
+    line-height: 40px;
7
+    vertical-align: baseline;
8
+    display: flex;
9
+    .title-money-2 {
10
+      font-size: 20px;
11
+      color: #333333;
12
+      text-decoration: line-through;
13
+    }
14
+    .shanchu{
15
+      font-size: 20px;
16
+      color: #333333;
17
+    }
18
+    & > text {
19
+      display: inline-block;
14
 
20
 
15
-    & + text {
16
-      margin-left: 8px;
21
+      & + text {
22
+        margin-left: 8px;
23
+      }
24
+    }
25
+    &_mn {
26
+      font-size: 24px;
27
+      font-weight: bold;
28
+      color: #333333;
17
     }
29
     }
18
-  }
19
-  &_mn {
20
-    font-size: 24px;
21
-    font-weight: bold;
22
-    color: #333333;
23
-  }
24
 
30
 
25
-  &_rm {
26
-    font-size: 18px;
27
-    font-weight: 400;
28
-    text-decoration: line-through;
29
-    color: #666666;
31
+    &_rm {
32
+      font-size: 18px;
33
+      font-weight: 400;
34
+      text-decoration: line-through;
35
+      color: #666666;
36
+    }
30
   }
37
   }
31
-}
32
-.cpn-md-act {
33
-  display: flex;
34
-  margin-top: 10px;
35
-  position: relative;
36
-  .title-time {
38
+  .cpn-md-act {
39
+    display: flex;
40
+    margin-top: 10px;
41
+    position: relative;
37
     font-size: 22px;
42
     font-size: 22px;
38
-    // padding-top: 20px;
39
     color: #c0c8d3;
43
     color: #c0c8d3;
44
+    .title-time {
45
+      font-size: 28px;
46
+    }
40
   }
47
   }
41
 }
48
 }
49
+
42
 .OrderNumber {
50
 .OrderNumber {
43
   font-size: 20px;
51
   font-size: 20px;
44
-  font-weight: 400;
45
   color: #666666;
52
   color: #666666;
53
+  padding: 20px 0;
46
 }
54
 }

+ 8
- 5
src/components/CompoentsOrder/complete/index.jsx View File

77
       }
77
       }
78
     }
78
     }
79
   }, [IsPull]);
79
   }, [IsPull]);
80
-
81
-
80
+  const [ite, setItem] = useState({})
81
+  const show = (val) => {
82
+    setItem(val)
83
+  }
82
   const slideButtonTap = (e) => {
84
   const slideButtonTap = (e) => {
83
-    deleteOrder(e.orderId || '').then(() => {
85
+    console.log(e)
86
+    deleteOrder(e.orderId).then(() => {
84
       Taro.showToast({
87
       Taro.showToast({
85
         title: '删除订单成功',
88
         title: '删除订单成功',
86
         icon: 'none',
89
         icon: 'none',
109
           list.length == 0 ?
112
           list.length == 0 ?
110
             <NoData /> :
113
             <NoData /> :
111
             <view className='complete-boxs'>
114
             <view className='complete-boxs'>
112
-              <AlreadyUsed showCutover={showCutover} maskClosable={showCutover} onClose={onClose} list={list} />
115
+              <AlreadyUsed showCutover={showCutover} maskClosable={showCutover} onClose={onClose} item={ite} />
113
               {list.map((item, index) => {
116
               {list.map((item, index) => {
114
                 /* 待支付 */
117
                 /* 待支付 */
115
                 if (item.status === 0) {
118
                 if (item.status === 0) {
125
                 else if (item.isVerified == 1) {
128
                 else if (item.isVerified == 1) {
126
                   return (
129
                   return (
127
                     <view key={`${type}-${item.orderId}`}>
130
                     <view key={`${type}-${item.orderId}`}>
128
-                      <OrderCard item={item} setShowCutover={setShowCutover} />
131
+                      <OrderCard item={item} setShowCutover={setShowCutover} show={show} />
129
                     </view>
132
                     </view>
130
                   );
133
                   );
131
                 }
134
                 }

+ 2
- 66
src/components/CompoentsOrder/complete/style.less View File

8
 }
8
 }
9
 
9
 
10
 .complete-boxs {
10
 .complete-boxs {
11
-  margin: 40px auto;
11
+  margin: 20px auto;
12
   padding: 0 30px;
12
   padding: 0 30px;
13
   .foot {
13
   .foot {
14
-    width: 100%;
15
-    height: 26px;
16
     font-size: 28px;
14
     font-size: 28px;
17
-    font-weight: 400;
18
     color: #c0c8d3;
15
     color: #c0c8d3;
19
-    line-height: 34px;
20
-    margin-top: 40px;
16
+    margin: 40px 0;
21
     text-align: center;
17
     text-align: center;
22
   }
18
   }
23
-  .AlreadyUsed-box {
24
-    margin: 40px auto;
25
-    padding: 0 30px;
26
-
27
-    .item-center-Number {
28
-      .card-box-star {
29
-        margin-top: 23px;
30
-        width: auto;
31
-        height: 44.3px;
32
-        font-size: 20px;
33
-        color: @whiteColor;
34
-        .card-box-star-text {
35
-          display: inline-block;
36
-          height: 22px;
37
-          font-size: 24px;
38
-          font-weight: 400;
39
-          color: #666666;
40
-        }
41
-        .card-star-image {
42
-          padding-left: 30px;
43
-          width: 21px;
44
-          height: 21px;
45
-        }
46
-        .card-star-text {
47
-          padding-left: 10px;
48
-          font-size: 20px;
49
-          color: #333;
50
-          font-weight: 700;
51
-        }
52
-      }
53
-    }
54
-
55
-    .buy-button-box {
56
-      width: 100%;
57
-      margin: 40px 0 0 0;
58
-
59
-      .button-Cancel {
60
-        display: inline-block;
61
-        width: 236px;
62
-        height: 78px;
63
-        border: 2px solid #274291;
64
-        font-size: 30px;
65
-        font-weight: bold;
66
-        color: #274291;
67
-        border-radius: 12px;
68
-        margin-right: 80px;
69
-      }
70
-      .button-OK {
71
-        display: inline-block;
72
-
73
-        width: 236px;
74
-        height: 78px;
75
-        background: #274291;
76
-        border-radius: 12px;
77
-        font-size: 30px;
78
-        font-weight: bold;
79
-        color: #ffffff;
80
-      }
81
-    }
82
-  }
83
 }
19
 }

+ 4
- 1
src/components/CouponCard/Media/Body.jsx View File

10
 
10
 
11
   return (
11
   return (
12
     <View className='coupun-media_body'>
12
     <View className='coupun-media_body'>
13
-      {enableStar && <Star score={(star).toFixed(1)} style={{ marginTop: '26rpx' }} />}      
13
+      {
14
+      !enableStar?
15
+      <Star score={5} style={{ marginTop: '26rpx',opacity: '0' }} />:
16
+       <Star score={(star).toFixed(1)} style={{ marginTop: '26rpx' }} />}      
14
       <View className='coupun-media_body_ctt'>
17
       <View className='coupun-media_body_ctt'>
15
         {props.children}
18
         {props.children}
16
       </View>
19
       </View>

+ 0
- 1
src/components/MoreGuide/index.jsx View File

23
               autoplay={false}
23
               autoplay={false}
24
               loop={false}
24
               loop={false}
25
               muted={false} style={{ width: "100%", height: '200px' }} src={item.content}></Video>
25
               muted={false} style={{ width: "100%", height: '200px' }} src={item.content}></Video>
26
-
27
       }
26
       }
28
 
27
 
29
     </>
28
     </>

+ 4
- 2
src/components/ShopUsed/index.jsx View File

23
         duration: 2000,
23
         duration: 2000,
24
       })
24
       })
25
       setButtonStyle('none')
25
       setButtonStyle('none')
26
-
27
     })
26
     })
28
   }
27
   }
29
 
28
 
34
     <View className='orderCard'>
33
     <View className='orderCard'>
35
       <View style={{ overflow: 'hidden' }}>
34
       <View style={{ overflow: 'hidden' }}>
36
         <View className='orderId'>订单编号:{item.orderId}</View>
35
         <View className='orderId'>订单编号:{item.orderId}</View>
37
-        <View className='orderTime'>下单日期:{formatTimes(item.orderDate, 'yyyy-MM-dd hh:ss') || ''}</View>
36
+        <View className='orderTime'>下单日期:{formatTimes(item.orderDate, 'yyyy-MM-dd hh:mm') || ''}</View>
38
       </View>
37
       </View>
39
       <View className='order'>
38
       <View className='order'>
40
         <Image className='orderImg' src={item.poster} mode='aspectFit' />
39
         <Image className='orderImg' src={item.poster} mode='aspectFit' />
42
           <View className='foodName'>{item.description}</View>
41
           <View className='foodName'>{item.description}</View>
43
           <View className='price'>合计金额:¥<Text style={{ fontSize: '24rpx' }}>{item.actualPrice / 100}</Text>元 <Text className='pnum'>数量:<Text>1</Text>张</Text> </View>
42
           <View className='price'>合计金额:¥<Text style={{ fontSize: '24rpx' }}>{item.actualPrice / 100}</Text>元 <Text className='pnum'>数量:<Text>1</Text>张</Text> </View>
44
         </View>
43
         </View>
44
+
45
+        <View className='veri_Date' > 核销时间:{formatTimes(item.verifiedDate, 'yyyy-MM-dd hh:mm')}</View>
46
+
45
         <View className='line' />
47
         <View className='line' />
46
         <View className='phone'>客户手机:<Text>{item.phone.replace(/^(\d{3})\d{4}(\d+)/, "$1****$2") || ''}</Text>
48
         <View className='phone'>客户手机:<Text>{item.phone.replace(/^(\d{3})\d{4}(\d+)/, "$1****$2") || ''}</Text>
47
           {
49
           {

+ 34
- 33
src/components/ShopUsed/style.less View File

1
-.orderCard{
1
+.orderCard {
2
   margin-bottom: 20px;
2
   margin-bottom: 20px;
3
-  .orderId{
3
+  .orderId {
4
     font-size: 20px;
4
     font-size: 20px;
5
     color: #666666;
5
     color: #666666;
6
     line-height: 44px;
6
     line-height: 44px;
7
     float: left;
7
     float: left;
8
     margin: 60px 0 32px 0;
8
     margin: 60px 0 32px 0;
9
-
10
   }
9
   }
11
-  .orderTime{    
10
+  .orderTime {
12
     font-size: 20px;
11
     font-size: 20px;
13
     color: #666666;
12
     color: #666666;
14
     line-height: 44px;
13
     line-height: 44px;
15
     float: right;
14
     float: right;
16
     margin: 60px 0 32px 0;
15
     margin: 60px 0 32px 0;
17
   }
16
   }
18
-  .order{
19
-    background: #FFFFFF;
17
+  .order {
18
+    background: #ffffff;
20
     box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
19
     box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
21
     border-radius: 12px;
20
     border-radius: 12px;
22
     padding: 20px;
21
     padding: 20px;
23
-    .orderImg{
22
+    .orderImg {
24
       width: 194px;
23
       width: 194px;
25
       height: 194px;
24
       height: 194px;
26
       border-radius: 22px;
25
       border-radius: 22px;
27
       float: left;
26
       float: left;
28
-      margin:0 26px 30px 0;
27
+      margin: 0 26px 30px 0;
29
     }
28
     }
30
-    .orderRight{
31
-      .foodName{
29
+    .orderRight {
30
+      .foodName {
32
         height: 63px;
31
         height: 63px;
33
         font-size: 24px;
32
         font-size: 24px;
34
         color: #333333;
33
         color: #333333;
35
         line-height: 40px;
34
         line-height: 40px;
36
       }
35
       }
37
-      .price{
36
+      .price {
38
         font-size: 20px;
37
         font-size: 20px;
39
         font-weight: bold;
38
         font-weight: bold;
40
         color: #202020;
39
         color: #202020;
41
         line-height: 44px;
40
         line-height: 44px;
42
         margin: 37px 0 40px 0;
41
         margin: 37px 0 40px 0;
43
         height: 19px;
42
         height: 19px;
44
-        .pnum{
43
+        .pnum {
45
           color: #333333;
44
           color: #333333;
46
           font-weight: 400;
45
           font-weight: 400;
47
-          margin-left: 47px;         
46
+          margin-left: 47px;
48
         }
47
         }
49
       }
48
       }
50
-      .price+view{
49
+      .price + view {
51
         font-size: 20px;
50
         font-size: 20px;
52
         font-weight: bold;
51
         font-weight: bold;
53
-        color: #FF3434;
52
+        color: #ff3434;
54
         line-height: 44px;
53
         line-height: 44px;
55
         margin-bottom: 35px;
54
         margin-bottom: 35px;
56
         height: 19px;
55
         height: 19px;
57
       }
56
       }
58
     }
57
     }
59
-    .line{
58
+    .veri_Date {
59
+      color: red;
60
+      height: 5px;
61
+      letter-spacing: 1px;
62
+      font-size: 30px;
63
+    }
64
+    .line {
60
       width: 100%;
65
       width: 100%;
61
       height: 2px;
66
       height: 2px;
62
       background: #000;
67
       background: #000;
63
       opacity: 0.1;
68
       opacity: 0.1;
64
       margin-top: 100px;
69
       margin-top: 100px;
65
     }
70
     }
66
-    .phone{
71
+    .phone {
67
       font-size: 24px;
72
       font-size: 24px;
68
       color: #666666;
73
       color: #666666;
69
       line-height: 44px;
74
       line-height: 44px;
70
       height: 23px;
75
       height: 23px;
71
       margin: 30px 0;
76
       margin: 30px 0;
72
       // .Button-OK{
77
       // .Button-OK{
73
-      //   font-size: 28px;   
78
+      //   font-size: 28px;
74
       //   color: #C0C8D3;
79
       //   color: #C0C8D3;
75
       //   line-height: 34px;
80
       //   line-height: 34px;
76
       //   text-align: center;
81
       //   text-align: center;
77
       //   padding:40px 0 100px 0;
82
       //   padding:40px 0 100px 0;
78
       // }
83
       // }
79
-
80
     }
84
     }
81
 
85
 
82
-    .tripTime{
86
+    .tripTime {
83
       font-size: 24px;
87
       font-size: 24px;
84
       color: #666666;
88
       color: #666666;
85
       line-height: 44px;
89
       line-height: 44px;
86
       margin-bottom: 30px;
90
       margin-bottom: 30px;
87
     }
91
     }
88
   }
92
   }
89
-
90
-  
91
 }
93
 }
92
-button{
94
+button {
93
   width: 160px;
95
   width: 160px;
94
-height: 40px;
95
-background: #1A3B83;
96
-/* margin: 0 auto; */
97
-line-height: 40px;
98
-border-radius: 12px;
99
-font-size: 23px;
100
-color: #ffffff;
101
-position: relative;
102
-right: -8em;
103
-top: -2em;
96
+  height: 40px;
97
+  background: #1a3b83;
98
+  line-height: 40px;
99
+  border-radius: 12px;
100
+  font-size: 23px;
101
+  color: #ffffff;
102
+  position: relative;
103
+  right: -8em;
104
+  top: -2em;
104
 }
105
 }

+ 13
- 12
src/components/foodCards/foodCards.jsx View File

1
-import useSave from "@/utils/hooks/useSave"
2
 import Taro from '@tarojs/taro'
1
 import Taro from '@tarojs/taro'
3
 import { View, Text } from '@tarojs/components'
2
 import { View, Text } from '@tarojs/components'
4
 import CouponCard from '@/components/CouponCard'
3
 import CouponCard from '@/components/CouponCard'
23
   }
22
   }
24
   const PayAction = <Action.Icon icon={Pay} text='支付' onClick={handlePayClick} />
23
   const PayAction = <Action.Icon icon={Pay} text='支付' onClick={handlePayClick} />
25
   return (
24
   return (
26
-    <View style={{margin:'15px 5px'}}>
25
+    <View style={{ margin: '15px 5px' }}>
27
       <CouponCard action={PayAction}>
26
       <CouponCard action={PayAction}>
28
         <CouponMedia onClick={goshop ? '' : goFood}>
27
         <CouponMedia onClick={goshop ? '' : goFood}>
29
           <CouponMedia.Header
28
           <CouponMedia.Header
32
             badge='food'
31
             badge='food'
33
           />
32
           />
34
           <CouponMedia.Body star={st}>
33
           <CouponMedia.Body star={st}>
35
-            <View className='cpn-card-text'>
36
-              {(item.description).toString().length > 25 ? (item.description).substring(0, 25) + '...' : (item.description)}
37
-            </View>
38
-            <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
39
-              <Text className='cpn-card-text_mn'>¥{`${(item.actualPrice / 100)?.toFixed(2)}元`}</Text>
40
-              <Text className='cpn-card-text_rm'>{`门市价${(item.standardPrice / 100)?.toFixed(2)}元`}</Text>
41
-            </View>
42
-            <View className='cpn-md-act'>
43
-              <Location {...det} />
44
-              <SaveIcon saved={item.isSaved > 0} targetType='shop_package' editable={editable} targetId={item.packageId} />
34
+            <View className='foodCard'>
35
+              <View className='cpn-card-text'>
36
+                {(item.description).toString().length > 25 ? (item.description).substring(0, 25) + '...' : (item.description)}
37
+              </View>
38
+              <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
39
+                <Text className='cpn-card-text_mn'>¥{`${(item.actualPrice / 100)?.toFixed(2)}元`}</Text>
40
+                <Text className='cpn-card-text_rm'>{`门市价${(item.standardPrice / 100)?.toFixed(2)}元`}</Text>
41
+              </View>
42
+              <View className='cpn-md-act'>
43
+                <Location {...det} />
44
+                <SaveIcon saved={item.isSaved > 0} targetType='shop_package' editable={editable} targetId={item.packageId} />
45
+              </View>
45
             </View>
46
             </View>
46
           </CouponMedia.Body>
47
           </CouponMedia.Body>
47
         </CouponMedia>
48
         </CouponMedia>

+ 29
- 27
src/components/foodCards/style.less View File

1
-.cpn-card-text {
2
-  font-size: 24px;
3
-  font-weight: 400;
4
-  color: #333333;
5
-  line-height: 40px;
6
-  vertical-align: baseline;
1
+.foodCard{
2
+  .cpn-card-text {
3
+    font-size: 24px;
4
+    font-weight: 400;
5
+    color: #333333;
6
+    line-height: 40px;
7
+    vertical-align: baseline;
7
 
8
 
8
-  & > text {
9
-    display: inline-block;
9
+    & > text {
10
+      display: inline-block;
10
 
11
 
11
-    & + text {
12
-      margin-left: 8px;
12
+      & + text {
13
+        margin-left: 8px;
14
+      }
15
+    }
16
+    &_mn {
17
+      font-size: 24px;
18
+      font-weight: bold;
19
+      color: #333333;
13
     }
20
     }
14
-  }
15
-  &_mn {
16
-    font-size: 24px;
17
-    font-weight: bold;
18
-    color: #333333;
19
-  }
20
 
21
 
21
-  &_rm {
22
-    font-size: 18px;
23
-    font-weight: 400;
24
-    text-decoration: line-through;
25
-    color: #666666;
22
+    &_rm {
23
+      font-size: 18px;
24
+      font-weight: 400;
25
+      text-decoration: line-through;
26
+      color: #666666;
27
+    }
26
   }
28
   }
27
-}
28
 
29
 
29
-.cpn-md-act {
30
-  display: flex;
31
-  margin-top: 10px;
30
+  .cpn-md-act {
31
+    display: flex;
32
+    margin-top: 10px;
32
 
33
 
33
-  & > view {
34
-    flex: 1;
34
+    & > view {
35
+      flex: 1;
36
+    }
35
   }
37
   }
36
 }
38
 }

+ 16
- 18
src/components/toggleRole/ToggleRole.less View File

1
-.User-box-sths{
1
+.User-box-sths {
2
   display: flex;
2
   display: flex;
3
-  margin: 40px 0  60px 0;
3
+  margin: 40px 0 60px 0;
4
   justify-content: space-around;
4
   justify-content: space-around;
5
   flex-wrap: wrap;
5
   flex-wrap: wrap;
6
-  .User-box-selectUser{
6
+  .User-box-selectUser {
7
     width: 100%;
7
     width: 100%;
8
     font-size: 32px;
8
     font-size: 32px;
9
     font-weight: bold;
9
     font-weight: bold;
10
     color: #202020;
10
     color: #202020;
11
     line-height: 32px;
11
     line-height: 32px;
12
-    margin: 60px 0 70px  0;
12
+    margin: 60px 0 70px 0;
13
     text-align: left;
13
     text-align: left;
14
   }
14
   }
15
-  .User-box-tourist{
15
+  .User-box-tourist {
16
     display: inline-block;
16
     display: inline-block;
17
 
17
 
18
-     .Ubs-tourist-image{
18
+    .Ubs-tourist-image {
19
       width: 86px;
19
       width: 86px;
20
       height: 86px;
20
       height: 86px;
21
-
22
     }
21
     }
23
-    .Ubs-tourist-text{
22
+    .Ubs-tourist-text {
24
       display: block;
23
       display: block;
25
       font-size: 30px;
24
       font-size: 30px;
26
       font-weight: bold;
25
       font-weight: bold;
27
-      color: #999999;      
26
+      color: #999999;
28
     }
27
     }
29
   }
28
   }
30
-  .User-box-hotelBoss{
29
+  .User-box-hotelBoss {
31
     display: inline-block;
30
     display: inline-block;
32
-    .Ubs-hotelBoss-image{
31
+    .Ubs-hotelBoss-image {
33
       width: 86px;
32
       width: 86px;
34
       height: 86px;
33
       height: 86px;
35
     }
34
     }
36
-    .Ubs-hotelBoss-text{
35
+    .Ubs-hotelBoss-text {
37
       display: block;
36
       display: block;
38
       font-size: 30px;
37
       font-size: 30px;
39
       font-weight: bold;
38
       font-weight: bold;
40
       color: #999999;
39
       color: #999999;
41
     }
40
     }
42
   }
41
   }
43
-  .User-box-shopBoss{
44
-    .Ubs-shopBoss-image{
42
+  .User-box-shopBoss {
43
+    .Ubs-shopBoss-image {
45
       width: 86px;
44
       width: 86px;
46
       height: 86px;
45
       height: 86px;
47
     }
46
     }
48
-    .Ubs-shopBoss-text{
47
+    .Ubs-shopBoss-text {
49
       display: block;
48
       display: block;
50
       font-size: 30px;
49
       font-size: 30px;
51
       font-weight: bold;
50
       font-weight: bold;
52
-      color:#202020;
51
+      color: #202020;
53
     }
52
     }
54
   }
53
   }
55
-
56
-}
54
+}

+ 1
- 0
src/hotel/components/HouseManage/houseManage.jsx View File

94
     getShareMessage: () => {
94
     getShareMessage: () => {
95
       const { shareImage, roomOrderId } = shareDataRef.current
95
       const { shareImage, roomOrderId } = shareDataRef.current
96
       setShowCard(false)
96
       setShowCard(false)
97
+      // console.log(`/pages/index/index?tab=1&roomId=${room.roomId}&roomOrderId=${roomOrderId}&fromType=hotel&recommender=${hotel.hotelId}`)
97
       return {
98
       return {
98
         title: room.roomName,
99
         title: room.roomName,
99
         path: `/pages/index/index?tab=1&roomId=${room.roomId}&roomOrderId=${roomOrderId}&fromType=hotel&recommender=${hotel.hotelId}`,
100
         path: `/pages/index/index?tab=1&roomId=${room.roomId}&roomOrderId=${roomOrderId}&fromType=hotel&recommender=${hotel.hotelId}`,

+ 0
- 8
src/hotel/pages/landlord/landlord.jsx View File

68
         {hotel?.hotelId ? currentTab === 0 && <HouseManage hotelList={hotelList} hotel={hotel} onHotelChange={handleHotelChange} ref={houseRef} disabled={!hotel.hotelId} /> : <NoData />}
68
         {hotel?.hotelId ? currentTab === 0 && <HouseManage hotelList={hotelList} hotel={hotel} onHotelChange={handleHotelChange} ref={houseRef} disabled={!hotel.hotelId} /> : <NoData />}
69
       </view>
69
       </view>
70
       <view className='index-tabbar'>
70
       <view className='index-tabbar'>
71
-        {/* <TabBar extClass='custom-tabbar bottomTab' current={currentTab} onChange={handleTabChange}>
72
-          <view className={`${currentTab === 0 ? 'houseTab' : ''}`}>
73
-            <image className='house' src={currentTab === 0 ? onhouseImg : houseImg} /><text>房源管理</text>
74
-          </view>
75
-          <view className={`${currentTab === 1 ? 'incomeTab' : ''}`}>
76
-            <image className='incomes' src={currentTab === 1 ? onincomeImg : incomeImg} /><text>我的收入</text>
77
-          </view>
78
-        </TabBar> */}
79
       </view>
71
       </view>
80
       <view className='index-tabbar'>
72
       <view className='index-tabbar'>
81
         <mp-tabbar extClass='custom-tabbar' current={currentTab} list={tabList} onChange={handleTabChange}></mp-tabbar>
73
         <mp-tabbar extClass='custom-tabbar' current={currentTab} list={tabList} onChange={handleTabChange}></mp-tabbar>

+ 14
- 0
src/layouts/Loading.jsx View File

1
+import { View } from '@tarojs/components'
1
 import Spin from '@/components/Spin'
2
 import Spin from '@/components/Spin'
2
 import logo from '@/assets/icons/comm/logo_small.png'
3
 import logo from '@/assets/icons/comm/logo_small.png'
3
 import './style.less'
4
 import './style.less'
13
         logoVisible !== false &&
14
         logoVisible !== false &&
14
         (<image className='loading-logo' src={logo} style={{ width, height }} />)
15
         (<image className='loading-logo' src={logo} style={{ width, height }} />)
15
       }
16
       }
17
+      <View
18
+        style={{
19
+          width: '28vw',
20
+          color: '#4D4D4D',
21
+          padding: '12px',
22
+          position: 'absolute',
23
+          left: '-4vh',
24
+          textAlign: 'center',
25
+          opacity: '0.8'
26
+        }}
27
+      >
28
+        收集人间美好
29
+      </View>
16
     </view>
30
     </view>
17
   )
31
   )
18
 }
32
 }

+ 1
- 0
src/layouts/index.jsx View File

59
   }
59
   }
60
 
60
 
61
   return loading ? <Loading /> : <Child {...props} person={person} router={router} location={location} />
61
   return loading ? <Loading /> : <Child {...props} person={person} router={router} location={location} />
62
+
62
 }
63
 }

+ 4
- 3
src/pages/MineUserAll/ContactMe/index.jsx View File

31
   }
31
   }
32
   return (
32
   return (
33
     <view className='box-content'>
33
     <view className='box-content'>
34
-      <CustomNav title='联系我们' />
34
+      <view className='index-navbar'>
35
+        <CustomNav title='联系我们' />
36
+      </view>
35
       <view style={{ padding: '60rpx 30rpx' }}>
37
       <view style={{ padding: '60rpx 30rpx' }}>
36
         <view class='section'>
38
         <view class='section'>
37
-          <textarea autoHeight placeholder='请输入您的建议或意见!' id='content' />
39
+          <textarea autoHeight placeholder='有任何疑难杂症或者不开心,就在这里留言。' id='content' />
38
         </view>
40
         </view>
39
         <view className='weChate-image' >
41
         <view className='weChate-image' >
40
           <Image mode='aspectFit' src='https://yz-shigongli.oss-cn-shanghai.aliyuncs.com/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20210918145337.png' />
42
           <Image mode='aspectFit' src='https://yz-shigongli.oss-cn-shanghai.aliyuncs.com/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20210918145337.png' />
41
         </view>
43
         </view>
42
-
43
         <view className='button-info'>
44
         <view className='button-info'>
44
           <Button className='button-box' onClick={submit}>提交</Button>
45
           <Button className='button-box' onClick={submit}>提交</Button>
45
           <Button className='button-box-Cancel' onClick={back} >取消</Button>
46
           <Button className='button-box-Cancel' onClick={back} >取消</Button>

+ 100
- 139
src/pages/MineUserAll/RefundMoney/CheckRefund/index.jsx View File

1
 import BlackSpot from "@/assets/icons/GuideCheck/BlackSpot.png";
1
 import BlackSpot from "@/assets/icons/GuideCheck/BlackSpot.png";
2
 import Taro from "@tarojs/taro";
2
 import Taro from "@tarojs/taro";
3
-import { Button, Textarea } from "@tarojs/components";
3
+import { Button, Textarea, View } from "@tarojs/components";
4
 import formatPrice from "@/utils/formatPrice";
4
 import formatPrice from "@/utils/formatPrice";
5
 import formatTime from "@/utils/formatTime";
5
 import formatTime from "@/utils/formatTime";
6
 import { useState, useEffect } from "react";
6
 import { useState, useEffect } from "react";
7
+import OrderCard from '@/components/CompoentsOrder/OrderCard'
7
 import withLayout from "@/layouts";
8
 import withLayout from "@/layouts";
8
 import { getOrderSub, refund } from "@/services/payOrder";
9
 import { getOrderSub, refund } from "@/services/payOrder";
9
 import food from "@/assets/icons/ProCard/food.png";
10
 import food from "@/assets/icons/ProCard/food.png";
87
       refundReason: explain,
88
       refundReason: explain,
88
     }).then((res) => {
89
     }).then((res) => {
89
       Taro.hideLoading();
90
       Taro.hideLoading();
90
-      Taro.navigateBack({ delta: 1 })
91
+      Taro.navigateTo({ url: '/pages/MineUserAll/AllOrder/index?tabJump=0' })
91
       Taro.showToast({
92
       Taro.showToast({
92
         title: "退款成功",
93
         title: "退款成功",
93
         icon: "none",
94
         icon: "none",
110
   }, [list]);
111
   }, [list]);
111
 
112
 
112
   return (
113
   return (
113
-    <view className='box-content'>
114
-      <CustomNav title='售后退款' />
115
-      <scroll-view scroll-y style='height: calc(100vh - 176rpx);' >
116
-
117
-        <view className='Refund-Content-box'>
118
-
119
-          <view className='title-image'>
120
-            <image
121
-              mode='scaleToFill'
122
-              className='title-image-cup'
123
-              src={BlackSpot}
124
-            />
125
-            <text className='title-title-boss'>商品信息</text>
114
+    <view>
115
+      <view className='index-navbar'>
116
+        <CustomNav title='售后退款' />
117
+      </view>
118
+      <scroll-view scroll-y style='height: calc(100vh - 65px);' >
119
+        <View className='index-container box-content'>
120
+          <view className='Refund-Content-box'>
121
+            <view className='title-image'>
122
+              <image
123
+                mode='scaleToFill'
124
+                className='title-image-cup'
125
+                src={BlackSpot}
126
+              />
127
+              <text className='title-title-boss'>商品信息</text>
128
+            </view>
126
           </view>
129
           </view>
127
-        </view>
128
-        {/* 商品信息结束 */}
129
-        <view>
130
-          {(list || []).map((item) => {
131
-            return (
132
-              <view class='wrapper' key={item.orderId}>
133
-                <view class='left-complete-one'>
134
-                  <image className='left-image-1' src={ProCard_hot}></image>
135
-                  <view className='left-viewText'>
136
-                    返现¥{formatPrice(item.cashback)}
137
-                  </view>
138
-                  <view className='title-image'>
139
-                    <image
140
-                      className='image-1'
141
-                      mode='scaleToFill'
142
-                      src={item.poster}
143
-                    ></image>
144
-                    <image className='image-2' src={food}></image>
145
-                  </view>
146
-                  <view className='title-content'>
147
-                    <view className='Pro-title'>
148
-                      <view className='title-text'>
149
-                        {item.packageDescription}
150
-                        <text className='title-money-2'>
151
-                          数量:{item.amount}张
152
-                        </text>
153
-                      </view>
154
-                    </view>
155
-                    <text className='title-money'>
156
-                      ¥{formatPrice(item.unitPrice)}元
157
-                      <text className='title-money-2'>
158
-                        门市价{formatPrice(item.standardPrice)}元
159
-                      </text>
160
-                    </text>
161
-                    <view className='title-time'>
162
-                      有效期:{formatTime(item?.startTime, "yyyy/MM/dd")}-
163
-                      {formatTime(item.endTime, "yyyy/MM/dd")}
164
-                    </view>
165
-                  </view>
166
-                </view>
167
-                <view class='right-complete-two'>
168
-                  <view className='right-content'></view>
169
-                </view>
170
-              </view>
171
-            );
172
-          })}
173
-        </view>
174
-
175
-        {/* 卡片结束 */}
176
-        <view className='Refund-Content-box'>
177
-          <view className='title-image'>
178
-            <image
179
-              mode='scaleToFill'
180
-              className='title-image-cup'
181
-              src={BlackSpot}
182
-            />
183
-            <text className='title-title-boss'>退款原因</text>
130
+          {/* 商品信息结束 */}
131
+          <view>
132
+            {(list || []).map((item) => {
133
+              return (
134
+                <OrderCard item={item}  key={item.orderId} kkp='1' />                
135
+              );
136
+            })}
184
           </view>
137
           </view>
185
-          {/* 退款结束 */}
186
-        </view>
187
-        <view className='Refund-content'>
188
-          {options.map((x) => {
189
-            return (
190
-              <text
191
-                className={`Refund-star-view${x.key} ${checkeds.indexOf(x.key) > -1
192
-                  ? "bg2"
193
-                  : `Refund-star-view${x.key}`
194
-                  }`}
195
-                key={x.key}
196
-                onClick={() => viewOK(x)}
197
-              >
198
-                {x.title}
199
-              </text>
200
-            );
201
-          })}
202
-        </view>
203
-
204
-        <view className='Refund-Content-box'>
205
-          <view className='title-image'>
206
-            <image
207
-              mode='scaleToFill'
208
-              className='title-image-cup'
209
-              src={BlackSpot}
138
+          {/* 卡片结束 */}
139
+          <view className='Refund-Content-box'>
140
+            <view className='title-image'>
141
+              <image
142
+                mode='scaleToFill'
143
+                className='title-image-cup'
144
+                src={BlackSpot}
145
+              />
146
+              <text className='title-title-boss'>退款原因</text>
147
+            </view>
148
+            {/* 退款结束 */}
149
+          </view>
150
+          <view className='Refund-content'>
151
+            {options.map((x) => {
152
+              return (
153
+                <text
154
+                  className={`Refund-star-view1 ${checkeds.indexOf(x.key) > -1
155
+                    ? "bg2"
156
+                    : `Refund-star-view2`
157
+                    }`}
158
+                  key={x.key}
159
+                  onClick={() => viewOK(x)}
160
+                >
161
+                  {x.title}
162
+                </text>
163
+              );
164
+            })}
165
+          </view>
166
+          <view className='Refund-Content-box'>
167
+            <view className='title-image'>
168
+              <image
169
+                mode='scaleToFill'
170
+                className='title-image-cup'
171
+                src={BlackSpot}
172
+              />
173
+              <text className='title-title-boss'>退款说明</text>
174
+            </view>
175
+          </view>
176
+          <view class='section'>
177
+            <Textarea
178
+              placeholder='请补充退款说明(选填)!'
179
+              onInput={(e) => setExplain(e.detail.value)}
180
+              confirm-type='done'
210
             />
181
             />
211
-            <text className='title-title-boss'>退款说明</text>
212
           </view>
182
           </view>
213
-        </view>
214
-        <view class='section'>
215
-          <Textarea
216
-            placeholder='请补充退款说明(选填)!'
217
-            onInput={(e) => setExplain(e.detail.value)}
218
-            confirm-type='done'
219
-          />
220
-        </view>
221
-        <view className='money-title'>
222
-          实付金额:{" "}
223
-          <text className='money-name'>{formatPrice(totalPrice.charges)}元</text>
224
-        </view>
225
-        <view className='money-title'>
226
-          已获返现:{" "}
227
-          <text className='money-name'>{formatPrice(totalPrice.cashback)}元</text>
228
-        </view>
229
-        <view className='money-title'>
230
-          退款金额:{" "}
231
-          <text className='money-name'>{formatPrice(totalPrice.refundPrice)}元</text>
232
-        </view>
233
-        <view className='ul-li-text'>
234
-          <view className='ul-li-view'></view>
235
-          <text className='ul-li-textname'>退款金额不可修改</text>
236
-        </view>
237
-        <view className='ul-li-text'>
238
-          <view className='ul-li-view'></view>
239
-          <text className='ul-li-textname'>
240
-            下单获得返现金额,会在退款时被扣除;
241
-          </text>
242
-        </view>
243
-        <view className='ul-li-text'>
244
-          <view className='ul-li-view'></view>
245
-          <text className='ul-li-textname'>退款将在七个工作日内原路退还。</text>
246
-        </view>
247
-
248
-        <view className='button-info'>
249
-          <Button className='button-box' onClick={() => onRefund()}>
250
-            提交申请
251
-          </Button>
252
-        </view>
183
+          <view className='money-title'>
184
+            实付金额:{" "}
185
+            <text className='money-name'>{formatPrice(totalPrice.charges)}元</text>
186
+          </view>
187
+          <view className='money-title'>
188
+            已获返现:{" "}
189
+            <text className='money-name'>{formatPrice(totalPrice.cashback)}元</text>
190
+          </view>
191
+          <view className='money-title'>
192
+            退款金额:{" "}
193
+            <text className='money-name'>{formatPrice(totalPrice.refundPrice)}元</text>
194
+          </view>
195
+          <view className='ul-li-text'>
196
+            <view className='ul-li-view'></view>
197
+            <text className='ul-li-textname'>退款金额不可修改</text>
198
+          </view>
199
+          <view className='ul-li-text'>
200
+            <view className='ul-li-view'></view>
201
+            <text className='ul-li-textname'>
202
+              下单获得返现金额,会在退款时被扣除;
203
+            </text>
204
+          </view>
205
+          <view className='ul-li-text'>
206
+            <view className='ul-li-view'></view>
207
+            <text className='ul-li-textname'>退款将在七个工作日内原路退还。</text>
208
+          </view>
209
+          <view className='button-info'>
210
+            <Button className='button-box' onClick={() => onRefund()}>
211
+              提交申请
212
+            </Button>
213
+          </view>
214
+        </View>
253
       </scroll-view>
215
       </scroll-view>
254
-
255
     </view >
216
     </view >
256
   );
217
   );
257
 });
218
 });

+ 21
- 344
src/pages/MineUserAll/RefundMoney/CheckRefund/style.less View File

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

+ 8
- 73
src/pages/MineUserAll/RefundMoney/index.jsx View File

1
 import { useState, useEffect } from "react";
1
 import { useState, useEffect } from "react";
2
 import Taro, { useDidShow } from "@tarojs/taro";
2
 import Taro, { useDidShow } from "@tarojs/taro";
3
-import food from "@/assets/icons/ProCard/food.png";
4
-import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
5
 import withLayout from "@/layouts";
3
 import withLayout from "@/layouts";
6
-
7
-import Null from "@/assets/icons/UserCenter/null_logo.png";
8
-import Refund from "@/assets/icons/UserCenter/Refund.png";
9
-
10
-import starOn from "@/assets/icons/GuideCheck/starOn.png";
11
-import starOff from "@/assets/icons/GuideCheck/starOff.png";
12
-
4
+import OrderCard from '@/components/CompoentsOrder/OrderCard'
13
 import { getOrderSub } from "@/services/payOrder";
5
 import { getOrderSub } from "@/services/payOrder";
14
-import formatTime from '@/utils/formatTime'
15
 import CustomNav from "@/components/CustomNav";
6
 import CustomNav from "@/components/CustomNav";
16
 import "./style.less";
7
 import "./style.less";
17
 
8
 
18
-const scoreList = new Array(5).fill(0);
9
+
19
 export default withLayout((props) => {
10
 export default withLayout((props) => {
20
   const { router, person } = props;
11
   const { router, person } = props;
21
   const [list, setList] = useState([]);
12
   const [list, setList] = useState([]);
44
     });
35
     });
45
   };
36
   };
46
 
37
 
47
-  const handleRefund2 = (item) => {
48
-    Taro.navigateTo({
49
-      url: `/pages/MineUserAll/RefundMoney/CheckRefund/index?id=${item.orderId}`,
50
-    });
51
-  };
52
   const pageRefresh = () => {
38
   const pageRefresh = () => {
53
     // 页面下拉刷新回调
39
     // 页面下拉刷新回调
54
     setPull(true);
40
     setPull(true);
82
   useEffect(() => {
68
   useEffect(() => {
83
     getList();
69
     getList();
84
   }, [pageNum]);
70
   }, [pageNum]);
85
-
71
+    
86
   return (
72
   return (
87
     <view className='box-content'>
73
     <view className='box-content'>
88
-      <CustomNav title='售后退款' />
74
+      <view className='index-navbar'>
75
+        <CustomNav title='售后退款' />
76
+      </view>
89
       <scroll-view
77
       <scroll-view
90
         scrollY
78
         scrollY
91
         style='height: calc(100vh - 176rpx);'
79
         style='height: calc(100vh - 176rpx);'
98
         <view className='View-box-Card'>
86
         <view className='View-box-Card'>
99
           {(list || []).map((item) => {
87
           {(list || []).map((item) => {
100
             return (
88
             return (
101
-              <view class='wrapper' key={item.orderId}>
102
-                <view class='left-complete-one'>
103
-                  <image className='left-image-1' src={ProCard_hot}></image>
104
-
105
-                  <view className='left-viewText'>
106
-                    返现¥{item.cashback / 100}
107
-                  </view>
108
-                  {/* 评分 */}
109
-                  <view className='card-box-star'>
110
-                    {scoreList.map((_, index) => {
111
-                      const src = index + 1 <= item.score ? starOn : starOff;
112
-                      return (
113
-                        <image
114
-                          className='card-star-image'
115
-                          key={index}
116
-                          src={src}
117
-                        />
118
-                      );
119
-                    })}
120
-                    <text className='card-star-text'>
121
-                      {item.score?.toFixed(1)}
122
-                    </text>
123
-                  </view>
124
-                  <view className='title-image'>
125
-                    <image
126
-                      className='image-1'
127
-                      mode='scaleToFill'
128
-                      src={item.poster}
129
-                    ></image>
130
-                    <image className='image-2' src={food}></image>
131
-                  </view>
132
-                  <view className='title-content'>
133
-                    <view className='Pro-title'>
134
-                      <view className='title-text'>
135
-                        {item.packageDescription}
136
-                        <text className='title-money-2'>
137
-                          数量:{item.amount}张
138
-                        </text>
139
-                      </view>
140
-                    </view>
141
-                    <text className='title-money'>
142
-                      ¥{item.unitPrice / 100}元
143
-                    </text>
144
-                    <view className='title-time'>有效期:{formatTime(item?.endTime, "yyyy/MM/dd")}</view>
145
-                  </view>
146
-                </view>
147
-                <view class='right-complete-two' onClick={() => handleRefund2(item)}>
148
-                  <view className='right-content'>
149
-                    {/* <image className='right-image-two' src={Null} /> */}
150
-                    <image className='right-image' src={Refund} />
151
-                    <view className='right-title'>售后/退款</view>
152
-                  </view>
153
-                </view>
154
-              </view>
155
-            );
89
+              <OrderCard item={item}  key={item.orderId} sh='1' />              
90
+            )            
156
           })}
91
           })}
157
           <view className='foot'>这是我的底线</view>
92
           <view className='foot'>这是我的底线</view>
158
         </view>
93
         </view>

+ 2
- 226
src/pages/MineUserAll/RefundMoney/style.less View File

1
 @whiteColor: #fff;
1
 @whiteColor: #fff;
2
 
2
 
3
 .box-content {
3
 .box-content {
4
-  width: 100%;
5
   .View-box-Card {
4
   .View-box-Card {
6
-    .wrapper {
7
-      width: calc(100% -25px);
8
-      margin-left: 25px;
9
-      margin-top: 40px;
10
-      display: flex;
11
-      position: relative;
12
-      // margin-top: 600px;
13
-      // margin: 30px auto;
14
-      // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
15
-      // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
16
-      filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
17
-      .card-box-star {
18
-        position: absolute;
19
-        width: auto;
20
-        height: 44.3px;
21
-        position: absolute;
22
-        left: 200px;
23
-        top: 28px;
24
-        font-size: 20px;
25
-        color: @whiteColor;
26
-        .card-star-image {
27
-          padding-left: 6px;
28
-          width: 21px;
29
-          height: 21px;
30
-        }
31
-        .card-star-text {
32
-          padding-left: 10px;
33
-          font-size: 20px;
34
-          color: #333;
35
-          font-weight: 700;
36
-        }
37
-      }
38
-
39
-      .left-complete-one {
40
-        padding-top: 87px;
41
-        padding-bottom: 43px;
42
-        position: relative;
43
-        display: flex;
44
-        background: @whiteColor;
45
-        background: radial-gradient(
46
-              circle at top right,
47
-              transparent 15px,
48
-              #fff 0
49
-            )
50
-            top right,
51
-          radial-gradient(circle at bottom right, transparent 15px, #fff 0)
52
-            bottom right;
53
-        background-size: 100% 60%;
54
-        background-repeat: no-repeat;
55
-
56
-        width: 573px;
57
-        border-radius: 15px 0px 0px 15px;
58
-        // border-radius: 12px;
59
-
60
-        align-items: center;
61
-        .left-image-1 {
62
-          width: 145px;
63
-          height: 44px;
64
-          position: absolute;
65
-          top: 22px;
66
-        }
67
-        .left-viewText {
68
-          // background-image: url(@Image-ProCard_hot);
69
-          // width: 287px;
70
-          width: auto;
71
-          height: 44.3px;
72
-          position: absolute;
73
-          left: 1px;
74
-          top: 28px;
75
-          font-size: 20px;
76
-          color: @whiteColor;
77
-        }
78
-        //图片
79
-        .title-image {
80
-          // width: 145px;
81
-          // margin-left: 20px;
82
-          // border-radius: 24px;
83
-          // overflow: hidden;
84
-          // position: relative;
85
-          height: 144px;
86
-          margin-left: 20px;
87
-          border-radius: 24px;
88
-          overflow: hidden;
89
-          position: relative;
90
-
91
-          .image-1 {
92
-            // width: 100%;
93
-            // height: 145px;
94
-            width: 144px;
95
-            height: 144px;
96
-            margin: 0;
97
-          }
98
-          .image-2 {
99
-            width: 89px;
100
-            height: 34px;
101
-            position: absolute;
102
-            left: 0;
103
-            top: 0;
104
-          }
105
-        }
106
-        // 商品标题
107
-        .title-content {
108
-          // padding: 84px 0 56px 20px;
109
-          padding-left: 18px;
110
-
111
-          .Pro-title {
112
-            .title-text {
113
-              width: 375px;
114
-              overflow: hidden;
115
-              text-overflow: ellipsis;
116
-              -webkit-line-clamp: 1;
117
-              -webkit-box-orient: vertical;
118
-              text-align: left;
119
-              font-size: 24px;
120
-            }
121
-          }
122
-          .title-money {
123
-            // padding-top: 34px;
124
-            font-size: 24px;
125
-            // color: red;
126
-            display: inline-block;
127
-            font-weight: 800;
128
-            margin: 10px auto;
129
-          }
130
-          .title-money-2 {
131
-            height: 19px;
132
-            font-size: 20px;
133
-            font-weight: 400;
134
-            color: #333333;
135
-            padding-left: 50px;
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
-              font-size: 20px;
168
-              color: #333;
169
-            }
170
-          }
171
-        }
172
-      }
173
-    }
174
-
175
-    .right-complete-two {
176
-      background: @whiteColor;
177
-      background: radial-gradient(circle at top left, transparent 15px, #fff 0)
178
-          top left,
179
-        radial-gradient(circle at bottom left, transparent 15px, #fff 0) bottom
180
-          left;
181
-      background-size: 100% 60%;
182
-      background-repeat: no-repeat;
183
-      width: 129px;
184
-      border-radius: 0 15px 15px 0;
185
-      position: relative;
186
-      //右面部分
187
-      .right-content {
188
-        height: 134px;
189
-        position: absolute;
190
-        top: calc(50% - 45px);
191
-        left: calc(50% - 30px);
192
-        .right-image {
193
-          width: 35px;
194
-          height: 34px;
195
-          margin-left: calc(50% - 41.5px);
196
-          // text-align: center;
197
-        }
198
-
199
-        .right-title {
200
-          font-weight: 700;
201
-          width: 110px;
202
-          font-size: 24px;
203
-          padding-top: 15px;
204
-          text-align: center;
205
-          position: relative;
206
-          left: -22px;
207
-        }
208
-      }
209
-    }
210
-    //线条
211
-    .right-complete-two::after {
212
-      content: "";
213
-      position: absolute;
214
-      top: 15px;
215
-      margin: 26px auto;
216
-      height: 70%;
217
-      border-left: 1px dashed #595959;
218
-      opacity: 0.12;
219
-    }
220
-    //已过期logo
221
-    .right-image-two {
222
-      margin-top: 30px;
223
-      width: 76px;
224
-      height: 66px;
225
-    }
5
+    margin: 30px 30px 0 30px;
226
     .foot {
6
     .foot {
227
-      width: 100%;
228
-      height: 26px;
229
       font-size: 28px;
7
       font-size: 28px;
230
-      font-weight: 400;
231
       color: #c0c8d3;
8
       color: #c0c8d3;
232
-      line-height: 34px;
233
-      margin-top: 40px;
9
+      margin: 40px 0;
234
       text-align: center;
10
       text-align: center;
235
     }
11
     }
236
   }
12
   }

+ 1
- 229
src/pages/PayOrder/style.less View File

65
       color: #ffffff;
65
       color: #ffffff;
66
     }
66
     }
67
   }
67
   }
68
-  // .coupon-list-box {
69
-  //卡片
70
-  // .wrapper {
71
-  //   display: flex;
72
-  //   position: relative;
73
-  //   // margin-top: 600px;
74
-  //   margin: 30px auto;
75
-  //   width: calc(
76
-  //     100% - 50px
77
-  //   ); // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
78
-  //   // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
79
-  //   filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
80
-
81
-  //   .left-complete-one {
82
-  //     padding-top: 87px;
83
-  //     padding-bottom: 43px;
84
-  //     position: relative;
85
-  //     display: flex;
86
-  //     background: @whiteColor;
87
-  //     // background: radial-gradient(circle at top right, transparent 15px, #fff 0 )
88
-  //     //     top right,
89
-  //     //   radial-gradient(circle at bottom right, transparent 15px, #fff 0 ) bottom
90
-  //     //     right;
91
-  //     // background-size: 100% 60%;
92
-  //     background-repeat: no-repeat;
93
-
94
-  //     width: 573px;
95
-  //     border-radius: 15px 0px 0px 15px;
96
-  //     // border-radius: 12px;
97
-
98
-  //     align-items: center;
99
-  //     .left-image-1 {
100
-  //       width: 145px;
101
-  //       height: 44px;
102
-  //       position: absolute;
103
-  //       top: 22px;
104
-  //     }
105
-  //     .left-viewText {
106
-  //       // background-image: url(@Image-ProCard_hot);
107
-  //       // width: 287px;
108
-  //       // width: auto;
109
-  //       // height: 44.3px;
110
-  //       // position: absolute;
111
-  //       // left: 1px;
112
-  //       // top: 28px;
113
-  //       // font-size: 24px;
114
-  //       // color: @whiteColor;
115
-  //       // font-weight: 600;
116
-
117
-  //       background: url(../../assets/icons/ProCard/ProCard_hot.png) no-repeat;
118
-  //       background-size: 100% 100%;
119
-  //       padding: 0 24px 7px 2px;
120
-  //       width: auto;
121
-  //       font-size: 24px;
122
-  //       line-height: 48px;
123
-  //       height: 44.3px;
124
-  //       position: absolute;
125
-  //       top: 20px;
126
-  //       color: @whiteColor;
127
-  //       font-weight: 600;
128
-  //     }
129
-  //     //图片
130
-  //     .title-image {
131
-  //       height: 144px;
132
-  //       margin-left: 20px;
133
-  //       border-radius: 24px;
134
-  //       overflow: hidden;
135
-  //       position: relative;
136
-  //       .image-1 {
137
-  //         width: 144px;
138
-  //         height: 144px;
139
-  //         margin: 0;
140
-  //       }
141
-  //       .image-2 {
142
-  //         width: 89px;
143
-  //         height: 34px;
144
-  //         position: absolute;
145
-  //         left: 0;
146
-  //       }
147
-  //     }
148
-  //     // 商品标题
149
-  //     .title-content {
150
-  //       // padding: 84px 0 56px 20px;
151
-  //       padding-left: 18px;
152
-
153
-  //       .Pro-title {
154
-  //         .title-text {
155
-  //           width: 375px;
156
-  //           overflow: hidden;
157
-  //           text-overflow: ellipsis;
158
-  //           display: -webkit-box; //必须要
159
-  //           -webkit-line-clamp: 1;
160
-  //           -webkit-box-orient: vertical;
161
-  //           word-break: break-all; /* 多出文本省略号代替 */
162
-  //           text-align: left;
163
-  //           font-size: 24px;
164
-  //           padding-bottom: 10px;
165
-  //         }
166
-  //       }
167
-  //       .title-money {
168
-  //         padding-top: 34px;
169
-  //         font-size: 24px;
170
-  //         // color: red;
171
-  //         font-weight: 800;
172
-  //       }
173
-  //       .title-money-2 {
174
-  //         font-size: 18px;
175
-  //         color: #666;
176
-  //         padding-left: 10px;
177
-  //         text-decoration: line-through;
178
-  //       }
179
-
180
-  //       .title-time {
181
-  //         font-size: 24px;
182
-  //         padding-top: 20px;
183
-  //         color: #c0c8d3;
184
-  //       }
185
-  //     }
186
-  //   }
187
-
188
-  //   .right-complete-two {
189
-  //     background: @whiteColor;
190
-
191
-  //     background: radial-gradient(
192
-  //           circle at top right,
193
-  //           transparent 15px,
194
-  //           #fff 0
195
-  //         )
196
-  //         top right,
197
-  //       radial-gradient(circle at bottom right, transparent 15px, #fff 0  0)
198
-  //         bottom right;
199
-  //     background-size: 100% 60%;
200
-  //     background-repeat: no-repeat;
201
-  //     width: 129px;
202
-  //     border-radius: 0 15px 15px 0;
203
-  //     position: relative;
204
-  //     //右面部分
205
-  //     .right-content {
206
-  //       // width: 100px;
207
-  //       // height: 80px;
208
-  //       position: absolute;
209
-  //       top: 50%;
210
-  //       left: 50%;
211
-  //       transform: translate(-50%, -50%);
212
-  //       // border: 1px solid red;
213
-
214
-  //       .right-number {
215
-  //         width: 40px;
216
-  //         font-size: 20px;
217
-  //         border-radius: 4px;
218
-  //         border: 2px solid #999;
219
-  //         margin: auto;
220
-  //         text-align: center;
221
-  //       }
222
-
223
-  //       .right-title {
224
-  //         font-weight: 700;
225
-  //         font-size: 24px;
226
-  //         padding-top: 20px;
227
-  //         text-align: center;
228
-  //       }
229
-  //     }
230
-  //   }
231
-  //   //线条
232
-  //   .right-complete-two::after {
233
-  //     content: "";
234
-  //     position: absolute;
235
-  //     top: 15px;
236
-  //     margin: 26px auto;
237
-  //     height: 70%;
238
-  //     border-left: 1px dashed #595959;
239
-  //     opacity: 0.12;
240
-  //   }
241
-  // }
242
-
243
-  // .right-complete-two {
244
-  //   background: @whiteColor;
245
-  //   background: radial-gradient(circle at top left, transparent 15px, #fff 0 )
246
-  //       top left,
247
-  //     radial-gradient(circle at bottom left, transparent 15px, #fff 0 ) bottom
248
-  //       left;
249
-  //   background-size: 100% 60%;
250
-  //   background-repeat: no-repeat;
251
-  //   width: 129px;
252
-  //   border-radius: 0 15px 15px 0;
253
-  //   position: relative;
254
-  //   //右面部分
255
-  //   .right-content {
256
-  //     // width: 100px;
257
-  //     // height: 80px;
258
-  //     position: absolute;
259
-  //     top: 50%;
260
-  //     left: 50%;
261
-  //     transform: translate(-50%, -50%);
262
-  //     // border: 1px solid red;
263
-
264
-  //     .right-number {
265
-  //       width: 40px;
266
-  //       font-size: 20px;
267
-  //       border-radius: 4px;
268
-  //       border: 2px solid #999;
269
-  //       margin: auto;
270
-  //       text-align: center;
271
-  //     }
272
-
273
-  //     .right-title {
274
-  //       font-weight: 700;
275
-  //       font-size: 24px;
276
-  //       padding-top: 20px;
277
-  //       text-align: center;
278
-  //     }
279
-  //   }
280
-  // }
281
-  // //线条
282
-  // .right-complete-two::after {
283
-  //   content: "";
284
-  //   position: absolute;
285
-  //   top: 15px;
286
-  //   margin: 26px auto;
287
-  //   height: 70%;
288
-  //   border-left: 1px dashed #595959;
289
-  //   opacity: 0.12;
290
-  // }
291
-  // }
292
   //协议条款 + 支付按钮
68
   //协议条款 + 支付按钮
293
   .view-button {
69
   .view-button {
294
     position: fixed;
70
     position: fixed;
339
           border-radius: 50%;
115
           border-radius: 50%;
340
         }
116
         }
341
         .ul-li-textname {
117
         .ul-li-textname {
342
-          // width: 177px;
343
-          display: inline-block;
344
-          height: 19px;
345
-          font-size: 20px;
346
-          font-weight: 400;
118
+          font-size: 25px;
347
           color: #999999;
119
           color: #999999;
348
         }
120
         }
349
       }
121
       }

+ 20
- 18
src/pages/TobeShop/index.jsx View File

1
 import Taro from "@tarojs/taro";
1
 import Taro from "@tarojs/taro";
2
+import { Button, Icon, Text, Textarea, View } from "@tarojs/components";
2
 import { useState, useEffect } from "react";
3
 import { useState, useEffect } from "react";
3
 import withLayout from "@/layouts";
4
 import withLayout from "@/layouts";
4
 import CustomNav from "@/components/CustomNav";
5
 import CustomNav from "@/components/CustomNav";
5
 import { getShopDetail, getShopPackage, getExtendContent } from '@/services/home';
6
 import { getShopDetail, getShopPackage, getExtendContent } from '@/services/home';
7
+import { getVerifyTargetList, putVerifyTarget } from "@/services/payOrder";
8
+import formatTime from '@/utils/formatTime'
6
 import Popup from "@/components/Popup";
9
 import Popup from "@/components/Popup";
7
 import formatPrice from "@/utils/formatPrice";
10
 import formatPrice from "@/utils/formatPrice";
8
 
11
 
13
 import BlackSpot from "@/assets/icons/GuideCheck/BlackSpot.png";
16
 import BlackSpot from "@/assets/icons/GuideCheck/BlackSpot.png";
14
 import food from "@/assets/icons/ProCard/food.png";
17
 import food from "@/assets/icons/ProCard/food.png";
15
 import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
18
 import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
16
-import { Button, Icon, Text, Textarea } from "@tarojs/components";
17
-import { getVerifyTargetList, putVerifyTarget } from "@/services/payOrder";
18
-import formatTime from '@/utils/formatTime'
19
 
19
 
20
 import "./style.less";
20
 import "./style.less";
21
 
21
 
71
   };
71
   };
72
   const ButtonOK = (e) => {
72
   const ButtonOK = (e) => {
73
     if (!checked) return
73
     if (!checked) return
74
-    // setShowDialog(false)
75
     if (showDialog === true) {
74
     if (showDialog === true) {
76
       Taro.showLoading({
75
       Taro.showLoading({
77
         title: '核销中'
76
         title: '核销中'
81
         Taro.hideLoading()
80
         Taro.hideLoading()
82
         setShowDialog(false);
81
         setShowDialog(false);
83
         setConsumption(true);
82
         setConsumption(true);
84
-        Taro.navigateTo({ url: '/pages/MineUserAll/AllOrder/index?tabJump=3' })
85
       }).catch(e => {
83
       }).catch(e => {
86
         Taro.hideLoading()
84
         Taro.hideLoading()
87
         setShowDialog(false);
85
         setShowDialog(false);
104
   };
102
   };
105
 
103
 
106
   return (
104
   return (
107
-    <view className='shop-Eat'>
108
-      <CustomNav title='到店核销' />
105
+    <view className='shop-Eat'>      
106
+      <view className='index-navbar'>
107
+        <CustomNav title='到店核销' />
108
+      </view>
109
       <Popup show={showDialog} maskClosable={false}>
109
       <Popup show={showDialog} maskClosable={false}>
110
-        <view className='Consumption-Now'>您即将核销1张套餐券!</view>
111
-        <text className='Consumption-text'>核销后套餐券不退不换</text>
112
-        <text className='Consumption-text'>请核对无误后再点击确认!</text>
110
+        <View className='Consumption-Now'>真的要翻我的牌子吗?</View>
111
+        <View className='Consumption-text'>核销后套餐券不退不换,</View>
112
+        <View className='Consumption-text'>请核对无误后再点击确认。</View>
113
         <view className='buy-button-box'>
113
         <view className='buy-button-box'>
114
           <button className='button-Cancel' onClick={ButtonCancel}>
114
           <button className='button-Cancel' onClick={ButtonCancel}>
115
             取消
115
             取消
122
       <Popup show={Consumption} maskClosable={false}>
122
       <Popup show={Consumption} maskClosable={false}>
123
         <view className='Perfection-image-view'>
123
         <view className='Perfection-image-view'>
124
           <image src={Perfection} className='Perfection-image' />
124
           <image src={Perfection} className='Perfection-image' />
125
+          <View>
126
+            <text className='tleft'>请和店员说一下:</text><text className='tright'>“我核销好了”</text>
127
+          </View>
125
         </view>
128
         </view>
126
-        <text>核销完成!请与店铺确认!</text>
127
         <view className='buy-button-box'>
129
         <view className='buy-button-box'>
128
           <button className='button-OK' onClick={PerfectionOK}>
130
           <button className='button-OK' onClick={PerfectionOK}>
129
-            完成
131
+            说过了
130
           </button>
132
           </button>
131
         </view>
133
         </view>
132
       </Popup>
134
       </Popup>
161
                     <image className='image-2' src={food}></image>
163
                     <image className='image-2' src={food}></image>
162
                   </view>
164
                   </view>
163
                   <view className='title-content'>
165
                   <view className='title-content'>
164
-                    <view className='Pro-title'>
165
-                      <view className='title-text'>
166
-                        {item.description}
167
-                        <text className='title-money-2'>数量:1张</text>
168
-                      </view>
169
-                    </view>
166
+                    <View className='cpn-card-text'>
167
+                      <View style={{ flex: '1' }}>{(item.description).toString().length > 25 ? (item.description).substring(0, 25) + '...' : (item.description)}</View>
168
+                      <text className='title-money-2'>
169
+                        数量:1张
170
+                      </text>
171
+                    </View>
170
                     <text className='title-money'>
172
                     <text className='title-money'>
171
                       ¥{formatPrice(item.actualPrice)}元<text className='title-money-2'>门市价{formatPrice(item.standPrice)}元</text>
173
                       ¥{formatPrice(item.actualPrice)}元<text className='title-money-2'>门市价{formatPrice(item.standPrice)}元</text>
172
                     </text>
174
                     </text>

+ 37
- 147
src/pages/TobeShop/style.less View File

3
 .shop-Eat {
3
 .shop-Eat {
4
   padding: 0 30px;
4
   padding: 0 30px;
5
   .Consumption-Now {
5
   .Consumption-Now {
6
-    height: 33px;
7
     font-size: 34px;
6
     font-size: 34px;
8
     font-weight: bold;
7
     font-weight: bold;
9
     color: #ff3434;
8
     color: #ff3434;
10
-    text-align: center;
11
-    margin: 60px 0 42px 0;
9
+    margin: 60px 0 32px 0;
12
   }
10
   }
13
   .Consumption-text {
11
   .Consumption-text {
14
-    display: inline-block;
15
-    width: 309px;
16
-    height: 33px;
12
+    line-height: 43px;
17
     font-size: 24px;
13
     font-size: 24px;
18
     font-weight: bold;
14
     font-weight: bold;
19
     color: #333333;
15
     color: #333333;
20
-    text-align: center;
21
-    margin: auto;
22
   }
16
   }
23
   .Perfection-image-view {
17
   .Perfection-image-view {
24
-    width: 150px;
25
-    margin: auto;
26
-
18
+    font-size: 24px;
19
+    font-weight: bold;
27
     .Perfection-image {
20
     .Perfection-image {
28
       width: 54px;
21
       width: 54px;
29
       height: 43px;
22
       height: 43px;
30
-      margin: 70px 0 40px 0;
23
+      margin: 70px auto 40px auto;
24
+    }
25
+    View{
26
+      margin-bottom: 35px;
27
+      .tleft{
28
+        color: #333333;
29
+      }
30
+      .tright{
31
+        font-size: 38px;
32
+        color: #000;
33
+      }
31
     }
34
     }
32
   }
35
   }
33
-
36
+  .weui-dialog__bd{
37
+    padding: 0 67px;
38
+    margin-bottom: 40px;
39
+  }
34
   .position-header {
40
   .position-header {
35
-    background-color: rgba(0, 0, 0, 0);
36
     display: flex;
41
     display: flex;
37
     align-items: center;
42
     align-items: center;
38
     .position-LocationBig {
43
     .position-LocationBig {
63
     }
68
     }
64
     .shop-title-title {
69
     .shop-title-title {
65
       align-items: center;
70
       align-items: center;
66
-
67
       font-size: 32px;
71
       font-size: 32px;
68
       font-weight: 800;
72
       font-weight: 800;
69
       color: #202020;
73
       color: #202020;
71
   }
75
   }
72
 
76
 
73
   .wrapper {
77
   .wrapper {
74
-    margin: auto;
75
-
76
-    margin-top: 40px;
77
     display: flex;
78
     display: flex;
78
-    position: relative;
79
-    // margin-top: 600px;
80
-    // margin: 30px auto;
81
-    // width: 100%;
82
-
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));
86
-
87
-    .card-box-star {
88
-      position: absolute;
89
-      width: auto;
90
-      height: 44.3px;
91
-      left: 200px;
92
-      top: 28px;
93
-      font-size: 20px;
94
-      color: @whiteColor;
95
-      .card-star-image {
96
-        padding-left: 6px;
97
-        width: 21px;
98
-        height: 21px;
99
-      }
100
-      .card-star-text {
101
-        padding-left: 10px;
102
-        font-size: 20px;
103
-        color: #333;
104
-        font-weight: 700;
105
-      }
106
-    }
79
+    filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));    
107
 
80
 
108
     .left-complete-one {
81
     .left-complete-one {
109
-      // padding-left: 64px;
110
-      width: 560px;
111
       padding-top: 87px;
82
       padding-top: 87px;
112
       padding-bottom: 43px;
83
       padding-bottom: 43px;
113
-      position: relative;
114
       display: flex;
84
       display: flex;
115
       background: @whiteColor;
85
       background: @whiteColor;
116
       background: radial-gradient(circle at top right, transparent 15px, #fff 0)
86
       background: radial-gradient(circle at top right, transparent 15px, #fff 0)
119
           right;
89
           right;
120
       background-size: 100% 60%;
90
       background-size: 100% 60%;
121
       background-repeat: no-repeat;
91
       background-repeat: no-repeat;
122
-
123
       border-radius: 15px 0px 0px 15px;
92
       border-radius: 15px 0px 0px 15px;
124
-      // border-radius: 12px;
125
-
126
       align-items: center;
93
       align-items: center;
127
-
128
       .left-image-1 {
94
       .left-image-1 {
129
         width: 145px;
95
         width: 145px;
130
         height: 44px;
96
         height: 44px;
131
         position: absolute;
97
         position: absolute;
132
-        // margin-left: 85px;
133
         top: 22px;
98
         top: 22px;
134
       }
99
       }
135
       .left-viewText {
100
       .left-viewText {
136
-        // background-image: url(@Image-ProCard_hot);
137
-        // width: 287px;
138
-        width: auto;
139
-        height: 44.3px;
140
         position: absolute;
101
         position: absolute;
141
-        // left: 85px;
142
         top: 28px;
102
         top: 28px;
143
         font-size: 20px;
103
         font-size: 20px;
144
         color: @whiteColor;
104
         color: @whiteColor;
146
       //图片
106
       //图片
147
       .title-image {
107
       .title-image {
148
         width: 145px;
108
         width: 145px;
109
+        height: 145px;
149
         margin-left: 20px;
110
         margin-left: 20px;
150
         border-radius: 24px;
111
         border-radius: 24px;
151
         overflow: hidden;
112
         overflow: hidden;
153
         flex: none;
114
         flex: none;
154
         .image-1 {
115
         .image-1 {
155
           width: 100%;
116
           width: 100%;
156
-          height: 145px;
117
+          height: 100%;
157
         }
118
         }
158
         .image-2 {
119
         .image-2 {
159
           width: 89px;
120
           width: 89px;
165
       }
126
       }
166
       // 商品标题
127
       // 商品标题
167
       .title-content {
128
       .title-content {
168
-        // padding: 84px 0 56px 20px;
169
-        padding-left: 18px;
170
-
171
-        .Pro-title {
172
-          .title-text {
173
-            width: 375px;
174
-            overflow: hidden;
175
-            text-overflow: ellipsis;
176
-            // display: -webkit-box; //必须要
177
-            -webkit-line-clamp: 1;
178
-            -webkit-box-orient: vertical;
179
-            // word-break: break-all; /* 多出文本省略号代替 */
180
-            text-align: left;
181
-            font-size: 24px;
182
-            // padding-bottom: 10px;
183
-          }
129
+        padding-left: 20px;
130
+        .cpn-card-text {
131
+          font-size: 24px;
132
+          font-weight: 400;
133
+          color: #333333;
134
+          line-height: 40px;
135
+          vertical-align: baseline;
136
+          display: flex;
184
         }
137
         }
185
         .title-money {
138
         .title-money {
186
-          // padding-top: 34px;
187
           font-size: 24px;
139
           font-size: 24px;
188
-          // color: red;
189
           display: inline-block;
140
           display: inline-block;
190
           font-weight: 800;
141
           font-weight: 800;
191
           margin: 15px auto;
142
           margin: 15px auto;
192
         }
143
         }
193
         .title-money-2 {
144
         .title-money-2 {
194
-          height: 19px;
195
           font-size: 20px;
145
           font-size: 20px;
196
           font-weight: 400;
146
           font-weight: 400;
197
           color: #333333;
147
           color: #333333;
198
           padding-left: 50px;
148
           padding-left: 50px;
199
         }
149
         }
200
-
201
         .title-time {
150
         .title-time {
202
           font-size: 24px;
151
           font-size: 24px;
203
-          // padding-top: 20px;
204
           color: #c0c8d3;
152
           color: #c0c8d3;
205
         }
153
         }
206
-        .title-position-on {
207
-          display: flex;
208
-          font-size: 20px;
209
-          .title-position {
210
-            width: 18px;
211
-            height: 24px;
212
-            padding-right: 10px;
213
-            padding-top: 5px;
214
-          }
215
-          .title-position-image {
216
-            align-items: center;
217
-            font-size: 20px;
218
-            color: #333;
219
-          }
220
-          .title-on {
221
-            // margin-bottom: 10px;
222
-            padding-top: 5px;
223
-            padding-left: 40px;
224
-            width: 21px;
225
-            height: 21px;
226
-            padding-right: 10px;
227
-          }
228
-          .title-on-text {
229
-            align-items: center;
230
-
231
-            font-size: 20px;
232
-            color: #333;
233
-          }
234
-        }
235
       }
154
       }
236
     }
155
     }
237
   }
156
   }
245
     background-repeat: no-repeat;
164
     background-repeat: no-repeat;
246
     width: 129px;
165
     width: 129px;
247
     border-radius: 0 15px 15px 0;
166
     border-radius: 0 15px 15px 0;
248
-    // position: relative;
249
     //右面部分
167
     //右面部分
250
     .right-content {
168
     .right-content {
251
-      // width: 100px;
252
       height: 120px;
169
       height: 120px;
253
       position: absolute;
170
       position: absolute;
254
       top: 50%;
171
       top: 50%;
255
       left: 50%;
172
       left: 50%;
256
       transform: translate(-50%, -50%);
173
       transform: translate(-50%, -50%);
257
-      // border: 1px solid red;
258
       .Check_OK-box {
174
       .Check_OK-box {
259
         position: relative;
175
         position: relative;
260
         left: 37vw;
176
         left: 37vw;
264
           height: 34px;
180
           height: 34px;
265
         }
181
         }
266
       }
182
       }
267
-      .right-number {
268
-        // width: 32px;
269
-        // font-size: 20px;
270
-        // border-radius: 4px;
271
-        // border: 2px solid #999;
272
-        // margin: auto;
273
-        // text-align: center;
274
-      }
275
-      .right-image {
276
-        // float: convert();
277
-        width: 36px;
278
-        height: 36px;
279
-        margin: 0 auto;
280
-        align-items: center;
281
-        margin: auto;
282
-        padding-left: 8px;
283
-        // text-align: center;
284
-      }
285
-
286
-      .right-title {
287
-        font-weight: 700;
288
-        font-size: 24px;
289
-        padding-top: 10px;
290
-        text-align: center;
291
-      }
292
     }
183
     }
293
   }
184
   }
294
   .button-info {
185
   .button-info {
295
-    margin-bottom: 70px;
296
-
186
+    margin-bottom: 80px;
187
+    position: absolute;
188
+    bottom: 0;
189
+    width: calc(100% - 60px);
297
     .button-box {
190
     .button-box {
298
-      margin: 60px 0;
299
-      width: calc(100% - 60px);
300
-      height: 88px;
301
-      line-height: 88px;
191
+      height: 92px;
192
+      line-height: 92px;
302
       background: #274291;
193
       background: #274291;
303
       border-radius: 12px;
194
       border-radius: 12px;
304
       color: @whiteColor;
195
       color: @whiteColor;
306
   }
197
   }
307
   //弹窗确认核销按钮
198
   //弹窗确认核销按钮
308
   .buy-button-box {
199
   .buy-button-box {
309
-    width: 100%;
310
-    margin: 40px 0 0 0;
200
+    margin: 50px 0 0 0;
311
 
201
 
312
     .button-Cancel {
202
     .button-Cancel {
313
       display: inline-block;
203
       display: inline-block;

+ 4
- 62
src/pages/index/tabs/Guide.jsx View File

48
   //全部指南个数
48
   //全部指南个数
49
   const [AllextNum, setAllextNum] = useState(0)
49
   const [AllextNum, setAllextNum] = useState(0)
50
   //指南当前页数
50
   //指南当前页数
51
-  const [epage, setEpage] = useState(2)
52
   const extendMore = () => {
51
   const extendMore = () => {
53
-    setEpage(epage + 1)
54
-    getExtendContent('room', roomId, { pageNum: epage }).then((res) => {
52
+    getExtendContent('room', roomId, { pageNum: 99999 }).then((res) => {
55
       setExtend([...extend, ...res.records])
53
       setExtend([...extend, ...res.records])
56
       setNewextNum(newextNum + res.records.length)
54
       setNewextNum(newextNum + res.records.length)
57
     })
55
     })
166
           ifroomId === 'havenot' && (
164
           ifroomId === 'havenot' && (
167
             <view className='Guide-image-text-box'>
165
             <view className='Guide-image-text-box'>
168
               <image className='Guide-images' src={sleep} />
166
               <image className='Guide-images' src={sleep} />
169
-              <view className='Guide-text'>休息一下,休息一下~</view>
167
+              <view className='Guide-text'>您还没有入住订单哟~</view>
170
             </view>
168
             </view>
171
           )
169
           )
172
         }
170
         }
174
         {
172
         {
175
           ifroomId === 'reality' && (
173
           ifroomId === 'reality' && (
176
             <view>
174
             <view>
177
-              {/* 
178
-              <view className='MessageCard'>
179
-                <view className='MessageCard-title1'>
180
-                  <text className='MessageCard-left'>----------</text>
181
-                  名称
182
-                  <text className='MessageCard-right'>----------</text>
183
-                </view>
184
-                <view className='MessageCard-content'>
185
-                  <view className='MessageCard-name' >{taRoomContent?.roomName}</view>
186
-                </view>
187
-              </view>
188
-              <view className='MessageCard-hotle'>
189
-                <view className='MessageCard-title1-hotle'>
190
-                  <text className='MessageCard-left-hotle'>----------</text>
191
-                  民宿位置
192
-                  <text className='MessageCard-right-hotle'>----------</text>
193
-                </view>
194
-                <view className='MessageCard-content-hotle'>
195
-                  <view className='MessageCard-name-hotle' >{taRoomContent?.address}</view>
196
-                </view>
197
-                <view className='MessageCard-button-RoomName-hotle' onClick={() => { goRoomMap() }}>
198
-                  <image className='MessageCard-image-hotle' src={GoHere} />
199
-                  <text className='MessageCard-text-hotle'  >去这里</text>
200
-                </view>
201
-              </view>
202
-              <view className='MessageCard-parkView'>
203
-                <view className='MessageCard-title1-parkView'>
204
-                  <text className='MessageCard-left-parkView'>----------</text>
205
-                  停车位置
206
-                  <text className='MessageCard-right-parkView'>----------</text>
207
-                </view>
208
-                <view className='MessageCard-content-parkView'>
209
-                  <view className='MessageCard-name-parkView' >{taRoomContent?.parkingAddress}</view>
210
-                </view>
211
-                <view className='MessageCard-button-Park-parkView' onClick={() => { goParkMap() }} style={{ display: parkingButtonStyle }} >
212
-                  <image className='MessageCard-image-parkView' src={Taxi} />
213
-                  <text className='MessageCard-text-parkView'  >去这里</text>
214
-                </view>
215
-              </view>
216
-              <view className='MessageCard'>
217
-                <view className='MessageCard-title1'>
218
-                  <text className='MessageCard-left'>----------</text>
219
-                  WiFi信息
220
-                  <text className='MessageCard-right'>----------</text>
221
-                </view>
222
-                <view className='MessageCard-content' style={{ display: wifiButtonStyle }} >
223
-                  <view className='MessageCard-name' >名称:{taRoomContent?.wifiName}</view>
224
-                  <view className='MessageCard-info'  ><text className='MessageCard-name'>密码:</text>{taRoomContent?.wifiPassword}</view>
225
-                </view>
226
-
227
-                <view className='MessageCard-button' onClick={() => { wifiCopy() }} style={{ display: wifiButtonStyle }}>
228
-                  <image className='MessageCard-image' src={WiFi} />
229
-                  <text className='MessageCard-text'>复制</text>
230
-                </view>
231
-              </view> */}
232
-
233
 
175
 
234
               <view className='room-box-info-ROOM'>
176
               <view className='room-box-info-ROOM'>
235
                 <view className='room-bi-name-ROOM' >
177
                 <view className='room-bi-name-ROOM' >
288
                   <text className='title-title-boss' >更多指引</text>
230
                   <text className='title-title-boss' >更多指引</text>
289
                 </view>
231
                 </view>
290
                 {(extend || []).map((item, index) => <MoreGuide key={(index)} item={item} />)}
232
                 {(extend || []).map((item, index) => <MoreGuide key={(index)} item={item} />)}
291
-
233
+                {/* 
292
                 <view className='showMore' style={{ display: newextNum == AllextNum ? 'none' : '' }} onClick={extendMore}>
234
                 <view className='showMore' style={{ display: newextNum == AllextNum ? 'none' : '' }} onClick={extendMore}>
293
                   <view>点击查看更多</view>
235
                   <view>点击查看更多</view>
294
                   <image src={showMore} className='moreTip' />
236
                   <image src={showMore} className='moreTip' />
295
-                </view>
237
+                </view> */}
296
               </view>
238
               </view>
297
             </view>
239
             </view>
298
           )
240
           )

+ 0
- 40
src/pages/index/tabs/GuideCss/style.less View File

337
         font-weight: 700;
337
         font-weight: 700;
338
       }
338
       }
339
     }
339
     }
340
-    .left-complete-one {
341
-      // 商品标题
342
-      .title-content {
343
-        .title-time {
344
-          font-size: 24px;
345
-          // padding-top: 20px;
346
-          color: #c0c8d3;
347
-        }
348
-        .title-position-on {
349
-          display: flex;
350
-          font-size: 20px;
351
-          .title-position {
352
-            width: 18px;
353
-            height: 24px;
354
-            padding-right: 10px;
355
-            padding-top: 5px;
356
-          }
357
-          .title-position-image {
358
-            align-items: center;
359
-            font-size: 20px;
360
-            color: #333;
361
-          }
362
-
363
-          .title-on {
364
-            // margin-bottom: 10px;
365
-            padding-top: 5px;
366
-            padding-left: 40px;
367
-            width: 21px;
368
-            height: 21px;
369
-            padding-right: 10px;
370
-          }
371
-          .title-on-text {
372
-            align-items: center;
373
-
374
-            font-size: 20px;
375
-            color: #333;
376
-          }
377
-        }
378
-      }
379
-    }
380
   }
340
   }
381
   .right-complete-two {
341
   .right-complete-two {
382
     //右面部分
342
     //右面部分

+ 0
- 19
src/services/guide.js View File

1
-//入住指引模块
2
-import request from '@/utils/request'
3
-
4
-/**
5
- * 民宿详情
6
- * @param {*} id 
7
- * @returns 
8
- * 看home.js里面getHotelDetail
9
- */
10
-/**
11
- * 套餐详情
12
- * @param {*} id 
13
- * @returns 
14
- */
15
-/**
16
- * 套餐列表绑定民宿老板id
17
- * @param {*} id 
18
- * @returns 
19
- */

+ 1
- 11
src/services/mine.js View File

5
  * @param {*} data 
5
  * @param {*} data 
6
  * @returns 
6
  * @returns 
7
  */
7
  */
8
- export const saveEvaluation = (data) => request('/taEvaluation', { method: 'post', data })
9
-
10
- /**
11
- * 查看评价详情
12
- * @param {*} id 
13
- * @returns 
14
- */
15
-  export const getEvaluationDetail = (id) => request(`/taEvaluation/${id}`)
16
-
17
- //订单列表用哪个表    
18
-//收藏列表
8
+ export const saveEvaluate = (type,id,data) => request(`/${type}/${id}/evaluate`, { method: 'post', data })
19
 
9
 
20
 /**
10
 /**
21
  * 联系我们
11
  * 联系我们

+ 0
- 9
src/services/payOrder.js View File

55
 
55
 
56
 
56
 
57
 
57
 
58
-/**
59
-* 评价
60
-* @param {*} id
61
-* @returns 
62
-*/
63
-export const orderEvaluation = (targetType, targetId) => request(`/${targetType}/${targetId}/evaluate`, { method: 'post' })
64
-
65
-
66
-
67
 /**
58
 /**
68
 * 删除已支付订单
59
 * 删除已支付订单
69
 * @param {*} id
60
 * @param {*} id

+ 1
- 1
src/shop/components/ShopKeeper/shopKeeper.jsx View File

16
 
16
 
17
 
17
 
18
 export default (props) => {
18
 export default (props) => {
19
-  const { shopList, shop, onHotelChange, verifiedOrder, shopMoney, onVarified, onVarifiedTwo, setVer, shopId, amountType } = props
19
+  const { shopList, shop, onHotelChange, verifiedOrder, shopMoney, onVarified } = props
20
   const { params } = useRouter()
20
   const { params } = useRouter()
21
   const { tabJump } = params || {}
21
   const { tabJump } = params || {}
22
 
22
 

+ 13
- 3
src/shop/components/Sparead/spreadMoney.jsx View File

1
-import { useState,  useMemo } from 'react'
1
+import { useState, useMemo } from 'react'
2
 import Taro from '@tarojs/taro'
2
 import Taro from '@tarojs/taro'
3
 import List from '@/components/List';
3
 import List from '@/components/List';
4
 import Picker from '@/components/Picker'
4
 import Picker from '@/components/Picker'
5
-import {getAccount} from '@/services/shopBoss'
5
+import { getAccount } from '@/services/shopBoss'
6
 import ShopCommission from '@/components/ShopCommission'
6
 import ShopCommission from '@/components/ShopCommission'
7
 import eyes from '@/assets/icons/shopKeeper/eyesON.png'
7
 import eyes from '@/assets/icons/shopKeeper/eyesON.png'
8
 import ceyes from '@/assets/icons/shopKeeper/eyesOFF.png'
8
 import ceyes from '@/assets/icons/shopKeeper/eyesOFF.png'
54
   return (
54
   return (
55
     <view>
55
     <view>
56
       <ToggleRole showCutover={showCutover} maskClosable={showCutover} onClose={onClose} role='shop' />
56
       <ToggleRole showCutover={showCutover} maskClosable={showCutover} onClose={onClose} role='shop' />
57
+
57
       <view style={{ padding: '30rpx', height: '100%' }}>
58
       <view style={{ padding: '30rpx', height: '100%' }}>
59
+        <scroll-view scrollY style={{ height: 'calc(100vh - 120px)' }}>
60
+
58
           <view className='storexx'>
61
           <view className='storexx'>
62
+
59
             <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder="请选择商铺" value={shop?.shopId} kv={['shopName', 'shopId']} dicts={shopList} onChange={handleHotelChange} /></view>
63
             <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder="请选择商铺" value={shop?.shopId} kv={['shopName', 'shopId']} dicts={shopList} onChange={handleHotelChange} /></view>
60
             <view onClick={ShowMoldeOn} className='User-info-cutover'>
64
             <view onClick={ShowMoldeOn} className='User-info-cutover'>
61
               <image className='User-info-cutover-image' src={cutoverUser} />
65
               <image className='User-info-cutover-image' src={cutoverUser} />
77
                   <image className='micon2' src={isMomth ? eyes : ceyes} onClick={handleMonth}></image>
81
                   <image className='micon2' src={isMomth ? eyes : ceyes} onClick={handleMonth}></image>
78
                 </view></view>
82
                 </view></view>
79
             </view>
83
             </view>
84
+
80
           </view>
85
           </view>
86
+
87
+
81
           <view className='title'>推广收入记录</view>
88
           <view className='title'>推广收入记录</view>
82
           <List
89
           <List
83
             style={{ height: 'calc(100% - 145px)' }}
90
             style={{ height: 'calc(100% - 145px)' }}
87
             render={({ item, index }) => <ShopCommission key={(index)} item={item} />}
94
             render={({ item, index }) => <ShopCommission key={(index)} item={item} />}
88
           >
95
           >
89
           </List>
96
           </List>
97
+        </scroll-view>
98
+
90
       </view>
99
       </view>
91
-    </view>
100
+
101
+    </view >
92
   )
102
   )
93
 }
103
 }