sunlupeng 1 year ago
parent
commit
5c60c2ea03

+ 4 - 2
public/drawCarousel.html

@@ -4,7 +4,8 @@
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1.0">
 	<title>转盘抽奖</title>
-  <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/element-plus/dist/index.css"/>
+  <!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/element-plus/dist/index.css"/> -->
+  <link rel="stylesheet" href="//unpkg.com/element-plus/dist/index.css" />
 	<style>
 		* { 
       margin: 0; 
@@ -97,7 +98,8 @@
 	</div>
 
 	<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
-  <script src="//cdn.jsdelivr.net/npm/element-plus"></script>
+  <!-- <script src="//cdn.jsdelivr.net/npm/element-plus"></script> -->
+  <script src="//unpkg.com/element-plus"></script>
 	<script>
 	  const { createApp, onMounted, onUnmounted, ref, reactive, toRefs, computed, nextTick } = Vue
 	  createApp({

+ 3 - 1
src/views/HomeView/GoodsDetail.vue

@@ -201,7 +201,9 @@ export default {
   methods: {
     handleClickGood(val) {
             this.skuDesc = val;
-            this.dialogVisibleGoods = true;
+            if(this.skuDesc){
+                this.dialogVisibleGoods = true;
+            }
             // this.$router.push({
             //     path: '/home/pointsMall/goodDetail',
             //     query: {

+ 4 - 1
src/views/HomeView/PointsMall.vue

@@ -257,7 +257,10 @@ export default {
         },
         handleClickGood(id) {
             this.getDataInfo(id);
-            this.dialogVisible = true;
+            if(this.skuDesc){
+                this.dialogVisible = true;
+            }
+            // this.dialogVisible = true;
             // this.$router.push({
             //     path: '/home/pointsMall/goodDetail',
             //     query: {

+ 4 - 1
src/views/HomeView/RedeemView.vue

@@ -467,7 +467,10 @@ export default {
     methods: {
         handleClickGood(val) {
             this.skuDesc = val;
-            this.dialogVisibleGoods = true;
+            if(this.skuDesc){
+                this.dialogVisibleGoods = true;
+            }
+            
             // this.$router.push({
             //     path: '/home/pointsMall/goodDetail',
             //     query: {