|
@@ -58,7 +58,18 @@
|
|
|
</a>
|
|
|
<a
|
|
|
href="javascript:;"
|
|
|
- @click="jumpShops">
|
|
|
+ data-clipboard-hide="1"
|
|
|
+ :data-clipboard-text="goodsInfo.url"
|
|
|
+ v-copy
|
|
|
+ @click="jumpShops"
|
|
|
+ v-if="source === 'taobao'">
|
|
|
+ <span>自购省</span>
|
|
|
+ <span>券¥{{ couponInfo.fav }} + ¥{{ goodsInfo.commission }}</span>
|
|
|
+ </a>
|
|
|
+ <a
|
|
|
+ href="javascript:;"
|
|
|
+ @click="jumpShops"
|
|
|
+ v-else>
|
|
|
<span>自购省</span>
|
|
|
<span>券¥{{ couponInfo.fav }} + ¥{{ goodsInfo.commission }}</span>
|
|
|
</a>
|
|
@@ -66,6 +77,20 @@
|
|
|
<!--弹窗:分享提示-->
|
|
|
<ShareTipInWechat
|
|
|
ref="fbtShareTipInWechat"/>
|
|
|
+ <van-popup
|
|
|
+ class="fbt-van-copy"
|
|
|
+ v-model="copyPopup"
|
|
|
+ round
|
|
|
+ closeable
|
|
|
+ position="bottom"
|
|
|
+ :style="{ height: '40%', background: '#f6f6f6' }">
|
|
|
+ <p class="title">淘口令已复制</p>
|
|
|
+ <p class="content">{{ goodsInfo.url }}</p>
|
|
|
+ <van-button
|
|
|
+ round
|
|
|
+ type="primary">去淘宝粘贴打开
|
|
|
+ </van-button>
|
|
|
+ </van-popup>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -73,16 +98,19 @@
|
|
|
import funWxShare from '@/utils/wxShare0.0'
|
|
|
import Banner from './child/banner'
|
|
|
import ShareTipInWechat from '../../common/shareTipInWechat'
|
|
|
-import { Button, Toast } from 'vant'
|
|
|
+import fbtClipboard from '../../../mixin/fbtClipboard'
|
|
|
+import { Button, Toast, Popup } from 'vant'
|
|
|
import { apiGoodsDetail } from './api/api'
|
|
|
import { platform } from '../../../utils/platform'
|
|
|
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
+ mixins: [fbtClipboard],
|
|
|
components: {
|
|
|
Banner,
|
|
|
ShareTipInWechat,
|
|
|
- 'van-button': Button
|
|
|
+ 'van-button': Button,
|
|
|
+ 'van-popup': Popup
|
|
|
},
|
|
|
props: {
|
|
|
source: {
|
|
@@ -99,7 +127,8 @@ export default {
|
|
|
goodsInfo: {},
|
|
|
couponInfo: {}, // 优惠券相关
|
|
|
goodsCarouselPictures: [], // 商品轮播图
|
|
|
- goodsDetailPictures: [] // 商品详情图片
|
|
|
+ goodsDetailPictures: [], // 商品详情图片
|
|
|
+ copyPopup: false // 淘口令复制提示
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
@@ -142,6 +171,10 @@ export default {
|
|
|
Toast('数据加载中,稍后重试')
|
|
|
return
|
|
|
}
|
|
|
+ if (this.source === 'taobao') {
|
|
|
+ this.copyPopup = true
|
|
|
+ return
|
|
|
+ }
|
|
|
top.location.href = this.goodsInfo.url
|
|
|
}
|
|
|
}
|
|
@@ -208,11 +241,10 @@ export default {
|
|
|
font-size: 11px;
|
|
|
font-weight: bold;
|
|
|
color: #EA483F;
|
|
|
- line-height: 18px;
|
|
|
+ line-height: 24px;
|
|
|
}
|
|
|
|
|
|
&:nth-of-type(2) {
|
|
|
- padding-top: 2px;
|
|
|
font-size: 14px;
|
|
|
font-weight: 500;
|
|
|
color: #EA483F;
|
|
@@ -347,4 +379,36 @@ export default {
|
|
|
margin: 0 auto;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.fbt-van-copy {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .title {
|
|
|
+ width: 100%;
|
|
|
+ padding: 30px 0 20px;
|
|
|
+ font-size: 18px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #333333;
|
|
|
+ line-height: 28px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .content {
|
|
|
+ width: 350px;
|
|
|
+ padding: 18px 15px;
|
|
|
+ border-radius: 18px;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #959595;
|
|
|
+ line-height: 20px;
|
|
|
+ word-break: break-all;
|
|
|
+ background: #fff;
|
|
|
+ }
|
|
|
+
|
|
|
+ ::v-deep .van-button {
|
|
|
+ width: 350px;
|
|
|
+ margin-top: 20px;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|