Commit 4623a7cf by 陈玉桐

上传,分享

parent 9414886c
......@@ -2,7 +2,7 @@
<div id="detailBox">
<div class="detailCon">
<img class="detailConImg" v-if="thumb" :src="thumb">
<div class="detailConTitle"><span>{{title}}</span><img src="../assets/icon_share.png"></div>
<div class="detailConTitle"><span>{{title}}</span><img @click="share" src="../assets/icon_share.png"></div>
<div class="detailContDes">
<div>
<img src="../assets/icon_enrollment.png">
......@@ -32,6 +32,10 @@
<span @click="tipDialogShow=false">{{tipDialogBtn}}</span>
</div>
</div>
<div id="shareWrap" v-show="shareWrapShow" @click="shareWrapShow=false">
<span>点击此处分享</span>
<img src="../assets/icon_arrow.png">
</div>
<loading :loadingShow="loadingShow"></loading>
</div>
</template>
......@@ -57,6 +61,8 @@ export default {
tipDialogBtn: '',
tipDialogText1: '',
tipDialogText2: '',
shareWrapShow: false,
}
},
components: {
......@@ -100,7 +106,7 @@ export default {
this.timestamp = response.data.timestamp
wx.config({
debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: this.appId, // 必填,公众号的唯一标识
timestamp: this.timestamp, // 必填,生成签名的时间戳
nonceStr: this.nonceStr, // 必填,生成签名的随机串
......@@ -165,6 +171,9 @@ export default {
this.tipDialogShow = true
}
}
},
share() {
this.shareWrapShow = true
}
}
}
......@@ -239,4 +248,24 @@ export default {
border-radius: 19px;
}
}
#shareWrap{
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(0,0,0,0.6);
color: #fff;
font-size: 16px;
text-align: right;
span{
margin-top: 30px;
display: inline-block;
}
img{
width: 35px;
margin: 0 15px 0 10px;
}
}
</style>
\ No newline at end of file
......@@ -162,7 +162,7 @@ export default {
this.timestamp = response.data.timestamp
wx.config({
debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: this.appId, // 必填,公众号的唯一标识
timestamp: this.timestamp, // 必填,生成签名的时间戳
nonceStr: this.nonceStr, // 必填,生成签名的随机串
......
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