Ver código fonte

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

吃个甘蔗嚼一年 3 anos atrás
pai
commit
5924fb18f5

+ 1
- 1
src/components/CompoentsOrder/OrderCard/index.jsx Ver arquivo

@@ -77,7 +77,7 @@ export default (props) => {
77 77
   return (
78 78
     <>
79 79
       {
80
-        sh != '1' || kkp == '1' ? <view className='OrderNumber'>订单编号:{item.orderId}</view> : null
80
+        sh != '1' || kkp != '1' ? <view className='OrderNumber'>订单编号:{item.orderId}</view> : null
81 81
       }
82 82
       {
83 83
         item.status === 0 ? <SlideViewOrder del onDelete={() => handeDelete(item)} >

+ 1
- 1
src/components/CouponCard/Action/IconAction.jsx Ver arquivo

@@ -18,7 +18,7 @@ export default (props) => {
18 18
     <View className='cpn-action cpn-icon-action'>
19 19
       <View onClick={handleClick}>
20 20
         <Image src={icon} />
21
-        <Text>{text}</Text>
21
+        {text?<Text>{text}</Text>:null}
22 22
       </View>
23 23
     </View>
24 24
   )

+ 1
- 1
src/components/InputNumber/index.jsx Ver arquivo

@@ -41,7 +41,7 @@ export default (props) => {
41 41
     <View className={cls} style={style}>
42 42
       <View>
43 43
         <View className='input-number' onClick={handleSub}>-</View>
44
-        <Input value={value} onInput={handleInput} type='number' className='input-number' {...leftProps} />
44
+        <Input min='1' type='number' value={value} onInput={handleInput}  className='input-number' {...leftProps} />
45 45
         <View className='input-number' onClick={handleAdd}>+</View>
46 46
       </View>
47 47
     </View>

+ 2
- 5
src/components/OrderMolded/index.jsx Ver arquivo

@@ -1,6 +1,6 @@
1 1
 import { useState } from 'react'
2 2
 
3
-import { Button, Radio } from '@tarojs/components'
3
+import { Button, Radio, View } from '@tarojs/components'
4 4
 import PayOrderCard from '@/components/PayOrderCard'
5 5
 import formatTimes from '@/utils/formatTime'
6 6
 import food from '@/assets/icons/ProCard/food.png'
@@ -13,10 +13,7 @@ export default (props) => {
13 13
   return (
14 14
     <view class='wrapper-box-cardOrder'>
15 15
       <view class='left-complete-one-cardOrder'>
16
-        <image className='left-image-1-cardOrder' src={ProCard_hot}></image>
17
-        <view className='left-viewText-cardOrder'>
18
-          返现¥{(item.cashback / 100).toFixed(2)}
19
-        </view>
16
+        <View className='left-viewText-payOrder'>返现¥{(item.cashback / 100).toFixed(2)}</View>
20 17
         <view className='title-image-cardOrder'>
21 18
           <image className='image-1-cardOrder' mode='scaleToFill' src={item.poster}></image>
22 19
           <image className='image-2-cardOrder' src={food}></image>

+ 10
- 28
src/components/OrderMolded/style.less Ver arquivo

@@ -6,48 +6,30 @@
6 6
   .left-complete-one-cardOrder {
7 7
     padding-top: 87px;
8 8
     padding-bottom: 21px;
9
-    position: relative;
10 9
     display: flex;
11
-    background: @whiteColor;
12
-    // background: radial-gradient(circle at top right, transparent 15px, #fff 0 ) top
13
-    //     right,
14
-    //   radial-gradient(circle at bottom right, transparent 15px, #fff 0 ) bottom
15
-    //     right;
16
-    // background-size: 100% 60%;
17
-    background-repeat: no-repeat;
18
-
19
-    width: 573px;
20 10
     border-radius: 15px 0px 0px 15px;
21
-    // border-radius: 12px;
22
-
23
-    align-items: center;
24
-    .left-image-1-cardOrder {
25
-      width: 145px;
26
-      height: 44px;
27
-      position: absolute;
28
-      top: 22px;
29
-    }
30
-    .left-viewText-cardOrder {
31
-      // background-image: url(@Image-ProCard_hot);
32
-      // width: 287px;
33
-      width: auto;
11
+    align-items: center;    
12
+    .left-viewText-payOrder {
13
+      background: url(../../assets/icons/ProCard/ProCard_hot.png) no-repeat;
14
+      background-size: 100% 100%;
15
+      padding: 0 24px 7px 2px;
16
+      font-size: 24px;
17
+      line-height: 48px;
34 18
       height: 44.3px;
35 19
       position: absolute;
36
-      left: 1px;
37
-      top: 28px;
38
-      font-size: 24px;
20
+      top: 20px;
39 21
       color: @whiteColor;
40 22
       font-weight: 600;
41 23
     }
42 24
     //图片
43 25
     .title-image-cardOrder {
44
-      width: 145px;
26
+      width: 100%;
45 27
       margin-left: 20px;
46 28
       border-radius: 24px;
47 29
       overflow: hidden;
48 30
       position: relative;
49 31
       .image-1-cardOrder {
50
-        width: 100%;
32
+        width: 145px;
51 33
         height: 145px;
52 34
       }
53 35
       .image-2-cardOrder {

+ 3
- 2
src/pages/MineUserAll/RefundMoney/CheckRefund/index.jsx Ver arquivo

@@ -114,7 +114,7 @@ export default withLayout((props) => {
114 114
       </view>
115 115
       <View className='index-container'>
116 116
         <View className='box-content'>
117
-          <scroll-view scroll-y style='height: calc(100vh - 65px);' >
117
+          <scroll-view scroll-y style='height: 100%;' >
118 118
             <view className='Refund-Content-box'>
119 119
               <view className='title-image'>
120 120
                 <image
@@ -204,7 +204,7 @@ export default withLayout((props) => {
204 204
               <view className='ul-li-view'></view>
205 205
               <text className='ul-li-textname'>退款将在七个工作日内原路退还。</text>
206 206
             </view>
207
-            <view className='button-info'>
207
+            <view className='button-info' >
208 208
               <Button className='button-box' onClick={() => onRefund()}>
209 209
                 提交申请
210 210
               </Button>
@@ -212,6 +212,7 @@ export default withLayout((props) => {
212 212
           </scroll-view>
213 213
         </View>
214 214
       </View>
215
+
215 216
     </view >
216 217
   );
217 218
 });

+ 4
- 3
src/pages/MineUserAll/RefundMoney/CheckRefund/style.less Ver arquivo

@@ -82,8 +82,8 @@
82 82
     }
83 83
   }
84 84
 
85
-  .button-info {
86
-    margin-bottom: 80px;
85
+  .button-info{
86
+    padding-bottom: 80px;
87 87
     .button-box {
88 88
       margin-top: 60px;
89 89
       height: 92px;
@@ -95,4 +95,5 @@
95 95
       letter-spacing: 0.1em;
96 96
     }
97 97
   }
98
-}
98
+  
99
+}

+ 0
- 28
src/pages/PayOrder/index.jsx Ver arquivo

@@ -15,24 +15,18 @@ import "./style.less";
15 15
 
16 16
 
17 17
 export default withLayout((props) => {
18
-  //#region 
19 18
   const { router, person } = props;
20 19
   const { packageId, orderId } = props.router.params;
21
-
22 20
   const [payInfo, setPayInfo] = useState();
23
-
24 21
   // 是否已阅读协议
25 22
   const [agreement, setAgreement] = useState(false);
26 23
   // 总价 totalPrice
27 24
   const [totalPrice, setTotalPrice] = useState({});
28 25
   const [list, setList] = useState([]);
29
-
30 26
   const [BuyNumber, setBuyNumber] = useState(1);
31 27
   const [detail, setDetail] = useState({});
32 28
   const [showDialog, setShowDialog] = useState(false);
33 29
 
34
-  const [DisabledBool, setDisabledBool] = useState(false);
35
-
36 30
   const ShowMoldeOn = (e) => {
37 31
     if (packageId) {
38 32
       setBuyNumber(e.amount || 1);
@@ -62,20 +56,6 @@ export default withLayout((props) => {
62 56
     }
63 57
   };
64 58
 
65
-  const NumberAdd = () => {
66
-    setBuyNumber(BuyNumber + 1);
67
-  };
68
-
69
-  const NumberCut = () => {
70
-    if (DisabledBool) return;
71
-    setBuyNumber(BuyNumber - 1);
72
-  };
73
-
74
-  const onInput = (e) => {
75
-    let values = e.detail.value;
76
-    setBuyNumber(values - 0);
77
-  };
78
-
79 59
   const requestPayment = (params) => {
80 60
     Taro.hideLoading()
81 61
     Taro.requestPayment({
@@ -174,14 +154,6 @@ export default withLayout((props) => {
174 154
 
175 155
   }
176 156
 
177
-  useEffect(() => {
178
-    if (BuyNumber < 2) {
179
-      setDisabledBool(true);
180
-    } else {
181
-      setDisabledBool(false);
182
-    }
183
-  }, [BuyNumber]);
184
-
185 157
   useEffect(() => {
186 158
     let total = {
187 159
       cashback: 0,

+ 1
- 1
src/pages/TobeShop/Card/index.jsx Ver arquivo

@@ -11,7 +11,7 @@ const Action = CouponCard.Action
11 11
 export default (props) => {
12 12
   const { item, checked, handleCheck } = props
13 13
 
14
-  const PayAction = <Action.Icon icon={checked?.indexOf(item.verifyNo) > -1 ? Check_OK : Check_NO} onClick={handleCheck} />
14
+  const PayAction = <Action.Icon icon={checked?.indexOf(item.verifyNo) > -1 ? Check_OK : Check_NO} onClick={() => handleCheck(item.verifyNo)} />
15 15
   return (
16 16
     <CouponCard action={PayAction} onClick={() => handleCheck(item.verifyNo)}>
17 17
       <CouponMedia>

+ 3
- 76
src/pages/TobeShop/index.jsx Ver arquivo

@@ -142,7 +142,7 @@ export default withLayout((props) => {
142 142
 
143 143
   const btnText = ['确认核销', checked && checked.length > 0 ? `(${checked.length})` : undefined].filter(Boolean).join(' ')
144 144
   return (
145
-    <view className='shop-Eat'>
145
+    <view className='page-index shop-Eat'>
146 146
       <view className='index-navbar'>
147 147
         <CustomNav title='到店核销' />
148 148
       </view>
@@ -190,83 +190,10 @@ export default withLayout((props) => {
190 190
         <SpinBox loading={loading}>
191 191
           {(list || []).map((item) => {
192 192
             return (
193
-              <TBCard item={item} key={item.verifyNo} checked={checked} handleCheck={handleCheck} />
194
-              // <CouponCard action={PayAction} onClick={() => handleCheck(item.verifyNo)}>
195
-              //   <CouponMedia>
196
-              //     <CouponMedia.Header
197
-              //       cashback={item.cashback}
198
-              //       image={item.poster}
199
-              //       badge='food'
200
-              //     />
201
-              //     <CouponMedia.Body star={null}>
202
-              //       <View className='orderCard'>
203
-              //         <View className='cpn-card-text'>
204
-              //           <View style={{ flex: '1' }}>{(item.description).toString().length > 25 ? (item.description).substring(0, 25) + '...' : (item.description)}</View>
205
-              //           <text className={ 'title-money-2'}>
206
-              //             数量:{item.amount}张
207
-              //           </text>
208
-              //         </View>
209
-              //         <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
210
-              //           <Text className='cpn-card-text_mn'>¥{`${(item.actualPrice / 100)?.toFixed(2)}元`}</Text>
211
-              //         </View>
212
-              //         <View className='cpn-md-act'>
213
-              //           <view className='title-time'>
214
-              //             {
215
-              //               '有效期:' + formatTime(item?.createDate, "yyyy/MM/dd") + '-' +
216
-              //               formatTime(item.expireDate, "yyyy/MM/dd")
217
-              //             }
218
-              //           </view>
219
-              //         </View>
220
-              //       </View>
221
-              //     </CouponMedia.Body>
222
-              //   </CouponMedia>
223
-              // </CouponCard>
224
-
225
-
226
-
227
-
228
-            )
229
-            // <view class='wrapper' key={item.verifyNo} onClick={() => handleCheck(item.verifyNo)}>
230
-            //   <view class='left-complete-one'>
231
-            //     <image className='left-image-1' src={ProCard_hot}></image>
232
-            //     <view className='left-viewText'>返现¥{(item.cashback / 100).toFixed(2)}</view>
233
-            //     <view className='title-image'>
234
-            //       <image
235
-            //         className='image-1'
236
-            //         mode='scaleToFill'
237
-            //         src={item.poster}
238
-            //       ></image>
239
-            //       <image className='image-2' src={food}></image>
240
-            //     </view>
241
-            //     <view className='title-content'>
242
-            //       <View className='cpn-card-text'>
243
-            //         <View style={{ flex: '1' }}>{(item.description).toString().length > 25 ? (item.description).substring(0, 25) + '...' : (item.description)}</View>
244
-            //         <text className='title-money-2'>
245
-            //           数量:1张
246
-            //         </text>
247
-            //       </View>
248
-            //       <text className='title-money'>
249
-            //         ¥{formatPrice(item.actualPrice)}元<text className='title-money-2'>门市价{formatPrice(item.standPrice)}元</text>
250
-            //       </text>
251
-            //       <view className='title-time'>
252
-            //         有效期:{formatTime(item?.createDate, "yyyy/MM/dd")}-
253
-            //         {formatTime(item?.expireDate, "yyyy/MM/dd")}
254
-            //       </view>
255
-            //     </view>
256
-            //   </view>
257
-
258
-            //   <view class='right-complete-two'>
259
-            //     <view className='right-content'>
260
-            //       <view className='Check_OK-box'>
261
-            //         <image className='Check_OK-image' src={checked.indexOf(item.verifyNo) > -1 ? Check_OK : Check_NO} />
262
-            //       </view>
263
-            //     </view>
264
-            //   </view>
265
-            // </view>
266
-
193
+              <TBCard item={item} key={item.verifyNo} checked={checked} handleCheck={handleCheck} />             
194
+            )           
267 195
           })}
268 196
         </SpinBox>
269
-
270 197
         <view className='button-info'>
271 198
           <Button className='button-box' onClick={handleVerifyClick}>
272 199
             {btnText}

+ 0
- 114
src/pages/TobeShop/style.less Ver arquivo

@@ -33,10 +33,6 @@
33 33
       }
34 34
     }
35 35
   }
36
-  .weui-dialog__bd{
37
-    padding: 0 67px;
38
-    margin-bottom: 40px;
39
-  }
40 36
   .position-header {
41 37
     display: flex;
42 38
     align-items: center;
@@ -62,7 +58,6 @@
62 58
     .shop-title-image-cup {
63 59
       width: 32px;
64 60
       height: 32px;
65
-      // margin-top: 10px;
66 61
       padding-right: 15px;
67 62
       align-items: center;
68 63
     }
@@ -73,115 +68,6 @@
73 68
       color: #202020;
74 69
     }
75 70
   }
76
-
77
-  .wrapper {
78
-    display: flex;
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
-      display: flex;
85
-      background: @whiteColor;
86
-      background: radial-gradient(circle at top right, transparent 15px, #fff 0)
87
-          top right,
88
-        radial-gradient(circle at bottom right, transparent 15px, #fff 0) bottom
89
-          right;
90
-      background-size: 100% 60%;
91
-      background-repeat: no-repeat;
92
-      border-radius: 15px 0px 0px 15px;
93
-      align-items: center;
94
-      .left-image-1 {
95
-        width: 145px;
96
-        height: 44px;
97
-        position: absolute;
98
-        top: 22px;
99
-      }
100
-      .left-viewText {
101
-        position: absolute;
102
-        top: 28px;
103
-        font-size: 20px;
104
-        color: @whiteColor;
105
-      }
106
-      //图片
107
-      .title-image {
108
-        width: 145px;
109
-        height: 145px;
110
-        margin-left: 20px;
111
-        border-radius: 24px;
112
-        overflow: hidden;
113
-        position: relative;
114
-        flex: none;
115
-        .image-1 {
116
-          width: 100%;
117
-          height: 100%;
118
-        }
119
-        .image-2 {
120
-          width: 89px;
121
-          height: 34px;
122
-          position: absolute;
123
-          left: 0;
124
-          top: 0;
125
-        }
126
-      }
127
-      // 商品标题
128
-      .title-content {
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;
137
-        }
138
-        .title-money {
139
-          font-size: 24px;
140
-          display: inline-block;
141
-          font-weight: 800;
142
-          margin: 15px auto;
143
-        }
144
-        .title-money-2 {
145
-          font-size: 20px;
146
-          font-weight: 400;
147
-          color: #333333;
148
-          padding-left: 50px;
149
-        }
150
-        .title-time {
151
-          font-size: 24px;
152
-          color: #c0c8d3;
153
-        }
154
-      }
155
-    }
156
-  }
157
-  .right-complete-two {
158
-    background: @whiteColor;
159
-    background: radial-gradient(circle at top left, transparent 15px, #fff 0)
160
-        top left,
161
-      radial-gradient(circle at bottom left, transparent 15px, #fff 0) bottom
162
-        left;
163
-    background-size: 100% 60%;
164
-    background-repeat: no-repeat;
165
-    width: 129px;
166
-    border-radius: 0 15px 15px 0;
167
-    //右面部分
168
-    .right-content {
169
-      height: 120px;
170
-      position: absolute;
171
-      top: 50%;
172
-      left: 50%;
173
-      transform: translate(-50%, -50%);
174
-      .Check_OK-box {
175
-        position: relative;
176
-        left: 37vw;
177
-        top: 6vw;
178
-        .Check_OK-image {
179
-          width: 34px;
180
-          height: 34px;
181
-        }
182
-      }
183
-    }
184
-  }
185 71
   .button-info {
186 72
     margin-bottom: 80px;
187 73
     position: absolute;