Переглянути джерело

修改 分享 没登录点开报错问题

achao 2 роки тому
батько
коміт
5401cb4c56

+ 12 - 13
xiaochengxu/pages/cardHolder/scanCodeAddCard.vue

@@ -456,8 +456,8 @@
 				this.value = e.value[0].circleName.substring(0,1)
 				this.show = false
 			},
-			getList() {
-				this.$request.baseRequest('admin.unimall.cardManagementInfo', 'get', {
+			async getList() {
+				await this.$request.baseRequest('admin.unimall.cardManagementInfo', 'get', {
 					id: this.id
 				}, failres => {
 					console.log('res+++++', failres.errmsg)
@@ -468,21 +468,20 @@
 					});
 					uni.hideLoading()
 				}).then(res => {
-					console.log(res, "this.cardInfo")
+					console.log("this.cardInfo",res)
 					this.cardInfo = res.data
-					if(this.cardInfo.length==0){
-						uni.showToast({
-							icon: "none",
-							title: "您还未创建名片,请前往我的先创建名片!",
-							duration: 3000
-						});
-					}
+					// if(this.cardInfo.length==0){
+					// 	uni.showToast({
+					// 		icon: "none",
+					// 		title: "您还未创建名片,请前往我的先创建名片!",
+					// 		duration: 3000
+					// 	});
+					// }
 					// this.cardInfo.cardBusiness = ''
 					// this.cardInfo.cardCommonId = res.data.commonId
 					console.log(res)
 				})
-				console.log(uni.getStorageSync("userInfo").id, 111111)
-				this.$request.baseRequest('admin.unimall.cardManagementInfo', 'list', {
+				await this.$request.baseRequest('admin.unimall.cardManagementInfo', 'list', {
 					commonId: uni.getStorageSync("userInfo").id
 				}, failres => {
 					uni.showToast({
@@ -497,7 +496,7 @@
 					this.cardInfo.myCardId = res.data.items[0].id
 					
 				})
-				this.$request.baseRequest('admin.unimall.cardClassifyInfo', 'list', {
+				await this.$request.baseRequest('admin.unimall.cardClassifyInfo', 'list', {
 					page: 1,
 					limit: 9999,
 					commonId: uni.getStorageSync("userInfo").id

+ 4 - 4
xiaochengxu/pages/circle/detail.vue

@@ -78,9 +78,9 @@
 					暂无业务描述
 				</view>
 				<view class="flex btn" v-if="item.lookPage==1||item.notDisplay!=1">
-					<image @click='toHome(item)' src="../../static/imgs/cirlce/home.png" mode="widthFix" style="width: 32rpx;"
+					<image @click='toHome(item)' src="../../static/imgs/cirlce/home.png" mode="widthFix" style="width: 32rpx;height: auto;"
 						v-if="item.lookPage==1&&item.personalHomeId"></image>
-					<image src="../../static/imgs/cirlce/change.png" mode="widthFix" style="width: 32rpx;"
+					<image src="../../static/imgs/cirlce/change.png" mode="widthFix" style="width: 32rpx;;height: auto"
 						@click="changeCard(item)" v-if="item.notDisplay!=1"></image>
 				</view>
 			</view>
@@ -226,7 +226,7 @@
 				selectRowCard: {}
 			};
 		},
-		onShow() {debugger
+		onShow() {
 			if (uni.getStorageSync("userInfo").phone) {
 				this.$nextTick(function() {
 					that.mescroll.resetUpScroll() 
@@ -235,7 +235,7 @@
 				this.showAuthorizePhone = true
 			}
 		},
-		onLoad(options) {debugger
+		onLoad(options) {
 			that = this
 			console.log(options)
 				this.id = options.val

+ 0 - 1
xiaochengxu/pages/mySet/myInfo.vue

@@ -295,7 +295,6 @@
 
 		},
 		onShareAppMessage(res) {
-			debugger
 			console.log(res, this.popupshow)
 			let that = this;
 			//生成名片图片

+ 0 - 1
xiaochengxu/util/request.js

@@ -157,7 +157,6 @@ const getPhone = (e, userInfo) => {
 //同步信息
 const syncInfo = (userInfo) => {
 	let promise = new Promise(function(resolve, reject) {
-		debugger
 		if (!userInfo.head) userInfo.head =
 			'https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/card_head.png'
 		if (!userInfo.nickname) {