diff --git a/package.json b/package.json index c1189ce..299e8f3 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "opn": "^4.0.2", "optimize-css-assets-webpack-plugin": "^1.3.2", "ora": "^1.3.0", + "qs": "^6.5.2", "rimraf": "^2.6.2", "sass-loader": "^6.0.6", "semver": "^5.4.1", diff --git a/src/api/order.js b/src/api/order.js new file mode 100644 index 0000000..d52925f --- /dev/null +++ b/src/api/order.js @@ -0,0 +1,26 @@ +export default { + getList: { + url: "/mall/web/order/list", + method: "get" + }, + getDetail: { + url: "/mall/web/order/detail", + method: "get" + }, + checkOrder: { + url: "/mall/web/order/prepare", + method: "post" + }, + cancel: { + url: "/mall/web/order/cancel", + method: "put" + }, + addOrder: { + url: "/mall/web/order/new", + method: "post" + }, + payMoney: { + url: "/mall/web/order/pay", + method: "put" + } +}; diff --git a/src/assets/images/order-list/address.png b/src/assets/images/order-list/address.png new file mode 100644 index 0000000..91cc934 Binary files /dev/null and b/src/assets/images/order-list/address.png differ diff --git a/src/assets/images/order-list/coupon.png b/src/assets/images/order-list/coupon.png new file mode 100644 index 0000000..680e050 Binary files /dev/null and b/src/assets/images/order-list/coupon.png differ diff --git a/src/assets/images/order-list/edit.png b/src/assets/images/order-list/edit.png new file mode 100644 index 0000000..df1aeff Binary files /dev/null and b/src/assets/images/order-list/edit.png differ diff --git a/src/assets/images/order-list/true.png b/src/assets/images/order-list/true.png new file mode 100644 index 0000000..f9791f6 Binary files /dev/null and b/src/assets/images/order-list/true.png differ diff --git a/src/assets/images/order-list/wechat.png b/src/assets/images/order-list/wechat.png new file mode 100644 index 0000000..c2b93f8 Binary files /dev/null and b/src/assets/images/order-list/wechat.png differ diff --git a/src/assets/styles/style.css b/src/assets/styles/style.css index b9d2624..cf4a992 100644 --- a/src/assets/styles/style.css +++ b/src/assets/styles/style.css @@ -2,21 +2,24 @@ margin: 0; padding: 0; } -input:focus,button:focus,textarea:focus { +input:focus, +button:focus, +textarea:focus { outline: none; } -html,body { +html, +body { width: 100%; height: 100%; /*overflow-y: scroll;*/ position: relative; - -webkit-overflow-scrolling : touch; - background:rgba(243,243,243,1); + -webkit-overflow-scrolling: touch; + background: rgba(243, 243, 243, 1); } #app { width: 100%; - height: 100%; + height: 100%; } .m-page { @@ -28,15 +31,15 @@ html,body { .m-month-card { width: 100%; height: 100%; - background-color: #FFF3E8; + background-color: #fff3e8; } -.m-slider { +.m-slider { height: 175px; } .m-slider img { object-fit: cover; } -.month-card-title { +.month-card-title { background-color: #fff; padding-bottom: 52px; padding-top: 10px; @@ -57,14 +60,14 @@ html,body { color: #333; } .month-card-area { - position: relative; + position: relative; height: 100%; - background-color: #FFF3E8; - padding-left:15px; + background-color: #fff3e8; + padding-left: 15px; } .month-card { position: relative; - top: -40px; + top: -40px; padding: 5px 10px 10px 0; background: url(../images/coupon-bg-red@1x.png) no-repeat 0 0 /100% 100%; } @@ -98,13 +101,13 @@ html,body { .limit-buy { font-size: 10px; line-height: 12px; - color: #FFBAA9; + color: #ffbaa9; } .end-date { margin-top: 10px; font-size: 9px; line-height: 14px; - color: #FFBAA9; + color: #ffbaa9; } .qrcode-img { @@ -123,8 +126,8 @@ html,body { padding-left: 10px; } - .month-card .f-font-45 { - font-size: 30px; + .month-card .f-font-45 { + font-size: 30px; } .month-card .get-btn { @@ -148,12 +151,11 @@ html,body { } } - /*公共样式*/ .container { - width: 100%; - min-height: 100%; - box-sizing: border-box; + width: 100%; + min-height: 100%; + box-sizing: border-box; } .btn-md { @@ -178,15 +180,15 @@ html,body { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; - border: 1px solid #FE9B36; + border: 1px solid #fe9b36; background: none; line-height: 23px; } .bg-orange { - background-color: #FE9B36; + background-color: #fe9b36; } .bg-gray { - background-color: #D4D4D4; + background-color: #d4d4d4; } .f-mt5 { margin-top: 5px; @@ -256,7 +258,7 @@ html,body { .f-font-13 { font-size: 13px; } -.f-font-15 { +.f-font-15 { font-size: 15px; line-height: 17px; } @@ -277,13 +279,13 @@ html,body { font-weight: bold; } .s-orange { - color: #FE9B36; + color: #fe9b36; } .s-orange-1 { - color: #E6A96C; + color: #e6a96c; } .s-orange-2 { - color: #FF9363; + color: #ff9363; } .s-white { color: #fff; @@ -299,7 +301,7 @@ html,body { } .s-red { font-weight: bold; - color: #F45252 !important; + color: #f45252 !important; } .line-through { text-decoration: line-through; @@ -314,24 +316,24 @@ html,body { position: absolute; } .f-ellipsis-1 { - display: -webkit-box; - -webkit-line-clamp: 1; - overflow: hidden; - -webkit-box-orient: vertical; + display: -webkit-box; + -webkit-line-clamp: 1; + overflow: hidden; + -webkit-box-orient: vertical; } .f-ellipsis-2 { - display: -webkit-box; - -webkit-line-clamp: 2; - overflow: hidden; - -webkit-box-orient: vertical; - /* autoprefixer: off*/ - /* autoprefixer: on*/ + display: -webkit-box; + -webkit-line-clamp: 2; + overflow: hidden; + -webkit-box-orient: vertical; + /* autoprefixer: off*/ + /* autoprefixer: on*/ } .f-inb { display: inline-block; } -.weui-toast { +.weui-loading_toast .weui-toast { width: 100%; min-height: 100% !important; overflow: hidden; @@ -341,42 +343,41 @@ html,body { margin-top: 75%; } @media (-webkit-min-device-pixel-ratio: 2) { - .f-bb-gray::after { - height: 1px; - content: ''; - width: 100%; - border-bottom: 1px solid #EEEEEE; - position: absolute; - bottom: -1px; - right: 0; - transform: scaleY(0.5); - -webkit-transform: scaleY(0.5); - } - .f-all-1px::after { - content: ''; - position: absolute; - top: 0; - left: 0; - border: 1px solid #EEEEEE; - border-radius: 2px; - -webkit-box-sizing: border-box; - box-sizing: border-box; - width: 200%; - height: 200%; - -webkit-transform: scale(0.5); - transform: scale(0.5); - -webkit-transform-origin: left top; - transform-origin: left top; - z-index: -1; - } -} - + .f-bb-gray::after { + height: 1px; + content: ""; + width: 100%; + border-bottom: 1px solid #eeeeee; + position: absolute; + bottom: -1px; + right: 0; + transform: scaleY(0.5); + -webkit-transform: scaleY(0.5); + } + .f-all-1px::after { + content: ""; + position: absolute; + top: 0; + left: 0; + border: 1px solid #eeeeee; + border-radius: 2px; + -webkit-box-sizing: border-box; + box-sizing: border-box; + width: 200%; + height: 200%; + -webkit-transform: scale(0.5); + transform: scale(0.5); + -webkit-transform-origin: left top; + transform-origin: left top; + z-index: -1; + } +} /******我的钱包******/ .page-top { width: 100%; height: 0.9rem; - background:rgba(0,186,134,1); + background: rgba(0, 186, 134, 1); display: flex; align-items: center; position: relative; @@ -387,7 +388,7 @@ html,body { height: 0.36rem; display: inline-block; position: absolute; - left: 0.3rem + left: 0.3rem; } .page-top a img { height: 0.36rem; @@ -396,9 +397,9 @@ html,body { .page-top span { display: inline-block; margin: auto; - font-size:0.36rem; - font-family:PingFang-SC-Medium; - color:rgba(255,255,255,1); + font-size: 0.36rem; + font-family: PingFang-SC-Medium; + color: rgba(255, 255, 255, 1); letter-spacing: 1px; } @@ -407,7 +408,7 @@ html,body { .popup-box { width: 100%; height: 100%; - background: rgba(0,0,0,.6); + background: rgba(0, 0, 0, 0.6); position: fixed; display: flex; align-items: center; @@ -419,16 +420,16 @@ html,body { .popup-centent { position: relative; - background:rgba(255,255,255,1); + background: rgba(255, 255, 255, 1); margin-top: -2rem; } -.popup-centent span.closeBtn { +.popup-centent span.closeBtn { position: absolute; - right: .1rem; + right: 0.1rem; top: 5px; - width: .35rem; - height: .35rem; + width: 0.35rem; + height: 0.35rem; display: block; } .popup-centent span.closeBtn img { @@ -442,14 +443,14 @@ html,body { top: 0.9rem; bottom: 0;*/ overflow-y: scroll; - -webkit-overflow-scrolling : touch; + -webkit-overflow-scrolling: touch; } .put-money .content-box { width: 7rem; margin: auto; margin-top: 0.3rem; - border: 1px solid #DCDCDC; + border: 1px solid #dcdcdc; border-radius: 5px; /* padding: 0.5rem 0.35rem 1rem; */ box-sizing: border-box; @@ -458,13 +459,13 @@ html,body { .put-money .content-box .account { padding: 0.5rem 0.35rem 0.3rem; - border-bottom: 1px solid #DCDCDC; + border-bottom: 1px solid #dcdcdc; } .put-money .content-box .account div { - font-size:0.3rem; - font-family:PingFang-SC-Medium; - color:rgba(51,51,51,1); + font-size: 0.3rem; + font-family: PingFang-SC-Medium; + color: rgba(51, 51, 51, 1); align-items: center; display: flex; } @@ -473,13 +474,13 @@ html,body { width: 0.4rem; height: 0.4rem; margin-left: 3px; - margin-right: 5px; + margin-right: 5px; } .put-money .content-box .account p { - font-size:0.2rem; - font-family:PingFang-SC-Medium; - color:rgba(153,153,153,1); + font-size: 0.2rem; + font-family: PingFang-SC-Medium; + color: rgba(153, 153, 153, 1); text-align: center; } @@ -488,28 +489,28 @@ html,body { } .put-money .content-box .cash .cash-cue { - font-size:0.3rem; - font-family:PingFang-SC-Medium; - color:rgba(51,51,51,1); + font-size: 0.3rem; + font-family: PingFang-SC-Medium; + color: rgba(51, 51, 51, 1); } .put-money .content-box .cash .cash-cue span { - font-size:0.24rem; - font-family:PingFang-SC-Regular; - color:rgba(153,153,153,1); + font-size: 0.24rem; + font-family: PingFang-SC-Regular; + color: rgba(153, 153, 153, 1); } .put-money .content-box .cash .cash-cue span.active { - color: #F45252; + color: #f45252; } .put-money .content-box .cash .money { width: 100%; display: block; - border-bottom: 1px solid #D2D2D2; + border-bottom: 1px solid #d2d2d2; } .put-money .content-box .cash .money span { - font-size:0.6rem; - font-family:PingFang-SC-Regular; - color:rgba(51,51,51,1); + font-size: 0.6rem; + font-family: PingFang-SC-Regular; + color: rgba(51, 51, 51, 1); } .put-money .content-box .cash .money input { @@ -519,19 +520,19 @@ html,body { } .put-money .content-box .cash p { - font-size:0.3rem; - font-family:PingFang-SC-Medium; - color:rgba(153,153,153,1); + font-size: 0.3rem; + font-family: PingFang-SC-Medium; + color: rgba(153, 153, 153, 1); margin-top: 0.25rem; } .put-money .content-box .cash button { - width:4.68rem; - height:0.76rem; - background:rgba(0,186,134,.5); + width: 4.68rem; + height: 0.76rem; + background: rgba(0, 186, 134, 0.5); border-radius: 5px; color: #fff; - font-size:0.34rem; + font-size: 0.34rem; border: none; margin: auto; display: block; @@ -539,15 +540,14 @@ html,body { } .put-money .content-box .cash button.ative { - background:#00BA86; + background: #00ba86; } - .put-money #upper-limit { position: absolute; width: 3.2rem; height: 2.9rem; - background: rgba(0,0,0,.6); + background: rgba(0, 0, 0, 0.6); border-radius: 5px; top: 2.8rem; left: 2.15rem; @@ -558,25 +558,23 @@ html,body { width: 1rem; height: 1rem; display: block; - margin: .5rem auto; + margin: 0.5rem auto; } .put-money #upper-limit p { - font-size:0.26rem; - font-family:PingFang-SC-Medium; - color:rgba(255,255,255,1); + font-size: 0.26rem; + font-family: PingFang-SC-Medium; + color: rgba(255, 255, 255, 1); text-align: center; } - - .put-money-success .content-box { - width:6.9rem; - height:5.4rem; - background:rgba(255,255,255,1); + width: 6.9rem; + height: 5.4rem; + background: rgba(255, 255, 255, 1); border-radius: 5px; margin: auto; - margin-top: .3rem; + margin-top: 0.3rem; } .put-money-success .content-box .box-top { @@ -588,91 +586,90 @@ html,body { .put-money-success .content-box .box-top img { width: 1rem; - margin-top: .6rem; - margin-bottom: .3rem; + margin-top: 0.6rem; + margin-bottom: 0.3rem; } .put-money-success .content-box .box-top p { - font-size:0.3rem; - font-family:PingFang-SC-Medium; - color:rgba(0,186,134,1); + font-size: 0.3rem; + font-family: PingFang-SC-Medium; + color: rgba(0, 186, 134, 1); } .put-money-success .content-box .box-top span { - font-size:0.24rem; - font-family:PingFang-SC-Medium; - color:rgba(153,153,153,1); - margin-top: .2rem; + font-size: 0.24rem; + font-family: PingFang-SC-Medium; + color: rgba(153, 153, 153, 1); + margin-top: 0.2rem; } .put-money-success .content-box .money-news { width: 90%; - font-size:0.3rem; - font-family:PingFang-SC-Medium; - color:rgba(51,51,51,1); + font-size: 0.3rem; + font-family: PingFang-SC-Medium; + color: rgba(51, 51, 51, 1); margin: auto; - margin-top: .7rem; - border-bottom: 1px solid #D2D2D2; + margin-top: 0.7rem; + border-bottom: 1px solid #d2d2d2; } .put-money-success .content-box .money-news span { - font-size:0.6rem; - font-family:PingFang-SC-Bold; - color:rgba(51,51,51,1); + font-size: 0.6rem; + font-family: PingFang-SC-Bold; + color: rgba(51, 51, 51, 1); margin-left: 5px; } .put-money-success .goHome { - width:5rem; - height:0.8rem; - background:rgba(0,186,134,1); - border-radius:5px; + width: 5rem; + height: 0.8rem; + background: rgba(0, 186, 134, 1); + border-radius: 5px; margin: auto; display: block; border: none; - font-size:0.36rem; - font-family:PingFang-SC-Medium; - color:rgba(255,255,255,1); - margin-top: .4rem; + font-size: 0.36rem; + font-family: PingFang-SC-Medium; + color: rgba(255, 255, 255, 1); + margin-top: 0.4rem; } - .service-evaluation .page-content { background: #fff; } .service-evaluation .page-content .line { height: 5px; - background: #F4F4F4; + background: #f4f4f4; } .service-evaluation .page-content .cleaners-news { padding: 0.3rem 0 0.3rem 0.3rem; background-color: #fff; } .service-evaluation .page-content .cleaners-news p:nth-child(1) { - font-size:0.32rem; - font-family:PingFang-SC-Medium; - color:rgba(51,51,51,1); + font-size: 0.32rem; + font-family: PingFang-SC-Medium; + color: rgba(51, 51, 51, 1); } .service-evaluation .page-content .cleaners-news p:nth-child(2) { - font-size:0.26rem; - font-family:PingFang-SC-Medium; - color:rgba(102,102,102,1); + font-size: 0.26rem; + font-family: PingFang-SC-Medium; + color: rgba(102, 102, 102, 1); } .service-evaluation .evaluate { position: relative; } .service-evaluation .evaluate .evaluate-question-btn { - width: .5rem; - height: .5rem; + width: 0.5rem; + height: 0.5rem; display: block; background: url(../images/service-evaluation/u578.png) no-repeat; - background-size: 100%; + background-size: 100%; position: absolute; - right: .15rem; - top: .1rem; + right: 0.15rem; + top: 0.1rem; } .service-evaluation .evaluate .evaluate-tab { display: flex; align-items: center; - padding: .3rem 0; - border-bottom: 1px solid #F4F4F4; + padding: 0.3rem 0; + border-bottom: 1px solid #f4f4f4; } .service-evaluation .evaluate .evaluate-tab ul { display: flex; @@ -681,22 +678,22 @@ html,body { .service-evaluation .evaluate .evaluate-tab ul li { list-style: none; display: inline-block; - width: .6rem; - height: .6rem; - margin-right: .3rem; + width: 0.6rem; + height: 0.6rem; + margin-right: 0.3rem; background: url(../images/service-evaluation/stars-1.png) no-repeat; background-size: 100%; } .service-evaluation .evaluate .evaluate-tab label { - font-size:0.3rem; - font-family:PingFang-SC-Medium; - color:rgba(51,51,51,1); - margin-right: .4rem; - margin-left: .3rem; + font-size: 0.3rem; + font-family: PingFang-SC-Medium; + color: rgba(51, 51, 51, 1); + margin-right: 0.4rem; + margin-left: 0.3rem; } .service-evaluation .evaluate .evaluate-tab ul li.ative { - width: .6rem; - height: .6rem; + width: 0.6rem; + height: 0.6rem; background: url(../images/service-evaluation/stars-2.png) no-repeat; background-size: 100%; } @@ -706,27 +703,27 @@ html,body { height: 2rem; display: block; margin: auto; - margin-top: .4rem; + margin-top: 0.4rem; resize: none; - background: #F4F4F4; + background: #f4f4f4; border: none; - padding: .2rem; + padding: 0.2rem; box-sizing: border-box; - font-size: .3rem; - color:rgba(153,153,153,1); -} + font-size: 0.3rem; + color: rgba(153, 153, 153, 1); +} .service-evaluation .submitBtn { - width:5rem; - height:0.8rem; - background:rgba(0,186,134,1); + width: 5rem; + height: 0.8rem; + background: rgba(0, 186, 134, 1); border-radius: 5px; margin: auto; display: block; border: none; - font-size:0.36rem; - font-family:PingFang-SC-Medium; - color:rgba(255,255,255,1); + font-size: 0.36rem; + font-family: PingFang-SC-Medium; + color: rgba(255, 255, 255, 1); letter-spacing: 10px; margin-top: 1.5rem; } @@ -736,22 +733,16 @@ html,body { width: 90%; left: 5%; top: 7rem; - font-size: .3rem; - border: 1px solid #DDD; + font-size: 0.3rem; + border: 1px solid #ddd; border-radius: 5px; - padding: .3rem; + padding: 0.3rem; box-sizing: border-box; } .service-evaluation #popup-question .popup-body p { - line-height: .5rem; + line-height: 0.5rem; } - - - - - - .service-evaluation-status .evaluation-status-icon { width: 2rem; display: block; @@ -759,11 +750,11 @@ html,body { margin-top: 1.8rem; } .service-evaluation-status .evaluation-status-box span { - font-size:0.36rem; - font-family:PingFang-SC-Medium; - color:rgba(0,186,134,1); + font-size: 0.36rem; + font-family: PingFang-SC-Medium; + color: rgba(0, 186, 134, 1); display: block; margin: auto; margin-top: 0.3rem; text-align: center; -} \ No newline at end of file +} diff --git a/src/components/back-header.vue b/src/components/back-header.vue index ce7859b..8309c33 100644 --- a/src/components/back-header.vue +++ b/src/components/back-header.vue @@ -1,6 +1,6 @@