吃个甘蔗嚼一年 3 gadus atpakaļ
vecāks
revīzija
c6e9c0b407

+ 1
- 0
.gitignore Parādīt failu

@@ -5,3 +5,4 @@ deploy_versions/
5 5
 node_modules/
6 6
 .DS_Store
7 7
 *.lock
8
+package-lock.json

+ 1
- 3
package.json Parādīt failu

@@ -41,9 +41,7 @@
41 41
     "@tarojs/react": "3.3.2",
42 42
     "@tarojs/runtime": "3.3.2",
43 43
     "@tarojs/taro": "3.3.2",
44
-    "react": "^17.0.0",
45
-    "react-dom": "^17.0.0",
46
-    "taro-ui": "^2.3.4"
44
+    "react": "^17.0.0"
47 45
   },
48 46
   "devDependencies": {
49 47
     "@types/webpack-env": "^1.13.6",

+ 1
- 1
src/app.config.js Parādīt failu

@@ -10,7 +10,7 @@ export default {
10 10
     'pages/MineUserAll/RefundMoney/index',
11 11
     'pages/MineUserAll/RefundMoney/CheckRefund/index',
12 12
     'pages/MineUserAll/AllOrder/index',//我的订单
13
-    // 'pages/Molded/index',
13
+    'pages/TobeShop/index',
14 14
   ],
15 15
   window: {
16 16
     backgroundTextStyle: 'light',

Binārs
src/assets/icons/UserCenter/Check_NO.png Parādīt failu


Binārs
src/assets/icons/UserCenter/Check_OK.png Parādīt failu


Binārs
src/assets/icons/UserCenter/LocationBig.png Parādīt failu


Binārs
src/assets/icons/UserCenter/Perfection.png Parādīt failu


+ 35
- 0
src/components/AlreadyUsedMolded/index.jsx Parādīt failu

@@ -0,0 +1,35 @@
1
+
2
+import image from '@/assets/icons/ProCard/8kb.jpg'
3
+import food from '@/assets/icons/ProCard/food.png'
4
+import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
5
+import Evaluation from '@/assets/icons/UserCenter/Evaluation.png'
6
+import starOn from '@/assets/icons/GuideCheck/starOn.png'
7
+import starOff from '@/assets/icons/GuideCheck/starOff.png'
8
+
9
+import './style.less'
10
+
11
+export default (props) => {
12
+
13
+  return (
14
+
15
+    <view class='wrapper-one-box'>
16
+      <view class='left-complete-one'>
17
+        <image className='left-image-1' src={ProCard_hot}></image>
18
+        <view className='left-viewText'>
19
+          返现¥16.00
20
+        </view>
21
+        <view className='title-image'>
22
+          <image className='image-1' mode='scaleToFill' src={image}></image>
23
+          <image className='image-2' src={food}></image>
24
+        </view>
25
+        <view className='title-content'>
26
+          <view className='Pro-title'>
27
+            <view className='title-text'>【米啊糯】新街口店 <text className='title-money-2' >数量:1张</text></view>
28
+          </view>
29
+          <text className='title-money' >¥6990元<text className='OrderNumber'>订单编号:ABC123456789</text> </text>
30
+          <view className='title-time' >核销时间:2021/06/21  12:00</view>
31
+        </view>
32
+      </view>
33
+    </view>
34
+  )
35
+}

src/pages/Molded/style.less → src/components/AlreadyUsedMolded/style.less Parādīt failu

@@ -1,11 +1,12 @@
1 1
 @whiteColor: #fff;
2 2
 
3
-.wrapper {
4
-  width: 74%;
3
+.wrapper-one-box {
5 4
   border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
5
+
6 6
   .left-complete-one {
7
-    padding-top: 87px;
7
+    padding-top: 85px;
8 8
     padding-bottom: 21px;
9
+
9 10
     position: relative;
10 11
     display: flex;
11 12
     background: @whiteColor;
@@ -39,9 +40,8 @@
39 40
       position: absolute;
40 41
       left: 1px;
41 42
       top: 28px;
42
-      font-size: 24px;
43
+      font-size: 20px;
43 44
       color: @whiteColor;
44
-      font-weight: 600;
45 45
     }
46 46
     //图片
47 47
     .title-image {
@@ -72,85 +72,76 @@
72 72
           width: 375px;
73 73
           overflow: hidden;
74 74
           text-overflow: ellipsis;
75
-          display: -webkit-box; //必须要
75
+          // display: -webkit-box; //必须要
76 76
           -webkit-line-clamp: 1;
77 77
           -webkit-box-orient: vertical;
78
-          word-break: break-all; /* 多出文本省略号代替 */
78
+          // word-break: break-all; /* 多出文本省略号代替 */
79 79
           text-align: left;
80 80
           font-size: 24px;
81
-          padding-bottom: 10px;
81
+          // padding-bottom: 10px;
82 82
         }
83 83
       }
84 84
       .title-money {
85
-        padding-top: 34px;
85
+        // padding-top: 34px;
86 86
         font-size: 24px;
87 87
         // color: red;
88 88
         font-weight: 800;
89 89
       }
90
+      .OrderNumber {
91
+        width: 234px;
92
+        height: 19px;
93
+        font-size: 20px;
94
+        font-weight: 400;
95
+        color: #666666;
96
+        line-height: 44px;
97
+        margin-left: 21px;
98
+      }
90 99
       .title-money-2 {
91
-        font-size: 18px;
92
-        color: #666;
93
-        padding-left: 10px;
94
-        text-decoration: line-through;
100
+        height: 19px;
101
+        font-size: 20px;
102
+        font-weight: 400;
103
+        color: #333333;
104
+        padding-left: 40px;
95 105
       }
96 106
 
97 107
       .title-time {
98 108
         font-size: 24px;
99
-        padding-top: 20px;
109
+        // padding-top: 20px;
100 110
         color: #c0c8d3;
101 111
       }
102
-    }
103
-  }
104
-}
105
-
106
-.right-complete-two {
107
-  background: @whiteColor;
108
-  background: radial-gradient(
109
-        circle at top left,
110
-        transparent 15px,
111
-        @whiteColor 0
112
-      )
113
-      top left,
114
-    radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
115
-      bottom left;
116
-  background-size: 100% 60%;
117
-  background-repeat: no-repeat;
118
-  width: 129px;
119
-  border-radius: 0 15px 15px 0;
120
-  position: relative;
121
-  //右面部分
122
-  .right-content {
123
-    // width: 100px;
124
-    // height: 80px;
125
-    position: absolute;
126
-    top: 50%;
127
-    left: 50%;
128
-    transform: translate(-50%, -50%);
129
-    // border: 1px solid red;
130
-
131
-    .right-number {
132
-      width: 32px;
133
-      font-size: 20px;
134
-      border-radius: 4px;
135
-      border: 2px solid #999;
136
-      margin: auto;
137
-      text-align: center;
138
-    }
112
+      .title-position-on {
113
+        display: flex;
114
+        font-size: 20px;
115
+        .title-position {
116
+          width: 18px;
117
+          height: 24px;
118
+          padding-right: 10px;
119
+          padding-top: 5px;
120
+        }
121
+        .title-position-image {
122
+          align-items: center;
123
+          font-size: 20px;
124
+          color: #333;
125
+        }
126
+        .title-on {
127
+          // margin-bottom: 10px;
128
+          padding-top: 5px;
129
+          padding-left: 40px;
130
+          width: 21px;
131
+          height: 21px;
132
+          padding-right: 10px;
133
+        }
134
+        .title-on-text {
135
+          align-items: center;
139 136
 
140
-    .right-title {
141
-      font-weight: 700;
142
-      font-size: 24px;
143
-      padding-top: 20px;
144
-      text-align: center;
137
+          font-size: 20px;
138
+          color: #333;
139
+        }
140
+      }
145 141
     }
146 142
   }
147
-}
148
-//线条
149
-.right-complete-two::after {
150
-  content: "";
151
-  position: absolute;
152
-  top: 15px;
153
-  margin: 26px auto;
154
-  height: 70%;
155
-  border-left: 1px dashed #595959;
143
+  // .left-complete-one:nth-child(2) {
144
+  //   background: rgb(182, 0, 0);
145
+  //   padding-top: 10px;
146
+  // }
156 147
 }

