瀏覽代碼

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

吃个甘蔗嚼一年 3 年之前
父節點
當前提交
5924fb18f5

+ 1
- 1
src/components/CompoentsOrder/OrderCard/index.jsx 查看文件

77
   return (
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
         item.status === 0 ? <SlideViewOrder del onDelete={() => handeDelete(item)} >
83
         item.status === 0 ? <SlideViewOrder del onDelete={() => handeDelete(item)} >

+ 1
- 1
src/components/CouponCard/Action/IconAction.jsx 查看文件

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

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

41
     <View className={cls} style={style}>
41
     <View className={cls} style={style}>
42
       <View>
42
       <View>
43
         <View className='input-number' onClick={handleSub}>-</View>
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
         <View className='input-number' onClick={handleAdd}>+</View>
45
         <View className='input-number' onClick={handleAdd}>+</View>
46
       </View>
46
       </View>
47
     </View>
47
     </View>

+ 2
- 5
src/components/OrderMolded/index.jsx 查看文件

1
 import { useState } from 'react'
1
 import { useState } from 'react'
2
 
2
 
3
-import { Button, Radio } from '@tarojs/components'
3
+import { Button, Radio, View } from '@tarojs/components'
4
 import PayOrderCard from '@/components/PayOrderCard'
4
 import PayOrderCard from '@/components/PayOrderCard'
5
 import formatTimes from '@/utils/formatTime'
5
 import formatTimes from '@/utils/formatTime'
6
 import food from '@/assets/icons/ProCard/food.png'
6
 import food from '@/assets/icons/ProCard/food.png'
13
   return (
13
   return (
14
     <view class='wrapper-box-cardOrder'>
14
     <view class='wrapper-box-cardOrder'>
15
       <view class='left-complete-one-cardOrder'>
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
         <view className='title-image-cardOrder'>
17
         <view className='title-image-cardOrder'>
21
           <image className='image-1-cardOrder' mode='scaleToFill' src={item.poster}></image>
18
           <image className='image-1-cardOrder' mode='scaleToFill' src={item.poster}></image>
22
           <image className='image-2-cardOrder' src={food}></image>
19
           <image className='image-2-cardOrder' src={food}></image>

+ 10
- 28
src/components/OrderMolded/style.less 查看文件

6
   .left-complete-one-cardOrder {
6
   .left-complete-one-cardOrder {
7
     padding-top: 87px;
7
     padding-top: 87px;
8
     padding-bottom: 21px;
8
     padding-bottom: 21px;
9
-    position: relative;
10
     display: flex;
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
     border-radius: 15px 0px 0px 15px;
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
       height: 44.3px;
18
       height: 44.3px;
35
       position: absolute;
19
       position: absolute;
36
-      left: 1px;
37
-      top: 28px;
38
-      font-size: 24px;
20
+      top: 20px;
39
       color: @whiteColor;
21
       color: @whiteColor;
40
       font-weight: 600;
22
       font-weight: 600;
41
     }
23
     }
42
     //图片
24
     //图片
43
     .title-image-cardOrder {
25
     .title-image-cardOrder {
44
-      width: 145px;
26
+      width: 100%;
45
       margin-left: 20px;
27
       margin-left: 20px;
46
       border-radius: 24px;
28
       border-radius: 24px;
47
       overflow: hidden;
29
       overflow: hidden;
48
       position: relative;
30
       position: relative;
49
       .image-1-cardOrder {
31
       .image-1-cardOrder {
50
-        width: 100%;
32
+        width: 145px;
51
         height: 145px;
33
         height: 145px;
52
       }
34
       }
53
       .image-2-cardOrder {
35
       .image-2-cardOrder {

+ 3
- 2
src/pages/MineUserAll/RefundMoney/CheckRefund/index.jsx 查看文件

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

+ 4
- 3
src/pages/MineUserAll/RefundMoney/CheckRefund/style.less 查看文件

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

+ 0
- 28
src/pages/PayOrder/index.jsx 查看文件

15
 
15
 
16
 
16
 
17
 export default withLayout((props) => {
17
 export default withLayout((props) => {
18
-  //#region 
19
   const { router, person } = props;
18
   const { router, person } = props;
20
   const { packageId, orderId } = props.router.params;
19
   const { packageId, orderId } = props.router.params;
21
-
22
   const [payInfo, setPayInfo] = useState();
20
   const [payInfo, setPayInfo] = useState();
23
-
24
   // 是否已阅读协议
21
   // 是否已阅读协议
25
   const [agreement, setAgreement] = useState(false);
22
   const [agreement, setAgreement] = useState(false);
26
   // 总价 totalPrice
23
   // 总价 totalPrice
27
   const [totalPrice, setTotalPrice] = useState({});
24
   const [totalPrice, setTotalPrice] = useState({});
28
   const [list, setList] = useState([]);
25
   const [list, setList] = useState([]);
29
-
30
   const [BuyNumber, setBuyNumber] = useState(1);
26
   const [BuyNumber, setBuyNumber] = useState(1);
31
   const [detail, setDetail] = useState({});
27
   const [detail, setDetail] = useState({});
32
   const [showDialog, setShowDialog] = useState(false);
28
   const [showDialog, setShowDialog] = useState(false);
33
 
29
 
34
-  const [DisabledBool, setDisabledBool] = useState(false);
35
-
36
   const ShowMoldeOn = (e) => {
30
   const ShowMoldeOn = (e) => {
37
     if (packageId) {
31
     if (packageId) {
38
       setBuyNumber(e.amount || 1);
32
       setBuyNumber(e.amount || 1);
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
   const requestPayment = (params) => {
59
   const requestPayment = (params) => {
80
     Taro.hideLoading()
60
     Taro.hideLoading()
81
     Taro.requestPayment({
61
     Taro.requestPayment({
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
   useEffect(() => {
157
   useEffect(() => {
186
     let total = {
158
     let total = {
187
       cashback: 0,
159
       cashback: 0,

+ 1
- 1
src/pages/TobeShop/Card/index.jsx 查看文件

11
 export default (props) => {
11
 export default (props) => {
12
   const { item, checked, handleCheck } = props
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
   return (
15
   return (
16
     <CouponCard action={PayAction} onClick={() => handleCheck(item.verifyNo)}>
16
     <CouponCard action={PayAction} onClick={() => handleCheck(item.verifyNo)}>
17
       <CouponMedia>
17
       <CouponMedia>

+ 3
- 76
src/pages/TobeShop/index.jsx 查看文件

142
 
142
 
143
   const btnText = ['确认核销', checked && checked.length > 0 ? `(${checked.length})` : undefined].filter(Boolean).join(' ')
143
   const btnText = ['确认核销', checked && checked.length > 0 ? `(${checked.length})` : undefined].filter(Boolean).join(' ')
144
   return (
144
   return (
145
-    <view className='shop-Eat'>
145
+    <view className='page-index shop-Eat'>
146
       <view className='index-navbar'>
146
       <view className='index-navbar'>
147
         <CustomNav title='到店核销' />
147
         <CustomNav title='到店核销' />
148
       </view>
148
       </view>
190
         <SpinBox loading={loading}>
190
         <SpinBox loading={loading}>
191
           {(list || []).map((item) => {
191
           {(list || []).map((item) => {
192
             return (
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
         </SpinBox>
196
         </SpinBox>
269
-
270
         <view className='button-info'>
197
         <view className='button-info'>
271
           <Button className='button-box' onClick={handleVerifyClick}>
198
           <Button className='button-box' onClick={handleVerifyClick}>
272
             {btnText}
199
             {btnText}

+ 0
- 114
src/pages/TobeShop/style.less 查看文件

33
       }
33
       }
34
     }
34
     }
35
   }
35
   }
36
-  .weui-dialog__bd{
37
-    padding: 0 67px;
38
-    margin-bottom: 40px;
39
-  }
40
   .position-header {
36
   .position-header {
41
     display: flex;
37
     display: flex;
42
     align-items: center;
38
     align-items: center;
62
     .shop-title-image-cup {
58
     .shop-title-image-cup {
63
       width: 32px;
59
       width: 32px;
64
       height: 32px;
60
       height: 32px;
65
-      // margin-top: 10px;
66
       padding-right: 15px;
61
       padding-right: 15px;
67
       align-items: center;
62
       align-items: center;
68
     }
63
     }
73
       color: #202020;
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
   .button-info {
71
   .button-info {
186
     margin-bottom: 80px;
72
     margin-bottom: 80px;
187
     position: absolute;
73
     position: absolute;