| @@ -6,7 +6,8 @@ | |||
| "pages/integralmall/payIntegcoupondetail/index", | |||
| "pages/joinFrDpell/index", | |||
| "pages/spellDetail/index", | |||
| "pages/spellTimeout/index", | |||
| "pages/radetail/success/index", | |||
| "pages/spellTimeout/index", | |||
| "pages/spellGroup/mySpellGroup/index", | |||
| "pages/spellGroup/spellGroup", | |||
| "pages/complete/index", | |||
| @@ -23,12 +24,10 @@ | |||
| "pages/edit/edit", | |||
| "pages/actdetail/actdetail", | |||
| "pages/radetail/index", | |||
| "pages/radetail/success/index", | |||
| "pages/radetail/joinActivity/edit", | |||
| "pages/bannerdetail/index", | |||
| "pages/getuserinfo/index", | |||
| "pages/phoneinput/phoneinput", | |||
| "pages/market/index", | |||
| "pages/user/index", | |||
| "pages/user/myactivity/index", | |||
| "pages/coupon/detail/index", | |||
| @@ -39,23 +38,18 @@ | |||
| "pages/cardorder/userule/userule", | |||
| "pages/order/detail/index", | |||
| "pages/order/index/index", | |||
| "pages/success/index", | |||
| "pages/park/park", | |||
| "pages/ques/ques", | |||
| "pages/passCar/passCar", | |||
| "pages/getphoneInfo/index", | |||
| "pages/addPark/addPark", | |||
| "pages/orderquanma/index", | |||
| "pages/passCar/couponList/couponList", | |||
| "pages/passCar/choicecoupon/choicecoupon", | |||
| "pages/passCar/couponDetail/couponDetail", | |||
| "pages/managelicenseplate/managelicenseplate", | |||
| "pages/payrule/payrule", | |||
| "pages/grade/grade", | |||
| "pages/game/index", | |||
| "pages/canvas/index", | |||
| "pages/main/gameentry/gentry", | |||
| "pages/index/gameentry/gentry", | |||
| "pages/specialcourtesy/specialcourtesy", | |||
| "pages/discountCardList/discountCardList", | |||
| "pages/cardListDetail/cardListDetail", | |||
| @@ -1,66 +0,0 @@ | |||
| // pages/index/gameentry/gentry.js | |||
| Page({ | |||
| /** | |||
| * 页面的初始数据 | |||
| */ | |||
| data: { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面加载 | |||
| */ | |||
| onLoad: function (options) { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面初次渲染完成 | |||
| */ | |||
| onReady: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面显示 | |||
| */ | |||
| onShow: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面隐藏 | |||
| */ | |||
| onHide: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面卸载 | |||
| */ | |||
| onUnload: function () { | |||
| }, | |||
| /** | |||
| * 页面相关事件处理函数--监听用户下拉动作 | |||
| */ | |||
| onPullDownRefresh: function () { | |||
| }, | |||
| /** | |||
| * 页面上拉触底事件的处理函数 | |||
| */ | |||
| onReachBottom: function () { | |||
| }, | |||
| /** | |||
| * 用户点击右上角分享 | |||
| */ | |||
| onShareAppMessage: function () { | |||
| } | |||
| }) | |||
| @@ -1,3 +0,0 @@ | |||
| { | |||
| "usingComponents": {} | |||
| } | |||
| @@ -1,2 +0,0 @@ | |||
| <!--pages/index/gameentry/gentry.wxml--> | |||
| <text>pages/index/gameentry/gentry.wxml</text> | |||
| @@ -1 +0,0 @@ | |||
| /* pages/index/gameentry/gentry.wxss */ | |||
| @@ -1,84 +0,0 @@ | |||
| // pages/index/sw/index.js | |||
| let config = require("../../../config/config.js"); | |||
| let Http = require("../../../utils/HttpBasics"); | |||
| // let Http = require("../../../utils/HttpBasics"); | |||
| const app = getApp(); | |||
| const imgurl = require("../../../utils/imgurl"); | |||
| Component({ | |||
| /** | |||
| * 组件的属性列表 | |||
| */ | |||
| properties: {}, | |||
| /** | |||
| * 组件的初始数据 | |||
| */ | |||
| data: { | |||
| jianUrl: imgurl.jian.url, | |||
| barginicon: imgurl.barginicon.url, | |||
| wangmeimeibargin: imgurl.wangmeimeibargin.url, | |||
| list: [], | |||
| total:'' | |||
| }, | |||
| /** | |||
| * 组件的方法列表 | |||
| */ | |||
| methods: { | |||
| gotoBargainList(){ | |||
| wx.navigateTo({ | |||
| url: "/pages/bargain/bargain" | |||
| }) | |||
| }, | |||
| getList() { | |||
| let that = this; | |||
| Http.get({ | |||
| url: config.api.couponChannelList, | |||
| data: { | |||
| pageNum: 1, | |||
| pageSize: 5, | |||
| targetAd: 6 | |||
| } | |||
| }).then(res => { | |||
| that.setData({ | |||
| list: res.data.list, | |||
| total: res.data.total | |||
| }); | |||
| }) | |||
| .catch(err => { | |||
| console.log(err) | |||
| wx.showToast({ | |||
| title: err.errMsg, | |||
| icon: 'none', | |||
| duration: 2000, | |||
| mask: false | |||
| }); | |||
| }) | |||
| }, | |||
| gotomore: function() { | |||
| wx.navigateTo({ | |||
| url: "/pages/bargain/bargain" | |||
| }); | |||
| }, | |||
| gotodetail: function(e) { | |||
| wx.navigateTo({ | |||
| url: `/pages/coupon/detail/index?couponChannelId=${ | |||
| e.currentTarget.dataset.couponchannelid | |||
| }&couponId=${ | |||
| e.currentTarget.dataset.couponid | |||
| }&targetAd=${ | |||
| e.currentTarget.dataset.targetad | |||
| }` | |||
| }); | |||
| } | |||
| }, | |||
| ready() { | |||
| app.couponChannelListCallback = token => { | |||
| Http.setToken(token); | |||
| this.getList(); | |||
| }; | |||
| if (app.globalData.token && app.globalData.token != null) { | |||
| app.couponChannelListCallback(app.globalData.token); | |||
| } | |||
| } | |||
| }); | |||
| @@ -1,3 +0,0 @@ | |||
| { | |||
| "component": true | |||
| } | |||
| @@ -1,57 +0,0 @@ | |||
| <view class="index-rushToBuy" style='height:336rpx;' wx:if="{{list.length>2}}"> | |||
| <view class="index-rushToBuy-title"> | |||
| <image src="{{barginicon}}" class='barginiconimg' mode='widthFix'/><text class='text-red'>砍价</text>专场<text bindtap="gotomore" class='morebargin'>更多砍价></text> | |||
| </view> | |||
| <!-- 如果有两条数据以上,排版 --> | |||
| <scroll-view scroll-x class="index-scroll-view" wx:if="{{list.length>1}}"> | |||
| <view class="commodity" wx:for="{{list}}" wx:key="unique"> | |||
| <view bindtap="gotodetail" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}"> | |||
| <image mode='aspectFill' lazy-load='true' class="commodity-img" src="{{item.coverImg}}" /> | |||
| <view class="commodity-info"> | |||
| <view class="commodity-info-name">{{item.title}}</view> | |||
| <view class="commodity-info-price"><text class="commodity-info-price-p">{{item.salePriceStr}}元</text><text class='price'>{{item.priceStr}}元</text> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </scroll-view> | |||
| <!-- 如果只有一条数据,排版1 --> | |||
| <!-- <view class="commodity" wx:for="{{list}}" wx:key="unique" wx:if="{{list.length==1}}"> | |||
| <view bindtap="gotodetail" class="clearfix one-commodity" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}"> | |||
| <image mode='aspectFill' lazy-load='true' class="one-commodity-img" src="{{item.coverImg}}" /> | |||
| <view class="one-commodity-info fr"> | |||
| <view class="commodity-info-name">{{item.title}}</view> | |||
| <view class="commodity-info-subTitle">{{item.subTitle}}</view> | |||
| <view class="commodity-info-salePriceStr" style='margin-top:18rpx;'><text class="commodity-info-price-p">可砍至<text class='salePriceStr'>{{item.salePriceStr}}</text>元</text></view> | |||
| <view class="commodity-info-salePriceStr"><text class="commodity-info-price-p">原价<text class='price'>{{item.priceStr}}元</text></text></view> | |||
| <view class="commodity-info-price">邀请<text class='inviteNum'>{{item.pressLimitNum}}</text>人可砍至底价</view> | |||
| </view> | |||
| </view> | |||
| </view> --> | |||
| <!-- 如果只有一条数据,排版 --> | |||
| </view> | |||
| <!-- 如果只有一条数据,排版2 --> | |||
| <view class="index-rushToBuy" wx:if="{{list.length==1||list.length==2}}" style="padding-top:0;box-shadow:0 0 10px 0 rgba(211,211,211,0.50);"> | |||
| <view class="commodity" wx:key="unique"> | |||
| <view style='position:relative;background:#fc5b24;padding:2rpx;border-radius:16rpx;' class="clearfix one-commodity"> | |||
| <view class='titlechannel fl'> | |||
| <text>砍价</text> | |||
| <image style="width:88rpx;display:block;margin:20rpx auto 0;" src='{{wangmeimeibargin}}' mode='widthFix'></image> | |||
| </view> | |||
| <view class='rightcontent clearfix fl' bindtap="gotodetail" data-couponChannelId="{{list[0].id}}" data-couponId="{{list[0].couponId}}" data-targetAd="{{list[0].targetAd}}"> | |||
| <image mode='aspectFill' lazy-load='true' class="one-commodity-img" src="{{list[0].coverImg}}" style="width:264rpx;margin:4rpx 16rpx 0 4rpx;height:192rpx;" /> | |||
| <view class="one-commodity-info fl" style='width:164rpx;'> | |||
| <view class="commodity-info-name">{{list[0].title}}</view> | |||
| <view class="commodity-info-salePriceStr" style='margin-top:18rpx;'><text class="commodity-info-price-p"><text class='salePriceStr'>{{list[0].salePriceStr}}</text>元</text></view> | |||
| <view class="commodity-info-salePriceStr"><text class="commodity-info-price-p"><text class='price'>{{list[0].priceStr}}元</text></text></view> | |||
| <view class="commodity-info-price">邀请<text class='inviteNum'>{{list[0].pressLimitNum}}</text>人可砍至底价</view> | |||
| </view> | |||
| </view> | |||
| <view class='more' bindtap='gotoBargainList'> | |||
| <text>更</text> | |||
| <text>多</text> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| <!-- 如果只有一条数据,排版2 --> | |||
| @@ -1,227 +0,0 @@ | |||
| @import "../../../app.wxss"; | |||
| .index-rushToBuy { | |||
| width: 688rpx; | |||
| margin: 30rpx auto 0; | |||
| padding: 20rpx 0 0; | |||
| font-family: PingFangSC-Semibold; | |||
| box-shadow:0 0 10px 0 rgba(211,211,211,0.50); | |||
| border-radius:16rpx; | |||
| } | |||
| .index-rushToBuy-title { | |||
| position: relative; | |||
| font-size: 34rpx; | |||
| font-weight:bold; | |||
| color: #333333; | |||
| letter-spacing: 1.16rpx; | |||
| padding-left: 20rpx; | |||
| line-height: 34rpx; | |||
| } | |||
| .useprice{ | |||
| font-size: 28rpx; | |||
| } | |||
| .morebargin{ | |||
| float: right; | |||
| margin-right: 20rpx; | |||
| color: #999999; | |||
| font-size: 24rpx; | |||
| line-height: 34rpx; | |||
| font-weight: normal; | |||
| } | |||
| .listimage{ | |||
| position: absolute; | |||
| right: 18rpx; | |||
| width: 20px; | |||
| top: 28rpx; | |||
| } | |||
| .index-scroll-view { | |||
| width: 100%; | |||
| white-space: nowrap; | |||
| height: 300rpx; | |||
| } | |||
| .index-scroll-view .commodity { | |||
| display: inline-block; | |||
| width: 285rpx; | |||
| margin: 20rpx 0 0 13rpx; | |||
| position: relative; | |||
| border-radius: 10rpx; | |||
| overflow: hidden; | |||
| } | |||
| .index-scroll-view .commodity:last-child{ | |||
| margin-right: 15rpx; | |||
| } | |||
| .index-scroll-view .commodity:nth-of-type(1){ | |||
| margin-left: 14rpx; | |||
| } | |||
| .commodity-img{ | |||
| display: block; | |||
| width: 285rpx; | |||
| height: 166rpx; | |||
| background:rgba(255,255,255,1); | |||
| border-radius:16rpx; | |||
| } | |||
| .index-scroll-view .commodity-info { | |||
| padding:10rpx 0; | |||
| overflow: hidden; | |||
| } | |||
| .index-scroll-view .commodity-info-name { | |||
| width: 285rpx; | |||
| overflow: hidden; | |||
| white-space: nowrap; | |||
| text-overflow: ellipsis; | |||
| font-size: 28rpx; | |||
| line-height: 30rpx; | |||
| margin-top: 16rpx; | |||
| color: #333333; | |||
| } | |||
| .index-scroll-view .commodity-info-time { | |||
| font-size: 22rpx; | |||
| color: #B4B4B4; | |||
| letter-spacing: 0.7rpx; | |||
| line-height: 42rpx; | |||
| } | |||
| .index-scroll-view .commodity-info-price-p { | |||
| font-size: 28rpx; | |||
| color: #f96563; | |||
| line-height: 30rpx; | |||
| } | |||
| .commodity-info-price{ | |||
| margin-top: 10rpx; | |||
| line-height: 30rpx; | |||
| } | |||
| .index-scroll-view .commodity-info-price-o { | |||
| display: inline-block; | |||
| padding-left: 20rpx; | |||
| font-size: 24rpx; | |||
| color: #B4B4B4; | |||
| letter-spacing: 0.96rpx; | |||
| text-decoration:line-through; | |||
| line-height: 36rpx; | |||
| } | |||
| .barginicon{ | |||
| width: 24rpx; | |||
| height: 22rpx; | |||
| } | |||
| .barginiconimg{ | |||
| width: 26rpx; | |||
| height: 23rpx; | |||
| margin-right: 6rpx; | |||
| } | |||
| .text-red{ | |||
| color:#F12643; | |||
| } | |||
| .commodity-info-price-p { | |||
| font-size: 28rpx; | |||
| color: #f96563; | |||
| line-height: 30rpx; | |||
| } | |||
| .price{ | |||
| font-size: 24rpx; | |||
| color: #999; | |||
| text-decoration: line-through; | |||
| margin-left: 10rpx; | |||
| } | |||
| .one-commodity{ | |||
| padding-bottom: 20rpx; | |||
| } | |||
| .one-commodity-info { | |||
| width:322rpx; | |||
| white-space:nowrap; | |||
| text-overflow:ellipsis; | |||
| overflow:hidden; | |||
| } | |||
| .one-commodity-img{ | |||
| width: 325rpx; | |||
| height: 201rpx; | |||
| float: left; | |||
| /* border-radius:16rpx; */ | |||
| margin: 20rpx 26rpx 0 13rpx; | |||
| } | |||
| .one-commodity-info .commodity-info-name{ | |||
| font-size: 24rpx; | |||
| line-height: 32rpx; | |||
| margin-top: 14rpx; | |||
| } | |||
| .one-commodity-info .commodity-info-subTitle{ | |||
| font-size: 28rpx; | |||
| height: 28rpx; | |||
| line-height: 28rpx; | |||
| margin-top: 12rpx; | |||
| color: #999; | |||
| width: 322rpx; | |||
| white-space: nowrap; | |||
| overflow: hidden; | |||
| text-overflow: ellipsis; | |||
| } | |||
| .one-commodity-info .commodity-info-salePriceStr{ | |||
| line-height: 30rpx; | |||
| margin-top: 6rpx; | |||
| } | |||
| .one-commodity-info .commodity-info-price{ | |||
| margin-top: 0; | |||
| font-size: 18rpx; | |||
| line-height: 26rpx; | |||
| margin-left: 0; | |||
| text-decoration: none; | |||
| color: #999; | |||
| } | |||
| .inviteNum{ | |||
| color: red; | |||
| } | |||
| .one-commodity-info .salePriceStr{ | |||
| font-weight: bold; | |||
| font-size:66rpx; | |||
| line-height: 66rpx; | |||
| color: #fc5b24; | |||
| } | |||
| .titlechannel{ | |||
| text-align: center; | |||
| width: 171rpx; | |||
| height: 201rpx; | |||
| background: #fc5b24; | |||
| border-radius:16rpx; | |||
| border-top-right-radius: 0; | |||
| border-bottom-right-radius: 0; | |||
| } | |||
| .titlechannel text{ | |||
| color:#fff; | |||
| font-size:46rpx; | |||
| margin-top:13rpx; | |||
| font-weight:bold; | |||
| display:inline-block; | |||
| } | |||
| .rightcontent{ | |||
| position: relative; | |||
| width: 463rpx; | |||
| height: 201rpx; | |||
| background: #fff; | |||
| /* border-radius: 16rpx; */ | |||
| border-bottom-right-radius: 0; | |||
| border-top-right-radius: 0; | |||
| } | |||
| .more{ | |||
| position: absolute; | |||
| right: 0; | |||
| top: 0; | |||
| bottom: 0; | |||
| z-index: 10; | |||
| background: #fc5b24; | |||
| width: 55rpx; | |||
| border-bottom-right-radius:16rpx; | |||
| border-top-right-radius:16rpx; | |||
| } | |||
| .more text{ | |||
| color:#fff; | |||
| font-size: 26rpx; | |||
| display: block; | |||
| text-align: center; | |||
| } | |||
| .more text:nth-of-type(1){ | |||
| margin-top: 68rpx; | |||
| } | |||
| @@ -1,59 +0,0 @@ | |||
| // pages/index/gameentry/gentry.js | |||
| Page({ | |||
| /** | |||
| * 页面的初始数据 | |||
| */ | |||
| data: { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面加载 | |||
| */ | |||
| onLoad: function (options) { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面初次渲染完成 | |||
| */ | |||
| onReady: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面显示 | |||
| */ | |||
| onShow: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面隐藏 | |||
| */ | |||
| onHide: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面卸载 | |||
| */ | |||
| onUnload: function () { | |||
| }, | |||
| /** | |||
| * 页面相关事件处理函数--监听用户下拉动作 | |||
| */ | |||
| onPullDownRefresh: function () { | |||
| }, | |||
| /** | |||
| * 页面上拉触底事件的处理函数 | |||
| */ | |||
| onReachBottom: function () { | |||
| }, | |||
| }) | |||
| @@ -1 +0,0 @@ | |||
| {} | |||
| @@ -1,2 +0,0 @@ | |||
| <!--pages/index/gameentry/gentry.wxml--> | |||
| <text>pages/index/gameentry/gentry.wxml</text> | |||
| @@ -1 +0,0 @@ | |||
| /* pages/index/gameentry/gentry.wxss */ | |||
| @@ -2,15 +2,11 @@ | |||
| "usingComponents": { | |||
| "c-banner": "../../components/banner/index", | |||
| "discount-card": "../../components/discountCard/index", | |||
| "c-bargain": "./bargain/index", | |||
| "c-spellGroup": "./spellGroup/index", | |||
| "c-coupons": "./coupons/index", | |||
| "g-entry": "../../components/gameentry/gentry", | |||
| "c-rushtobyCard": "./rushtobyCard/index", | |||
| "c-hot": "../../components/hot/index", | |||
| "navbar": "../../components/navbar/navbar" | |||
| }, | |||
| "navigationBarTitleText": "首页", | |||
| "enablePullDownRefresh": true, | |||
| "navigationBarBackgroundColor": "#F4F5F9" | |||
| } | |||
| @@ -72,7 +72,7 @@ | |||
| <!-- 专题 --> | |||
| <view class='product' wx:if="{{showTopic}}" bindtap='gotoTopic'> | |||
| <!-- <view class='ztTitle'>点击进入{{Ttitle}}</view> --> | |||
| <!-- <view class='gift' > | |||
| <view class='gift' > | |||
| <image src='{{giftHr}}' mode='aspectFill' ></image> | |||
| </view> | |||
| <view class='textBox'> | |||
| @@ -81,8 +81,8 @@ | |||
| </view> | |||
| <view class='next'> | |||
| <image src='{{next}}' mode='aspectFill' ></image> | |||
| </view> --> | |||
| <image src='{{cover}}' style="width:100%;" mode='widthFix'></image> | |||
| </view> | |||
| <!-- <image src='{{cover}}' style="width:100%;" mode='widthFix'></image> --> | |||
| </view> | |||
| <!-- 爆款专区 --> | |||
| <c-hot id="hot"/> | |||
| @@ -1,110 +0,0 @@ | |||
| let config = require("../../../config/config.js"); | |||
| let Http = require("../../../utils/HttpBasics"); | |||
| // let Http = require("../../../utils/HttpBasics"); | |||
| const app = getApp(); | |||
| const imgurl = require("../../../utils/imgurl"); | |||
| Component({ | |||
| /** | |||
| * 组件的属性列表 | |||
| */ | |||
| properties: {}, | |||
| /** | |||
| * 组件的初始数据 | |||
| */ | |||
| data: { | |||
| list: [], | |||
| cardlist:[],//消费卡列表 | |||
| total:'' | |||
| }, | |||
| /** | |||
| * 组件的方法列表 | |||
| */ | |||
| methods: { | |||
| rushtobuy: function (e) { | |||
| wx.navigateTo({ | |||
| url: `/pages/coupon/detail/index?couponChannelId=${ | |||
| e.currentTarget.dataset.couponchannelid | |||
| }&couponId=${e.currentTarget.dataset.couponid}` | |||
| }) | |||
| }, | |||
| gotoRushList:function(){ | |||
| wx.navigateTo({ | |||
| url: '/pages/rushToBuy/index', | |||
| }) | |||
| }, | |||
| gotoCardList:function(){ | |||
| wx.navigateTo({ | |||
| url: '/pages/discountCardList/discountCardList', | |||
| }) | |||
| }, | |||
| gotodiscountCardList: function (e) { | |||
| wx.navigateTo({ | |||
| url: `/pages/coupon/detail/index?couponChannelId=${e.currentTarget.dataset.quancode}&couponId=${e.currentTarget.dataset.couponid}&cardType=${e.currentTarget.dataset.type}` | |||
| }); | |||
| }, | |||
| //获取限时抢购列表 | |||
| getList(){ | |||
| Http.get({ | |||
| url: config.api.couponChannelList, | |||
| data: { | |||
| pageNum: 1, | |||
| pageSize: 3, | |||
| targetAd: 2 | |||
| } | |||
| }).then(res => { | |||
| this.setData({ | |||
| list: res.data.list, | |||
| total: res.data.total, | |||
| }); | |||
| }) | |||
| .catch(err => { | |||
| console.log(err) | |||
| wx.showToast({ | |||
| title: err.errMsg, | |||
| icon: 'none', | |||
| duration: 2000, | |||
| mask: false | |||
| }); | |||
| }) | |||
| }, | |||
| //获取消费卡列表 | |||
| getcardList() { | |||
| Http.get({ | |||
| url: config.api.couponChannelList, | |||
| data: { | |||
| pageNum: 1, | |||
| pageSize: 3, | |||
| targetAd: 5 | |||
| } | |||
| }).then(res => { | |||
| this.setData({ | |||
| cardlist: res.data.list, | |||
| total: res.data.total | |||
| }); | |||
| }) | |||
| .catch(err => { | |||
| console.log(err) | |||
| wx.showToast({ | |||
| title: err.errMsg, | |||
| icon: 'none', | |||
| duration: 2000, | |||
| mask: false | |||
| }); | |||
| }) | |||
| } | |||
| }, | |||
| ready() { | |||
| app.couponChannelListCallback = token => { | |||
| Http.setToken(token); | |||
| this.getList(); | |||
| this.getcardList(); | |||
| }; | |||
| if (app.globalData.token && app.globalData.token != null) { | |||
| app.couponChannelListCallback(app.globalData.token); | |||
| } | |||
| } | |||
| }); | |||
| @@ -1,3 +0,0 @@ | |||
| { | |||
| "component": true | |||
| } | |||
| @@ -1,65 +0,0 @@ | |||
| <view class="index-rushToBuy"> | |||
| <view class='clearfix rushtobuyimgs'> | |||
| <!-- 限时抢购 --> | |||
| <view wx:if="{{list.length!=0}}" class='fl' style='padding:0 10rpx 10rpx;'> | |||
| <view class='clearfix title'> | |||
| <text class='qianggou fl'>限时</text> | |||
| <text class='xianshi fl'>秒杀</text> | |||
| <text class='more' bindtap='gotoRushList'>更多></text> | |||
| </view> | |||
| <!-- 限时抢购倒计时开始 --> | |||
| <!-- <view class='distance' wx:if="{{data.targetAd==2&&data.endTime!=undefined}}"> | |||
| <view style='text-align:center;display:inline-block;'> | |||
| <image class='clock' src='{{clockUrl}}' mode='widthFix'></image> | |||
| <text class="qiang" wx:if="{{data.activityStatus!=0}}">距结束 :</text> | |||
| <text class="qiang" wx:if="{{data.activityStatus==0}}">距开始 :</text> | |||
| </view> | |||
| <view wx:if="{{clock=='00'||data.status==1}}" class='times'> | |||
| 已经结束 | |||
| </view> | |||
| <view wx:if="{{clock!='00'}}" class='times'> | |||
| <view style="display:inline-block;" wx:if="{{day!=0}}"> | |||
| <text>{{day}}</text>天: | |||
| </view> | |||
| <text>{{hour}}</text>: | |||
| <text>{{min}}</text>: | |||
| <text>{{sec}}</text> | |||
| </view> | |||
| </view> --> | |||
| <!-- 限时抢购倒计时结束 --> | |||
| <view class="commodity"> | |||
| <view bindtap="rushtobuy" data-couponId="{{list[0].couponId}}" data-couponChannelId="{{list[0].id}}" data-targetAd="{{list[0].targetAd}}"> | |||
| <image mode='aspectFill' lazy-load='true' class="commodity-img" src="{{list[0].coverImg}}" /> | |||
| <view class="commodity-info"> | |||
| <view class="commodity-info-name">{{list[0].title}}</view> | |||
| <view class="commodity-info-price"> | |||
| <text class="commodity-info-price-p">{{list[0].salePriceStr}}元</text> | |||
| <text class="commodity-info-price-o">{{list[0].priceStr}}元</text> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| <!-- 消费卡列表 --> | |||
| <view wx:if="{{cardlist.length!=0}}" class='fl' style='padding:0 13rpx 10rpx;'> | |||
| <view class='clearfix title'> | |||
| <text class='qianggou fl'>消费</text> | |||
| <text class='xianshi fl'>卡</text> | |||
| <text class='more' bindtap='gotoCardList'>更多></text> | |||
| </view> | |||
| <view class="commodity"> | |||
| <view bindtap="gotodiscountCardList" data-couponId='{{cardlist[0].couponId}}' data-type="{{cardlist[0].type}}" data-quancode="{{cardlist[0].id}}"> | |||
| <image mode='aspectFill' lazy-load='true' class="commodity-img" src="{{cardlist[0].coverImg}}" /> | |||
| <view class="commodity-info"> | |||
| <view class="commodity-info-name">{{cardlist[0].title}}</view> | |||
| <view class="commodity-info-price"> | |||
| <text class="commodity-info-price-p">{{cardlist[0].salePriceStr}}元</text> | |||
| <text class="commodity-info-price-o">{{cardlist[0].priceStr}}元</text> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| @@ -1,195 +0,0 @@ | |||
| @import "../../../app.wxss"; | |||
| .rushtobuyimgs>view{ | |||
| display: inline-block; | |||
| box-shadow:0 0 10px 0 rgba(211,211,211,0.50); | |||
| border-radius:16rpx; | |||
| } | |||
| .rushtobuyimgs{ | |||
| padding: 0 30rpx; | |||
| margin-top: 30rpx; | |||
| } | |||
| .rushtobuyimgs>view>text{ | |||
| font-weight: bold; | |||
| } | |||
| .rushtobuyimgs > view:nth-of-type(1){ | |||
| margin-right: 11rpx; | |||
| } | |||
| .xianshi{ | |||
| color: #F12643; | |||
| font-weight: bold; | |||
| font-size:34rpx; | |||
| line-height: 34rpx; | |||
| } | |||
| .qianggou{ | |||
| color: #3D3737; | |||
| font-weight: bold; | |||
| font-size: 34rpx; | |||
| line-height: 34rpx; | |||
| } | |||
| .xiaofei{ | |||
| color: #3D3737; | |||
| padding-left:30rpx; | |||
| font-size: 34rpx; | |||
| } | |||
| .subtitle{ | |||
| font-size:28rpx !important; | |||
| color: #666666; | |||
| font-weight:400 !important; | |||
| margin-left: 15rpx; | |||
| } | |||
| .index-rushToBuy { | |||
| width: 100%; | |||
| font-family: PingFangSC-Semibold; | |||
| } | |||
| .index-rushToBuy-title { | |||
| position: relative; | |||
| font-size: 34rpx; | |||
| color: #000000; | |||
| letter-spacing: 1.16rpx; | |||
| padding-top: 0; | |||
| padding-left: 30rpx; | |||
| font-weight: bold; | |||
| } | |||
| .index-rushToBuy-title text{ | |||
| float: right; | |||
| margin-right: 20rpx; | |||
| color: #999999; | |||
| font-size: 24rpx; | |||
| margin-top: 8rpx; | |||
| font-weight: normal; | |||
| } | |||
| .index-rushToBuy-title image{ | |||
| position: absolute; | |||
| right: 18rpx; | |||
| width: 20px; | |||
| top: 40rpx; | |||
| } | |||
| .index-scroll-view { | |||
| width: 100%; | |||
| white-space: nowrap; | |||
| } | |||
| .index-scroll-view .commodity { | |||
| display: inline-block; | |||
| margin: 20rpx 0 16rpx; | |||
| margin-right: 0; | |||
| position: relative; | |||
| background: #fff; | |||
| width: 334rpx; | |||
| border-radius: 10rpx; | |||
| overflow: hidden; | |||
| } | |||
| .index-scroll-view .commodity:last-child{ | |||
| margin-right: 30rpx; | |||
| } | |||
| .commodity-img{ | |||
| display: block; | |||
| width: 314rpx; | |||
| height: 174rpx; | |||
| border-radius: 16rpx; | |||
| border:1rpx solid #f5f5f5; | |||
| } | |||
| .index-scroll-view .commodity-info { | |||
| padding:10rpx 0; | |||
| overflow: hidden; | |||
| } | |||
| .commodity-info-name { | |||
| font-size: 28rpx; | |||
| line-height: 28rpx; | |||
| color: #333; | |||
| white-space: nowrap; | |||
| text-overflow: ellipsis; | |||
| overflow: hidden; | |||
| width:318rpx; | |||
| padding:16rpx 0; | |||
| } | |||
| .commodity-info-time { | |||
| font-size: 28rpx; | |||
| color: #B4B4B4; | |||
| letter-spacing: 0.7rpx; | |||
| line-height: 42rpx; | |||
| font-weight: 500; | |||
| } | |||
| .commodity-info-price-p { | |||
| font-size: 28rpx; | |||
| color: #FF3232; | |||
| line-height: 36rpx; | |||
| font-weight:500; | |||
| } | |||
| .commodity-info-price-o { | |||
| display: inline-block; | |||
| padding-left: 20rpx; | |||
| font-size: 24rpx; | |||
| color: #B4B4B4; | |||
| letter-spacing: 0.96rpx; | |||
| text-decoration:line-through; | |||
| line-height: 36rpx; | |||
| } | |||
| .commodity-info-price{ | |||
| line-height: 36rpx; | |||
| } | |||
| .remainingTime { | |||
| font-size: 28rpx; | |||
| color: #b4b4b4; | |||
| } | |||
| .realRemainingTime { | |||
| color: #ff4949; | |||
| font-size: 28rpx; | |||
| } | |||
| .more{ | |||
| float: right; | |||
| line-height: 34rpx; | |||
| color: #999999; | |||
| font-size: 24rpx; | |||
| font-weight: normal; | |||
| } | |||
| .title{ | |||
| padding: 20rpx 0; | |||
| } | |||
| .clock { | |||
| width: 116rpx !important; | |||
| vertical-align: middle; | |||
| margin-right: 10rpx; | |||
| margin-top: -4rpx; | |||
| } | |||
| .qiang { | |||
| position: inline-block; | |||
| width: 60rpx; | |||
| height: 40rpx; | |||
| line-height: 40rpx; | |||
| color: #ff4949; | |||
| text-align: center; | |||
| font-size: 28rpx; | |||
| margin-right: 10rpx; | |||
| } | |||
| .times { | |||
| display: inline-block; | |||
| color: #ff4949; | |||
| font-weight: bold; | |||
| font-size: 26rpx; | |||
| text-align: center; | |||
| } | |||
| .times text { | |||
| display: inline-block; | |||
| margin: 6rpx; | |||
| height: 56rpx; | |||
| padding: 0 6rpx; | |||
| text-align: center; | |||
| font-size: 28rpx; | |||
| line-height: 60rpx; | |||
| border-radius: 12rpx; | |||
| color: #fff; | |||
| font-weight: bold; | |||
| background: #ff4949; | |||
| } | |||
| @@ -1,81 +0,0 @@ | |||
| // pages/index/sw/index.js | |||
| let config = require("../../../config/config.js"); | |||
| let Http = require("../../../utils/HttpBasics"); | |||
| const app = getApp(); | |||
| const imgurl = require("../../../utils/imgurl"); | |||
| Component({ | |||
| /** | |||
| * 组件的属性列表 | |||
| */ | |||
| properties: {}, | |||
| /** | |||
| * 组件的初始数据 | |||
| */ | |||
| data: { | |||
| jianUrl: imgurl.jian.url, | |||
| pintuan: imgurl.pintuan.url, | |||
| wangmeimeipintuan: imgurl.wangmeimeipintuan.url, | |||
| list: [], | |||
| total:'' | |||
| }, | |||
| /** | |||
| * 组件的方法列表 | |||
| */ | |||
| methods: { | |||
| gotomore: function() { | |||
| wx.navigateTo({ | |||
| url: "/pages/spellGroup/spellGroup" | |||
| }); | |||
| }, | |||
| gotospellGroupList(){ | |||
| wx.navigateTo({ | |||
| url: "/pages/spellGroup/spellGroup" | |||
| }) | |||
| }, | |||
| gotodetail: function(e) { | |||
| wx.navigateTo({ | |||
| url: `/pages/spellGroup/mySpellGroup/index?couponChannelId=${ | |||
| e.currentTarget.dataset.couponchannelid | |||
| }&couponId=${ | |||
| e.currentTarget.dataset.couponid | |||
| }&targetAd=${ | |||
| e.currentTarget.dataset.targetad | |||
| }` | |||
| }); | |||
| }, | |||
| getList(){ | |||
| Http.get({ | |||
| url: config.api.couponChannelList, | |||
| data: { | |||
| pageNum: 1, | |||
| pageSize: 4, | |||
| targetAd: 7 | |||
| } | |||
| }).then(res => { | |||
| this.setData({ | |||
| list: res.data.list, | |||
| total: res.data.total | |||
| }); | |||
| }) | |||
| .catch(err => { | |||
| wx.showToast({ | |||
| title: err.errMsg, | |||
| icon: 'none', | |||
| duration: 2000, | |||
| mask: false | |||
| }); | |||
| }) | |||
| } | |||
| }, | |||
| ready() { | |||
| app.couponChannelListCallback = token => { | |||
| Http.setToken(token); | |||
| this.getList(); | |||
| }; | |||
| if (app.globalData.token && app.globalData.token != null) { | |||
| app.couponChannelListCallback(app.globalData.token); | |||
| } | |||
| } | |||
| }); | |||
| @@ -1,3 +0,0 @@ | |||
| { | |||
| "component": true | |||
| } | |||
| @@ -1,54 +0,0 @@ | |||
| <view class="index-rushToBuy" wx:if="{{list.length>2}}" style='height:336rpx;'> | |||
| <view class="index-rushToBuy-title"> | |||
| <image src="{{pintuan}}" class='barginiconimg' mode='widthFix'/><text class='text-red'>拼团</text>专场<text bindtap="gotomore" class='morebargin'>更多拼团></text> | |||
| </view> | |||
| <scroll-view scroll-x class="index-scroll-view" wx:if="{{list.length>1}}"> | |||
| <view class="commodity" wx:for="{{list}}" wx:key="unique"> | |||
| <view bindtap="gotodetail" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}"> | |||
| <image mode='aspectFill' lazy-load='true' class="commodity-img" src="{{item.coverImg}}" /> | |||
| <view class="commodity-info"> | |||
| <view class="commodity-info-name">{{item.title}}</view> | |||
| <view class="commodity-info-price"><text class="commodity-info-price-p">{{item.salePriceStr}}元</text><text class='price'>{{item.priceStr}}元</text></view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </scroll-view> | |||
| <!-- 如果只有一条数据,排版1 --> | |||
| <!-- <view class="commodity" wx:for="{{list}}" wx:key="unique" wx:if="{{list.length==1}}"> | |||
| <view bindtap="gotodetail" class="clearfix one-commodity" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}"> | |||
| <image mode='aspectFill' lazy-load='true' class="one-commodity-img" src="{{item.coverImg}}" /> | |||
| <view class="one-commodity-info fr"> | |||
| <view class="commodity-info-name">{{item.title}}</view> | |||
| <view class="commodity-info-subTitle">{{item.subTitle}}</view> | |||
| <view class="commodity-info-salePriceStr" style='margin-top:18rpx;'><text class="commodity-info-price-p">拼团价<text class='salePriceStr'>{{item.salePriceStr}}</text>元</text></view> | |||
| <view class="commodity-info-salePriceStr"><text class="commodity-info-price-p">原价<text class='price'>{{item.priceStr}}元</text></text></view> | |||
| <view class="commodity-info-price">邀请<text class='inviteNum'>{{item.pressLimitNum}}</text>人可拼团成功</view> | |||
| </view> | |||
| </view> | |||
| </view> --> | |||
| </view> | |||
| <!-- 如果只有一条数据,排版2 --> | |||
| <view class="index-rushToBuy" wx:if="{{list.length==1||list.length==2}}" style="padding-top:0;box-shadow:0 0 10px 0 rgba(211,211,211,0.50);"> | |||
| <view class="commodity" wx:key="unique"> | |||
| <view style='position:relative;background:#fc5b24;padding:2rpx;border-radius:16rpx;' class="clearfix one-commodity"> | |||
| <view class='titlechannel fl'> | |||
| <text>拼团</text> | |||
| <image style="width:88rpx;display:block;margin:20rpx auto 0;" src='{{wangmeimeipintuan}}' mode='widthFix'></image> | |||
| </view> | |||
| <view class='rightcontent clearfix fl' bindtap="gotodetail" data-couponChannelId="{{list[0].id}}" data-couponId="{{list[0].couponId}}" data-targetAd="{{list[0].targetAd}}"> | |||
| <image mode='aspectFill' lazy-load='true' class="one-commodity-img" src="{{list[0].coverImg}}" style="width:264rpx;margin:4rpx 16rpx 0 4rpx;height:192rpx;" /> | |||
| <view class="one-commodity-info fl" style='width:164rpx;'> | |||
| <view class="commodity-info-name">{{list[0].title}}</view> | |||
| <view class="commodity-info-salePriceStr" style='margin-top:18rpx;'><text class="commodity-info-price-p"><text class='salePriceStr'>{{list[0].salePriceStr}}</text>元</text></view> | |||
| <view class="commodity-info-salePriceStr"><text class="commodity-info-price-p"><text class='price'>{{list[0].priceStr}}元</text></text></view> | |||
| <view class="commodity-info-price">邀请<text class='inviteNum'>{{list[0].pressLimitNum}}</text>人可成团</view> | |||
| </view> | |||
| </view> | |||
| <view class='more' bindtap='gotospellGroupList'> | |||
| <text>更</text> | |||
| <text>多</text> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| <!-- 如果只有一条数据,排版2 --> | |||
| @@ -1,226 +0,0 @@ | |||
| @import "../../../app.wxss"; | |||
| .index-rushToBuy { | |||
| width: 688rpx; | |||
| margin: 30rpx auto 0; | |||
| padding: 20rpx 0 0; | |||
| font-family: PingFangSC-Semibold; | |||
| box-shadow:0 0 10px 0 rgba(211,211,211,0.50); | |||
| border-radius:16rpx; | |||
| } | |||
| .index-rushToBuy-title { | |||
| position: relative; | |||
| font-size: 34rpx; | |||
| font-weight:bold; | |||
| color: #333333; | |||
| letter-spacing: 1.16rpx; | |||
| padding-left: 20rpx; | |||
| line-height: 34rpx; | |||
| } | |||
| .useprice{ | |||
| font-size: 28rpx; | |||
| } | |||
| .morebargin{ | |||
| float: right; | |||
| margin-right: 20rpx; | |||
| color: #999999; | |||
| font-size: 24rpx; | |||
| line-height: 34rpx; | |||
| font-weight: normal; | |||
| } | |||
| .listimage{ | |||
| position: absolute; | |||
| right: 18rpx; | |||
| width: 20px; | |||
| top: 28rpx; | |||
| } | |||
| .index-scroll-view { | |||
| width: 100%; | |||
| white-space: nowrap; | |||
| } | |||
| .index-scroll-view .commodity { | |||
| display: inline-block; | |||
| width: 285rpx; | |||
| margin: 20rpx 0 0 13rpx; | |||
| position: relative; | |||
| border-radius: 10rpx; | |||
| overflow: hidden; | |||
| } | |||
| .index-scroll-view .commodity:last-child{ | |||
| margin-right: 15rpx; | |||
| } | |||
| .index-scroll-view .commodity:nth-of-type(1){ | |||
| margin-left: 14rpx; | |||
| } | |||
| .commodity-img{ | |||
| display: block; | |||
| width: 285rpx; | |||
| height: 166rpx; | |||
| background:rgba(255,255,255,1); | |||
| border-radius:16rpx; | |||
| } | |||
| .index-scroll-view .commodity-info { | |||
| padding:10rpx 0; | |||
| overflow: hidden; | |||
| } | |||
| .index-scroll-view .commodity-info-name { | |||
| width: 285rpx; | |||
| overflow: hidden; | |||
| white-space: nowrap; | |||
| text-overflow: ellipsis; | |||
| font-size: 28rpx; | |||
| line-height: 30rpx; | |||
| margin-top: 16rpx; | |||
| color: #333333; | |||
| } | |||
| .index-scroll-view .commodity-info-time { | |||
| font-size: 22rpx; | |||
| color: #B4B4B4; | |||
| letter-spacing: 0.7rpx; | |||
| line-height: 42rpx; | |||
| } | |||
| .index-scroll-view .commodity-info-price-p { | |||
| font-size: 28rpx; | |||
| color: #f96563; | |||
| line-height: 30rpx; | |||
| } | |||
| .commodity-info-price{ | |||
| margin-top: 10rpx; | |||
| line-height: 30rpx; | |||
| } | |||
| .index-scroll-view .commodity-info-price-o { | |||
| display: inline-block; | |||
| padding-left: 20rpx; | |||
| font-size: 24rpx; | |||
| color: #B4B4B4; | |||
| letter-spacing: 0.96rpx; | |||
| text-decoration:line-through; | |||
| line-height: 36rpx; | |||
| } | |||
| .barginicon{ | |||
| width: 24rpx; | |||
| height: 22rpx; | |||
| } | |||
| .barginiconimg{ | |||
| width: 26rpx; | |||
| height: 23rpx; | |||
| margin-right: 6rpx; | |||
| } | |||
| .text-red{ | |||
| color:#F12643; | |||
| } | |||
| .commodity-info-price-p { | |||
| font-size: 28rpx; | |||
| color: #f96563; | |||
| line-height: 30rpx; | |||
| } | |||
| .price{ | |||
| font-size: 24rpx; | |||
| color: #999; | |||
| text-decoration: line-through; | |||
| margin-left: 10rpx; | |||
| } | |||
| .one-commodity{ | |||
| padding-bottom: 20rpx; | |||
| } | |||
| .one-commodity-info { | |||
| width:322rpx; | |||
| white-space:nowrap; | |||
| text-overflow:ellipsis; | |||
| overflow:hidden; | |||
| } | |||
| .one-commodity-img{ | |||
| width: 325rpx; | |||
| height: 200rpx; | |||
| float: left; | |||
| /* border-radius:16rpx; */ | |||
| margin: 20rpx 26rpx 0 13rpx; | |||
| } | |||
| .one-commodity-info .commodity-info-name{ | |||
| font-size: 24rpx; | |||
| line-height: 32rpx; | |||
| margin-top: 14rpx; | |||
| } | |||
| .one-commodity-info .commodity-info-subTitle{ | |||
| font-size: 28rpx; | |||
| height: 28rpx; | |||
| line-height: 28rpx; | |||
| margin-top: 12rpx; | |||
| color: #999; | |||
| width: 322rpx; | |||
| white-space: nowrap; | |||
| overflow: hidden; | |||
| text-overflow: ellipsis; | |||
| } | |||
| .one-commodity-info .commodity-info-salePriceStr{ | |||
| line-height: 30rpx; | |||
| margin-top: 6rpx; | |||
| } | |||
| .one-commodity-info .commodity-info-price{ | |||
| margin-top: 0; | |||
| font-size: 18rpx; | |||
| line-height: 26rpx; | |||
| margin-left: 0; | |||
| text-decoration: none; | |||
| color: #999; | |||
| } | |||
| .inviteNum{ | |||
| color: red; | |||
| } | |||
| .one-commodity-info .salePriceStr{ | |||
| font-weight: bold; | |||
| font-size:66rpx; | |||
| line-height: 66rpx; | |||
| color: #fc5b24; | |||
| } | |||
| .titlechannel{ | |||
| text-align: center; | |||
| width: 171rpx; | |||
| height: 201rpx; | |||
| background: #fc5b24; | |||
| border-radius:16rpx; | |||
| border-top-right-radius: 0; | |||
| border-bottom-right-radius: 0; | |||
| } | |||
| .titlechannel text{ | |||
| color:#fff; | |||
| font-size:46rpx; | |||
| margin-top:13rpx; | |||
| font-weight:bold; | |||
| display:inline-block; | |||
| } | |||
| .rightcontent{ | |||
| position: relative; | |||
| width: 463rpx; | |||
| height: 201rpx; | |||
| background: #fff; | |||
| /* border-radius: 16rpx; */ | |||
| border-bottom-right-radius: 0; | |||
| border-top-right-radius: 0; | |||
| } | |||
| .more{ | |||
| position: absolute; | |||
| right: 0; | |||
| top: 0; | |||
| bottom: 0; | |||
| z-index: 10; | |||
| background: #fc5b24; | |||
| width: 55rpx; | |||
| border-bottom-right-radius:16rpx; | |||
| border-top-right-radius:16rpx; | |||
| } | |||
| .more text{ | |||
| color:#fff; | |||
| font-size: 26rpx; | |||
| display: block; | |||
| text-align: center; | |||
| } | |||
| .more text:nth-of-type(1){ | |||
| margin-top: 68rpx; | |||
| } | |||
| @@ -1,58 +0,0 @@ | |||
| Page({ | |||
| /** | |||
| * 页面的初始数据 | |||
| */ | |||
| data: { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面加载 | |||
| */ | |||
| onLoad: function (options) { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面初次渲染完成 | |||
| */ | |||
| onReady: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面显示 | |||
| */ | |||
| onShow: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面隐藏 | |||
| */ | |||
| onHide: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面卸载 | |||
| */ | |||
| onUnload: function () { | |||
| }, | |||
| /** | |||
| * 页面相关事件处理函数--监听用户下拉动作 | |||
| */ | |||
| onPullDownRefresh: function () { | |||
| }, | |||
| /** | |||
| * 页面上拉触底事件的处理函数 | |||
| */ | |||
| onReachBottom: function () { | |||
| }, | |||
| }) | |||
| @@ -1,6 +0,0 @@ | |||
| { | |||
| "usingComponents": { | |||
| }, | |||
| "navigationBarTitleText": "商场列表" | |||
| } | |||
| @@ -1,26 +0,0 @@ | |||
| <view class="market"> | |||
| <view class='position'> | |||
| <view><text>西单大悦城</text></view> | |||
| <view> | |||
| <icon class='iconfont icon-dingweib'></icon> | |||
| <text>12.5KM</text> | |||
| <text>北京市西城区西单北大街131号</text> | |||
| </view> | |||
| </view> | |||
| <view class='position'> | |||
| <view><text>西单大悦城</text></view> | |||
| <view> | |||
| <icon class='iconfont icon-dingweib'></icon> | |||
| <text>12.5KM</text> | |||
| <text>北京市西城区西单北大街131号</text> | |||
| </view> | |||
| </view> | |||
| <view class='position'> | |||
| <view><text>西单大悦城</text></view> | |||
| <view> | |||
| <icon class='iconfont icon-dingweib'></icon> | |||
| <text>12.5KM</text> | |||
| <text>北京市西城区西单北大街131号</text> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| @@ -1,32 +0,0 @@ | |||
| @import '../../app.wxss'; | |||
| .market { | |||
| width: 100%; | |||
| height: 100%; | |||
| background: #f6f6f6; | |||
| position: absolute; | |||
| } | |||
| .position { | |||
| width: 92%; | |||
| height: 132rpx; | |||
| padding: 0 4%; | |||
| display: flex; | |||
| flex-direction: column; | |||
| background: #fff; | |||
| margin-top: 1px; | |||
| padding-top: 20rpx; | |||
| } | |||
| .position view:nth-child(1) text { | |||
| font-size: 30rpx; | |||
| padding-left: 8rpx; | |||
| } | |||
| .position view:nth-child(2) icon{ | |||
| color: #C0C0C0; | |||
| } | |||
| .position view:nth-child(2) text{ | |||
| font-size: 22rpx; | |||
| color: #C0C0C0; | |||
| padding: 0 2.7% 0 1.3%; | |||
| } | |||
| .position view:nth-child(2) text:nth-child(3) { | |||
| color: #585858; | |||
| } | |||
| @@ -1,136 +0,0 @@ | |||
| // pages/park/park.js | |||
| Page({ | |||
| /** | |||
| * 页面的初始数据 | |||
| */ | |||
| data: { | |||
| item1: ["京", "沪", "浙", "苏", "粤", "鲁", "晋", "冀", | |||
| "豫", "川", "渝", "辽", "吉", "黑", "皖", "鄂", | |||
| "津", "贵", "云", "桂", "琼", "青", "新", "藏", | |||
| "蒙", "宁", "甘", "陕", "闽", "赣", "湘"], | |||
| item2: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", | |||
| "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", | |||
| "A", "S", "D", "F", "G", "H", "J", "K", "L", | |||
| "Z", "X", "C", "V", "B", "N", "M"], | |||
| hidden1: true, | |||
| hidden2: true, | |||
| carNo: '', | |||
| }, | |||
| //车牌输入获取焦点 | |||
| d1: function () { | |||
| var that = this; | |||
| if (that.data.carNo == '') { | |||
| that.setData({ | |||
| hidden1: false, | |||
| hidden2: true | |||
| }) | |||
| } else { | |||
| that.setData({ | |||
| hidden1: true, | |||
| hidden2: false | |||
| }) | |||
| } | |||
| }, | |||
| //车牌输入失去焦点 | |||
| d2: function () { | |||
| var that = this; | |||
| that.setData({ | |||
| hidden1: true, | |||
| hidden2: true | |||
| }) | |||
| }, | |||
| //获取车牌省份 | |||
| sheng: function (e) { | |||
| var that = this; | |||
| that.setData({ | |||
| carNo: e.currentTarget.dataset.sh | |||
| }) | |||
| if (that.data.carNo != '') { | |||
| that.setData({ | |||
| hidden1: true, | |||
| hidden2: false | |||
| }) | |||
| } | |||
| }, | |||
| //获取车牌号码 | |||
| other: function (e) { | |||
| var that = this; | |||
| var carNo = that.data.carNo + e.currentTarget.dataset.ot; | |||
| that.setData({ | |||
| carNo: carNo | |||
| }) | |||
| }, | |||
| //回删车牌 | |||
| del: function () { | |||
| var that = this; | |||
| var ss = that.data.carNo; | |||
| var s = ss.split(''); | |||
| if (s.slice(0, -1).length == 0) { | |||
| that.setData({ | |||
| hidden1: false, | |||
| hidden2: true | |||
| }) | |||
| } | |||
| var s = s.join('').slice(0, -1); | |||
| that.setData({ | |||
| carNo: s | |||
| }) | |||
| }, | |||
| //确认输入 | |||
| ok: function () { | |||
| wx.navigateTo({ | |||
| url: '/pages/passCar/passCar', | |||
| }) | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面加载 | |||
| */ | |||
| onLoad: function (options) { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面初次渲染完成 | |||
| */ | |||
| onReady: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面显示 | |||
| */ | |||
| onShow: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面隐藏 | |||
| */ | |||
| onHide: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面卸载 | |||
| */ | |||
| onUnload: function () { | |||
| }, | |||
| /** | |||
| * 页面相关事件处理函数--监听用户下拉动作 | |||
| */ | |||
| onPullDownRefresh: function () { | |||
| }, | |||
| /** | |||
| * 页面上拉触底事件的处理函数 | |||
| */ | |||
| onReachBottom: function () { | |||
| }, | |||
| }) | |||
| @@ -1,4 +0,0 @@ | |||
| { | |||
| "component": true, | |||
| "usingComponents": {} | |||
| } | |||
| @@ -1,22 +0,0 @@ | |||
| <!--pages/park/park.wxml--> | |||
| <!--pages/jp_cp/jp_cp.wxml--> | |||
| <view class="container"> | |||
| <view>请输入车牌号码:</view> | |||
| <view class="chepai"> | |||
| <view class="tel" bindtap="d1">{{carNo}}</view> | |||
| </view> | |||
| <!-- 省 --> | |||
| <view class="provinces" hidden='{{hidden1}}'> | |||
| <view class="pro_li lf" wx:for="{{item1}}" wx:key='{{index}}' bindtap='sheng' data-sh="{{item}}">{{item}}</view> | |||
| <view class="pro_del lf" bindtap='null'>清空</view> | |||
| <view class="pro_close lf" bindtap='d2'>关闭</view> | |||
| </view> | |||
| <!-- 号码 --> | |||
| <view class="keyNums" hidden='{{hidden2}}'> | |||
| <view class="pro_li lf" wx:for="{{item2}}" wx:key='{{index}}' bindtap='other' data-ot="{{item}}">{{item}}</view> | |||
| <view class="bot"> | |||
| <view class="pro_ok lf" bindtap='ok'>OK</view> | |||
| <view class="pro_d lf" bindtap='del'>Del</view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| @@ -1,86 +0,0 @@ | |||
| /* pages/park/park.wxss */ | |||
| /* pages/jp_cp/jp_cp.wxss */ | |||
| .lf{ | |||
| float: left; | |||
| } | |||
| .rt{ | |||
| float: right; | |||
| } | |||
| .tel{ | |||
| border-bottom: 2rpx solid #ddd; | |||
| height: 100rpx; | |||
| line-height:100rpx; | |||
| } | |||
| .chepai{ | |||
| height: 200rpx; | |||
| line-height:200rpx; | |||
| } | |||
| .provinces{ | |||
| overflow: hidden; | |||
| background-color: #CED3D9; | |||
| padding:30rpx 0; | |||
| position: absolute; | |||
| bottom: 0; | |||
| left: 0; | |||
| z-index: 10000; | |||
| } | |||
| .pro_li{ | |||
| font-size: 36rpx; | |||
| height: 70rpx; | |||
| width: 70rpx; | |||
| line-height: 70rpx; | |||
| text-align: center; | |||
| border: 2rpx solid #ddd; | |||
| margin: 5rpx; | |||
| background-color:#fff; | |||
| } | |||
| .pro_close{ | |||
| width: 100rpx; | |||
| height: 70rpx; | |||
| line-height: 70rpx; | |||
| font-size: 32rpx; | |||
| text-align: center; | |||
| background-color: #fff; | |||
| border: 2rpx solid #ddd; | |||
| margin: 5rpx ; | |||
| } | |||
| .pro_del{ | |||
| width: 100rpx; | |||
| height: 70rpx; | |||
| line-height: 70rpx; | |||
| font-size: 32rpx; | |||
| text-align: center; | |||
| background-color: #fff; | |||
| border: 2rpx solid #ddd; | |||
| margin: 5rpx; | |||
| } | |||
| .keyNums{ | |||
| overflow: hidden; | |||
| background-color: #CED3D9; | |||
| padding:30rpx 0; | |||
| position: absolute; | |||
| bottom: 0; | |||
| left: 0; | |||
| z-index: 10000; | |||
| } | |||
| .pro_ok{ | |||
| width: 100rpx; | |||
| height: 70rpx; | |||
| line-height: 70rpx; | |||
| font-size: 32rpx; | |||
| text-align: center; | |||
| background-color: #fff; | |||
| border: 2rpx solid #ddd; | |||
| margin: 5rpx ; | |||
| /* margin-left: 35%; */ | |||
| } | |||
| .pro_d{ | |||
| width: 100rpx; | |||
| height: 70rpx; | |||
| line-height: 70rpx; | |||
| font-size: 32rpx; | |||
| text-align: center; | |||
| background-color: #fff; | |||
| border: 2rpx solid #ddd; | |||
| margin: 5rpx; | |||
| } | |||
| @@ -1,84 +0,0 @@ | |||
| const format = require("../../../utils/util.js"); | |||
| const config = require("../../../config/config.js"); | |||
| const app = getApp(); | |||
| const Http = require("../../../utils/HttpBasics"); | |||
| const imgurl = require("../../../utils/imgurl"); | |||
| Page({ | |||
| data: { | |||
| couponUrl:imgurl.coupon.url, | |||
| gouHr: imgurl.gouHr.url, | |||
| gouUrl:imgurl.gou.url, | |||
| linessUrl:imgurl.liness.url, | |||
| loadingUrl:imgurl.loading.url, | |||
| list: [], | |||
| current: "0", | |||
| current_scroll: "0", | |||
| page: 1, | |||
| allow_load: true | |||
| }, | |||
| onLoad(options) { | |||
| this.getList(0, 0); | |||
| if (options.quanid){ | |||
| this.setData({ | |||
| quanid: options.quanid | |||
| }) | |||
| } | |||
| }, | |||
| /** | |||
| * 选择使用的优惠券 | |||
| */ | |||
| choicecoupon: function(e) { | |||
| wx.navigateBack(); | |||
| var pages = getCurrentPages(); | |||
| var prevPage = pages[pages.length - 2] //上一个页面 | |||
| var that = this; | |||
| var quantitle = e.currentTarget.dataset.title; | |||
| var quanid = e.currentTarget.dataset.id; | |||
| prevPage.setData({ | |||
| quantitle: quantitle, | |||
| quanid: quanid, | |||
| }); | |||
| wx.setStorage({ | |||
| key: 'chosed', | |||
| data: 'chosed', | |||
| }) | |||
| }, | |||
| getList(key, pageNum) { | |||
| var that = this; | |||
| if (that.data.allow_load) { | |||
| Http.get({ | |||
| url: config.api.couponOrderCarList, | |||
| data: { | |||
| pageNum: pageNum, | |||
| pageSize: 20, | |||
| couponOrderStatus: key | |||
| } | |||
| }).then(res => { | |||
| res.data.list.map(file => { | |||
| file.expiredTime = format.formatTime( | |||
| file.expiredTime, | |||
| "yyyy-MM-dd hh:mm:ss" | |||
| ); | |||
| }); | |||
| if (pageNum >= res.data.pages) { | |||
| that.setData({ | |||
| allow_load: false | |||
| }); | |||
| } | |||
| that.data.list = that.data.list.concat(res.data.list); | |||
| that.setData({ | |||
| list: that.data.list | |||
| }); | |||
| }) | |||
| .catch(err => { | |||
| wx.showToast({ | |||
| title: err.errMsg, | |||
| icon: 'none', | |||
| duration: 2000, | |||
| mask: false | |||
| }); | |||
| }) | |||
| } | |||
| }, | |||
| }); | |||
| @@ -1,3 +0,0 @@ | |||
| { | |||
| "navigationBarTitleText": "停车券" | |||
| } | |||
| @@ -1,42 +0,0 @@ | |||
| <view class="market"> | |||
| <view style='padding-top:30rpx;'> | |||
| <view class="nocoupon" wx:if="{{list.length==0}}"> | |||
| <image src="{{couponUrl}}" mode="widthFix" /> | |||
| <text class="txt001">请您敬请期待</text> | |||
| <text class='txt002'>我们正在筹备一大波优惠活动</text> | |||
| <navigator class='nav' url="/pages/main/index" open-type="switchTab" hover-class="other-navigator-hover"> | |||
| <button hover-class='active'>前往首页看看</button> | |||
| </navigator> | |||
| </view> | |||
| <view wx:if="{{list.length!=0}}"> | |||
| <view class="res">温馨提示:请离场前使用优惠券</view> | |||
| <view class='section' wx:for='{{list}}' wx:key='{{index}}' bindtap="choicecoupon" data-title="{{item.title}}" data-id="{{item.id}}"> | |||
| <view class='mms'> | |||
| <image class='gou' wx:if="{{item.id==quanid}}" mode='widthFix' src='{{gouHr}}'></image> | |||
| <view class='detail_msg'> | |||
| <view class='info'> | |||
| <view class='title'> | |||
| <text>{{item.title}}</text> | |||
| </view> | |||
| <view class='subtitle'> | |||
| <text>{{item.subTitle}}</text> | |||
| </view> | |||
| <view class="btns"> | |||
| <text class='yuan' style='margin-right:10rpx;'>售价:{{item.salePrice/100}}元</text><text class='yuan' style='text-decoration:line-through' wx:if="{{item.unit==0}}">{{item.price/100}}元</text> | |||
| <text class='yuan' style='text-decoration:line-through' wx:if="{{item.unit==1}}">{{item.price/100}}小时</text> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| <!-- <image class="liness" src='{{linessUrl}}' mode="widthFix"></image> --> | |||
| <view class='expiretime'> | |||
| <text class="txt1">有效期至:</text> | |||
| <text class="txt2">{{item.expiredTime}}</text> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| <view class="loading" wx:if="{{loading}}"> | |||
| <image src="{{loadingUrl}}" mode="widthFix"></image>{{content}} | |||
| </view> | |||
| </view> | |||
| </view> | |||
| @@ -1,219 +0,0 @@ | |||
| .market { | |||
| width: 100%; | |||
| height: 100%; | |||
| /* background: #f5f5f5; */ | |||
| } | |||
| .tabs { | |||
| width: 100% !important; | |||
| height: 88rpx; | |||
| text-align: center; | |||
| position: fixed; | |||
| top: 0; | |||
| left: 0; | |||
| right: 0; | |||
| z-index: 100000; | |||
| } | |||
| .i-tab { | |||
| width: 25% !important; | |||
| display: inline-block; | |||
| } | |||
| .section { | |||
| position: relative; | |||
| } | |||
| .mms { | |||
| position: relative; | |||
| width: 690rpx; | |||
| /* background: #fff; */ | |||
| /* padding: 20rpx 0 0; */ | |||
| margin: 0 auto 46rpx; | |||
| /* border-top: 8rpx solid #02b7ff; */ | |||
| box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.10); | |||
| } | |||
| .detail_msg { | |||
| display: flex; | |||
| } | |||
| .expiretime { | |||
| display: block; | |||
| width: 100%; | |||
| text-align: left; | |||
| text-indent: 1em; | |||
| height: 50rpx; | |||
| line-height: 50rpx; | |||
| font-size: 22rpx; | |||
| color: #A6A6A6; | |||
| letter-spacing: 0; | |||
| } | |||
| .liness { | |||
| display: block; | |||
| width: 100%; | |||
| margin-top: 20rpx; | |||
| } | |||
| .logo { | |||
| width: 60rpx; | |||
| height: 60rpx; | |||
| border: 1px solid #f8f8f8; | |||
| border-radius: 50rpx; | |||
| display: block; | |||
| margin-left: 20rpx; | |||
| } | |||
| .logo image { | |||
| width: 60rpx; | |||
| height: 60rpx; | |||
| border-radius: 50%; | |||
| } | |||
| .info view:nth-child(1) { | |||
| display: flex; | |||
| justify-content: space-between; | |||
| padding: 2% 2%; | |||
| } | |||
| .info { | |||
| width: 100%; | |||
| height: 126rpx; | |||
| background: linear-gradient(127deg,rgba(252,177,74,1) 0%,rgba(254,70,20,1) 100%); | |||
| } | |||
| .info view:nth-child(1) text { | |||
| font-size: 32rpx; | |||
| line-height: 32rpx; | |||
| height: 32rpx; | |||
| color: #FFFFFF; | |||
| letter-spacing: 0; | |||
| width: 400rpx; | |||
| display: inline-block; | |||
| white-space: nowrap; | |||
| text-overflow: ellipsis; | |||
| overflow: hidden; | |||
| } | |||
| .info view:nth-child(2) { | |||
| padding-left: 2%; | |||
| font-size: 22rpx; | |||
| color: #FFFFFF; | |||
| letter-spacing: 0; | |||
| margin-top: 6rpx; | |||
| display: inline-block; | |||
| white-space: nowrap; | |||
| text-overflow: ellipsis; | |||
| overflow: hidden; | |||
| width: 400rpx; | |||
| } | |||
| .info view:nth-child(3) { | |||
| margin-left: 20rpx; | |||
| } | |||
| .btns { | |||
| position: absolute; | |||
| right: 120rpx; | |||
| top: 50rpx; | |||
| height: 48rpx; | |||
| line-height: 48rpx; | |||
| text-align: right; | |||
| color: #FFF; | |||
| font-size: 40rpx; | |||
| } | |||
| .res { | |||
| color: #f96563; | |||
| font-size:30rpx; | |||
| margin-bottom:20rpx; | |||
| text-indent:.7em; | |||
| } | |||
| .btn{ | |||
| font-size:26rpx; | |||
| } | |||
| .yuan { | |||
| color: #FFF; | |||
| font-size: 26rpx; | |||
| } | |||
| .txt1 { | |||
| font-size: 22rpx; | |||
| color: #A6A6A6; | |||
| letter-spacing: 0; | |||
| } | |||
| .nocoupon image { | |||
| width: 300rpx; | |||
| display: block; | |||
| margin: 3% auto 0; | |||
| } | |||
| .txt001 { | |||
| display: block; | |||
| line-height: 48rpx; | |||
| font-size: 34rpx; | |||
| color: #333; | |||
| letter-spacing: 0; | |||
| text-align: center; | |||
| } | |||
| .txt002 { | |||
| display: block; | |||
| margin-top: 1%; | |||
| font-size: 28rpx; | |||
| color: #999; | |||
| letter-spacing: 0; | |||
| line-height: 40rpx; | |||
| text-align: center; | |||
| } | |||
| .nocoupon button { | |||
| background: #00c0ff; | |||
| color: #fff; | |||
| font-style: 30rpx; | |||
| width: 100%; | |||
| border-radius: 60rpx; | |||
| } | |||
| .loading { | |||
| text-align: center; | |||
| height: 80rpx; | |||
| line-height: 80rpx; | |||
| font-size: 26rpx; | |||
| color: #999; | |||
| } | |||
| .loading image { | |||
| width: 60rpx; | |||
| height: 60rpx; | |||
| vertical-align: middle; | |||
| margin-right: 10rpx; | |||
| } | |||
| .active { | |||
| opacity: 0.6; | |||
| } | |||
| .nav { | |||
| position: absolute; | |||
| bottom: 3.3%; | |||
| left: 0; | |||
| right: 0; | |||
| margin: auto; | |||
| width: 670rpx; | |||
| border-radius: 60rpx; | |||
| background: #02c0ff; | |||
| font-size: 32px; | |||
| color: #fff; | |||
| text-align: center; | |||
| line-height: 32px; | |||
| } | |||
| .gou { | |||
| position: absolute; | |||
| top:45rpx; | |||
| right: 30rpx; | |||
| width: 60rpx; | |||
| } | |||
| @@ -445,19 +445,19 @@ Page({ | |||
| /** | |||
| * 选择优惠券 | |||
| */ | |||
| gotoquan: function () { | |||
| let that = this; | |||
| if (that.data.quanid) { | |||
| wx.navigateTo({ | |||
| url: `/pages/passCar/choicecoupon/choicecoupon?quanid=${that.data.quanid}`, | |||
| }) | |||
| } else { | |||
| wx.navigateTo({ | |||
| url: '/pages/passCar/choicecoupon/choicecoupon', | |||
| }) | |||
| } | |||
| // gotoquan: function () { | |||
| // let that = this; | |||
| // if (that.data.quanid) { | |||
| // wx.navigateTo({ | |||
| // url: `/pages/passCar/choicecoupon/choicecoupon?quanid=${that.data.quanid}`, | |||
| // }) | |||
| // } else { | |||
| // wx.navigateTo({ | |||
| // url: '/pages/passCar/choicecoupon/choicecoupon', | |||
| // }) | |||
| // } | |||
| }, | |||
| // }, | |||
| closeTicketModal: function () { | |||
| this.setData({ | |||
| showTicketModal: false | |||
| @@ -1,3 +1,4 @@ | |||
| const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px' | |||
| // pages/payrule/payrule.js | |||
| Page({ | |||
| @@ -5,6 +6,7 @@ Page({ | |||
| * 页面的初始数据 | |||
| */ | |||
| data: { | |||
| navigationBarHeight, | |||
| rule:'' | |||
| }, | |||
| @@ -1,3 +1,6 @@ | |||
| { | |||
| "navigationBarTitleText": "缴费规则" | |||
| "navigationBarTitleText": "缴费规则", | |||
| "usingComponents": { | |||
| "navbar": "../../components/navbar/navbar" | |||
| } | |||
| } | |||
| @@ -1,3 +1,4 @@ | |||
| <view class='rule'> | |||
| <navbar back home text="缴费规则"></navbar> | |||
| <view class='rule' style="padding-top:{{navigationBarHeight}};"> | |||
| {{rule}} | |||
| </view> | |||
| @@ -1,3 +1,4 @@ | |||
| const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px'; | |||
| // pages/forgetpwd/forgetpwd.js | |||
| let config = require('../../config/config.js') | |||
| let Http = require('../../utils/HttpBasics') | |||
| @@ -5,6 +6,7 @@ const app = getApp() | |||
| Page({ | |||
| data: { | |||
| navigationBarHeight, | |||
| phone: '', | |||
| yzm: '', | |||
| retry: false, | |||
| @@ -2,5 +2,8 @@ | |||
| "backgroundTextStyle": "light", | |||
| "navigationBarBackgroundColor": "#fff", | |||
| "navigationBarTitleText": "手机验证", | |||
| "navigationBarTextStyle": "black" | |||
| "navigationBarTextStyle": "black", | |||
| "usingComponents": { | |||
| "navbar": "../../../components/navbar/navbar" | |||
| } | |||
| } | |||
| @@ -1,5 +1,6 @@ | |||
| <!--pages/phoneinput/phoneinput.wxml--> | |||
| <view class='forgetpwd'> | |||
| <navbar home back text="手机验证"></navbar> | |||
| <view class='forgetpwd' style='padding-top:{{navigationBarHeight}}'> | |||
| <form bindsubmit='getYZM'> | |||
| <view class='retrievepwd'> | |||
| <view> | |||
| @@ -1,66 +0,0 @@ | |||
| // pages/radetail/sc/edit.js | |||
| Page({ | |||
| /** | |||
| * 页面的初始数据 | |||
| */ | |||
| data: { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面加载 | |||
| */ | |||
| onLoad: function (options) { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面初次渲染完成 | |||
| */ | |||
| onReady: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面显示 | |||
| */ | |||
| onShow: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面隐藏 | |||
| */ | |||
| onHide: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面卸载 | |||
| */ | |||
| onUnload: function () { | |||
| }, | |||
| /** | |||
| * 页面相关事件处理函数--监听用户下拉动作 | |||
| */ | |||
| onPullDownRefresh: function () { | |||
| }, | |||
| /** | |||
| * 页面上拉触底事件的处理函数 | |||
| */ | |||
| onReachBottom: function () { | |||
| }, | |||
| /** | |||
| * 用户点击右上角分享 | |||
| */ | |||
| onShareAppMessage: function () { | |||
| } | |||
| }) | |||
| @@ -1,3 +0,0 @@ | |||
| { | |||
| "usingComponents": {} | |||
| } | |||
| @@ -1,2 +0,0 @@ | |||
| <!--pages/radetail/sc/edit.wxml--> | |||
| <text>pages/radetail/sc/edit.wxml</text> | |||
| @@ -1 +0,0 @@ | |||
| /* pages/radetail/sc/edit.wxss */ | |||
| @@ -1,3 +1,4 @@ | |||
| const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px' | |||
| // pages/spellDetail/index.js | |||
| var config = require("../../config/config.js"); | |||
| const Http = require("../../utils/HttpBasics"); | |||
| @@ -8,6 +9,7 @@ Page({ | |||
| * 页面的初始数据 | |||
| */ | |||
| data: { | |||
| navigationBarHeight, | |||
| tuanzhang: imgurl.tuanzhang.url, | |||
| spellBg: imgurl.spellBg.url, | |||
| position: imgurl.position.url, | |||
| @@ -1,5 +1,7 @@ | |||
| { | |||
| "navigationBarTitleText": "拼团详情", | |||
| "usingComponents": {}, | |||
| "usingComponents": { | |||
| "navbar": "../../components/navbar/navbar" | |||
| }, | |||
| "navigationBarBackgroundColor": "#F13C42" | |||
| } | |||
| @@ -1,5 +1,6 @@ | |||
| <!--pages/spellDetail/index.wxml--> | |||
| <view class='container'> | |||
| <navbar back home text="拼团" background='#fff'></navbar> | |||
| <view class='container' style='padding-top:{{navigationBarHeight}}'> | |||
| <view class='detail'> | |||
| <view class='detail-top'> | |||
| <view class='detail-top01'> | |||
| @@ -1,58 +0,0 @@ | |||
| Page({ | |||
| /** | |||
| * 页面的初始数据 | |||
| */ | |||
| data: { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面加载 | |||
| */ | |||
| onLoad: function (options) { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面初次渲染完成 | |||
| */ | |||
| onReady: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面显示 | |||
| */ | |||
| onShow: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面隐藏 | |||
| */ | |||
| onHide: function () { | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面卸载 | |||
| */ | |||
| onUnload: function () { | |||
| }, | |||
| /** | |||
| * 页面相关事件处理函数--监听用户下拉动作 | |||
| */ | |||
| onPullDownRefresh: function () { | |||
| }, | |||
| /** | |||
| * 页面上拉触底事件的处理函数 | |||
| */ | |||
| onReachBottom: function () { | |||
| }, | |||
| }) | |||
| @@ -1,6 +0,0 @@ | |||
| { | |||
| "usingComponents": { | |||
| }, | |||
| "navigationBarTitleText": "购买成功" | |||
| } | |||
| @@ -1,9 +0,0 @@ | |||
| <view class='success'> | |||
| <view class='success_logo'> | |||
| <icon class='iconfont icon-choose'></icon> | |||
| <text>购买成功</text> | |||
| </view> | |||
| <button class='check'>查看订单</button> | |||
| <button>继续逛逛</button> | |||
| <button>去使用</button> | |||
| </view> | |||
| @@ -1,47 +0,0 @@ | |||
| .success { | |||
| width: 100%; | |||
| height: 100%; | |||
| background: #f6f6f6; | |||
| position: absolute; | |||
| } | |||
| .success_logo { | |||
| width: 201rpx; | |||
| height: 281rpx; | |||
| margin: 10% auto; | |||
| display: flex; | |||
| flex-direction: column; | |||
| margin-bottom: 20%; | |||
| } | |||
| .success_logo icon { | |||
| width: 201rpx; | |||
| height: 201rpx; | |||
| background: #00c0ff; | |||
| border-radius: 50%; | |||
| color: #fff; | |||
| font-size: 40px; | |||
| text-align: center; | |||
| line-height: 201rpx; | |||
| } | |||
| .success_logo text { | |||
| font-size: 36rpx; | |||
| text-align: center; | |||
| padding-top: 3%; | |||
| } | |||
| .success button { | |||
| width: 504rpx; | |||
| height: 88rpx; | |||
| background: #00c0ff; | |||
| color: #fff; | |||
| margin: 3% auto; | |||
| font-size: 36rpx; | |||
| } | |||
| .check { | |||
| background: #fff!important; | |||
| color: #00c0ff!important; | |||
| border:1px solid #00c0ff; | |||
| } | |||
| @@ -1,4 +1,3 @@ | |||
| <navbar text="我的" background='#FD832D' color="white"></navbar> | |||
| <view class="user" style="padding-top:{{navigationBarHeight}};"> | |||
| <view class="top" style='background:{{banneColor}}'></view> | |||