+ 72
- 8
src/components/CompoentsOrder/AlreadyUsed/index.jsx Parādīt failu

@@ -1,14 +1,13 @@
1
-import { useState } from "react";
2
-
1
+import { useState, useEffect } from 'react'
2
+import { Button, Radio, Input } from '@tarojs/components'
3 3
 import image from '@/assets/icons/ProCard/8kb.jpg'
4 4
 import food from '@/assets/icons/ProCard/food.png'
5 5
 import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
6
-
7 6
 import Evaluation from '@/assets/icons/UserCenter/Evaluation.png'
8
-
9
-
10 7
 import starOn from '@/assets/icons/GuideCheck/starOn.png'
11 8
 import starOff from '@/assets/icons/GuideCheck/starOff.png'
9
+import AlreadyUsedMolded from '@/components/AlreadyUsedMolded'
10
+import Popup from '@/components/Popup'
12 11
 import './style.less'
13 12
 
14 13
 
@@ -19,10 +18,76 @@ const score = '3.9'
19 18
 
20 19
 export default (props) => {
21 20
 
21
+  const [showDialog, setShowDialog] = useState(false)
22
+  const [CollectNub, setCollectNub] = useState(1)
23
+
24
+  const ShowMoldeOn = () => {
25
+    setShowDialog(true)
26
+  }
27
+  const ButtonCancel = () => {
28
+    setShowDialog(false)
29
+  }
30
+  const ButtonOK = (e) => {
31
+    setShowDialog(false)
32
+
33
+  }
34
+
35
+  const Nuberr = () => {
36
+    setCollectNub(+1)
37
+  }
38
+
22 39
   return (
23
-    <scroll-view scroll-y style='height: 90vh;'  >
24 40
 
41
+    <scroll-view scroll-y style='height: 90vh;'  >
25 42
       <view className='AlreadyUsed-box' >
43
+        <Popup show={showDialog} maskClosable={false}>
44
+          <AlreadyUsedMolded />
45
+          <view className='item-center-Number' >
46
+            {/* 评分 */}
47
+            <view className='card-box-star'>
48
+              <text className='card-box-star-text' onClick={Nuberr} >口味:</text>
49
+              {
50
+                scoreList.map((_, index) => {
51
+                  console.log(index)
52
+                  const src = (index + `${CollectNub}`) < score ? starOn : starOff
53
+                  return (
54
+                    <image className='card-star-image' key={index} src={src} onClick={Nuberr} />
55
+                  )
56
+                })
57
+              }
58
+            </view>
59
+            <view className='card-box-star'>
60
+              <text className='card-box-star-text' onClick={Nuberr} >环境:</text>
61
+              {
62
+                scoreList.map((_, index) => {
63
+                  console.log(index)
64
+                  const src = (index + `${CollectNub}`) < score ? starOn : starOff
65
+                  return (
66
+                    <image className='card-star-image' key={index} src={src} onClick={Nuberr} />
67
+                  )
68
+                })
69
+              }
70
+            </view>
71
+            <view className='card-box-star'>
72
+              <text className='card-box-star-text' onClick={Nuberr} >服务:</text>
73
+              {
74
+                scoreList.map((_, index) => {
75
+                  console.log(index)
76
+                  const src = (index + `${CollectNub}`) < score ? starOn : starOff
77
+                  return (
78
+                    <image className='card-star-image' key={index} src={src} onClick={Nuberr} />
79
+                  )
80
+                })
81
+              }
82
+            </view>
83
+
84
+
85
+          </view>
86
+          <view className='buy-button-box' >
87
+            <button className='button-Cancel' onClick={ButtonCancel} >取消</button>
88
+            <button className='button-OK' onClick={ButtonOK} >确定</button>
89
+          </view>
90
+        </Popup>
26 91
         {/* 已使用 */}
27 92
         <view className='OrderNumber'>订单编号:ABC123456789</view>
28 93
         <view class='wrapper'>
@@ -56,7 +121,7 @@ export default (props) => {
56 121
               <view className='title-time' >核销时间:2021/06/21  12:00</view>
57 122
             </view>
58 123
           </view>
59
-          <view class='right-complete-two'>
124
+          <view class='right-complete-two' onClick={ShowMoldeOn} >
60 125
             <view className='right-content'>
61 126
               <image className='right-image' src={Evaluation} />
62 127
               <view className='right-title'>评价</view>
@@ -64,7 +129,6 @@ export default (props) => {
64 129
             </view>
65 130
           </view>
66 131
         </view>
67
-
68 132
         {/* 已使用 */}
69 133
         <view className='OrderNumber'>订单编号:ABC123456789</view>
70 134
         <view class='wrapper'>

+ 56
- 0
src/components/CompoentsOrder/AlreadyUsed/style.less Parādīt failu

@@ -3,6 +3,62 @@
3 3
 .AlreadyUsed-box {
4 4
   margin: 40px auto;
5 5
   padding: 0 30px;
6
+
7
+  .item-center-Number {
8
+    .card-box-star {
9
+      margin-top: 23px;
10
+      width: auto;
11
+      height: 44.3px;
12
+      font-size: 20px;
13
+      color: @whiteColor;
14
+      .card-box-star-text {
15
+        display: inline-block;
16
+        height: 22px;
17
+        font-size: 24px;
18
+        font-weight: 400;
19
+        color: #666666;
20
+      }
21
+      .card-star-image {
22
+        padding-left: 30px;
23
+        width: 21px;
24
+        height: 21px;
25
+      }
26
+      .card-star-text {
27
+        padding-left: 10px;
28
+        font-size: 20px;
29
+        color: #333;
30
+        font-weight: 700;
31
+      }
32
+    }
33
+  }
34
+
35
+  .buy-button-box {
36
+    width: 100%;
37
+    margin: 40px 0 0 0;
38
+
39
+    .button-Cancel {
40
+      display: inline-block;
41
+      width: 236px;
42
+      height: 78px;
43
+      border: 2px solid #274291;
44
+      font-size: 30px;
45
+      font-weight: bold;
46
+      color: #274291;
47
+      border-radius: 12px;
48
+      margin-right: 80px;
49
+    }
50
+    .button-OK {
51
+      display: inline-block;
52
+
53
+      width: 236px;
54
+      height: 78px;
55
+      background: #274291;
56
+      border-radius: 12px;
57
+      font-size: 30px;
58
+      font-weight: bold;
59
+      color: #ffffff;
60
+    }
61
+  }
6 62
   .OrderNumber {
7 63
     // width: 234px;
8 64
     height: 19px;

+ 5
- 3
src/components/CompoentsOrder/TobePaid/index.jsx Parādīt failu

@@ -1,7 +1,7 @@
1 1
 
2 2
 import { useState } from "react";
3 3
 import { Button, } from '@tarojs/components'
4
-
4
+import Taro from "@tarojs/taro";
5 5
 import image from '@/assets/icons/ProCard/8kb.jpg'
6 6
 
7 7
 import food from '@/assets/icons/ProCard/food.png'
@@ -13,9 +13,11 @@ import './style.less'
13 13
 
14 14
 export default (props) => {
15 15
 
16
+  const handleGoPay = () => {
17
+    Taro.navigateTo({ url: '/pages/PayOrder/index' })
18
+  }
16 19
   return (
17 20
     <scroll-view scroll-y style='height: 90vh;'  >
18
-
19 21
       <view className='TobePaid-box'>
20 22
         <view className='OrderNumber'>订单编号:ABC123456789</view>
21 23
         {/* 待支付 */}
@@ -105,7 +107,7 @@ export default (props) => {
105 107
           已经到底了~
106 108
         </view>
107 109
         <view className='button-info'>
108
-          <Button className='button-box'>全部支付</Button>
110
+          <Button className='button-box' onClick={handleGoPay}>全部支付</Button>
109 111
         </view>
110 112
       </view>
111 113
     </scroll-view>

+ 3
- 0
src/components/Popup/style.less Parādīt failu

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

+ 0
- 41
src/components/ProCard/index.jsx Parādīt failu

@@ -1,41 +0,0 @@
1
-import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
2
-
3
-import './style.less'
4
-
5
-export default (props) => {
6
-
7
-  return (
8
-    <view class='wrapper'>
9
-      <view class='left-complete-one'>
10
-        <image className='left-image-1' src={ProCard_hot} />
11
-        {props.children}
12
-        {/* <view className='left-viewText'>
13
-              返现¥16.00
14
-            </view> */}
15
-        <view className='title-image'>
16
-          {/* <image className='image-1' mode='scaleToFill' src={image}></image> */}
17
-          {/* <image className='image-2' src={food}></image> */}
18
-        </view>
19
-        <view className='title-content'>
20
-          {props.children}
21
-          {/* <view className='Pro-title'>
22
-                <view className='title-text'>【橘里橘气咖啡店】新鲜出炉啦!</view>
23
-              </view>
24
-              <text className='title-money' >¥6990元<text className='title-money-2'>门市价78元</text></text>
25
-              <view className='title-time' >有效期:2021/06/21-2021/12/31</view> */}
26
-        </view>
27
-      </view>
28
-      <view class='right-complete-two'>
29
-        <view className='right-content'>
30
-          {props.children}
31
-          {/* <view className='right-number'>×1</view> */}
32
-          {/* <view className='right-title'>数量</view> */}
33
-        </view>
34
-      </view>
35
-    </view>
36
-
37
-
38
-  )
39
-
40
-
41
-}

+ 0
- 166
src/components/ProCard/style.less Parādīt failu

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

+ 1
- 1
src/pages/MineUserAll/RefundMoney/CheckRefund/index.config.js Parādīt failu

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

+ 3
- 3
src/pages/MineUserAll/RefundMoney/CheckRefund/index.jsx Parādīt failu

@@ -53,7 +53,7 @@ export default (props) => {
53 53
   return (
54 54
 
55 55
     <view className='box-content'>
56
-      <CustomNav title='售后退款2' />
56
+      <CustomNav title='售后退款' />
57 57
       <view className='Refund-Content-box'>
58 58
         <view className='title-image'>
59 59
           <image mode='scaleToFill' className='title-image-cup' src={BlackSpot} />
@@ -100,7 +100,7 @@ export default (props) => {
100 100
         <text className={`Refund-star-view4 ${view4 ? 'bg2' : 'Refund-star-view4'}`} onClick={() => view4OK()} >预约不上</text>
101 101
         <text className={`Refund-star-view5 ${view5 ? 'bg2' : 'Refund-star-view5'}`} onClick={() => view5OK()} >店里更优惠</text>
102 102
         <text className={`Refund-star-view6 ${view6 ? 'bg2' : 'Refund-star-view6'}`} onClick={() => view6OK()} >网友/朋友评价不好</text>
103
-
103
+        {/* 
104 104
         <view>
105 105
           {
106 106
             list.map(item => {
@@ -110,7 +110,7 @@ export default (props) => {
110 110
 
111 111
             })
112 112
           }
113
-        </view>
113
+        </view> */}
114 114
       </view>
115 115
 
116 116
       <view className='Refund-Content-box'>

+ 0
- 3
src/pages/MineUserAll/RefundMoney/CheckRefund/style.less Parādīt failu

@@ -1,7 +1,4 @@
1 1
 @whiteColor: #fff;
2
-.page-index {
3
-  padding: 0 25px;
4
-}
5 2
 
6 3
 .box-content {
7 4
   width: 100%;

+ 0
- 1
src/pages/MineUserAll/RefundMoney/index.jsx Parādīt failu

@@ -24,7 +24,6 @@ export default (props) => {
24 24
 
25 25
   const handleRefund2 = () => {
26 26
     Taro.navigateTo({ url: '/pages/MineUserAll/RefundMoney/CheckRefund/index' })
27
-    console.log('------------------');
28 27
   }
29 28
   return (
30 29
     <view className='box-content'>

+ 0
- 3
src/pages/MineUserAll/RefundMoney/style.less Parādīt failu

@@ -1,7 +1,4 @@
1 1
 @whiteColor: #fff;
2
-.page-index {
3
-  padding: 0 25px;
4
-}
5 2
 
6 3
 .box-content {
7 4
   width: 100%;

+ 13
- 17
src/pages/PayOrder/index.jsx Parādīt failu

@@ -17,20 +17,13 @@ export default () => {
17 17
   const ShowMoldeOn = () => {
18 18
     setShowDialog(true)
19 19
   }
20
-  const ShowMoldeOff = () => {
20
+  const ButtonCancel = () => {
21 21
     setShowDialog(false)
22 22
   }
23
+  const ButtonOK = (e) => {
24
+    setShowDialog(false)
23 25
 
24
-  const buttons = [
25
-
26
-    {
27
-      text: '取消'
28
-    },
29
-    {
30
-      text: '确定'
31
-    },
32
-
33
-  ]
26
+  }
34 27
 
35 28
   const [BuyNumber, setBuyNumber] = useState(1)
36 29
   const [DisabledBool, setDisabledBool] = useState(false)
@@ -48,12 +41,14 @@ export default () => {
48 41
 
49 42
   }
50 43
 
51
-  const onChange = (value, event) => {
52
-    console.log('----------------->', value, event);
44
+  const onInput = (e) => {
45
+    let values = e.detail.value
46
+    setBuyNumber(values - 0)
47
+
48
+
53 49
   }
54 50
 
55 51
   useEffect(() => {
56
-    onChange()
57 52
     if (BuyNumber < 2) {
58 53
       setDisabledBool(true)
59 54
 
@@ -71,11 +66,12 @@ export default () => {
71 66
         <OrderMolded />
72 67
         <view className='item-center-Number' >
73 68
           <view className='buy-num-minus' disabled={DisabledBool} onClick={NumberCut} >-</view>
74
-          <Input className='buy-num-input' type='number' min={1} onChange={onChange} value={BuyNumber} />
69
+          <Input className='buy-num-input' type="number" min="1" onInput={onInput} value={BuyNumber} />
75 70
           <view className='buy-num-add' onClick={NumberAdd} >+</view>
76 71
         </view>
77
-        <view className='buy' >
78
-
72
+        <view className='buy-button-box' >
73
+          <button className='button-Cancel' onClick={ButtonCancel} >取消</button>
74
+          <button className='button-OK' onClick={ButtonOK} >确定</button>
79 75
         </view>
80 76
       </Popup>
81 77
       <view class='coupon-list'>

+ 28
- 2
src/pages/PayOrder/style.less Parādīt failu

@@ -17,14 +17,13 @@
17 17
       display: inline-block;
18 18
       width: 90px;
19 19
       height: 60px;
20
-
21 20
       font-size: 28px;
22 21
       font-weight: 400;
23 22
       color: #202020;
24 23
       background: #ffffff;
25 24
       border: 1px solid #999999;
26 25
       position: relative;
27
-      top: 26px;
26
+      top: 30px;
28 27
     }
29 28
     .buy-num-add {
30 29
       display: inline-block;
@@ -36,6 +35,33 @@
36 35
       border-radius: 0px 8px 8px 0px;
37 36
     }
38 37
   }
38
+  .buy-button-box {
39
+    width: 100%;
40
+    margin: 40px 0 0 0;
41
+
42
+    .button-Cancel {
43
+      display: inline-block;
44
+      width: 236px;
45
+      height: 78px;
46
+      border: 2px solid #274291;
47
+      font-size: 30px;
48
+      font-weight: bold;
49
+      color: #274291;
50
+      border-radius: 12px;
51
+      margin-right: 80px;
52
+    }
53
+    .button-OK {
54
+      display: inline-block;
55
+
56
+      width: 236px;
57
+      height: 78px;
58
+      background: #274291;
59
+      border-radius: 12px;
60
+      font-size: 30px;
61
+      font-weight: bold;
62
+      color: #ffffff;
63
+    }
64
+  }
39 65
   .wrapper {
40 66
     display: flex;
41 67
     position: relative;

+ 13
- 0
src/pages/TobeShop/index.config.js Parādīt failu

@@ -0,0 +1,13 @@
1
+export default {
2
+  navigationBarTitleText: '到店核销',
3
+  navigationStyle: 'custom',
4
+
5
+  usingComponents: {
6
+    "mp-checkbox-group": "weui-miniprogram/checkbox-group/checkbox-group",
7
+    "mp-checkbox": "weui-miniprogram/checkbox/checkbox",
8
+    "mp-cells": "weui-miniprogram/cells/cells",
9
+    "mp-dialog": "weui-miniprogram/dialog/dialog"
10
+  }
11
+
12
+
13
+}

+ 137
- 0
src/pages/TobeShop/index.jsx Parādīt failu

@@ -0,0 +1,137 @@
1
+import CustomNav from "@/components/CustomNav"
2
+import Popup from '@/components/Popup'
3
+import { useState, useEffect } from 'react'
4
+import LocationBig from '@/assets/icons/UserCenter/LocationBig.png'
5
+import Perfection from '@/assets/icons/UserCenter/Perfection.png'
6
+import Check_OK from '@/assets/icons/UserCenter/Check_OK.png'
7
+import Check_NO from '@/assets/icons/UserCenter/Check_NO.png'
8
+import BlackSpot from '@/assets/icons/GuideCheck/BlackSpot.png'
9
+import image from '@/assets/icons/ProCard/8kb.jpg'
10
+import food from '@/assets/icons/ProCard/food.png'
11
+import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
12
+import { Button, Icon, Text, Textarea } from '@tarojs/components'
13
+
14
+
15
+
16
+import './style.less'
17
+
18
+
19
+export default (props) => {
20
+
21
+  const [showDialog, setShowDialog] = useState(false)
22
+  //核销
23
+  const [Consumption, setConsumption] = useState(false)
24
+
25
+  const ShowMoldeOn = () => {
26
+    setShowDialog(true)
27
+  }
28
+  const ButtonCancel = () => {
29
+    setShowDialog(false)
30
+  }
31
+  const ButtonOK = (e) => {
32
+    // setShowDialog(false)
33
+    if (showDialog === true) {
34
+      setShowDialog(false)
35
+      setConsumption(true)
36
+    }
37
+
38
+  }
39
+
40
+  const PerfectionOK = () => {
41
+    setConsumption(false)
42
+  }
43
+
44
+
45
+  return (
46
+    <view className='shop-Eat' >
47
+      <CustomNav title='到店核销' />
48
+      <Popup show={showDialog} maskClosable={false}>
49
+        <view className='Consumption-Now' >您即将核销1张套餐券!</view>
50
+        <text className='Consumption-text' >核销后套餐券不退不换</text>
51
+        <text className='Consumption-text' >请核对无误后再点击确认!</text>
52
+        <view className='buy-button-box' >
53
+          <button className='button-Cancel' onClick={ButtonCancel} >取消</button>
54
+          <button className='button-OK' onClick={ButtonOK} >确定</button>
55
+        </view>
56
+      </Popup>
57
+      <Popup show={Consumption} maskClosable={false}>
58
+        <view className='Perfection-image-view' >
59
+          <image src={Perfection} className='Perfection-image' />
60
+
61
+        </view>
62
+        <text>核销完成!请与店铺确认!</text>
63
+        <view className='buy-button-box' >
64
+          <button className='button-OK' onClick={PerfectionOK} >完成</button>
65
+        </view>
66
+      </Popup>
67
+      <view className='position-header' >
68
+        <image className='position-LocationBig' src={LocationBig} />
69
+        <text cla='position-LocationBig-text'>当前所在店铺:SEOUL·创意韩国料理</text>
70
+      </view>
71
+      <view className='shop-image'>
72
+        <image mode='scaleToFill' className='shop-title-image-cup' src={BlackSpot} />
73
+        <text className='shop-title-title' >请选择你要核销的套餐</text>
74
+      </view>
75
+
76
+      {/* 卡片 */}
77
+      <view class='wrapper'>
78
+        <view class='left-complete-one'>
79
+          <view className='Check_OK-box' >
80
+            <image className='Check_OK-image' src={Check_OK} />
81
+          </view>
82
+          <image className='left-image-1' src={ProCard_hot}></image>
83
+          <view className='left-viewText'>
84
+            返现¥16.00
85
+          </view>
86
+          <view className='title-image'>
87
+            <image className='image-1' mode='scaleToFill' src={image}></image>
88
+            <image className='image-2' src={food}></image>
89
+          </view>
90
+          <view className='title-content'>
91
+            <view className='Pro-title'>
92
+              <view className='title-text'>【米啊糯】新街口店 <text className='title-money-2' >数量:1张</text></view>
93
+            </view>
94
+            <text className='title-money' >¥6990元<text className='title-money-2'>门市价78元</text></text>
95
+            <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
96
+          </view>
97
+        </view>
98
+        <view class='right-complete-two'>
99
+          <view className='right-content'>
100
+          </view>
101
+        </view>
102
+      </view>
103
+
104
+      <view class='wrapper'>
105
+        <view class='left-complete-one'>
106
+          <view className='Check_OK-box' >
107
+            <image className='Check_OK-image' src={Check_NO} />
108
+          </view>
109
+          <image className='left-image-1' src={ProCard_hot}></image>
110
+          <view className='left-viewText'>
111
+            返现¥16.00
112
+          </view>
113
+          <view className='title-image'>
114
+            <image className='image-1' mode='scaleToFill' src={image}></image>
115
+            <image className='image-2' src={food}></image>
116
+          </view>
117
+          <view className='title-content'>
118
+            <view className='Pro-title'>
119
+              <view className='title-text'>【米啊糯】新街口店 <text className='title-money-2' >数量:1张</text></view>
120
+            </view>
121
+            <text className='title-money' >¥6990元<text className='title-money-2'>门市价78元</text></text>
122
+            <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
123
+          </view>
124
+        </view>
125
+        <view class='right-complete-two'>
126
+          <view className='right-content'>
127
+          </view>
128
+        </view>
129
+      </view>
130
+
131
+      <view className='button-info'>
132
+        <Button className='button-box' onClick={ShowMoldeOn} >确定核销</Button>
133
+      </view>
134
+
135
+    </view>
136
+  )
137
+}

+ 342
- 0
src/pages/TobeShop/style.less Parādīt failu

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

+ 2
- 3
src/pages/index/tabs/GuideCss/style.less Parādīt failu

@@ -1,10 +1,9 @@
1 1
 @whiteColor: #fff;
2 2
 
3
-.page-index {
4
-  padding: 0 25px;
5
-}
6 3
 .Guide-Home-box {
7 4
   // width: 333333333333px;
5
+  width: 94%;
6
+  margin: auto;
8 7
   .MessageCard {
9 8
     width: 690px;
10 9
     height: 175px;

+ 0
- 4
src/pages/index/tabs/MineCss/style.less Parādīt failu

@@ -1,7 +1,3 @@
1
-.page-index {
2
-  padding: 0 25px;
3
-}
4
-
5 1
 .User-box {
6 2
   width: 100%;
7 3
   .User-info {