张文飞 3 年之前
父節點
當前提交
0b72296b9a
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      pages/houseDetail/houseDetail.vue

+ 4 - 1
pages/houseDetail/houseDetail.vue

@@ -147,8 +147,11 @@
 		},
 		methods: {
 			async signJsapiTicket(){
+				uni.showModal({
+					content:"href:"+window.location.href
+				})
 				let parmas = {
-					url:encodeURIComponent(location.href.split('#')[0]),
+					url:encodeURIComponent(window.location.href),
 				}
 				let self = this;
 				let res = await this.$myRequest({