Browse Source

1修复详情问题

306132416@qq.com 5 years ago
parent
commit
5f193b6713
1 changed files with 5 additions and 5 deletions
  1. 5 5
      pages/index/detailPage/index.vue

+ 5 - 5
pages/index/detailPage/index.vue

@@ -2,10 +2,10 @@
 <template>
 	<view class="content">
 		<image class="logo" :src="detailObj.picture" mode='aspectFill'></image>
-		<view class="detail-title">
+		<view class="detail-title" @longpress="copyTitle">
 			<text class="detail-font">{{detailObj.desc || '-'}}</text>
 		    <text class="price-style">¥{{detailObj.money || '-'}}</text> 
-			<button type="default" class="copy-title-btn" @click="copyTitle">复制标题</button>
+		<!-- 	<button type="default" class="copy-title-btn" @click="copyTitle">复制标题</button> -->
 		</view>
 		
 	<view class="share-box">
@@ -21,14 +21,14 @@
 		<button type="default" @click="copyCode">一键复制</button>
 	</view> -->
 	
-	<view class="share-box-new">
+	<view class="share-box-new"  @longpress="copyCode">
 		<view class="left-box">
 			<image :src="storeImg" mode="aspectFill"></image>
 			<view>{{shareCode || '-'}}</view>
 		</view>
-		<view style="margin-right: 3%;">
+	<!-- 	<view style="margin-right: 3%;">
 			<button type="default" class="copy-content-btn" @click="copyCode">一键复制</button>
-		</view>
+		</view> -->
 	</view>
 		
 		<view class="product-title">产品详情</view>