浏览代码

优化代码

bobo 3 年之前
父节点
当前提交
2b27b6c611

+ 1 - 1
app.json

@@ -29,7 +29,7 @@
     "navigationBarTextStyle": "black"
     "navigationBarTextStyle": "black"
   },
   },
   "usingComponents": {
   "usingComponents": {
-    "page" : "components/page/index"
+    "page-wrap" : "components/pageWrap/index"
   },
   },
   "style": "v2",
   "style": "v2",
   "sitemapLocation": "sitemap.json",
   "sitemapLocation": "sitemap.json",

+ 0 - 27
components/page/index.js

@@ -1,27 +0,0 @@
-// components/page/index.js
-Component({
-    /**
-     * 组件的属性列表
-     */
-    properties: {
-
-    },
-
-    /**
-     * 组件的初始数据
-     */
-    data: {
-        showLoading: false
-    },
-
-    /**
-     * 组件的方法列表
-     */
-    methods: {
-        setValue(k, v) {
-            this.setData({
-                [k]: v
-            })
-        }
-    }
-})

+ 0 - 6
components/page/index.json

@@ -1,6 +0,0 @@
-{
-    "component": true,
-    "usingComponents": {
-        "loading": "../loading/index"
-    }
-}

+ 0 - 5
components/page/index.wxml

@@ -1,5 +0,0 @@
-<!--components/page/index.wxml-->
-<view>
-<slot></slot>
-<loading wx:if="{{showLoading}}"></loading>
-</view>

+ 0 - 1
components/page/index.wxss

@@ -1 +0,0 @@
-/* components/page/index.wxss */

+ 2 - 2
pages/luckDraw/index.wxml

@@ -1,5 +1,5 @@
 <!--pages/luckDraw/index.wxml-->
 <!--pages/luckDraw/index.wxml-->
-<page id="Page">
+<page-wrap id="Page">
 
 
    <!-- 活动列表 -->
    <!-- 活动列表 -->
    <view class="_list">
    <view class="_list">
@@ -37,4 +37,4 @@
 
 
    </view>
    </view>
 
 
-</page>
+</page-wrap>

+ 2 - 2
pages/signIn/activity/activity.wxml

@@ -1,5 +1,5 @@
 <!--pages/signIn/index.wxml-->
 <!--pages/signIn/index.wxml-->
-<page id="Page" wx:if="{{showPage}}">
+<page-wrap id="Page" wx:if="{{showPage}}">
 
 
 <custom-page head-bg-image="{{activity.themePic}}" bind:sizes="handlePageSizes">
 <custom-page head-bg-image="{{activity.themePic}}" bind:sizes="handlePageSizes">
     <topbar slot="head" title="签到中心" back-color="{{mainColor}}" title-color="{{mainColor}}" />
     <topbar slot="head" title="签到中心" back-color="{{mainColor}}" title-color="{{mainColor}}" />
@@ -130,4 +130,4 @@
     </view>
     </view>
 </view>
 </view>
 
 
-</page>
+</page-wrap>

+ 2 - 2
pages/welfareMall/activityInfo/activityInfo.wxml

@@ -1,4 +1,4 @@
-<page id="#Page">
+<page-wrap id="#Page">
   <image src="{{detail.fullCoverImg}}" mode="widthFix" class="top_img"></image>
   <image src="{{detail.fullCoverImg}}" mode="widthFix" class="top_img"></image>
   <view class="info_all flex-row">
   <view class="info_all flex-row">
     <view class="flex-row info">
     <view class="flex-row info">
@@ -83,4 +83,4 @@
         </view>
         </view>
       <image class="widow_del" src="/images/welfareMall/window_del.png"  bindtap="goToOrderList"></image>
       <image class="widow_del" src="/images/welfareMall/window_del.png"  bindtap="goToOrderList"></image>
     </view>
     </view>
-</page>
+</page-wrap>

+ 2 - 2
pages/welfareMall/activityList/activityList.wxml

@@ -1,4 +1,4 @@
-<page id="Page">
+<page-wrap id="Page">
   <view class="top_banner flex-row">
   <view class="top_banner flex-row">
     <view class="top_banner_item flex-column" bindtap="gotoPay">
     <view class="top_banner_item flex-column" bindtap="gotoPay">
       <view class="t_b_i_title">特惠券包</view>
       <view class="t_b_i_title">特惠券包</view>
@@ -31,7 +31,7 @@
         </view>
         </view>
       </view>
       </view>
     </view>
     </view>
-</page>
+</page-wrap>
 
 
 
 
 <!-- <view class="coupon_item flex-row">
 <!-- <view class="coupon_item flex-row">

+ 2 - 2
pages/welfareMall/index/index.wxml

@@ -1,4 +1,4 @@
-<page id="Page" class="{{grayTheme?'page':''}}">
+<page-wrap id="Page" class="{{grayTheme?'page':''}}">
   <view class='swiper_box'>
   <view class='swiper_box'>
     <swiper class="swiper" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" current="{{currentSwiper}}" bindanimationfinish="swiperChange">
     <swiper class="swiper" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" current="{{currentSwiper}}" bindanimationfinish="swiperChange">
       <block wx:for="{{bannerList}}" wx:key="unique">
       <block wx:for="{{bannerList}}" wx:key="unique">
@@ -62,4 +62,4 @@
     </view>
     </view>
   </view> -->
   </view> -->
   </view>
   </view>
-</page>
+</page-wrap>

+ 2 - 2
pages/welfareMall/personal/personal.wxml

@@ -1,5 +1,5 @@
 <!--pages/welfareMall/personal/personal.wxml-->
 <!--pages/welfareMall/personal/personal.wxml-->
-<page id="Page" class="{{grayTheme?'page':''}}">
+<page-wrap id="Page" class="{{grayTheme?'page':''}}">
 <custom-page head-bg-color="#fff2f3">  
 <custom-page head-bg-color="#fff2f3">  
   <view slot="body" class="personal flex-column">
   <view slot="body" class="personal flex-column">
     <!-- 首部个人信息 -->
     <!-- 首部个人信息 -->
@@ -42,7 +42,7 @@
       </view>
       </view>
   </view>
   </view>
 </custom-page>  
 </custom-page>  
-</page>
+</page-wrap>
 
 
 <!-- 使用wxs 手机号码中间四位显示为*号 -->
 <!-- 使用wxs 手机号码中间四位显示为*号 -->
 <wxs module="phone">
 <wxs module="phone">