From d889eaf990af99c06970e51f2bc421ac0015489c Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期四, 05 五月 2022 13:30:31 +0800
Subject: [PATCH] bug修复

---
 src/views/productDetail/components/PayCard.vue |   23 ++++++++---------------
 1 files changed, 8 insertions(+), 15 deletions(-)

diff --git a/src/views/productDetail/components/PayCard.vue b/src/views/productDetail/components/PayCard.vue
index 2569d6d..11c0f36 100644
--- a/src/views/productDetail/components/PayCard.vue
+++ b/src/views/productDetail/components/PayCard.vue
@@ -1,16 +1,16 @@
 <template>
   <div class="PayCard">
     <div class="imageArea" v-if="data.pics.length">
-      <img class="activeImg" :src="'/httpImage/' + activeImg.url" />
+      <ImageShow class="activeImg" :src="activeImg.url" />
       <div class="imgList">
-        <img
+        <ImageShow
           v-for="(item, index) in data.pics"
           class="preImg"
-          :src="'/httpImage/' + item.url"
+          :src="item.url"
           :key="index"
           alt=""
           :class="{ active: activeImg.index == index }"
-          @click="selectImg(index, item.url)"
+          @click.native="selectImg(index, item.url)"
         />
       </div>
     </div>
@@ -142,16 +142,6 @@
         v-if="data.productBaseDetail && data.productBaseDetail.hasAuthPrice"
       >
         <div class="label">鎺堟潈鏁伴噺</div>
-        <el-input-number
-          v-model="cartItem.chCount"
-          @change="handleChangeCh"
-          :disabled="!data.hasChUnitPrice"
-          size="small"
-          :min="1"
-          :max="16"
-          label="鎻忚堪鏂囧瓧"
-        ></el-input-number>
-        <span class="desText">鏈�澶ф敮鎸�16璺�</span>
         <el-input-number
           v-model="cartItem.authCount"
           @change="handleChangeAuth"
@@ -310,7 +300,9 @@
 
       <div class="btns">
         <div class="button addCar">鍔犲叆璐墿杞�</div>
-        <div class="button pay" @click="confirmNow">绔嬪嵆璐拱</div>
+        <div class="button pay" @click="confirmNow">
+          {{ data.priceBase ? "绔嬪嵆璐拱" : "鍏嶈垂璇曠敤" }}
+        </div>
       </div>
     </div>
 
@@ -543,6 +535,7 @@
         payMethod: 0,
         products,
         status: 0,
+        userId: JSON.parse(sessionStorage.getItem("userInfo")).id,
       }).then((res) => {
         if (res.success) {
           this.orderId = res.data.orderId;

--
Gitblit v1.8.0