cr 3 év óta
szülő
commit
a0e40e0607
2 módosított fájl, 5 hozzáadás és 5 törlés
  1. 4 4
      src/pages/recommend/detail.vue
  2. 1 1
      src/pages/user/index.vue

+ 4 - 4
src/pages/recommend/detail.vue

@@ -375,7 +375,7 @@
375
             </ul>
375
             </ul>
376
             <div class="navigation__right">
376
             <div class="navigation__right">
377
                 <button
377
                 <button
378
-                    v-if="user.login"
378
+                    v-if="user.login && goods.totalInventory > 0"
379
                     class="button"
379
                     class="button"
380
                     @click="openSpec('cart', $event)"
380
                     @click="openSpec('cart', $event)"
381
                 >
381
                 >
@@ -384,14 +384,14 @@
384
                     </div>
384
                     </div>
385
                 </button>
385
                 </button>
386
                 <button
386
                 <button
387
-                    v-if="user.login"
387
+                    v-if="user.login && goods.totalInventory > 0"
388
                     class="button"
388
                     class="button"
389
                     @click="openSpec('buy', $event)"
389
                     @click="openSpec('buy', $event)"
390
                 >
390
                 >
391
                     <div class="navigation__btn">立即购买</div>
391
                     <div class="navigation__btn">立即购买</div>
392
                 </button>
392
                 </button>
393
                 <button
393
                 <button
394
-                    v-if="!user.login"
394
+                    v-if="!user.login && goods.totalInventory > 0"
395
                     class="button"
395
                     class="button"
396
                     open-type="getUserInfo"
396
                     open-type="getUserInfo"
397
                     lang="zh_CN"
397
                     lang="zh_CN"
@@ -402,7 +402,7 @@
402
                     </div>
402
                     </div>
403
                 </button>
403
                 </button>
404
                 <button
404
                 <button
405
-                    v-if="!user.login"
405
+                    v-if="!user.login && goods.totalInventory > 0"
406
                     class="button"
406
                     class="button"
407
                     open-type="getUserInfo"
407
                     open-type="getUserInfo"
408
                     lang="zh_CN"
408
                     lang="zh_CN"

+ 1 - 1
src/pages/user/index.vue

@@ -279,7 +279,7 @@
279
         </div>
279
         </div>
280
 
280
 
281
         <div class="web-support">
281
         <div class="web-support">
282
-            <p class="text">0.0.984</p>
282
+            <p class="text">0.0.985</p>
283
             <!-- <div class="num" @click="makeCall">400-629-6782</div> -->
283
             <!-- <div class="num" @click="makeCall">400-629-6782</div> -->
284
         </div>
284
         </div>
285
     </div>
285
     </div>