YZM před 1 rokem
rodič
revize
351b492b6d

+ 1 - 1
pages/chengyuan/index.vue

@@ -139,7 +139,7 @@ export default {
 		obTstr2(o){
 			console.log(o)
 			if(Array.isArray(o)){
-				if(o.length.length===0) return "";
+				if(o.length===0) return "";
 				if(o[0].data){
 					var name=o[0].data.title;
 				}else if(o[0]){

+ 7 - 2
pages/chuanghome/index.vue

@@ -87,7 +87,7 @@
 					</view>
 					<view class="px-24">
 						<tm-button theme="primary" @click="quyifu()" :round="24" block class="mt-50 logincla">添加衣服</tm-button>
-						<tm-button @click="quindex()" theme="primary" :round="24" block class="mt-30 quindex">进入首页</tm-button>
+						<tm-button @click="quindex()" theme="primary" :round="24" block class="mt-30 quindex">进入衣橱</tm-button>
 					</view>
 				</view>
 			</tm-sheet>
@@ -150,7 +150,12 @@ export default {
 		},
 		quindex(){
 			uni.switchTab({
-				url: "/pages/index/index",
+				url: "/pages/wardrobe/index",
+				success: function (e) {
+					var page = getCurrentPages()[0]
+					if (page == undefined || page == null) return;
+					page.shuaxin(); 
+				 }
 			})
 		},
 		tijiao(){

+ 0 - 2
pages/index/index.vue

@@ -216,8 +216,6 @@
 			this.getPlan();
 			this.biaoshen();
 			this.getCity()
-			
-
 		},
 		methods: {
 			getCity(){

+ 4 - 0
pages/wardrobe/index.vue

@@ -150,6 +150,9 @@ export default {
 			})
 		}
 	},
+	onShow(){
+		// this.fenleichange();
+	},
 	created() {
 		this.sys = uni.getSystemInfoSync();
 		this.getQiu()
@@ -304,6 +307,7 @@ export default {
 						if(wu==0){
 							that.itemuser=res.data.data[0];
 						}
+						that.quanbuList=[];
 						this.getList()
 					}else{
 						that.itemuser=0;