306132416@qq.com hace 5 años
padre
commit
653f57cf0b
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10 1
      pages/index/detailPage/index.vue

+ 10 - 1
pages/index/detailPage/index.vue

@@ -116,7 +116,16 @@
 				});
 			},
 			 showShareModal(){
-					this.$refs.popup.open();
+					if(getApp().globalData.user_phone){
+						this.$refs.popup.open();
+					}else {
+						uni.navigateTo({
+							url: '../auth/index',
+							success: res => {},
+							fail: () => {},
+							complete: () => {}
+						});
+					}
 			      },
 			cancelModal(){
 				 // 需要在 popup 组件,指定 ref 为 popup