Commit 741479b96fb32cf14d8b9d125782963b3a36824b
1 parent
9fbe700a
fix: prod2-57/58
Showing
4 changed files
with
35 additions
and
16 deletions
components/MobileProductDetail.vue
@@ -161,7 +161,12 @@ | @@ -161,7 +161,12 @@ | ||
161 | <td class="td text-grey-darken-4 font-weight-medium"> | 161 | <td class="td text-grey-darken-4 font-weight-medium"> |
162 | {{ item.typeName }} | 162 | {{ item.typeName }} |
163 | </td> | 163 | </td> |
164 | - <td v-if="item.priceShow" class="td">$ {{ item.price }}</td> | 164 | + <td v-if="item.priceShow" class="td"> |
165 | + <div style="color: #df3931">${{ item.price }}</div> | ||
166 | + <s style="font-size: 13px; color: #757575"> | ||
167 | + ${{ item.originPrice }}</s | ||
168 | + > | ||
169 | + </td> | ||
165 | <!-- <td class="td"> | 170 | <!-- <td class="td"> |
166 | <v-btn | 171 | <v-btn |
167 | size="small" | 172 | size="small" |
@@ -213,34 +218,34 @@ | @@ -213,34 +218,34 @@ | ||
213 | selected-class="active" | 218 | selected-class="active" |
214 | > | 219 | > |
215 | <v-tab :value="1">Product Details</v-tab> | 220 | <v-tab :value="1">Product Details</v-tab> |
216 | - <v-tab :value="2">Specification</v-tab> | 221 | + <v-tab :value="2" v-if="info.productAttributeList">Specification</v-tab> |
217 | <!-- <v-tab :value="3">商品百科</v-tab> --> | 222 | <!-- <v-tab :value="3">商品百科</v-tab> --> |
218 | </v-tabs> | 223 | </v-tabs> |
219 | <v-window v-model="tab"> | 224 | <v-window v-model="tab"> |
220 | <v-window-item key="1" :value="1"> | 225 | <v-window-item key="1" :value="1"> |
221 | <div v-if="info.advantage" class="tw-mb-[24px]"> | 226 | <div v-if="info.advantage" class="tw-mb-[24px]"> |
222 | - <div class="py-2 pl-2 text-h6">Advantage</div> | ||
223 | - <v-divider class="tw-mb-[12px]"></v-divider> | 227 | + <!-- <div class="py-2 pl-2 text-h6">Advantage</div>--> |
228 | + <!-- <v-divider class="tw-mb-[12px]"></v-divider>--> | ||
224 | <div v-html="info.advantage"></div> | 229 | <div v-html="info.advantage"></div> |
225 | </div> | 230 | </div> |
226 | <div v-if="info.physicalproperty" class="tw-mb-[24px]"> | 231 | <div v-if="info.physicalproperty" class="tw-mb-[24px]"> |
227 | - <div class="py-2 pl-2 text-h6">Physical Property</div> | ||
228 | - <v-divider class="tw-mb-[12px]"></v-divider> | 232 | + <!-- <div class="py-2 pl-2 text-h6">Physical Property</div>--> |
233 | + <!-- <v-divider class="tw-mb-[12px]"></v-divider>--> | ||
229 | <div v-html="clearSpanStyle(info.physicalproperty)"></div> | 234 | <div v-html="clearSpanStyle(info.physicalproperty)"></div> |
230 | </div> | 235 | </div> |
231 | <div v-if="info.storage" class="tw-mb-[24px]"> | 236 | <div v-if="info.storage" class="tw-mb-[24px]"> |
232 | - <div class="py-2 pl-2 text-h6">Storage</div> | ||
233 | - <v-divider class="tw-mb-[12px]"></v-divider> | 237 | + <!-- <div class="py-2 pl-2 text-h6">Storage</div>--> |
238 | + <!-- <v-divider class="tw-mb-[12px]"></v-divider>--> | ||
234 | <div v-html="clearSpanStyle(info.storage)"></div> | 239 | <div v-html="clearSpanStyle(info.storage)"></div> |
235 | </div> | 240 | </div> |
236 | <div v-if="info.introduction" class="tw-mb-[24px]"> | 241 | <div v-if="info.introduction" class="tw-mb-[24px]"> |
237 | - <div class="py-2 pl-2 text-h6">Introduction</div> | ||
238 | - <v-divider class="tw-mb-[12px]"></v-divider> | 242 | + <!-- <div class="py-2 pl-2 text-h6">Introduction</div>--> |
243 | + <!-- <v-divider class="tw-mb-[12px]"></v-divider>--> | ||
239 | <div v-html="clearSpanStyle(info.introduction)"></div> | 244 | <div v-html="clearSpanStyle(info.introduction)"></div> |
240 | </div> | 245 | </div> |
241 | <div v-if="info.description" class="tw-mb-[24px]"> | 246 | <div v-if="info.description" class="tw-mb-[24px]"> |
242 | - <div class="py-2 pl-2 text-h6">Description</div> | ||
243 | - <v-divider class="tw-mb-[12px]"></v-divider> | 247 | + <!-- <div class="py-2 pl-2 text-h6">Description</div>--> |
248 | + <!-- <v-divider class="tw-mb-[12px]"></v-divider>--> | ||
244 | <div v-html="clearSpanStyle(info.description)"></div> | 249 | <div v-html="clearSpanStyle(info.description)"></div> |
245 | </div> | 250 | </div> |
246 | </v-window-item> | 251 | </v-window-item> |
components/ProductDetail.vue
@@ -155,7 +155,12 @@ | @@ -155,7 +155,12 @@ | ||
155 | {{ item.typeName }} | 155 | {{ item.typeName }} |
156 | </td> | 156 | </td> |
157 | <td v-if="item.priceShow" class="td"> | 157 | <td v-if="item.priceShow" class="td"> |
158 | - {{ item.price + " " + item.priceUnit }} | 158 | + <div style="color: #df3931"> |
159 | + {{ item.price + " " + item.priceUnit }} | ||
160 | + </div> | ||
161 | + <s style="font-size: 13px; color: #757575">{{ | ||
162 | + item.originPrice + " " + item.priceUnit | ||
163 | + }}</s> | ||
159 | </td> | 164 | </td> |
160 | <td class="td"> | 165 | <td class="td"> |
161 | <v-btn | 166 | <v-btn |
deploy/prod2.sh
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | # 变量定义 | 2 | # 变量定义 |
3 | -LAST_TAG="1.0.56" | ||
4 | -TAG="1.0.57" | 3 | +LAST_TAG="1.0.57" |
4 | +TAG="1.0.58" | ||
5 | TARGET_PATH="/root/web/canrud-outside-nuxt-front" | 5 | TARGET_PATH="/root/web/canrud-outside-nuxt-front" |
6 | DOCKERFILE_PATH="/root/web/canrud-outside-nuxt-front/canrud-nuxt-front" | 6 | DOCKERFILE_PATH="/root/web/canrud-outside-nuxt-front/canrud-nuxt-front" |
7 | IMAGE_NAME="canrud-outside-front" | 7 | IMAGE_NAME="canrud-outside-front" |
pages/products/index.vue
@@ -36,8 +36,17 @@ | @@ -36,8 +36,17 @@ | ||
36 | style="height: auto" | 36 | style="height: auto" |
37 | > | 37 | > |
38 | <h3 style="color: red" v-if="item.price"> | 38 | <h3 style="color: red" v-if="item.price"> |
39 | - {{ item.price === item.maxPrice ? `$${item.price}` : `$${item.price} - $${item.maxPrice}` }} | 39 | + {{ |
40 | + item.price === item.maxPrice | ||
41 | + ? `$${item.price}` | ||
42 | + : `$${item.price} - $${item.maxPrice}` | ||
43 | + }} | ||
40 | </h3> | 44 | </h3> |
45 | + <!-- <s style="font-size: 13px; color: #757575">{{ | ||
46 | + item.originPrice === item.maxPrice | ||
47 | + ? `$${item.originMinPrice}` | ||
48 | + : `$${item.originMinPrice} - $${item.originMaxPrice}` | ||
49 | + }}</s> --> | ||
41 | <h4 class="item-name">{{ item.name }}</h4> | 50 | <h4 class="item-name">{{ item.name }}</h4> |
42 | </v-card-text> | 51 | </v-card-text> |
43 | </v-card> | 52 | </v-card> |