|
@@ -14,17 +14,17 @@
|
|
|
|
|
|
<u-city-select v-model="cityOpen" @city-change="cityChange" :areaCode='["52", "5201"]' ></u-city-select>
|
|
|
|
|
|
- <view class="notice-bar-wrap u-flex" v-if="noticeList.length>=1" @click="openPage('pages/message/message')">
|
|
|
+ <view class="notice-bar-wrap u-flex" v-if="noticeList.length >= 1" @click="openPage('pages/message/message')">
|
|
|
<u-icon custom-prefix="custom-icon" size="50" name="xiaoxi" color="#008CFF"></u-icon>
|
|
|
<u-notice-bar
|
|
|
- class="u-flex-1"
|
|
|
- mode="vertical"
|
|
|
- :autoplay="true"
|
|
|
- :list="noticeList"
|
|
|
- :volume-icon="false"
|
|
|
- bg-color="#fff"
|
|
|
- color="#727272"
|
|
|
- :more-icon="true"></u-notice-bar>
|
|
|
+ class="u-flex-1"
|
|
|
+ mode="vertical"
|
|
|
+ :autoplay="true"
|
|
|
+ :list="noticeList"
|
|
|
+ :volume-icon="false"
|
|
|
+ bg-color="#fff"
|
|
|
+ color="#727272"
|
|
|
+ :more-icon="true"></u-notice-bar>
|
|
|
</view>
|
|
|
<u-card :show-head="false" :show-foot="false" border-radius="16" margin="20rpx 40rpx" padding="30">
|
|
|
<view class="content-nav" slot="body">
|
|
@@ -73,15 +73,16 @@
|
|
|
<view class="pending-order-body-left">
|
|
|
<view class="car-number">{{item.vehicleNo}}</view>
|
|
|
<view class="item-cell">
|
|
|
- <span class="pending-order-body-left-label">入场时间:</span>
|
|
|
+ <span class="pending-order-body-left-label">入场时间:</span>
|
|
|
<span>{{item.inTime}}</span>
|
|
|
</view>
|
|
|
<view class="item-cell">
|
|
|
- <span class="pending-order-body-left-label">出场时间:</span>
|
|
|
- <span>{{item.outTime}}</span>
|
|
|
+ <span class="pending-order-body-left-label">出场时间:</span>
|
|
|
+ <!-- <span>{{item.outTime}}</span> -->
|
|
|
+ <span>计时中</span>
|
|
|
</view>
|
|
|
<view class="item-cell">
|
|
|
- <span class="pending-order-body-left-label">预计金额:</span>
|
|
|
+ <span class="pending-order-body-left-label">预计金额:</span>
|
|
|
<span>{{item.payAmount}}</span>
|
|
|
</view>
|
|
|
<!-- <view class="item-cell">
|
|
@@ -120,37 +121,11 @@
|
|
|
</view>
|
|
|
</u-card>
|
|
|
</template>
|
|
|
- <!-- <view class="promotion" @click="$refs.uToast.show({title: '建设中'})">
|
|
|
- <view class="promotion-header u-flex u-row-between">
|
|
|
- <view class="promotion-header-til">优惠活动</view>
|
|
|
- <view class="promotion-header-con">去领取</view>
|
|
|
- </view>
|
|
|
- <view class="promotion-body">
|
|
|
- <view class="promotion-body-til">八折停车</view>
|
|
|
- <view class="promotion-body-con">从客户启用贵州银行行卡支付的第四个月开始,使用我行卡支付永久享受八折优惠(单日不限次数)...</view>
|
|
|
- </view>
|
|
|
- </view> -->
|
|
|
<view class="promotion-box">
|
|
|
<view class="promotion-title">
|
|
|
<text>优惠活动</text>
|
|
|
</view>
|
|
|
<view class="promotion-banner">
|
|
|
- <!-- <swiper
|
|
|
- class="promotion-banner-swiper"
|
|
|
- :indicator-dots="true"
|
|
|
- indicator-color="rgba(170, 216, 255, 1)"
|
|
|
- indicator-active-color="#008CFF"
|
|
|
- :autoplay="true"
|
|
|
- :duration="500"
|
|
|
- mode="dot"
|
|
|
- :interval="3000"
|
|
|
- :circular="true">
|
|
|
- <swiper-item v-for="(item, index) in promotionBannerList" :key="'bannner' + index">
|
|
|
- <view class="promotion-banner-item">
|
|
|
- <image :src="item.image" mode=""></image>
|
|
|
- </view>
|
|
|
- </swiper-item>
|
|
|
- </swiper> -->
|
|
|
<u-swiper
|
|
|
:list="promotionBannerList"
|
|
|
@click="promotionBannerClick"
|
|
@@ -196,7 +171,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- city: '普定县',
|
|
|
+ city: '贵州省',
|
|
|
keyword:'',
|
|
|
bannerList:[
|
|
|
{image: '/static/img/index-banner01.png',title: ''}
|
|
@@ -235,8 +210,7 @@
|
|
|
},
|
|
|
onShow() {
|
|
|
this.handleGetIndexData();
|
|
|
- // this.getLocation();
|
|
|
- // this.getCityNameByLonLat({latitude: 26.301447, longitude: 105.743197})
|
|
|
+ this.getLocation();
|
|
|
let locationLocaturl = window.location.search;
|
|
|
this.code = getUrlParams(locationLocaturl,"code");
|
|
|
if(this.code&&!this.$store.state.vuex_wxinfo.openId){this.handleGetWXInfo(this.code)};
|
|
@@ -252,7 +226,7 @@
|
|
|
that.latLongItude = {latitude: res.latitude,longitude:res.longitude};
|
|
|
that.latitude = res.latitude;
|
|
|
that.longitude = res.longitude;
|
|
|
- // that.getCityNameByLonLat(that.latLongItude)
|
|
|
+ that.getCityNameByLonLat(that.latLongItude)
|
|
|
},
|
|
|
fail: () => {
|
|
|
console.log("获取经纬度失败");
|
|
@@ -376,83 +350,6 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // gyBankPay() {
|
|
|
- // this.$u.api.payGzbank({orderList: this.curOrderList}).then(res=>{
|
|
|
- // let payUrl = res.data.url;
|
|
|
- // this.currentPayUrl=encodeURIComponent(res.data.url);
|
|
|
- // this.$u.route({
|
|
|
- // url: 'pages/payLists/pay',
|
|
|
- // params: {
|
|
|
- // currentPayUrl: this.currentPayUrl
|
|
|
- // }
|
|
|
- // });
|
|
|
- // }).catch(err=>{
|
|
|
- // this.$refs.uToast.show({
|
|
|
- // title: err.msg,
|
|
|
- // type: 'error',
|
|
|
- // });
|
|
|
- // });
|
|
|
- // },
|
|
|
- // // 微信支付
|
|
|
- // wechatPay() {
|
|
|
- // const openId = this.$store.state.vuex_wxinfo.openId
|
|
|
- // if (openId) {
|
|
|
- // this.getWXPay(this.curOrderList)
|
|
|
- // } else {
|
|
|
- // this.getCode()
|
|
|
- // }
|
|
|
- // },
|
|
|
- // async getWXPay(list){
|
|
|
- // let params = {
|
|
|
- // orderList: list,
|
|
|
- // openid: this.$store.state.vuex_wxinfo.openId
|
|
|
- // };
|
|
|
- // await this.$wxApi.config();
|
|
|
- // this.$pay.wechatPay(params).then(res =>{
|
|
|
- // if(res.code == 0){
|
|
|
- // // 成功
|
|
|
- // this.$u.route({
|
|
|
- // url:'/',
|
|
|
- // });
|
|
|
- // }else if(res.code == 1){
|
|
|
- // // 取消
|
|
|
- // // uni.redirectTo({
|
|
|
- // // url: '/pages/userCenter/myOrder/myOrder'
|
|
|
- // // })
|
|
|
- // }else if(res.code == 2){
|
|
|
- // this.$refs.uToast.show({
|
|
|
- // title: '支付失败,请检查!',
|
|
|
- // type: 'error',
|
|
|
- // // url: '/pages/user/index'
|
|
|
- // });
|
|
|
- // }
|
|
|
- // });
|
|
|
- // },
|
|
|
- // getCode () {
|
|
|
- // var local = window.location.href // 获取页面url
|
|
|
- // let locationLocaturl = window.location.search;
|
|
|
- // this.code = getUrlParams(locationLocaturl,"code"); // 截取code
|
|
|
- // if (this.code == null || this.code === '') { // 如果没有code,则去请求
|
|
|
- // window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.config.wxAppid}&redirect_uri=${encodeURIComponent(local)}&response_type=code&scope=snsapi_userinfo&#wechat_redirect`
|
|
|
- // } else {
|
|
|
- // this.handleGetWXInfo(this.code) //把code传给后台获取用户信息
|
|
|
- // }
|
|
|
- // },
|
|
|
- // handleGetWXInfo (code) { // 通过code获取 openId等用户信息,/api/user/wechat/login 为后台接口
|
|
|
- // let _this = this
|
|
|
- // this.$u.api.getWXInfo(code).then((res) => {
|
|
|
- // if (res.code === 200 ) {
|
|
|
- // this.$u.vuex('vuex_wxinfo', res.data);
|
|
|
- // // 继续支付
|
|
|
- // this.getWXPay(this.currentItem)
|
|
|
- // }
|
|
|
- // }).catch((err) => {
|
|
|
- // this.$refs.uToast.show({
|
|
|
- // title: err.msg,
|
|
|
- // type: 'error',
|
|
|
- // });
|
|
|
- // })
|
|
|
- // },
|
|
|
// 关闭弹框
|
|
|
closePaymentMethod() {
|
|
|
this.payWayPop = false
|