lyqu 4 ani în urmă
părinte
comite
e62c1bb6fd
1 a modificat fișierele cu 11 adăugiri și 3 ștergeri
  1. 11 3
      pages/index/guide.vue

+ 11 - 3
pages/index/guide.vue

@@ -25,7 +25,7 @@
 		<view style="height: 120upx;"></view>
 		<view class="footer-fixed" style="background-color: #ffffff;padding: 10upx 60upx;">
 			<button class="cu-btn round theme-bg-color text-white text-bold" style="width: 100%;height: 100upx;font-size: 36upx;" @click="tips">
-				<view>投票通道已启动!</view>
+				<view>能量榜已启动!</view>
 				<image src="/static/index/left-arrow.png" style="width: 32upx;height: 32upx;"></image>
 			</button>
 			<view class="flex align-center justify-center">
@@ -47,7 +47,7 @@
 			}
 		},
 		onLoad(options) {
-			this.fetchPoster()
+			this.fetchPoster();
 			if (!this.$u.test.isEmpty(options.userId)) {
 				this.userId = options.userId;
 			} else {
@@ -63,7 +63,15 @@
 			},
 			fetchPoster(){
 				this.$u.api.activity.getList({enable:1}).then(res=>{
-					this.src=res.records[0].poster
+					this.src=res.records[0].poster;
+					let link = window.location.href;
+					let obj = {
+						link: link,
+						title: res.records[0].shareTitle,
+						desc: res.records[0].shareDesc,
+						imgUrl: res.records[0].shareImg
+					}
+					this.$shareConfig(obj, this)
 				})
 			},
 			async authorization() {