dever 5 years ago
parent
commit
b51cb8b0ed
1 changed files with 3 additions and 3 deletions
  1. 3 3
      pages/dream/cate.vue

+ 3 - 3
pages/dream/cate.vue

@@ -23,7 +23,7 @@
 						<view class="category-item" :id="'list'+v.id" v-for="(v,k) in fetch.child" :key="k" v-if="fetch.show[v.page_id] == 1">
 							<view class="category-title">{{v.name}}</view>
 							<view class="category-content">
-								<view class="product-item" v-for="(v1,k1) in v.content" :key="k1" @click="go(v1.id)">
+								<view class="product-item" v-for="(v1,k1) in v.content" :key="k1" @click="go(v1.id,v1.page_id)">
 									<image class="product-img" :src="v1.pic"></image>
 									<text class="product-title">{{v1.name}}</text>
 								</view>
@@ -71,8 +71,8 @@
 				this.fetch.show[this.cur] = 2;
 				this.cur = id;
 			}, 
-			go : function(id) {
-				this.Dever.location('dream/view?id=' + this.id + '&content=' + id);
+			go : function(id, page_id) {
+				this.Dever.location('dream/view?id=' + this.id + '&page_id='+page_id+'&index=' + id);
 			}
 		}
 	}