Commit 54ea60d2 authored by fwz's avatar fwz

Merge remote-tracking branch 'origin/dev_cd' into dev_cd

parents 0afadf95 ead7a42b
...@@ -121,11 +121,16 @@ export default { ...@@ -121,11 +121,16 @@ export default {
}, },
//解析手机号 //解析手机号
getPhoneNumber(e) { getPhoneNumber(e) {
uni.showLoading({
title: '加载中',
mask:true
});
let that = this let that = this
if (e.detail.errMsg == "getPhoneNumber:ok") { if (e.detail.errMsg == "getPhoneNumber:ok") {
// uni.hideLoading()
that.decodePhoneLogin(e.detail) that.decodePhoneLogin(e.detail)
} else { } else {
//console.log("用户点击了拒绝") console.log("用户点击了拒绝")
} }
}, },
//解密手机号码 //解密手机号码
......
<template> <template>
<view class="appCotent" v-if="show"> <view class="appCotent" v-if="show">
<view class="index-content"> <view class="index-content">
<u-swiper radius="0 0 0 30px" :height="210" :list="list5" circular @change="e => current = e.current" :autoplay="true"> <u-swiper radius="0 0 0 30px" :height="210" :list="list5" circular @change="e => current = e.current" :autoplay="true" keyName="imageUrl" @click="goOtherLink">
<view slot="indicator" class="indicator"> <view slot="indicator" class="indicator">
<view class="indicator__dot" v-for="(item, index) in list5" :key="index" :class="[index === current && 'indicator__dot--active']"> <view class="indicator__dot" v-for="(item, index) in list5" :key="index" :class="[index === current && 'indicator__dot--active']">
</view> </view>
...@@ -119,13 +119,28 @@ export default { ...@@ -119,13 +119,28 @@ export default {
data = res.data.data data = res.data.data
let imgList = [] let imgList = []
data.forEach(e => { data.forEach(e => {
imgList.push(e.imageUrl) imgList.push(e)
}) })
this.list5 = imgList this.list5 = imgList
} }
}) })
}, },
// 轮播跳转其他页面
goOtherLink(index){
let item = this.list5[index]
let link = item.link;
var newStr = link.indexOf("http");
var newStr2 = link.indexOf("https");
if (newStr == 0 || newStr2 == 0) {
uni.navigateTo({
url: '/pages/webview/webview?url=' + link
})
return
}
uni.navigateTo({
url: link
})
}
}, },
created() { created() {
this.getMoveCode() this.getMoveCode()
......
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
</div> </div>
<div class="shop__swiper"> <div class="shop__swiper">
<view class="u-demo-block"> <view class="u-demo-block">
<u-swiper :list="list3" previousMargin="30" nextMargin="30" circular :autoplay="true" height='150' radius="5" bgColor="#ffffff"></u-swiper> <u-swiper :list="list3" previousMargin="30" nextMargin="30" circular :autoplay="true" keyName="imageUrl" @click="goOtherLink" height='150' radius="5" bgColor="#ffffff"></u-swiper>
</view> </view>
</div> </div>
<div class="view__content"> <div class="view__content">
<div class="view__title">超低价养车好物</div> <div class="view__title">超低价养车好物</div>
<div class="shop__list2"> <div class="shop__list2">
<div class="shop__item2" v-for="(vo,inx) in mallList" :key="inx" @click="goDetail(vo.id)"> <div class="shop__item2" v-for="(vo,inx) in mallList" :key="inx" @click="goDetail(vo.id,vo.link)">
<div class="item2__img"> <div class="item2__img">
<image :src="getImage(vo.mainImgUrl)" /> <image :src="getImage(vo.mainImgUrl)" />
</div> </div>
...@@ -217,13 +217,28 @@ export default { ...@@ -217,13 +217,28 @@ export default {
data = res.data.data data = res.data.data
let imgList = [] let imgList = []
data.forEach(e => { data.forEach(e => {
imgList.push(e.imageUrl) imgList.push(e)
}) })
this.list3 = imgList this.list3 = imgList
} }
}) })
}, },
// 轮播跳转其他页面
goOtherLink(index){
let item = this.list3[index]
let link = item.link;
var newStr = link.indexOf("http");
var newStr2 = link.indexOf("https");
if (newStr == 0 || newStr2 == 0) {
uni.navigateTo({
url: '/pages/webview/webview?url=' + link
})
return
}
uni.navigateTo({
url: link
})
}
}, },
onReady: function () { onReady: function () {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
......
...@@ -236,7 +236,6 @@ export default { ...@@ -236,7 +236,6 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.getPrice { .getPrice {
width: 100%; width: 100%;
height: 100%;
/deep/.uni-input-input, /deep/.uni-input-input,
.uni-input-placeholder { .uni-input-placeholder {
...@@ -336,7 +335,7 @@ export default { ...@@ -336,7 +335,7 @@ export default {
} }
.car_info { .car_info {
padding: 40rpx; padding: 40rpx 40rpx 220rpx;
background: #fff; background: #fff;
.car_info__title { .car_info__title {
...@@ -355,7 +354,7 @@ export default { ...@@ -355,7 +354,7 @@ export default {
color: #f1251b; color: #f1251b;
text-align: right; text-align: right;
margin-top: 40rpx; margin-top: 40rpx;
margin-bottom: 200rpx; margin-bottom: 20rpx;
image { image {
width: 10rpx; width: 10rpx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment