Commit 42342ff0 authored by qipeng's avatar qipeng

新增 拼图页面

parent c5316801
...@@ -463,7 +463,7 @@ ...@@ -463,7 +463,7 @@
{ {
"path": "myPhotoAlbum/myPhotoAlbum", "path": "myPhotoAlbum/myPhotoAlbum",
"style": { "style": {
"navigationBarTitleText": "我的相", "navigationBarTitleText": "我的相",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
...@@ -500,6 +500,14 @@ ...@@ -500,6 +500,14 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
{
"path" : "photoJigsaw/photoJigsaw",
"style": {
"navigationBarTitleText": "我的相片",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
} }
] ]
} }
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</view> </view>
</view> </view>
<!--相框/项目切换--> <!--相框/项目切换-->
<view class="myPhoto-search"> <view class="myPhoto-search" v-if="pictureFrameList.length!=0">
<view class="search-left"> <view class="search-left">
<view class="left-frame" :class="frameNum==1?'left-frameAct':''" @click="frameFun(1)">金属框</view> <view class="left-frame" :class="frameNum==1?'left-frameAct':''" @click="frameFun(1)">金属框</view>
<view class="left-frame" :class="frameNum==2?'left-frameAct':''" @click="frameFun(2)">木框</view> <view class="left-frame" :class="frameNum==2?'left-frameAct':''" @click="frameFun(2)">木框</view>
...@@ -40,12 +40,13 @@ ...@@ -40,12 +40,13 @@
<view class="right-addressClick" @click="show = true"> <view class="right-addressClick" @click="show = true">
{{showAddress}} {{showAddress}}
<view class="address-triangle"></view> <view class="address-triangle"></view>
<u-picker :show="show" :columns="columns" keyName="label" @confirm="addressFun" @cancel="show=false" ></u-picker> <u-picker :show="show" :columns="columns" visibleItemCount="6" itemHeight="80" keyName="label" @confirm="addressFun" @cancel="show=false" ></u-picker>
</view> </view>
</view> </view>
</view> </view>
<!--相片列表--> <!--相片列表-->
<view class="myPhoto-list" v-if="checkTypeFun==true" :class="bottomShow==true?'myPhoto-listAct':''"> <view class="myPhoto-list" v-if="checkTypeFun==true" :class="bottomShow==true?'myPhoto-listAct':''">
<template v-if="titleclick==1||titleclick!=1&&pictureFrameList.length!=0">
<view class="list-pictureFrame" v-for="(item,index) in pictureFrameList" :key="index"> <view class="list-pictureFrame" v-for="(item,index) in pictureFrameList" :key="index">
<image class="pictureFrame-img" :src="item.image"></image> <image class="pictureFrame-img" :src="item.image"></image>
<checkbox-group @click.stop.native="()=>{}" @change="stopPhoto(index)" > <checkbox-group @click.stop.native="()=>{}" @change="stopPhoto(index)" >
...@@ -55,6 +56,15 @@ ...@@ -55,6 +56,15 @@
<view class="pictureFrame-boxBottom" @click="blowUpFun(index)"></view> <view class="pictureFrame-boxBottom" @click="blowUpFun(index)"></view>
<image class="pictureFrame-blowUp" @click="blowUpFun(index)" src="../static/album/icon04.png"></image> <image class="pictureFrame-blowUp" @click="blowUpFun(index)" src="../static/album/icon04.png"></image>
</view> </view>
</template>
<template v-else>
<view class="list-noFigure">
<image class="noFigure-img" src="../static/album/icon07.png"></image>
<view class="noFigure-text">
三宫格须先下载照片, 才能设置<text @click="clickActFun(1)">去下载</text>
</view>
</view>
</template>
</view> </view>
<!--点击放大后相片遮罩--> <!--点击放大后相片遮罩-->
<view class="myPhoto-mask" v-if="blowUpMaks==true" :style="{'top': albumBoxTop + 'px' }"> <view class="myPhoto-mask" v-if="blowUpMaks==true" :style="{'top': albumBoxTop + 'px' }">
...@@ -67,6 +77,8 @@ ...@@ -67,6 +77,8 @@
</swiper-item> </swiper-item>
</swiper> </swiper>
</view> </view>
<!--获取照片-->
<image v-if="pictureFrameListNum==0" class="myPhoto-getPhotos" src="../static/album/icon08.png"></image>
<!--脚部选择相片、加入购物车、直接购买--> <!--脚部选择相片、加入购物车、直接购买-->
<view class="myPhoto-bottom" v-if="pictureFrameListNum>0"> <view class="myPhoto-bottom" v-if="pictureFrameListNum>0">
<view class="bottom-tips">相片保留10天, 请尽快下载, 下载保存</view> <view class="bottom-tips">相片保留10天, 请尽快下载, 下载保存</view>
...@@ -74,7 +86,7 @@ ...@@ -74,7 +86,7 @@
<!--加入相册列表--> <!--加入相册列表-->
<view class="feature-list"> <view class="feature-list">
<template v-for="(item,index) in pictureFrameList"> <template v-for="(item,index) in pictureFrameList">
<view class="feature-case" v-if="item.checkType==true" :key="index"> <view class="feature-case" v-if="item.pickerChoose==true" :key="index">
<image class="feature-img" :src="item.image"></image> <image class="feature-img" :src="item.image"></image>
<image class="feature-close" src="../static/album/icon05.png" @click="stopPhoto(index)"></image> <image class="feature-close" src="../static/album/icon05.png" @click="stopPhoto(index)"></image>
</view> </view>
...@@ -116,12 +128,30 @@ export default { ...@@ -116,12 +128,30 @@ export default {
show: false,//遮罩显隐---项目 show: false,//遮罩显隐---项目
columns: [//遮罩列表---项目 columns: [//遮罩列表---项目
[{ [{
label: '雪月夜', label: '雪月夜1',
// 其他属性值 // 其他属性值
id: 2021 id: 2021
// ... // ...
}, { }, {
label: '冷夜雨', label: '冷夜雨2',
id: 804
}, {
label: '冷夜雨3',
id: 804
}, {
label: '冷夜雨4',
id: 804
}, {
label: '冷夜雨5',
id: 804
}, {
label: '冷夜雨6',
id: 804
}, {
label: '冷夜雨7',
id: 804
}, {
label: '冷夜雨8',
id: 804 id: 804
}] }]
], ],
...@@ -130,22 +160,27 @@ export default { ...@@ -130,22 +160,27 @@ export default {
{ {
image:'https://img1.baidu.com/it/u=1360904074,3378535006&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1427', image:'https://img1.baidu.com/it/u=1360904074,3378535006&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1427',
checkType:false, checkType:false,
pickerChoose:false,
}, },
{ {
image:'https://i1.hdslb.com/bfs/archive/34961798a6c8fa26348499483fc16e48831af85d.jpg', image:'https://i1.hdslb.com/bfs/archive/34961798a6c8fa26348499483fc16e48831af85d.jpg',
checkType:false, checkType:false,
pickerChoose:false,
}, },
{ {
image:'https://img1.baidu.com/it/u=2652134479,594912468&fm=253&fmt=auto&app=138&f=JPEG?w=878&h=493', image:'https://img1.baidu.com/it/u=2652134479,594912468&fm=253&fmt=auto&app=138&f=JPEG?w=878&h=493',
checkType:false, checkType:false,
pickerChoose:false,
}, },
{ {
image:'https://img0.baidu.com/it/u=2602636891,3687528369&fm=253&fmt=auto&app=120&f=JPEG?w=1087&h=612', image:'https://img0.baidu.com/it/u=2602636891,3687528369&fm=253&fmt=auto&app=120&f=JPEG?w=1087&h=612',
checkType:false, checkType:false,
pickerChoose:false,
}, },
{ {
image:'https://img2.baidu.com/it/u=635571518,763366960&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1131', image:'https://img2.baidu.com/it/u=635571518,763366960&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1131',
checkType:false, checkType:false,
pickerChoose:false,
}, },
], ],
checkTypeFun:true,//刷新选项 checkTypeFun:true,//刷新选项
...@@ -194,6 +229,7 @@ export default { ...@@ -194,6 +229,7 @@ export default {
this.titleclick = num this.titleclick = num
this.pictureFrameList.forEach(item=>{ this.pictureFrameList.forEach(item=>{
item.checkType = false item.checkType = false
item.pickerChoose = false
}) })
this.pictureFrameListNum = 0 this.pictureFrameListNum = 0
if(this.titleclick==2){ if(this.titleclick==2){
...@@ -214,12 +250,14 @@ export default { ...@@ -214,12 +250,14 @@ export default {
}, },
stopPhoto(index){//相片选择 stopPhoto(index){//相片选择
this.checkTypeFun = false this.checkTypeFun = false
if(this.titleclick==1||this.titleclick!=1&&this.pictureFrameListNum<this.maxChooseImg||this.titleclick!=1&&this.pictureFrameListNum==this.maxChooseImg&&this.pictureFrameList[index].checkType == true){//+this.maxChooseImg+
this.stopPhotoNumFun(index) this.stopPhotoNumFun(index)
if(this.titleclick!=1&&this.pictureFrameListNum>this.maxChooseImg){//+this.maxChooseImg+ }else if(this.titleclick!=1&&this.pictureFrameListNum>=this.maxChooseImg){
this.pictureFrameList[index].checkType = true
this.$nextTick(function() { this.$nextTick(function() {
this.stopPhotoNumFun(index) this.pictureFrameList[index].checkType = false
}) })
uni.showToast({ uni.showToast({
title: '最多选择'+this.maxChooseImg+'张', title: '最多选择'+this.maxChooseImg+'张',
icon:'error', icon:'error',
...@@ -234,8 +272,10 @@ export default { ...@@ -234,8 +272,10 @@ export default {
stopPhotoNumFun(index){//相片选择开关 stopPhotoNumFun(index){//相片选择开关
if(this.pictureFrameList[index].checkType==false){ if(this.pictureFrameList[index].checkType==false){
this.pictureFrameList[index].checkType = true this.pictureFrameList[index].checkType = true
this.pictureFrameList[index].pickerChoose = true
}else{ }else{
this.pictureFrameList[index].checkType = false this.pictureFrameList[index].checkType = false
this.pictureFrameList[index].pickerChoose = false
} }
this.pictureFrameListNum = 0 this.pictureFrameListNum = 0
this.pictureFrameList.forEach(item=>{//判断 是否有照片被选择 this.pictureFrameList.forEach(item=>{//判断 是否有照片被选择
...@@ -385,6 +425,7 @@ export default { ...@@ -385,6 +425,7 @@ export default {
align-content:flex-start; align-content:flex-start;
background-color: #F5F7FA; background-color: #F5F7FA;
overflow: auto; overflow: auto;
position: relative;
.list-pictureFrame{ .list-pictureFrame{
height: 248rpx; height: 248rpx;
margin-bottom: 4rpx; margin-bottom: 4rpx;
...@@ -404,8 +445,8 @@ export default { ...@@ -404,8 +445,8 @@ export default {
/deep/ .wx-checkbox-input{ /deep/ .wx-checkbox-input{
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
background: transparent; background: rgba(255,255,255,0.5);//transparent;
border: solid 1px #fff; border: 2rpx solid #C7C7C7;
} }
/deep/ .wx-checkbox-input.wx-checkbox-input-checked { /deep/ .wx-checkbox-input.wx-checkbox-input-checked {
background: #FE6600; // 选中的颜色 background: #FE6600; // 选中的颜色
...@@ -445,6 +486,33 @@ export default { ...@@ -445,6 +486,33 @@ export default {
.list-pictureFrame:nth-last-child(1){ .list-pictureFrame:nth-last-child(1){
flex: 1; flex: 1;
} }
.list-noFigure{
width: 100%;
height: 456rpx;
margin: auto;
position: absolute;
top: 0;
bottom: 0;
left: 0;
.noFigure-img{
display: block;
width: 400rpx;
height: 400rpx;
margin: 0 auto;
}
.noFigure-text{
margin-top: 20rpx;
font-weight: 400;
font-size: 26rpx;
color: #666666;
line-height: 36rpx;
text-align: center;
text{
color: #165DFF;
margin-left: 10rpx;
}
}
}
} }
.myPhoto-listAct{ .myPhoto-listAct{
padding-bottom: 320rpx; padding-bottom: 320rpx;
...@@ -477,8 +545,8 @@ export default { ...@@ -477,8 +545,8 @@ export default {
/deep/ .wx-checkbox-input{ /deep/ .wx-checkbox-input{
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
background: transparent; background: rgba(255,255,255,0.5);//transparent;
border: solid 1px #fff; border: 2rpx solid #C7C7C7;
} }
/deep/ .wx-checkbox-input.wx-checkbox-input-checked { /deep/ .wx-checkbox-input.wx-checkbox-input-checked {
background: #FE6600; // 选中的颜色 background: #FE6600; // 选中的颜色
...@@ -619,4 +687,11 @@ export default { ...@@ -619,4 +687,11 @@ export default {
} }
} }
} }
.myPhoto-getPhotos{
width: 174rpx;
height: 174rpx;
position: fixed;
right: 32rpx;
bottom: 58rpx;
}
</style> </style>
\ No newline at end of file
<template>
<view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
</style>
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