浏览代码

refactor: typo

joe 2 年之前
父节点
当前提交
7f90a8ecfb

+ 7 - 7
view/xcx/components/authorize/authorize.js

@@ -16,7 +16,7 @@ let app = getApp();
 Component({
     properties: {
         // 当前授权窗口是否隐藏
-        iShidden: {
+        isHidden: {
             type: Boolean,
             value: true,
         },
@@ -66,11 +66,11 @@ Component({
                 });
             } else {
                 this.setData({
-                    iShidden: true
+                    isHidden: true
                 });
-                if (currPage && currPage.data.iShidden != undefined) {
+                if (currPage && currPage.data.isHidden != undefined) {
                     currPage.setData({
-                        iShidden: true
+                        isHidden: true
                     });
                 }
             }
@@ -97,9 +97,9 @@ Component({
             Util.checkWxLogin().then((res) => {
                 let pages = getCurrentPages();
                 let currPage = pages[pages.length - 1];
-                if (currPage && currPage.data.iShidden != undefined) {
+                if (currPage && currPage.data.isHidden != undefined) {
                     currPage.setData({
-                        iShidden: true
+                        isHidden: true
                     });
                 }
                 that.triggerEvent('onLoadFun', app.globalData.userInfo);
@@ -165,7 +165,7 @@ Component({
                 wx.hideLoading();
                 //关闭登录弹出窗口
                 that.setData({
-                    iShidden: true,
+                    isHidden: true,
                     errorCount: 0
                 });
                 //执行登录完成回调

+ 2 - 2
view/xcx/components/authorize/authorize.wxml

@@ -1,5 +1,5 @@
 <!--pages/authorize/authorize.wxml-->
-<view class='Popup' hidden='{{iShidden}}'>
+<view class='Popup' hidden='{{isHidden}}'>
     <image src='{{logo_url}}'></image>
     <view class='title'>请授权并同意协议</view>
     <view class='tip'>请授权微信头像,用户名等信息,并遵守
@@ -15,4 +15,4 @@
             bindgetuserinfo="agreeAndAuth">同意并授权</button>
     </view>
 </view>
-<view class='mask' hidden='{{iShidden}}' catchtouchmove="true" bindtap='close'></view>
+<view class='mask' hidden='{{isHidden}}' catchtouchmove="true" bindtap='close'></view>

+ 2 - 2
view/xcx/components/mine/index.js

@@ -31,7 +31,7 @@ Component({
         price: 0.0,
 
         displaying: false, // 当前是否在这个界面
-        // iShidden: false,
+        // isHidden: false,
         // isGoIndex: false,
         stepTimer: null,
         syncTimer: null
@@ -45,7 +45,7 @@ Component({
             d.debug('mine show:', app.globalData.token)
             if (app.globalData.isLog) {
                 // this.setData({
-                //     iShidden: true
+                //     isHidden: true
                 // })
                 this.getStatus()
                 this.getHistory()

+ 1 - 1
view/xcx/components/mine/index.wxml

@@ -41,4 +41,4 @@
         </view>
     </view>
 </view>
-<!-- <authorize bind:onLoadFun='onLoadFun' isGoIndex="{{isGoIndex}}" iShidden="{{iShidden}}"></authorize> -->
+<!-- <authorize bind:onLoadFun='onLoadFun' isGoIndex="{{isGoIndex}}" isHidden="{{isHidden}}"></authorize> -->

+ 1 - 1
view/xcx/components/write-off/index.js

@@ -1,7 +1,7 @@
 var app = getApp();
 Component({
     properties: {
-        iShidden: {
+        isHidden: {
             type: Boolean,
             value: false
         }

+ 1 - 1
view/xcx/components/write-off/index.wxml

@@ -1,4 +1,4 @@
-<view hidden="{{iShidden == false}}">
+<view hidden="{{isHidden == false}}">
     <view class="WriteOff">
         <view class="pictrue">
             <image src="/images/value.jpg"></image>

+ 1 - 1
view/xcx/pages/activity/goods_combination_details/index.js

@@ -225,7 +225,7 @@ Page({
         if (app.globalData.isLog === false) {
             this.setData({
                 isAuto: true,
-                iShidden: false,
+                isHidden: false,
             });
         } else {
             var that = this;

+ 2 - 2
view/xcx/pages/activity/goods_combination_status/index.js

@@ -25,7 +25,7 @@ Page({
         countDownHour: '00',
         countDownMinute: '00',
         countDownSecond: '00',
-        iShidden: false,
+        isHidden: false,
         count: 0, //还差多少人拼团完成
         isOk: 0, //是否拼团完成
         pinkAll: [], //当前拼团列表
@@ -403,7 +403,7 @@ Page({
 
     lookAll: function () {
         this.setData({
-            iShidden: !this.data.iShidden
+            isHidden: !this.data.isHidden
         })
     },
     

+ 3 - 3
view/xcx/pages/activity/goods_combination_status/index.wxml

@@ -35,7 +35,7 @@
         <view class='tips ' wx:elif="{{isOk && !count}}">还差{{count}}人,拼团失败</view>
         <view class='tips font-color' wx:elif="{{!isOk && count}}">拼团中,还差{{count}}人拼团成功</view>
         <!-- 成功或失败时加:result -->
-        <view class='list acea-row row-middle {{iShidden?"on":""}} {{isOk ? "result": ""}}'>
+        <view class='list acea-row row-middle {{isHidden?"on":""}} {{isOk ? "result": ""}}'>
             <view class='pictrue'>
                 <image src='{{pinkT.avatar}}'></image>
             </view>
@@ -64,8 +64,8 @@
 
         <!-- 拼团成功和失败: -->
         <view class='lookAll acea-row row-center-wrapper' wx:if="{{isOk && (pinkAll.length+count+1) > 5}}"
-            bindtap='lookAll'>{{iShidden?'收起':'查看全部'}}<text
-                class="iconfont {{iShidden?'icon-xiangshang':'icon-xiangxia'}}"></text></view>
+            bindtap='lookAll'>{{isHidden?'收起':'查看全部'}}<text
+                class="iconfont {{isHidden?'icon-xiangshang':'icon-xiangxia'}}"></text></view>
         <!-- 再次开团 -->
         <view class='teamBnt bg-color' wx:if="{{isOk && !count}}" bindtap='againPink'>再次开团</view>
         <!-- 重新开团 -->

+ 2 - 2
view/xcx/pages/activity/goods_seckill_details/index.js

@@ -40,7 +40,7 @@ Page({
         attrValue: '',
         status: 1,
         isAuto: false,
-        iShidden: false,
+        isHidden: false,
         limitNum: 1, //限制本属性产品的个数;
         personNum: 0, //限制用户购买的个数;
         iSplus: false,
@@ -171,7 +171,7 @@ Page({
         if (app.globalData.isLog === false) {
             this.setData({
                 isAuto: true,
-                iShidden: false,
+                isHidden: false,
             });
         } else {
             var that = this;

+ 4 - 4
view/xcx/pages/admin/order_cancellation/index.js

@@ -17,7 +17,7 @@ Page({
         },
         verify_code: '',
         orderInfo: {},
-        iShidden: false,
+        isHidden: false,
     },
 
     close: function () {},
@@ -60,7 +60,7 @@ Page({
                 .then(res => {
                     this.setData({
                         orderInfo: res.data,
-                        iShidden: true
+                        isHidden: true
                     });
                 })
                 .catch(res => {
@@ -108,7 +108,7 @@ Page({
             .then(res => {
                 this.setData({
                     verify_code: '',
-                    iShidden: false
+                    isHidden: false
                 });
                 app.Tips({
                     title: res.msg
@@ -126,7 +126,7 @@ Page({
      */
     cancel: function () {
         this.setData({
-            iShidden: false
+            isHidden: false
         });
     },
     

+ 1 - 1
view/xcx/pages/admin/order_cancellation/index.wxml

@@ -11,7 +11,7 @@
         <!-- <image src="/images/scan.gif"></image> -->
     </view>
 </view>
-<view wx:if="{{iShidden}}">
+<view wx:if="{{isHidden}}">
     <view class="WriteOff">
         <view class="pictrue">
             <image src="{{orderInfo.image}}" />

+ 7 - 7
view/xcx/pages/goods_details/index.js

@@ -58,7 +58,7 @@ Page({
         productSelect: {}, //属性选中规格
         cart_num: 1, //购买数量
         isAuto: false, //没有授权的不会自动授权
-        iShidden: true, //是否隐藏授权
+        isHidden: true, //是否隐藏授权
         isOpen: false, //是否打开属性组件
         isLog: app.globalData.isLog, //是否登录
         actionSheetHidden: true,
@@ -620,7 +620,7 @@ Page({
         if (app.globalData.isLog === false) {
             this.setData({
                 isAuto: true,
-                iShidden: false,
+                isHidden: false,
             });
         } else {
             var that = this;
@@ -647,7 +647,7 @@ Page({
         if (app.globalData.isLog === false)
             this.setData({
                 isAuto: true,
-                iShidden: false
+                isHidden: false
             })
         else
             this.setData({
@@ -663,7 +663,7 @@ Page({
         if (app.globalData.isLog === false)
             this.setData({
                 isAuto: true,
-                iShidden: false
+                isHidden: false
             })
         else {
             this.getCouponList();
@@ -688,7 +688,7 @@ Page({
         if (app.globalData.isLog === false)
             this.setData({
                 isAuto: true,
-                iShidden: false,
+                isHidden: false,
             });
         else {
             this.goCat();
@@ -796,7 +796,7 @@ Page({
         if (app.globalData.isLog === false)
             this.setData({
                 isAuto: true,
-                iShidden: false
+                isHidden: false
             });
         else
             this.goCat(true);
@@ -809,7 +809,7 @@ Page({
         if (app.globalData.isLog === false)
             this.setData({
                 isAuto: true,
-                iShidden: false
+                isHidden: false
             });
         else
             this.setData({

+ 1 - 1
view/xcx/pages/goods_details/index.wxml

@@ -211,7 +211,7 @@
 <product-window iSplus='{{iSplus}}' attribute='{{attribute}}' productAttr="{{productAttr}}" productSelect="{{productSelect}}" bind:myevent="onMyEvent" bind:ChangeAttr="ChangeAttr" bind:ChangeCartNum="ChangeCartNum" id='product-window' bind:iptCartNum="iptCartNum"></product-window>
 <coupon-list-window coupon='{{coupon}}' bind:ChangCouponsClone="ChangCouponsClone" bind:ChangCoupons="ChangCoupons">
 </coupon-list-window>
-<authorize bind:onLoadFun="onLoadFun" isAuto="{{isAuto}}" iShidden="{{iShidden}}"></authorize>
+<authorize bind:onLoadFun="onLoadFun" isAuto="{{isAuto}}" isHidden="{{isHidden}}"></authorize>
 <!-- html转wxml -->
 <import src="/wxParse/wxParse.wxml" />
 <!-- <home></home> -->

+ 3 - 3
view/xcx/pages/index/index.js

@@ -78,7 +78,7 @@ Page({
         window: false, // 是否显示优惠券窗口
         hideTip: false, // 是否显示提示
         isAuto: true, // 是否自动授权;
-        iShidden: true, // 是否隐藏;
+        isHidden: true, // 是否隐藏;
         isGoIndex: false, // 是否返回首页;
         recommend: {
             loadend: false, // 已全部加载
@@ -119,7 +119,7 @@ Page({
     // 挖矿组件绑定
     onNeedLogin: function () {
         this.setData({
-            iShidden: false
+            isHidden: false
         })
     },
 
@@ -581,7 +581,7 @@ Page({
     // receiveCoupon: function (e) {
     //     if (!app.globalData.isLog) {
     //         this.setData({
-    //             iShidden: false
+    //             isHidden: false
     //         });
     //     } else {
     //         var that = this;

+ 1 - 1
view/xcx/pages/index/index.wxml

@@ -455,4 +455,4 @@
 </view>
 
 <!-- coupon-window window='{{window}}' couponList="{{couponList}}" bind:onClose="onClose"></coupon-window -->
-<authorize wx:if="{{ !isShowMine }}" bind:onLoadFun='onLoadFun' isGoIndex='{{isGoIndex}}' iShidden="{{iShidden}}" isAuto="{{isAuto}}"></authorize>
+<authorize wx:if="{{ !isShowMine }}" bind:onLoadFun='onLoadFun' isGoIndex='{{isGoIndex}}' isHidden="{{isHidden}}" isAuto="{{isAuto}}"></authorize>

+ 3 - 3
view/xcx/pages/message/index.js

@@ -24,7 +24,7 @@ Page({
             'color': false,
         },
         host_product: [],
-        iShidden: false,
+        isHidden: false,
         page: 0,
         messages: []
     },
@@ -35,7 +35,7 @@ Page({
     onLoad: function (options) {
         if (app.globalData.token) {
             this.setData({
-                iShidden: true
+                isHidden: true
             });
         }
     },
@@ -57,7 +57,7 @@ Page({
             this.data.page = 1;
             this.pullMessageList();
             this.setData({
-                iShidden: true
+                isHidden: true
             });
         }
         app.setUnread(app.globalData.unread); // 从详情页面返回,更新已读

+ 1 - 1
view/xcx/pages/message/index.wxml

@@ -21,4 +21,4 @@
         </view>
     </view>
 </view>
-<authorize bind:onLoadFun='onLoadFun' iShidden="{{iShidden}}"></authorize>
+<authorize bind:onLoadFun='onLoadFun' isHidden="{{isHidden}}"></authorize>

+ 4 - 4
view/xcx/pages/order_addcart/order_addcart.js

@@ -33,7 +33,7 @@ Page({
         selectValue: [], //选中的数据
         selectCountPrice: 0.00,
         isGoIndex: true,
-        iShidden: false,
+        isHidden: false,
     },
 
     /**
@@ -45,7 +45,7 @@ Page({
             navH: app.globalData.navHeight
         });
         if (app.globalData.token) that.setData({
-            iShidden: true
+            isHidden: true
         });
     },
 
@@ -76,7 +76,7 @@ Page({
      */
     onCloseAuto: function () {
         this.setData({
-            iShidden: true
+            isHidden: true
         });
     },
 
@@ -402,7 +402,7 @@ Page({
                 selectValue: [], //选中的数据
                 selectCountPrice: 0.00,
                 cartCount: 0,
-                iShidden: true
+                isHidden: true
             });
         }
     },

+ 1 - 1
view/xcx/pages/order_addcart/order_addcart.wxml

@@ -105,5 +105,5 @@
         </view>
     </view>
 </view>
-<authorize bind:onLoadFun='onLoadFun' bind:onCloseAuto='onCloseAuto' isGoIndex='{{isGoIndex}}' iShidden='{{iShidden}}'>
+<authorize bind:onLoadFun='onLoadFun' bind:onCloseAuto='onCloseAuto' isGoIndex='{{isGoIndex}}' isHidden='{{isHidden}}'>
 </authorize>

+ 3 - 3
view/xcx/pages/order_cancellation/index.js

@@ -12,18 +12,18 @@ Page({
             'color': true,
             'class': '4'
         },
-        iShidden: false
+        isHidden: false
     },
 
     audit: function () {
         this.setData({
-            iShidden: true
+            isHidden: true
         })
     },
 
     cancel: function (res) {
         this.setData({
-            iShidden: res.detail
+            isHidden: res.detail
         })
     },
     

+ 2 - 2
view/xcx/pages/order_cancellation/index.wxml

@@ -6,6 +6,6 @@
         <view class="bnt" bindtap="audit">立即核销</view>
     </view>
     <!-- <view class="scan"><image src="/images/scan.gif"></image></view> -->
-    <!-- <WriteOff :iShidden="iShidden" @cancel="cancel"></WriteOff> -->
-    <write-off iShidden="{{iShidden}}" bind:cancel="cancel"></write-off>
+    <!-- <WriteOff :isHidden="isHidden" @cancel="cancel"></WriteOff> -->
+    <write-off isHidden="{{isHidden}}" bind:cancel="cancel"></write-off>
 </view>

+ 2 - 2
view/xcx/pages/user/user.js

@@ -21,7 +21,7 @@ Page({
         userInfo: {},
         MyMenus: [],
         isGoIndex: false,
-        iShidden: true,
+        isHidden: true,
         isAuto: false,
         switchActive: false,
         loginType: app.globalData.loginType,
@@ -118,7 +118,7 @@ Page({
             })
         } else {
             this.setData({
-                iShidden: false
+                isHidden: false
             });
         }
     },

+ 1 - 1
view/xcx/pages/user/user.wxml

@@ -108,6 +108,6 @@
     <!-- <image src='/images/support.png' class='support'></image> -->
 </view>
 
-<authorize bind:onLoadFun='onLoadFun' isGoIndex='{{isGoIndex}}' iShidden="{{iShidden}}" isAuto="{{isAuto}}"></authorize>
+<authorize bind:onLoadFun='onLoadFun' isGoIndex='{{isGoIndex}}' isHidden="{{isHidden}}" isAuto="{{isAuto}}"></authorize>
 
 <generalWindow generalActive='{{generalActive}}' generalContent='{{generalContent}}' bind:generalWindow='generalWindow' wx:if='{{generalContent}}'></generalWindow>

+ 3 - 3
view/xcx/pages/user_money/index.js

@@ -30,7 +30,7 @@ Page({
         showPopup: false,
         transferAmount: 0, // int 转出数量
         transferSymbol: '', // 转的种类
-        iShidden: false,
+        isHidden: false,
         userInfo: {},
         host_product: [],
         isClose: false,
@@ -56,7 +56,7 @@ Page({
      */
     onLoad: function (options) {
         if (app.globalData.token) this.setData({
-            iShidden: true
+            isHidden: true
         });
     },
 
@@ -189,7 +189,7 @@ Page({
             this.get_host_product();
             // this.get_activity();
             this.setData({
-                iShidden: true
+                isHidden: true
             });
         }
     },

+ 1 - 1
view/xcx/pages/user_money/index.wxml

@@ -135,4 +135,4 @@
     </view>
     <recommend host_product="{{host_product}}"></recommend>
 </view>
-<authorize bind:onLoadFun='onLoadFun' iShidden="{{iShidden}}"></authorize>
+<authorize bind:onLoadFun='onLoadFun' isHidden="{{isHidden}}"></authorize>