高敬炎 преди 2 години
родител
ревизия
4101fc9147
променени са 1 файла, в които са добавени 15 реда и са изтрити 9 реда
  1. 15 9
      xiaochengxu/pages/circle/circle.vue

+ 15 - 9
xiaochengxu/pages/circle/circle.vue

@@ -91,7 +91,7 @@
 				</view>
 			</view>
 		</mescroll-uni>
-		<image src="../../static/imgs/cirlce/add.png" mode="widthFix" class="add" @click="toCreateCircle"></image>
+		<image  v-if='hidden!="隐藏"' src="../../static/imgs/cirlce/add.png" mode="widthFix" class="add" @click="toCreateCircle"></image>
 		<u-toast ref="uToast"></u-toast>
 		<!-- #ifdef MP-WEIXIN -->
 		<u-modal :show="showAuthorizePhone" :showConfirmButton="false">
@@ -189,6 +189,7 @@
 					fontSize: "32rpx",
 					background: "#18254C"
 				},
+				hidden:'',
 				searchVal: '',
 				circleList: [],
 				userInfo: {},
@@ -221,7 +222,6 @@
 					receiveId: this.userInfo.id,
 					status: 1
 				}, failres => {
-					console.log('res+++++', failres.errmsg)
 					uni.showToast({
 						icon: "none",
 						title: failres.errmsg,
@@ -238,13 +238,21 @@
 			}
 		},
 		onShow() {
+			this.$request.baseRequest('admin.dictData', 'list', {
+				dictType:'circle_friends'
+			}, failres => {
+					
+			}).then( res => {
+				console.log(res,11111)
+				this.hidden=res.data.items[0].dictLabel
+			})
 			if (uni.getStorageSync("userInfo").phone) {
+				
 				this.userInfo = uni.getStorageSync("userInfo")
 				this.$request.baseRequest('admin.unimall.cardExchangeInfo', 'list', {
 					receiveId: this.userInfo.id,
 					status: 1
 				}, failres => {
-					console.log('res+++++', failres.errmsg)
 					uni.showToast({
 						icon: "none",
 						title: failres.errmsg,
@@ -260,7 +268,7 @@
 			} else {
 				this.showAuthorizePhone = true
 			}
-
+			
 		},
 		methods: {
 			//获取昵称输入内容
@@ -300,11 +308,9 @@
 			},
 			async getPhoneNumber(e) {
 				that.userInfo = await this.$request.wxlogin()
-				this.$nextTick(function() {
-					that.userInfo.phone = that.$request.getPhone(e, that.userInfo)
-					that.showAuthorizePhone = false
-					that.showAuthorizeUser = true
-				});
+				that.userInfo.phone = await this.$request.getPhone(e, that.userInfo)
+				this.showAuthorizePhone = false
+				this.showAuthorizeUser = true
 
 			},
 			delSearchVal() {