From b87137a71cfbf1ac5542b4b27bda55ad435a9e6c Mon Sep 17 00:00:00 2001 From: GL <954534408@qq.com> Date: Wed, 9 Dec 2020 18:04:05 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8D=A2=E8=82=A4=E3=80=81=E9=A2=84?= =?UTF-8?q?=E8=B4=AD=E3=80=81=E8=BD=AE=E6=92=AD=E5=9B=BE=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E8=B7=B3=E8=BD=AC=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- assets/images/home-a_red.png | Bin 0 -> 2363 bytes components/banner/index.js | 15 +- components/coupons/index.wxml | 31 ++- components/coupons/index.wxss | 66 ++++-- components/navbar/navbar.wxml | 2 +- components/navbar/navbar.wxss | 6 +- custom-tab-bar/index.js | 46 +++- custom-tab-bar/index.wxml | 2 +- index/index.js | 6 +- index/index.wxml | 8 +- index/index.wxss | 6 +- index/passCar.js | 2 +- index/passCar.wxml | 5 +- index/passCar.wxss | 5 +- index/searchbar.js | 2 +- index/searchbar.wxml | 14 +- index/searchbar.wxss | 1 + index/user.wxml | 1 + pages/ConsumeDetail/ConsumeDetail.wxml | 3 +- pages/acSignIn/index.wxml | 1 + pages/addPark/addPark.wxml | 2 +- pages/bannerdetail/index.wxml | 3 +- pages/bargain/bargain.wxml | 3 +- .../bargain/bargainDatail/bargainDatail.wxml | 3 +- pages/canvas/index.js | 1 + pages/canvas/index.wxml | 3 +- pages/cardorder/detail/index.wxml | 3 +- pages/cardorder/index/index.wxml | 3 +- pages/cardorder/userule/userule.wxml | 3 +- pages/complete/index.wxml | 3 +- pages/coupon/detail/index.js | 14 +- pages/coupon/detail/index.wxml | 44 +++- pages/coupon/detail/index.wxss | 221 ++++++++++++------ pages/couponorder/detail/index.js | 4 +- pages/couponorder/detail/index.wxml | 8 +- pages/couponorder/detail/index.wxss | 1 + pages/couponorder/index/index.wxml | 3 +- pages/czdetail/czdetail.wxml | 3 +- pages/discountCardList/discountCardList.wxml | 3 +- pages/edit/edit.wxml | 3 +- pages/exchange/exchange.wxml | 3 +- pages/exchange/exchange.wxss | 2 +- pages/freeBannerDetail/index.wxml | 3 +- pages/getphoneInfo/index.wxml | 2 +- pages/getuserinfo/index.wxml | 2 +- pages/grade/grade.wxml | 4 +- pages/index/searchbar/detail/index.wxml | 3 +- pages/integralmall/index.wxml | 3 +- pages/integralmall/integraHistory/index.js | 2 +- pages/integralmall/integraHistory/index.wxml | 3 +- .../payIntegcouponStatus/index.wxml | 3 +- .../payIntegcoupondetail/index.wxml | 3 +- pages/joinFrDpell/index.wxml | 3 +- pages/mallInfo/mallInfo.wxml | 3 +- .../managelicenseplate.wxml | 2 +- pages/order/detail/index.wxml | 3 +- pages/order/index/index.wxml | 3 +- pages/orderquanma/index.wxml | 5 +- pages/orderquanma/index.wxss | 1 + pages/passCar/couponDetail/couponDetail.wxml | 3 +- pages/passCar/couponList/couponList.wxml | 5 +- pages/paySuccess/paySuccess.wxml | 3 +- pages/payrule/payrule.wxml | 2 +- pages/ques/ques.wxml | 3 +- pages/radetail/index.wxml | 3 +- pages/radetail/joinActivity/edit.wxml | 3 +- pages/radetail/success/index.wxml | 3 +- pages/rushToBuy/index.wxml | 3 +- pages/scanPay/scanPay.wxml | 3 +- pages/searchbar/searchbar.wxml | 3 +- pages/specialcourtesy/specialcourtesy.wxml | 4 +- pages/spellDetail/index.wxml | 3 +- pages/spellGroup/mySpellGroup/index.wxml | 5 +- pages/spellGroup/paySpellGroup/index.wxml | 3 +- pages/spellGroup/spellGroup.wxml | 3 +- pages/spellGroup/spellGroup.wxss | 1 + pages/spellTimeout/index.wxml | 3 +- pages/topicDetail/index.wxml | 1 + pages/user/myactivity/index.wxml | 3 +- pages2/live/livelist/index.wxml | 3 +- project.config.json | 2 +- utils/imgurl.js | 4 + 83 files changed, 474 insertions(+), 203 deletions(-) create mode 100644 assets/images/home-a_red.png diff --git a/app.js b/app.js index def4385..8c2e1d2 100644 --- a/app.js +++ b/app.js @@ -144,7 +144,7 @@ App({ }) }, globalData: { - typeLsit: {},//初始哈样式 + typeLsit: [],//初始哈样式 scene: "", // token token: null, diff --git a/assets/images/home-a_red.png b/assets/images/home-a_red.png new file mode 100644 index 0000000000000000000000000000000000000000..372065775ad0785cf6b4ac4f82db8e381d13b221 GIT binary patch literal 2363 zcmbVO4Nw%<9Y38I4N79mhb^?tx+Eqld;4);?CP1|9RjI`1debT1on2{-EFwLJ$4uG zM5=OX{78)H5ECs`LnG**h?pi6Q)>%BoGH^Xu}1t%97nMxK_E_Q)N0?tan%e-o!-pe zd;8w+{reXk`qwv2ol>7x89t&hGmNlBmaq2Tp z^PAuPM5CE-ORzf>hixIli9RjMi%y^o`2rBF(ae1=6kxeBpde1*7W`)P`bS4mMBvS6 zp}|Jj0v6yAvMMEzUzua)D$6*UN1vOA%ndP+zy}l-3HiK!nF*QEVO|E#)nyz-h9OFs z8BJFWA`V+FVi6^P7_>%=BlQNvL~BW-PEXUR2t|--IFW{vI*c?jdV--SB=SR{HHmjI zdDaCHTky?{dK4wV;CL_?)CP50QF7xXP186*;S_~I1ST){D{Kh!%PFG_Rv>ed5Ksis zkEo2SQ>;+TC{#M)f-exI^~;ek!GPf*Hh_~_LUm~v$a7I#phEHv8|OJ3c!3Z26&Yg5 zC^p~`6;bwx-$NbUe!u_>t<4s-F{T!uFKR+oGL}I%A^{l_E!&p|0GrA!=Oft}79&X;jTogRhvnLAOtxQESU(4{t!5O)M=J*RHqPH*Hfn%5h!G#!zKk-!PJILbii*wOP=k*iRvKs`TlA$XC49RHPPa_UHy zchMLy7)Z=WK{lt6BQQOw*PHZ4U^MDXqil;L0p3a0dq1nHiieC85A-y}88MO~bQneH zofr)Ohfyw?q+I~8M#`jC{%|odS%M7HygYK3@#QtADs`j>sBI{R4&jf2xlJ zhx4$0H-N1cM^%4twJD9H2LEo>hWGAkV54x@71e399mAJsLkE6HEx~r(S?4>a(TwlQ zwx-)X)nA>l9WTiES=Zp-C;5$az=34)wS7?bOwr+H?DSQUCUP z-FH@YpMyhNTun`lEAI5a6Q|ZLc6)NpKDsHjc~LvCwsZ2IIvVUd8VG%L>p;$~Z~89jix>3-70cIwm^o!PZhv^UAvx~-mac)v zj8DAio;Yvn0xYIwig_b`@Id6PhyK;{`P{_T zgz%ohde?hZ>yN#Bp?<@Wx@*zN0UdQa{i%H2Ny z*O%q;@h{gZ#z*2paf{eFhfiL-m$zc=rqq%Rx=(7`Y6}PJrZ-ez@F?EV=lE=4;q2lc zOMia4B0Mo^)}gBUgS!uS_v}m9x31}8TYB|YXtV@>z57tw;Uz6ay?-p(8*{B}@A09g zcG1NaEo}Tk6ib9)Bh=VT~okUFkUVqcb~; zf2l97{r27Np0=~Qrk!|2=>ErxJKxOA;ePjJ(!S$E1ve8;)x1!4tR&=cw6D5$<8W)g zHg#z{bELoZYW=BCH(f6;yV9{ZxY=OTUwb`vGt<-@o;VPDq4SAtAM1K&6zzX%dVO6= zTIsD%DigcbzIAzZfZF^*#v4^mCb;lPvgFD-M2)gt}Rr#l1Svbpkf9vhpn-8wOI<({NO1Y`=U~^qg^VyD5 zEhnv?_cgYs=li!zF9vrqtBML7!rl{KtekOYSE;?>!j}0TUU;XvYkf}hir*g}n%tiJ zLEqrVt7n-8vTW6>E^SFFFI;E3{L!Ghp!A +预售 - + @@ -20,11 +21,16 @@ {{data.title}} {{data.subTitle}} - - ¥{{data.salePriceStr}}¥{{data.priceStr}} - 抢购价¥{{data.salePriceStr}} - 可砍至¥{{data.salePriceStr}} - 拼团价¥{{data.salePriceStr}} + + ¥ + {{data.salePriceStr}} + ¥{{data.priceStr}} + 抢购价 + ¥{{data.salePriceStr}} + 可砍至 + ¥{{data.salePriceStr}} + 拼团价 + ¥{{data.salePriceStr}} @@ -35,15 +41,18 @@ {{data.priceStr}}小时 + + 预售定金:¥{{data.salePriceStr}} + - 免费领 - 购买 - 去抢购 - 去砍价 - 去拼团 + 免费领 + 购买 + 去抢购 + 去砍价 + 去拼团 已售罄 已下架 diff --git a/components/coupons/index.wxss b/components/coupons/index.wxss index 8bbd190..53eadc9 100644 --- a/components/coupons/index.wxss +++ b/components/coupons/index.wxss @@ -5,9 +5,13 @@ width: 340rpx; display: inline-block; overflow: hidden; - border-radius:12rpx; + border-radius: 12rpx; +} +.earnest{ + color: red; + font-size: 24rpx; + padding-left: 10rpx; } - .coupons-border { height: 1rpx; left: 30rpx; @@ -17,8 +21,6 @@ bottom: 0; } - - .coupons-img image { display: block; width: 300rpx; @@ -37,7 +39,7 @@ .coupons-info-name { font-size: 30rpx; - color: #3C3C3C; + color: #3c3c3c; letter-spacing: 0; line-height: 38rpx; } @@ -65,21 +67,23 @@ line-height: 44rpx; margin-left: 16rpx; padding-top: 16rpx; - color: #FD832D; + color: #fd832d; width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; - } -.rmb{ - font-size: 24rpx!important; - margin-right: 4rpx!important; + +.rmb { + font-size: 24rpx !important; + margin-right: 4rpx !important; color: #FD782D!; } -.num{ - color: #FD782D; + +.num { + color: #fd782d; } + .tit { overflow: hidden; white-space: nowrap; @@ -124,7 +128,7 @@ } .coupons-btn-gm { - border-radius: 10px!important; + border-radius: 10px !important; margin: 0 !important; padding: 0 !important; font-size: 26rpx; @@ -133,12 +137,12 @@ height: 51rpx !important; width: 100rpx !important; line-height: 51rpx !important; - background:linear-gradient(127deg,rgba(252,177,74,1) 0%,rgba(254,70,20,1) 100%)!important; + background: linear-gradient(127deg, rgba(252, 177, 74, 1) 0%, rgba(254, 70, 20, 1) 100%) !important; } .coupons-btn-gms { background: #b9b9b9 !important; - border-radius: 10px!important; + border-radius: 10px !important; opacity: 0.6; margin: 0 !important; padding: 0 !important; @@ -198,15 +202,16 @@ opacity: 0.6; } -.view02{ - font-size:20rpx; - line-height:34rpx; +.view02 { + font-size: 20rpx; + line-height: 34rpx; text-decoration: line-through; color: #999 !important; - font-weight:normal; - letter-spacing:0; + font-weight: normal; + letter-spacing: 0; margin-left: 10rpx; } + .view01 { text-decoration: line-through; color: #999 !important; @@ -283,13 +288,30 @@ scroll-view { opacity: 1 !important; background: #fff; } -.hover{ - opacity: .6; + +.hover { + opacity: 0.6; } + .navigator { display: inline-block; background: #fff; border-radius: 12rpx; + position: relative; +} + +.presell { + position: absolute; + width: 300rpx; + height: 40rpx; + background-color: rgba(247, 21, 21, 0.6); + z-index: 100; + top: 158rpx; + line-height: 20px; + text-align: center; + color: #fff; + margin-left: 20rpx; + font-size: 26rpx; } .navigator:nth-of-type(2n+1) { diff --git a/components/navbar/navbar.wxml b/components/navbar/navbar.wxml index 803d32f..ec83c6f 100644 --- a/components/navbar/navbar.wxml +++ b/components/navbar/navbar.wxml @@ -1,4 +1,4 @@ - + diff --git a/components/navbar/navbar.wxss b/components/navbar/navbar.wxss index d1aea47..055b358 100644 --- a/components/navbar/navbar.wxss +++ b/components/navbar/navbar.wxss @@ -1,10 +1,12 @@ .navbar { width: 100vw; background-color: #F4F5F9; - /* position: fixed; */ + position: fixed; left: 0; top: 0; - /* z-index: 400000000; */ + /* height:150rpx; */ + overflow: hidden; + z-index: 400000000; } .title-container { diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index 38e7bc2..6f85581 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -2,8 +2,10 @@ const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {} let ifStoreApp = extConfig.attr.ifStoreApp; const Http = require("../utils/HttpBasics"); var config = require("../config/config.js"); +let app = getApp(); Component({ data: { + home_a_img:[], selected: 0, "color": "#abb1be", "selectedColor": "#FD782D", @@ -33,8 +35,16 @@ Component({ } ] }, - attached() { + created(){ this.getType() + }, + // lifetimes: { + // attached: function () { + // // 在组件实例进入页面节点树时执行 + + // }, + // }, + attached() { if (ifStoreApp == 1) { this.setData({ list: [{ @@ -77,6 +87,12 @@ Component({ }, methods: { switchTab(e) { + + // this.setData({ + // list: this.data.home_a_img + // }) + // console.log(this.data.home_a_img) + const data = e.currentTarget.dataset; const url = data.path; if (data.index == 0 || data.index == 3) { @@ -129,9 +145,34 @@ Component({ } ], selectedColor: `${data.t_uc_std.styleClass}`, + home_a_img: [{ + "pagePath": "/index/index", + "iconPath": `${data.t_in.icon}`, + "selectedIconPath": `${data.t_in_std.icon}`, + "text": "首页" + }, + { + "pagePath": "/index/searchbar", + "iconPath": `${data.t_md.icon}`, + "selectedIconPath": `${data.t_md_std.icon}`, + "text": "门店" + }, + { + "pagePath": "/index/passCar", + "iconPath": `${data.t_tc.icon}`, + "selectedIconPath": `${data.t_tc_std.icon}`, + "text": "停车" + }, + { + "pagePath": "/index/user", + "iconPath": `${data.t_uc.icon}`, + "selectedIconPath": `${data.t_uc_std.icon}`, + "text": "我的" + } + ], }) } - + console.log(this.data.list[0].selectedIconPath, '99999999999999999999999999999999999999999') }) }, getTemplateId() { @@ -189,4 +230,5 @@ Component({ }, } + }) \ No newline at end of file diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml index 29d1b9e..7e45c49 100644 --- a/custom-tab-bar/index.wxml +++ b/custom-tab-bar/index.wxml @@ -1,5 +1,5 @@ - + diff --git a/index/index.js b/index/index.js index 862c81f..dc30992 100644 --- a/index/index.js +++ b/index/index.js @@ -1,6 +1,6 @@ const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {} let ifStoreApp = extConfig.attr.ifStoreApp; -const navigationBarHeight = (getApp().statusBarHeight + 60) + 'rpx' +const navigationBarHeight = (getApp().statusBarHeight + 44)+"px" const Http = require("../utils/HttpBasics"); const imgurl = require("../utils/imgurl"); const config = require("../config/config"); @@ -237,11 +237,11 @@ Page({ }).then(res=>{ const{code ,data}=res if(code==200){ + app.globalData.typeLsit=data this.setData({ - typeLsit: data + typeLsit: data, }) } - console.log(this.data.typeLsit,"???") }) }, /** diff --git a/index/index.wxml b/index/index.wxml index 2f2a678..8692294 100644 --- a/index/index.wxml +++ b/index/index.wxml @@ -1,12 +1,14 @@ + - + + + + {{squareName}} ↓ - - diff --git a/index/index.wxss b/index/index.wxss index b5a7ff2..71bb0f3 100644 --- a/index/index.wxss +++ b/index/index.wxss @@ -23,10 +23,6 @@ background-color: #F4F5F9; margin-bottom: 20rpx; margin-left: 5rpx; } -.underling{ - font-size: 30rpx; - overflow: hidden; -} .index-position { background: rgba(0, 0, 0, 0.5); height: 88rpx; @@ -78,7 +74,7 @@ page { width: 100%; } .underling{ - margin: 10rpx 30rpx; + padding: 10rpx 30rpx; } .userinfo{ width:690rpx; diff --git a/index/passCar.js b/index/passCar.js index f677041..206eccf 100644 --- a/index/passCar.js +++ b/index/passCar.js @@ -1,5 +1,5 @@ -const navigationBarHeight = (getApp().statusBarHeight + 50) + 'px' +const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px' const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {} let app = getApp(); const format = require("../utils/util.js"); diff --git a/index/passCar.wxml b/index/passCar.wxml index 289a105..28ecacf 100644 --- a/index/passCar.wxml +++ b/index/passCar.wxml @@ -1,5 +1,6 @@ - + + {{park.addr}} @@ -112,7 +113,7 @@ - + 智慧停车即将上线 敬请期待 diff --git a/index/passCar.wxss b/index/passCar.wxss index bba5340..8fbc8ee 100644 --- a/index/passCar.wxss +++ b/index/passCar.wxss @@ -7,7 +7,10 @@ page { .container { padding-bottom: 60rpx; } - +.cs{ + height: 30rpx; + background-color: aqua +} .con text { display: block; text-align: center; diff --git a/index/searchbar.js b/index/searchbar.js index c936e83..9b69b26 100644 --- a/index/searchbar.js +++ b/index/searchbar.js @@ -1,4 +1,4 @@ -const navigationBarHeight = (getApp().statusBarHeight + 44) +const navigationBarHeight = (getApp().statusBarHeight + 44)+"px" const Http = require("../utils/HttpBasics"); const imgurl = require("../utils/imgurl"); const config = require("../config/config"); diff --git a/index/searchbar.wxml b/index/searchbar.wxml index 4f67ed6..7b6c869 100644 --- a/index/searchbar.wxml +++ b/index/searchbar.wxml @@ -1,10 +1,12 @@ -搜索门店 - + + + 搜索门店 + - + @@ -19,7 +21,7 @@ - +