shish 1 سال پیش
والد
کامیت
f0c183e964
2فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 5 0
      mallApp/src/pages/home/category.vue
  2. 5 0
      mallApp/src/pages/item/item.vue

+ 5 - 0
mallApp/src/pages/home/category.vue

@@ -10,6 +10,8 @@
 			</view>
 		</view>
 
+		<button class="admin-button-com middle blue" style="border:none;height:70upx;position: absolute;right:20upx;top:180upx;z-index:9999;" @click="buyProduct()">去买花材</button>
+
     <scroll-view scroll-y scroll-with-animation class="tab-view" :scroll-top="scrollTop">
       <view v-for="(item,index) in tabbar" :key="index" class="tab-bar-item" :class="[currentTab==index ? 'active' : '']" :data-current="index" @tap.stop="swichNav($event ,item)" >
         <text>{{item.categoryName}}</text>
@@ -108,6 +110,9 @@ export default {
 		}
 	},
   methods: {
+		buyProduct(){
+			this.$util.pageTo({url: "/pages/item/item?account="+this.option.account,type:2})
+		},
 		loginTo() {
 			this.$util.pageTo({url:"/pages/login/index?needBack=1"})
 		},

+ 5 - 0
mallApp/src/pages/item/item.vue

@@ -19,6 +19,8 @@
 			</view>
 		</view>
 
+		<button class="admin-button-com middle blue" style="border:none;height:70upx;position: absolute;right:20upx;top:280upx;z-index:9999;" @click="buyHs()">去买花束</button>
+
 		<view class="scroll-middle_bx">
 			<scroll-view scroll-y scroll-with-animation class="tab-view">
 				<div v-for="(item, index) in filterProductInfo" :key="index" class="tab-bar-item" :class="[classIndex == index ? 'active' : '']" :data-current="index" @tap.stop="swichClass(index)">
@@ -309,6 +311,9 @@ export default {
 		hidePopup() {
 			this.popupShow = false;
 		},
+		buyHs(){
+			this.$util.pageTo({url: "/pages/home/category?account="+this.option.account,type:2})
+		},
 		showBigCover(item){
       		this.$util.pageTo({url: "/pages/item/detail?id="+item.id+"&account="+this.option.account})
 		},