浏览代码

华南城市酒店图片添加

wcni 5 年之前
父节点
当前提交
f7d69d3e92
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 4 1
      pages/index/hotel.vue
  2. 3 1
      pages/myCenter/index.vue

+ 4 - 1
pages/index/hotel.vue

@@ -271,7 +271,6 @@
             // });
         },
 		onLoad(options){
-			console.log("jjdddjeee")
 			this.goodId = options.id;  // 商品和酒店Id
 			this.activeindex = 0;
 			this.getshopdetail(); // 获取商品详情
@@ -532,6 +531,10 @@
 								this.store_slide.push(item);
 							}
 						})
+						let src= this.pictureUrl+'/uploads/home/store/'+data.store_id+'/'+data.store_banner;
+						if(this.store_slide.length == 0) {
+							this.store_slide.push(src);
+						}
 						this.storeinformation = data;
 						this.store_summary = data.store_summary;
 						const regex = new RegExp('<img', 'gi');

+ 3 - 1
pages/myCenter/index.vue

@@ -11,7 +11,7 @@
 					</view>
                     <view v-if="successlogion&&hasLogin">
 						<view  style="font-size: 34upx;margin-bottom: 32upx;">{{userInfo.nickName}}</view>
-						<view style="font-size: 24upx"  @click="goAdress(3)" >圈币{{menberinfo.member_points}}></view>
+						<view style="font-size: 24upx"  @click="goAdress(3)" >圈币{{member_points}}></view>
 					</view>
 					
 					<view v-if="!successlogion && hasLogin">
@@ -139,6 +139,7 @@
 		},
 		data() {
 			return {
+				member_points: 0,
 				showdialog: false,
 				ishow: false,
 				menberinfo: {}
@@ -237,6 +238,7 @@
 						let { data } = res.data;
 						// userinfo
 						this.menberinfo = data;
+						this.member_points =data.member_points
 					}
 				})
 			},