|
|
|
@ -118,7 +118,11 @@
|
|
|
|
|
|
|
|
|
|
<view class="product-intro"> |
|
|
|
|
<view class="title">商品展示</view> |
|
|
|
|
<view class="conter" v-html="storeInfo.description"></view> |
|
|
|
|
<view class="conter"> |
|
|
|
|
<mp-html id="article" :setTitle="false" :lazy-load="true" :copy-link="false" :tag-style="tagStyle" |
|
|
|
|
:content="storeInfo.description" @linktap="linktap" /> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view class="conter" v-html="storeInfo.description"></view> --> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<!-- 操作栏 --> |
|
|
|
@ -189,7 +193,16 @@
|
|
|
|
|
</view> --> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 词条弹框 --> |
|
|
|
|
<view class="entry-mask" v-show="showEntry" @touchmove.stop.prevent @click="closeEntry"> |
|
|
|
|
<view class="entry-box"> |
|
|
|
|
<view class="entry"> |
|
|
|
|
{{entryInfo.entryInfo}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<ProductWindow v-on:changeFun="changeFun" :attr="attr" :cartNum="cartNum" :storeInfo="storeInfo.info" :unitName="storeInfo.unitName"></ProductWindow> |
|
|
|
|
<StorePoster v-on:setPosterImageStatus="setPosterImageStatus" :posterImageStatus="posterImageStatus" :posterData="posterData"></StorePoster> |
|
|
|
|
</view> |
|
|
|
@ -207,7 +220,7 @@ import ProductWindow from '@/components/ProductWindow'
|
|
|
|
|
import StorePoster from '@/components/StorePoster' |
|
|
|
|
import UserEvaluation from '@/components/UserEvaluation'; |
|
|
|
|
import { getSeckillDetail } from '@/api/activity' |
|
|
|
|
import { postCartAdd } from '@/api/store' |
|
|
|
|
import { postCartAdd, getEntry } from '@/api/store' |
|
|
|
|
import { imageBase64 } from '@/api/public' |
|
|
|
|
import { getCoupon, getCollectAdd, getCollectDel, getUserInfo } from '@/api/user' |
|
|
|
|
const NAME = 'SeckillDetails' |
|
|
|
@ -254,6 +267,12 @@ export default {
|
|
|
|
|
userCollect: false, |
|
|
|
|
styleAllStyle: 'width:30rpx;height:24rpx;background:#F5F6F8;border-radius:8rpx;font-size:20rpx;color:#3A3A3C;line-height:24rpx;', |
|
|
|
|
timeTxtStyle: 'font-size:20rpx;color:#F5F6F8;line-height:24rpx;padding:0rpx 4rpx;', |
|
|
|
|
entryInfo: {}, |
|
|
|
|
showEntry: false, |
|
|
|
|
tagStyle: { |
|
|
|
|
a: 'color:#0A59F7;text-decoration:underline;', |
|
|
|
|
img: 'padding:0;margin:0;font-size:0;display:block;' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onShow: function() { |
|
|
|
@ -526,6 +545,22 @@ export default {
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
linktap(e) { |
|
|
|
|
// console.log('description', e.innerText); |
|
|
|
|
if (e.innerText == this.entryInfo.entryName) { |
|
|
|
|
this.showEntry = true; |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
getEntry({ |
|
|
|
|
name: e.innerText |
|
|
|
|
}).then(res => { |
|
|
|
|
this.entryInfo = res.data; |
|
|
|
|
this.showEntry = true; |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
closeEntry() { |
|
|
|
|
this.showEntry = false; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|