| | |
| | | ...mapState(['userInfo','openid']) |
| | | }, |
| | | onLaunch: function() { |
| | | <<<<<<< HEAD |
| | | ======= |
| | | // console.log(ua) |
| | | >>>>>>> 71a103d6f5c55136f40535bccf23bc6129e342f7 |
| | | var that = this; |
| | | if (!this.openid || this.openid =='') { |
| | | uni.login({ |
| | |
| | | |
| | | <style lang="scss"> |
| | | @import "uview-ui/index.scss"; |
| | | |
| | | .toast-custom { |
| | | width: 500px !important; |
| | | font-size: 14px !important; |
| | | } |
| | | </style> |
| | |
| | | <image src="/static/icon/ic_qidian@2x.png" mode="widthFix" v-if="i === 0"></image> |
| | | <image src="/static/icon/ic_jingguo@2x.png" mode="widthFix" v-else-if="i !== 0 && i !== item.wayInfo.length - 1"></image> |
| | | <image src="/static/icon/ic_zhongdian@2x.png" mode="widthFix" v-else-if="i === item.wayInfo.length - 1"></image> |
| | | <text>{{item.location}}</text> |
| | | <text>{{address.location}}</text> |
| | | </view> |
| | | </view> |
| | | <template v-if="[0, 2].includes(item.type)"> |
| | |
| | | <image src="/static/icon/ic_qidian@2x.png" mode="widthFix" v-if="i === 0"></image> |
| | | <image src="/static/icon/ic_jingguo@2x.png" mode="widthFix" v-else-if="i !== 0 && i !== item.wayInfo.length - 1"></image> |
| | | <image src="/static/icon/ic_zhongdian@2x.png" mode="widthFix" v-else-if="i === item.wayInfo.length - 1"></image> |
| | | <text>{{item.location}}</text> |
| | | <text>{{address.location}}</text> |
| | | </view> |
| | | </view> |
| | | <template v-if="[0, 2].includes(item.type)"> |
| | |
| | | <text>费用</text> |
| | | </view> |
| | | <view class="list-item-cate"> |
| | | <view :class="item.id === form.carType ? 'list-item-cate-item active' : 'list-item-cate-item'" v-for="(item, index) in ff" :key="index" @click="form.carType = item.id">按天付费</view> |
| | | <view :class="item.id === form.carType ? 'list-item-cate-item active' : 'list-item-cate-item'" v-for="(item, index) in ff" :key="index" @click="form.carType = item.id">{{item.name}}</view> |
| | | </view> |
| | | <view class="list-item-row"> |
| | | <view class="list-item-row-label">天数</view> |
| | |
| | | this.form.carType = id |
| | | if (id === 0) { |
| | | this.form.priceUnit = '元/人/天' |
| | | } else { |
| | | } else if (id === 1) { |
| | | this.form.priceUnit = '元/人/小时' |
| | | } else { |
| | | this.form.priceUnit = '元/斤' |
| | | } |
| | | }, |
| | | confirmCategary(e) { |
| | |
| | | // 响应拦截器 |
| | | uni.$u.http.interceptors.response.use((response) => { |
| | | uni.hideLoading(); |
| | | // console.log(response.data) |
| | | if (response.data.code === 5113) { |
| | | uni.switchTab({ |
| | | url: '/pages/index/index' |