Browse Source

修改bug

cr 3 years ago
parent
commit
a0e40e0607
2 changed files with 5 additions and 5 deletions
  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 375
             </ul>
376 376
             <div class="navigation__right">
377 377
                 <button
378
-                    v-if="user.login"
378
+                    v-if="user.login && goods.totalInventory > 0"
379 379
                     class="button"
380 380
                     @click="openSpec('cart', $event)"
381 381
                 >
@@ -384,14 +384,14 @@
384 384
                     </div>
385 385
                 </button>
386 386
                 <button
387
-                    v-if="user.login"
387
+                    v-if="user.login && goods.totalInventory > 0"
388 388
                     class="button"
389 389
                     @click="openSpec('buy', $event)"
390 390
                 >
391 391
                     <div class="navigation__btn">立即购买</div>
392 392
                 </button>
393 393
                 <button
394
-                    v-if="!user.login"
394
+                    v-if="!user.login && goods.totalInventory > 0"
395 395
                     class="button"
396 396
                     open-type="getUserInfo"
397 397
                     lang="zh_CN"
@@ -402,7 +402,7 @@
402 402
                     </div>
403 403
                 </button>
404 404
                 <button
405
-                    v-if="!user.login"
405
+                    v-if="!user.login && goods.totalInventory > 0"
406 406
                     class="button"
407 407
                     open-type="getUserInfo"
408 408
                     lang="zh_CN"

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

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