|
@@ -18,7 +18,7 @@
|
|
|
<view class="content-scroll">
|
|
<view class="content-scroll">
|
|
|
<!-- Book Cover Area -->
|
|
<!-- Book Cover Area -->
|
|
|
<view class="cover-area">
|
|
<view class="cover-area">
|
|
|
- <image class="book-cover" :src="product.cover" mode="aspectFill"></image>
|
|
|
|
|
|
|
+ <image class="book-cover" :src="product.cover" mode="heightFix"></image>
|
|
|
<view class="share-btn" @click="openSharePopup">
|
|
<view class="share-btn" @click="openSharePopup">
|
|
|
<image src="/pages-sell/static/goods/icon-share.png" class="share-icon"></image>
|
|
<image src="/pages-sell/static/goods/icon-share.png" class="share-icon"></image>
|
|
|
<text>分享</text>
|
|
<text>分享</text>
|
|
@@ -34,7 +34,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<!-- Service Info -->
|
|
<!-- Service Info -->
|
|
|
- <ServiceCard @click="showServicePopup" :bookInfo="product"></ServiceCard>
|
|
|
|
|
|
|
+ <ServiceCard @click="showReduceRulePopup" :bookInfo="product"></ServiceCard>
|
|
|
|
|
|
|
|
<!-- Customer Service Float -->
|
|
<!-- Customer Service Float -->
|
|
|
<FloatingDrag :width="120" :height="120" :initial-position="servicePosition"
|
|
<FloatingDrag :width="120" :height="120" :initial-position="servicePosition"
|
|
@@ -79,6 +79,9 @@
|
|
|
|
|
|
|
|
<!-- Share Popup -->
|
|
<!-- Share Popup -->
|
|
|
<SharePopup ref="sharePopup" :product="product"></SharePopup>
|
|
<SharePopup ref="sharePopup" :product="product"></SharePopup>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Reduce Rule Popup -->
|
|
|
|
|
+ <ReduceRulePopup ref="reduceRulePopup"></ReduceRulePopup>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -91,6 +94,7 @@
|
|
|
import FooterBar from '../components/detail/footer-bar.vue'
|
|
import FooterBar from '../components/detail/footer-bar.vue'
|
|
|
import FloatingDrag from "@/components/floating-drag.vue";
|
|
import FloatingDrag from "@/components/floating-drag.vue";
|
|
|
import SharePopup from '../components/detail/share-popup.vue';
|
|
import SharePopup from '../components/detail/share-popup.vue';
|
|
|
|
|
+ import ReduceRulePopup from '../components/reduce-rule-popup/index.vue';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
@@ -101,7 +105,8 @@
|
|
|
ProductContent,
|
|
ProductContent,
|
|
|
FooterBar,
|
|
FooterBar,
|
|
|
FloatingDrag,
|
|
FloatingDrag,
|
|
|
- SharePopup
|
|
|
|
|
|
|
+ SharePopup,
|
|
|
|
|
+ ReduceRulePopup
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -218,8 +223,8 @@
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- showServicePopup() {
|
|
|
|
|
- // Placeholder for service popup
|
|
|
|
|
|
|
+ showReduceRulePopup() {
|
|
|
|
|
+ this.$refs.reduceRulePopup.open();
|
|
|
},
|
|
},
|
|
|
onBookClick(book) {
|
|
onBookClick(book) {
|
|
|
console.log('Book clicked:', book);
|
|
console.log('Book clicked:', book);
|