|
|
@@ -0,0 +1,112 @@
|
|
|
+<template>
|
|
|
+ <div class="savePreview">
|
|
|
+ <el-dialog center title="预览" width="25%" :append-to-body="true" :close-on-click-modal="false"
|
|
|
+ :visible.sync="dialogVisible">
|
|
|
+ <div style="overflow-y: auto;height:70vh;background-color: #eee;border: 1px solid #bdbdbd;">
|
|
|
+ <div style="height: 200px;background-color: #fff;display: flex;align-items: center;">
|
|
|
+ <img :src="params.productMainImage" alt="" style="width: 100%;object-fit: cover">
|
|
|
+ </div>
|
|
|
+ <div style="border: 1px solid #bdbdbd;border-radius: 5px;margin: 10px 10px 0 10px;
|
|
|
+ padding:10px 10px 10px 10px;background-color: #fff;">
|
|
|
+ <div style="display: flex;justify-content: space-between;align-items: center;">
|
|
|
+ <div>
|
|
|
+ <div style="font-size: 16px;">{{ params.name }}</div>
|
|
|
+ <div style="margin-top: 10px;font-size: 14px;color: #878787;">{{ params.summary }}</div>
|
|
|
+ </div>
|
|
|
+ <div style="">
|
|
|
+ <div style="font-size: 15px;color: red;font-weight: 600">
|
|
|
+ {{ params.skuList[0].paymentType == 1 ? params.skuList[0].pricePoint + '积分' : params.skuList[0].paymentType == 2 ? params.skuList[0].pricePoint +
|
|
|
+ '元'
|
|
|
+ : params.skuList[0].pricePoint }}
|
|
|
+ </div>
|
|
|
+ <div style="font-size: 14px;color: #878787;text-decoration: line-through;text-align: right;">{{ params.skuList[0].originPrice }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;justify-content: space-between;align-items: center;margin-top: 5px;">
|
|
|
+ <div style="display: flex;align-items: center;">
|
|
|
+ <div style="color: 12px;">规格</div>
|
|
|
+ <div style="display: flex;">
|
|
|
+ <div v-show="params.skuList.length"
|
|
|
+ style="border: 1px solid #bdbdbd;width: 40px;height: 35px;display: flex;align-items: center;margin-left: 15px;">
|
|
|
+ <img :src="params.skuList[0].image" alt="" style="width: 100%;object-fit: cover">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div style="color: #f6a66e;font-size: 12px;">已选: {{ params.skuList[0].specCombo }}</div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 二 -->
|
|
|
+ <div style="border: 1px solid #bdbdbd;border-radius: 5px;margin: 10px 10px 0 10px;padding:10px;background-color: #fff;font-size: 12px;">
|
|
|
+ <div style="border-bottom: 1px solid #bdbdbd;">
|
|
|
+ <div style="padding-bottom: 5px;color: #f6a66e;">
|
|
|
+ <span v-for="item in params.servicePromise" style="padding-left: 15px;font-size: 12px;">{{ item }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin: 10px 0;padding-left: 15px;">送至 <span style="padding-left: 15px;">山西省 太原市 小店区</span></div>
|
|
|
+ <div style="display: flex;padding-left: 15px;">
|
|
|
+ <div>发货</div>
|
|
|
+ <div style="padding-left: 15px;">
|
|
|
+ <div style="color: #25b6b3;">下单后{{ params.deliveryTime }}小时内发货 </div>
|
|
|
+ <div style="margin-top: 5px;">
|
|
|
+ <span style="border: 1px solid #f6a66e;color: #f6a66e;padding: 2px 5px;">{{ params.freight == 0 ? '免运费' : '运费' + params.freight + '元' }} </span>
|
|
|
+ <span>山西省 太原市 小店区</span></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 三 -->
|
|
|
+ <div
|
|
|
+ style="border: 1px solid #bdbdbd;border-radius: 5px;margin: 10px 10px 0 10px;padding:10px;background-color: #fff;;">
|
|
|
+ <div style="">商品详情</div>
|
|
|
+ <div style="height: 200px;display: flex;align-items: center;margin-top: 10px;border: 1px solid #f1f1f1"
|
|
|
+ v-for="item in params.productImage">
|
|
|
+ <img :src="item" alt="" style="width: 100%;object-fit: cover">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <div style="display: flex;justify-content: center;margin-top: 25px;">
|
|
|
+ <el-button type="primary" size="small" plain @click="savePreviewFun">保存</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ components: {},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ dialogVisible: false,
|
|
|
+ params: {},
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ showPage(params) {
|
|
|
+ this.dialogVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.params=null
|
|
|
+ this.params = params
|
|
|
+ console.log(params, 'params')
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+ savePreviewFun() {
|
|
|
+
|
|
|
+ this.$emit('savePreviewFun',this.params)
|
|
|
+ this.dialogVisible = false
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+}
|
|
|
+</script>
|
|
|
+<style scoped lang="scss"></style>
|