Ver Fonte

修复PC端

wbspool há 4 anos atrás
pai
commit
b2ec378613

+ 4 - 1
src/pc/components/ui-main-article/ui-main-article.vue

@@ -64,7 +64,10 @@
 
             handleGoTo(item) {
 
-
+                if(item.outLink === '1'){
+                    window.open(item.link);
+                    return;
+                }
 
                 if(!this.$store.state.userinfo.code){
                     this.$message.warning(this.$t('当前为付费资源,需登录后再阅读'));

+ 6 - 0
src/pc/components/ui-small-article/ui-small-article.vue

@@ -43,6 +43,12 @@
     methods: {
 
       handleGoTo(item) {
+
+        if(item.outLink === '1'){
+          window.open(item.link);
+          return;
+        }
+
         if (!this.$store.state.userinfo.exipreVip) {
           this.$refs.vsb.open();
           return;

+ 5 - 2
src/pc/pages/product/product-detail.vue

@@ -36,7 +36,7 @@
               {{$t('数量')}}:
             </div>
             <div>
-              <el-input-number min="1" v-model="num"></el-input-number>
+              <el-input-number min="1" v-model="num" :disabled="product.online === '2'"></el-input-number>
             </div>
             <div class="font-normal text-[#686868] text-size-14px">
               <span class="ml-20px">{{ $t("件") }}</span>
@@ -44,9 +44,12 @@
             </div>
           </div>
           <div class="flex justify-center">
-            <el-button @click="handleBuy" class="!text-white !w-200px !h-40px !bg-primary" round>{{
+            <el-button v-if="product.online !== '2'" @click="handleBuy" class="!text-white !w-200px !h-40px !bg-primary" round>{{
               $t("立即购买")
             }}</el-button>
+            <el-button v-else @click="handleBuy" class="!w-200px !h-40px" round :disabled="product.online === '2'">{{
+              $t("已下线")
+              }}</el-button>
           </div>
         </div>
       </div>