吃个甘蔗嚼一年 3 anni fa
parent
commit
b4b944ceff

+ 131
- 126
src/pages/MineUserAll/RefundMoney/CheckRefund/index.jsx Vedi File

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

+ 8
- 1
src/pages/index/tabs/Recommend.jsx Vedi File

@@ -31,6 +31,7 @@ export default (props) => {
31 31
       ...queryParams,
32 32
       typeId: tab
33 33
     })
34
+
34 35
     if (index == 0) {
35 36
       setQueryParams({ location: location, pageNum: 1, pageSize: 10, typeId: '' })
36 37
     }
@@ -42,11 +43,17 @@ export default (props) => {
42 43
     })
43 44
   }, [])
44 45
 
46
+
47
+
45 48
   const onSearch = () => {
46 49
     // 用绝对路径
47 50
     Taro.navigateTo({ url: '/pages/search/search' });
48 51
   }
49 52
 
53
+
54
+
55
+
56
+
50 57
   return (
51 58
     <view style={{ height: '100%', overflow: 'hidden' }}>
52 59
       <view className='search' onClick={onSearch}>
@@ -61,7 +68,7 @@ export default (props) => {
61 68
           <view className='city'>南京</view>
62 69
           <view className='line' />
63 70
         </view>
64
-        <scroll-view scroll-x='true' scroll-view='true' bindscrolltoupper='upper' bindscrolltolower='lower' bindscroll='scroll'>
71
+        <scroll-view scroll-x='true' scroll-view='true' bindscrolltoupper='upper' bindscrolltolower='lower' bindscroll='scroll'   >
65 72
           <mp-tabs
66 73
             tabClass='tabs-Unselected'
67 74
             swiperClass='tabs-swiper'