Explorar o código

解决复制失败的问题

zqwang hai 1 ano
pai
achega
2594d5e155
Modificáronse 2 ficheiros con 9 adicións e 11 borrados
  1. 9 11
      pages/client/member/index.vue
  2. BIN=BIN
      static/img/wode/cpoy.png

+ 9 - 11
pages/client/member/index.vue

@@ -96,7 +96,7 @@
 						name: '我的追剧',
 						type: 'link',
 						model: 'tab',
-						link: '/pages/client/tuan/zui',
+						link: '/pages/client/zui',
 						icon: this.$config.zystaticUrl + '/static/img/wode/zhuij.png',
 						show: 1
 					},
@@ -194,8 +194,7 @@
 			},
 			memberLinkTo(e) {
 				let index = parseInt(e.currentTarget.dataset.index);
-				console.log("this.getMenus[index].model", this.getMenus[index].model, 'this.getMenus[index].link', this
-					.getMenus[index].link)
+
 				if (this.getMenus[index].link != '') {
 					if (this.getMenus[index].model == 'integral') {
 						uni.redirectTo({
@@ -226,22 +225,21 @@
 			copyId(uid) {
 				console.log('uid', uid);
 				uni.setClipboardData({
-					data: uid,
+					data: uid+"",
 					success: () => {
 						uni.showToast({
 							title: '复制成功',
 							icon: "none"
 						})
 					},
-					error: (err) => {
-						uni.showToast({
-							title: err,
-							icon: "none"
-						})
+					fail: function(err) {
+						uni.showToast({
+							title: '复制失败',
+							duration: 2000,
+							icon: 'none'
+						});
 					}
 				})
-
-
 			}
 		}
 	}

BIN=BIN
static/img/wode/cpoy.png