Commit 2eb55fb0 by mamingqun

修改文案

parent b72c0328
File added
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
<div class="upLoad"> <div class="upLoad">
<div class="list-default-img" @click.stop="addPicTemp" v-show="isPhoto"> <div class="list-default-img" @click.stop="addPicTemp" v-show="isPhoto">
<img src="./assets/images/icon_photo.png"> <img src="./assets/images/icon_photo.png">
<p>上传一张美美的照片</p> <!-- <p>上传一张美美的照片</p> -->
<p>优质的照片让夺冠更为轻松</p> <p>笑脸面部特写才能参与评奖哦</p>
<input <input
type="file" type="file"
id="text" id="text"
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
<group> <group>
<x-textarea <x-textarea
v-model="memo" v-model="memo"
placeholder="请务必注明被拍摄者姓名以及所在地..." placeholder="请给您的作品添加描述..."
:show-counter="true" :show-counter="true"
@on-blur="goBottom" @on-blur="goBottom"
:max="30" :max="30"
...@@ -254,9 +254,24 @@ export default { ...@@ -254,9 +254,24 @@ export default {
this.activeIndex = num; this.activeIndex = num;
}, },
addPicTemp() { addPicTemp() {
if (localStorage.getItem("index")) {
var index = localStorage.getItem("index")
if (index >= 3) {
this.addPic()
} else {
this.photoTipOn = true this.photoTipOn = true
index++
localStorage.setItem("index", index)
}
} else {
localStorage.setItem("index", 1)
this.photoTipOn = true
}
}, },
addPic() { addPic() {
this.photoTipOn = false
let vm = this; let vm = this;
// document.getElementById('text').click(); // document.getElementById('text').click();
wx.ready(() => { wx.ready(() => {
...@@ -827,16 +842,18 @@ body { ...@@ -827,16 +842,18 @@ body {
} }
.photo-tip-wrap { .photo-tip-wrap {
position: fixed;
position: absolute;
left: 0; left: 0;
right: 0; right: 0;
top: 0; top: 0;
bottom: 0; bottom: -1000px;
background: rgba(0,0,0,0.3); background: rgba(0,0,0,0.5);
// height: 1000px;
.photo-tip { .photo-tip {
position: absolute; position: absolute;
top: 30%; top: 650px;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
// border: 1px solid black; // border: 1px solid black;
......
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 sign in to comment