Przeglądaj źródła

跳转小程序

hmp 4 lat temu
rodzic
commit
8027962295
3 zmienionych plików z 13 dodań i 12 usunięć
  1. 13 0
      components/homeViews/points-view.vue
  2. 0 9
      pages.json
  3. 0 3
      pages/activityList/index.vue

+ 13 - 0
components/homeViews/points-view.vue

@@ -1,5 +1,17 @@
 <template>
 	<view >
+		<swiper class="screen-swiper square-dot"  style="width: 100%;height: 330rpx;"  :indicator-dots="true" :circular="true"
+		 :autoplay="true" interval="5000" duration="500">
+			<swiper-item v-for="(item,index) in 4" :key="index"  style="width: 100%;height: 330rpx;">
+				<wx-open-launch-weapp id="launch-btn" username="gh_1ac06b5a8f4e">
+					<script type="text/wxtag-template">
+						<image style="width: 100%;height: 330rpx;"  src="https://upload-file-data.obs.cn-south-1.myhuaweicloud.com/69beb1ec0d2642d2afe02908fdaac775-ad.png" mode="aspectFill"></image>
+					</script>
+				</wx-open-launch-weapp>
+			</swiper-item>
+		</swiper>
+
+		
 		<goods :goodsList="goodsList" :activityId="activityId"></goods>
 	</view>
 </template>
@@ -22,6 +34,7 @@
 			}
 		},
 		mounted() {
+			this.$shareConfig({}, this)
 			this.fetchGoodsList();
 		},
 		methods: {

+ 0 - 9
pages.json

@@ -252,15 +252,6 @@
             }
             
         }
-        ,{
-            "path" : "pages/test/test",
-            "style" :                                                                                    
-            {
-                "navigationBarTitleText": "test",
-                "enablePullDownRefresh": false
-            }
-            
-        }
     ],
 	"globalStyle": {
 		"navigationStyle": "custom",

+ 0 - 3
pages/activityList/index.vue

@@ -75,9 +75,6 @@
 			this.getAdsList();
 			this.getActivityList();
 		},
-		mounted() {
-			this.$shareConfig({}, this)
-		},
 		methods: {
 			navWithParm(id) {
 				uni.navigateTo({