Bläddra i källkod

商品弹窗修改

zhanghui 1 år sedan
förälder
incheckning
cca0de586f
2 ändrade filer med 35 tillägg och 31 borttagningar
  1. 26 26
      pages/groupbuying_details/detail/index.vue
  2. 9 5
      pages/groupbuying_details/index.vue

+ 26 - 26
pages/groupbuying_details/detail/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="detail" style="    padding: 30rpx;">
 
-		<scroll-view scroll-y="true" scroll-with-animation='true' style="height: calc(100% - 100rpx)">
+		<scroll-view scroll-y="true" scroll-with-animation='true' style="height: 100%">
 
 			<view class="detail-img">
 				<image :src="goodsInfo.goodsCover" mode="scaleToFill" />
@@ -32,31 +32,31 @@
 			</view>
 		</scroll-view>
 
-		<view class="footer acea-row row-between-wrapper">
-			<!-- <button open-type="contact" hover-class='none' class='item'>
-						<view class='iconfont icon-kefu'></view>
-						<view>客服</view>
-					</button> -->
-
-			<navigator hover-class="none" class="item skeleton-rect" open-type="switchTab" url="/pages/index/index">
-				<view class="iconfont icon-shouye6"></view>
-				<view class="p_center">{{ $t(`首页`) }}</view>
-			</navigator>
-
-			<view style="    margin-right: 30rpx;">
-				<view class="bnt acea-row">
-					<view class="buy-box">
-						<button class="share-btn ">
-							分享有礼
-						</button>
-						<button class="now-btn " @submit="goBuy">
-							立即购买
-						</button>
-					</view>
-				</view>
-			</view>
-
-		</view>
+<!--		<view class="footer acea-row row-between-wrapper">-->
+<!--			&lt;!&ndash; <button open-type="contact" hover-class='none' class='item'>-->
+<!--						<view class='iconfont icon-kefu'></view>-->
+<!--						<view>客服</view>-->
+<!--					</button> &ndash;&gt;-->
+
+<!--			<navigator hover-class="none" class="item skeleton-rect" open-type="switchTab" url="/pages/index/index">-->
+<!--				<view class="iconfont icon-shouye6"></view>-->
+<!--				<view class="p_center">{{ $t(`首页`) }}</view>-->
+<!--			</navigator>-->
+
+<!--			<view style="    margin-right: 30rpx;">-->
+<!--				<view class="bnt acea-row">-->
+<!--					<view class="buy-box">-->
+<!--						<button class="share-btn ">-->
+<!--							分享有礼-->
+<!--						</button>-->
+<!--						<button class="now-btn " @submit="goBuy">-->
+<!--							立即购买-->
+<!--						</button>-->
+<!--					</view>-->
+<!--				</view>-->
+<!--			</view>-->
+
+<!--		</view>-->
 
 	</view>
 </template>

+ 9 - 5
pages/groupbuying_details/index.vue

@@ -118,6 +118,7 @@
 											</view>
 										</view>
 									</view>
+
 								</view>
 							</view>
 						</view>
@@ -238,14 +239,16 @@
 		</view>
 
 
-
-		<u-popup :show="addGoodPopupShow" @close="addGoodPopupShow = false" @open="	">
+		<uni-popup ref="popup" type="bottom" background-color="#fff">
 			<view>
-				<detail :goodsInfo="goods" v-if="addGoodPopupShow"></detail>
+				<detail :goodsInfo="goods"></detail>
 			</view>
-		</u-popup>
+		</uni-popup>
 
+<!--			<popup :show="addGoodPopupShow" @close="addGoodPopupShow = false">-->
+<!--				<detail :goodsInfo="goods"></detail>-->
 
+<!--			</popup>-->
 
 	</view>
 </template>
@@ -938,8 +941,9 @@ export default {
 		getGoodsDetails (goodsId) {
       // uni.showLoading({ title: '团购信息加载中' });
       let that = this;
+      this.$refs.popup.open()
       that.goods = {}
-      that.addGoodPopupShow = true
+      // that.addGoodPopupShow = true
       goodsDetail({ id: goodsId })
           .then((res) => {