Commit 1029986d authored by 潘永坪's avatar 潘永坪

Merge branch 'album' of http://git.tbd.yanzuoguang.com/panyongping/uni-pdtravel into album

parents 02090bb3 b85f10e6
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
}, },
{ {
"path" : "pages/album/index", "path" : "pages/album/albumIndex",
"style" : "style" :
{ {
"navigationBarTitleText": "相册首页", "navigationBarTitleText": "相册首页",
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<image class="img" src="../../static/img/coupon/coupon.jpg"></image> <image class="img" src="../../static/img/coupon/coupon.jpg"></image>
<text class="title">影像DIY</text> <text class="title">影像DIY</text>
</view> </view>
<view class="item"> <view class="item" @click="jumpToCustomClick">
<image class="img" src="../../static/img/coupon/coupon.jpg"></image> <image class="img" src="../../static/img/coupon/coupon.jpg"></image>
<text class="title">旅拍定制</text> <text class="title">旅拍定制</text>
</view> </view>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<view class="title">私人定制</view> <view class="title">私人定制</view>
<u-waterfall v-model="list" ref="uWaterfall"> <u-waterfall v-model="list" ref="uWaterfall">
<template v-slot:left="{leftList}"> <template v-slot:left="{leftList}">
<view class="left demo-water" v-for="(item, index) in leftList" :key="index"> <view class="left demo-water" v-for="(item, index) in leftList" :key="index" @click="jumpToClick(item.title)">
<u-lazy-load threshold="-450" border-radius="10" :image="item.image" :index="index"></u-lazy-load> <u-lazy-load threshold="-450" border-radius="10" :image="item.image" :index="index"></u-lazy-load>
<view class="info-box" :style="{'background-color': item.color}"> <view class="info-box" :style="{'background-color': item.color}">
<view class="item-title">{{item.title}}</view> <view class="item-title">{{item.title}}</view>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</view> </view>
</template> </template>
<template v-slot:right="{rightList}"> <template v-slot:right="{rightList}">
<view class="demo-water" v-for="(item, index) in rightList" :key="index"> <view class="demo-water" v-for="(item, index) in rightList" :key="index" @click="jumpToClick(item.title)">
<u-lazy-load threshold="-450" border-radius="10" :image="item.image" :index="index"></u-lazy-load> <u-lazy-load threshold="-450" border-radius="10" :image="item.image" :index="index"></u-lazy-load>
<view class="info-box" :style="{'background-color': item.color}"> <view class="info-box" :style="{'background-color': item.color}">
<view class="item-title">{{item.title}}</view> <view class="item-title">{{item.title}}</view>
...@@ -136,11 +136,28 @@ export default { ...@@ -136,11 +136,28 @@ export default {
} }
}, },
methods: { methods: {
jumpToScanFaceClick() { jumpToScanFaceClick() {//---跳转扫脸页面
uni.navigateTo({
url: './getPortrait'
})
},
jumpToCustomClick() {//---跳转旅拍定制页面
uni.navigateTo({ uni.navigateTo({
url:'./getPortrait' url: './myPhotoAlbum/myPhotoAlbum'
}) })
}, },
jumpToClick(title) {
if(title === '精彩瞬间') {
uni.navigateTo({
url: './getPortrait'
})
}
if(title === '网红旅拍') {
uni.navigateTo({
url: './myPhotoAlbum/myPhotoAlbum'
})
}
},
recordDeviceInfo() {//---记录设备信息 recordDeviceInfo() {//---记录设备信息
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight // 状态栏高度 this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight // 状态栏高度
this.capsule = uni.getMenuButtonBoundingClientRect() // 胶囊大小、位置数据 this.capsule = uni.getMenuButtonBoundingClientRect() // 胶囊大小、位置数据
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
<script> <script>
import UCheckbox from '@/uview-ui/components/u-checkbox/u-checkbox.vue' import UCheckbox from '@/uview-ui/components/u-checkbox/u-checkbox.vue'
export default { export default {
components: { components: {
UCheckbox, UCheckbox,
...@@ -60,7 +59,7 @@ export default { ...@@ -60,7 +59,7 @@ export default {
icon: 'success' icon: 'success'
}) })
uni.navigateTo({ uni.navigateTo({
url: './index?tip=true' url: './albumIndex?tip=true'
}) })
}else{ }else{
uni.showToast({ uni.showToast({
......
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