Browse Source

删除无用代码 减小代码包体积

wangxin 5 years ago
parent
commit
d78137b13f
100 changed files with 808 additions and 874 deletions
  1. 9 4
      app.json
  2. BIN
      images/happyjob/fuli.png
  3. 0 1
      less/a/test.less
  4. 0 0
      less/a/test.wxss
  5. 0 7
      less/config.less
  6. 0 3
      less/config.wxss
  7. 0 0
      less/{workspaceRoot}/pages/config.wxss
  8. 0 2
      pages/apply-list/index.json
  9. 1 2
      pages/bind-pt/index.json
  10. 8 2
      pages/check-iphone/index.js
  11. 0 3
      pages/check-iphone/index.json
  12. 1 4
      pages/city/index.json
  13. 0 2
      pages/collection-list/index.json
  14. 0 4
      pages/detail/index.json
  15. 27 10
      pages/detail/index.wxml
  16. 1 5
      pages/expense/pages/wages/index.json
  17. 1 4
      pages/fuli/index.json
  18. 1 4
      pages/fulltime/index.json
  19. 1 4
      pages/identification/index.json
  20. 1 4
      pages/index/index.json
  21. 1 1
      pages/index/index.wxml
  22. 2 2
      pages/integral/pages/integral/integral.wxml
  23. 0 2
      pages/interview/index.json
  24. 1 4
      pages/jianli/index.json
  25. 1 4
      pages/jinali-info/index.json
  26. 1 4
      pages/jipin/index.json
  27. 0 3
      pages/mine/index.json
  28. 1 1
      pages/mine/index.wxml
  29. 1 4
      pages/parttime/index.json
  30. 0 2
      pages/pt-detail/index.json
  31. 0 2
      pages/pt-share/pt-share.json
  32. 1 3
      pages/pt/index.json
  33. 1 4
      pages/reward/index.json
  34. 0 2
      pages/search-result/search-result.json
  35. 1 7
      pages/user-form/index.json
  36. 1 5
      pages/user-info/user-info.json
  37. 1 4
      pages/user-job/index.json
  38. 1 4
      pages/user-works/index.json
  39. 141 0
      pages/wallet/pages/index/index.js
  40. 6 0
      pages/wallet/pages/index/index.json
  41. 34 0
      pages/wallet/pages/index/index.wxml
  42. 105 0
      pages/wallet/pages/index/index.wxss
  43. 63 0
      pages/wallet/pages/withdrawal-result/withdrawal-result.js
  44. 4 0
      pages/wallet/pages/withdrawal-result/withdrawal-result.json
  45. 21 0
      pages/wallet/pages/withdrawal-result/withdrawal-result.wxml
  46. 67 0
      pages/wallet/pages/withdrawal-result/withdrawal-result.wxss
  47. 122 0
      pages/wallet/pages/withdrawal/withdrawal.js
  48. 4 0
      pages/wallet/pages/withdrawal/withdrawal.json
  49. 40 0
      pages/wallet/pages/withdrawal/withdrawal.wxml
  50. 136 0
      pages/wallet/pages/withdrawal/withdrawal.wxss
  51. 0 47
      ui/action-sheet/index.js
  52. 0 8
      ui/action-sheet/index.json
  53. 0 23
      ui/action-sheet/index.wxml
  54. 0 1
      ui/action-sheet/index.wxss
  55. 0 37
      ui/alert/index.js
  56. 0 7
      ui/alert/index.json
  57. 0 15
      ui/alert/index.wxml
  58. 0 1
      ui/alert/index.wxss
  59. 0 20
      ui/avatar/index.js
  60. 0 4
      ui/avatar/index.wxml
  61. 0 1
      ui/avatar/index.wxss
  62. 0 29
      ui/badge/index.js
  63. 0 5
      ui/badge/index.wxml
  64. 0 1
      ui/badge/index.wxss
  65. 0 37
      ui/base/index.js
  66. 0 26
      ui/card/index.js
  67. 0 11
      ui/card/index.wxml
  68. 0 1
      ui/card/index.wxss
  69. 0 33
      ui/cell-group/index.js
  70. 0 3
      ui/cell-group/index.wxml
  71. 0 86
      ui/cell/index.js
  72. 0 16
      ui/cell/index.wxml
  73. 0 1
      ui/cell/index.wxss
  74. 0 38
      ui/checkbox-group/index.js
  75. 0 7
      ui/checkbox-group/index.json
  76. 0 3
      ui/checkbox-group/index.wxml
  77. 0 0
      ui/checkbox-group/index.wxss
  78. 0 56
      ui/checkbox/index.js
  79. 0 7
      ui/checkbox/index.json
  80. 0 8
      ui/checkbox/index.wxml
  81. 0 1
      ui/checkbox/index.wxss
  82. 0 20
      ui/col/index.js
  83. 0 1
      ui/col/index.wxml
  84. 0 1
      ui/col/index.wxss
  85. 0 46
      ui/collapse-item/index.js
  86. 0 7
      ui/collapse-item/index.json
  87. 0 9
      ui/collapse-item/index.wxml
  88. 0 1
      ui/collapse-item/index.wxss
  89. 0 31
      ui/collapse/index.js
  90. 0 4
      ui/collapse/index.wxml
  91. 0 0
      ui/collapse/index.wxss
  92. 0 25
      ui/divider/index.js
  93. 0 19
      ui/divider/index.wxml
  94. 0 1
      ui/divider/index.wxss
  95. 0 33
      ui/drawer/index.js
  96. 0 3
      ui/drawer/index.json
  97. 0 6
      ui/drawer/index.wxml
  98. 0 1
      ui/drawer/index.wxss
  99. 0 10
      ui/grid-icon/index.js
  100. 0 0
      ui/grid-icon/index.json

+ 9 - 4
app.json

@@ -24,7 +24,6 @@
     "pages/apply-list/index",
     "pages/about/index",
     "pages/share/index",
-    "pages/wallet/index",
     "pages/check-iphone/index",
     "pages/bind-pt/index",
     "pages/recommend/index",
@@ -58,9 +57,7 @@
     "pages/bind-phone/index",
     "pages/select-info/index",
     "pages/jinali-info/index",
-    "pages/payment-details/payment-details",
-    "pages/withdrawal/withdrawal",
-    "pages/withdrawal-result/withdrawal-result"
+    "pages/payment-details/payment-details"
   ],
   "subpackages": [
     {
@@ -84,6 +81,14 @@
         "pages/return-fee/index",
         "pages/return-fee/detail"
       ]
+    },
+    {
+      "root": "pages/wallet",
+      "pages": [
+        "pages/index/index",
+        "pages/withdrawal/withdrawal",
+        "pages/withdrawal-result/withdrawal-result"
+      ]
     }
   ],
   "window": {

BIN
images/happyjob/fuli.png


+ 0 - 1
less/a/test.less

@@ -1 +0,0 @@
-@baseUrl:"https://weapp.hap-job.com/uploadFiles";

+ 0 - 0
less/a/test.wxss


+ 0 - 7
less/config.less

@@ -1,7 +0,0 @@
-
-
-@base: #333;
-
-.config{
-    color:@base;
-}

+ 0 - 3
less/config.wxss

@@ -1,3 +0,0 @@
-.config {
-  color: #333;
-}

+ 0 - 0
less/{workspaceRoot}/pages/config.wxss


+ 0 - 2
pages/apply-list/index.json

@@ -1,7 +1,5 @@
 {
   "usingComponents": {
-    "i-icon": "../../ui/icon/index",
-    "i-divider": "../../ui/divider/index",
     "i-tag": "../../ui/tag/index"
   },
   "navigationBarTitleText": "我的申请",

+ 1 - 2
pages/bind-pt/index.json

@@ -2,7 +2,6 @@
   "navigationBarTitleText": "拼团上班",
   "usingComponents": {
     "i-button": "../../ui/button/index",
-    "i-input": "../../ui/input/index",
-    "i-count-down": "../../ui/count-down/index"
+    "i-input": "../../ui/input/index"
   }
 }

+ 8 - 2
pages/check-iphone/index.js

@@ -148,8 +148,14 @@ Page({
       member_id: app.globalData.memberId
     }
     getPayrollId(paramsObj).then(data => {
-      wx.redirectTo({
-        url: this.data.url,
+      wx.setStorage({
+        key: 'hpMember',
+        data: data.data.hpMember,
+        success: res => {
+          wx.redirectTo({
+            url: this.data.url,
+          })
+        }
       })
     }).catch(data => {
       this.setData({

+ 0 - 3
pages/check-iphone/index.json

@@ -1,8 +1,5 @@
 {
   "usingComponents": {
-    "i-button": "../../ui/button/index",
-    "i-input": "../../ui/input/index",
-    "i-count-down": "../../ui/count-down/index",
     "send-code": "/components/send-code/send-code"
   },
   "navigationBarTitleText": ""

+ 1 - 4
pages/city/index.json

@@ -1,7 +1,4 @@
 {
-  "usingComponents": {
-    "i-icon": "../../ui/icon/index",
-    "i-panel": "../../ui/panel/index"
-  },
+  "usingComponents": {},
   "navigationBarTitleText": "城市定位"
 }

+ 0 - 2
pages/collection-list/index.json

@@ -1,7 +1,5 @@
 {
   "usingComponents": {
-    "i-icon": "../../ui/icon/index",
-    "i-divider": "../../ui/divider/index",
     "i-tag": "../../ui/tag/index"
   },
   "navigationBarTitleText": "我的收藏",

+ 0 - 4
pages/detail/index.json

@@ -1,9 +1,5 @@
 {
   "usingComponents": {
-    "i-toast": "../../ui/toast/index",
-    "i-modal": "../../ui/modal/index",
-    "i-button": "../../ui/button/index",
-    "i-icon": "../../ui/icon/index",
     "i-count-down": "../../ui/count-down/index",
     "poster": "/components/wxa-plugin-canvas/poster/index"
   },

+ 27 - 10
pages/detail/index.wxml

@@ -41,7 +41,9 @@
       <view class='left'>
         <view class='reward' wx:if="{{postitionDetail.reward}}">
           <text class="reward1">入职奖励 </text>
-          <text class="reward2"><text wx:if='{{postitionDetail.maleReward}}'>男{{postitionDetail.maleReward}} </text><text wx:if='{{postitionDetail.femaleReward}}'>女{{postitionDetail.femaleReward}}</text><text wx:if='{{postitionDetail.platformAllowance}}'>,额外奖励{{postitionDetail.platformAllowance}}</text></text>
+          <text class="reward2"><text wx:if='{{postitionDetail.maleReward}}'>男{{postitionDetail.maleReward}} </text>
+          <text wx:if='{{postitionDetail.femaleReward}}'>女{{postitionDetail.femaleReward}}</text>
+          <text wx:if='{{postitionDetail.platformAllowance}}'>,额外奖励{{postitionDetail.platformAllowance}}</text></text>
         </view>
       </view>
       <view class="right">
@@ -119,11 +121,15 @@
       </view>
       <view class="basesalay" wx:if="{{postitionDetail.workEnvironment}}">
         <view class='left'>工作环境:</view>
-        <view class='right'>{{postitionDetail.workEnvironment}}</view>
+        <view class='right'>
+          <text decode='true' space='nbsp'>{{postitionDetail.workEnvironment}}</text>
+        </view>
       </view>
       <view class="basesalay" wx:if="{{postitionDetail.positionDetail}}">
         <view class='left'>工作描述:</view>
-        <view class='right'>{{postitionDetail.positionDetail}}</view>
+        <view class='right'>
+          <text decode='true' space='nbsp'>{{postitionDetail.positionDetail}}</text>
+        </view>
       </view>
       <view class="basesalay" wx:if="{{postitionDetail.otherInformation}}">
         <view class='left'>其他:</view>
@@ -372,11 +378,15 @@
       </view>
       <view class="basesalay" wx:if="{{postitionDetail.workEnvironment}}">
         <view class='left'>工作环境:</view>
-        <view class='right'>{{postitionDetail.workEnvironment}}</view>
+        <view class='right'>
+          <text decode='true' space='nbsp'>{{postitionDetail.workEnvironment}}</text>
+        </view>
       </view>
       <view class="basesalay" wx:if="{{postitionDetail.positionDetail}}">
         <view class='left'>工作描述:</view>
-        <view class='right'>{{postitionDetail.positionDetail}}</view>
+        <view class='right'>
+          <text decode='true' space='nbsp'>{{postitionDetail.positionDetail}}</text>
+        </view>
       </view>
       <view class="basesalay" wx:if="{{postitionDetail.otherInformation}}">
         <view class='left'>其他:</view>
@@ -522,9 +532,11 @@
     </view>
     <view class="two1">
       <view class='left'>
-        <view class='reward'  wx:if="{{postitionDetail.reward}}">
+        <view class='reward' wx:if="{{postitionDetail.reward}}">
           <text class="reward1">入职奖励 </text>
-          <text class="reward2"><text wx:if='{{postitionDetail.maleReward}}'>男{{postitionDetail.maleReward}} </text><text wx:if='{{postitionDetail.femaleReward}}'>女{{postitionDetail.femaleReward}}</text><text wx:if='{{postitionDetail.platformAllowance}}'>,额外奖励{{postitionDetail.platformAllowance}}</text></text>
+          <text class="reward2"><text wx:if='{{postitionDetail.maleReward}}'>男{{postitionDetail.maleReward}} </text>
+          <text wx:if='{{postitionDetail.femaleReward}}'>女{{postitionDetail.femaleReward}}</text>
+          <text wx:if='{{postitionDetail.platformAllowance}}'>,额外奖励{{postitionDetail.platformAllowance}}</text></text>
           <text class="reward3">拼团成功最高可得{{maxReward}}元</text>
         </view>
       </view>
@@ -623,11 +635,14 @@
       </view>
       <view class="basesalay" wx:if="{{postitionDetail.workEnvironment}}">
         <view class='left'>工作环境:</view>
-        <view class='right'>{{postitionDetail.workEnvironment}}</view>
+        <view class='right'>
+          <text decode='true' space='nbsp'>{{postitionDetail.workEnvironment}}</text>
+        </view>
       </view>
       <view class="basesalay" wx:if="{{postitionDetail.positionDetail}}">
         <view class='left'>工作描述:</view>
-        <view class='right'>{{postitionDetail.positionDetail}}</view>
+        <view class='right'>
+          <text decode='true' space='nbsp'></text>{{postitionDetail.positionDetail}}</view>
       </view>
       <view class="basesalay" wx:if="{{postitionDetail.otherInformation}}">
         <view class='left'>其他:</view>
@@ -763,7 +778,9 @@
       <view class='left'>
         <view class='reward' wx:if="{{postitionDetail.reward}}">
           <text class="reward1">入职奖励 </text>
-          <text class="reward2"><text wx:if='{{postitionDetail.maleReward}}'>男{{postitionDetail.maleReward}} </text><text wx:if='{{postitionDetail.femaleReward}}'>女{{postitionDetail.femaleReward}}</text><text wx:if='{{postitionDetail.platformAllowance}}'>,额外奖励{{postitionDetail.platformAllowance}}</text></text>
+          <text class="reward2"><text wx:if='{{postitionDetail.maleReward}}'>男{{postitionDetail.maleReward}} </text>
+          <text wx:if='{{postitionDetail.femaleReward}}'>女{{postitionDetail.femaleReward}}</text>
+          <text wx:if='{{postitionDetail.platformAllowance}}'>,额外奖励{{postitionDetail.platformAllowance}}</text></text>
         </view>
       </view>
       <view class="right">

+ 1 - 5
pages/expense/pages/wages/index.json

@@ -1,9 +1,5 @@
 {
-  "usingComponents": {
-    "i-button": "../../ui/button/index",
-    "i-input": "../../ui/input/index",
-    "i-icon": "../../ui/icon/index"
-  },
+  "usingComponents": {},
   "enablePullDownRefresh": true,
   "navigationBarTitleText": "薪资查询"
 }

+ 1 - 4
pages/fuli/index.json

@@ -1,9 +1,6 @@
 {
   "usingComponents": {
-    "i-icon": "../../ui/icon/index",
-    "i-notice-bar": "../../ui/notice-bar/index",
-    "i-tag": "../../ui/tag/index",
-    "marquee": "../../ui/marquee/index"
+    "i-tag": "../../ui/tag/index"
   },
   "enablePullDownRefresh": true,
   "navigationBarTitleText": "福利岗位"

+ 1 - 4
pages/fulltime/index.json

@@ -1,9 +1,6 @@
 {
   "usingComponents": {
-    "i-icon": "../../ui/icon/index",
-    "i-notice-bar": "../../ui/notice-bar/index",
-    "i-tag": "../../ui/tag/index",
-    "marquee": "../../ui/marquee/index"
+    "i-tag": "../../ui/tag/index"
   },
   "enablePullDownRefresh": true,
   "navigationBarTitleText": "全职工作"

+ 1 - 4
pages/identification/index.json

@@ -1,7 +1,4 @@
 {
   "navigationBarTitleText": "身份认证",
-  "usingComponents": {
-    "i-button": "../../ui/button/index",
-    "i-input": "../../ui/input/index"
-  }
+  "usingComponents": {}
 }

+ 1 - 4
pages/index/index.json

@@ -1,9 +1,6 @@
 {
   "usingComponents": {
-    "i-icon": "../../ui/icon/index",
-    "i-notice-bar": "../../ui/notice-bar/index",
-    "i-tag": "../../ui/tag/index",
-    "marquee": "../../ui/marquee/index"
+    "i-tag": "../../ui/tag/index"
   },
   "enablePullDownRefresh": true
 }

+ 1 - 1
pages/index/index.wxml

@@ -335,7 +335,7 @@
 </view>
 <view class="loading_no" hidden='{{isScroll}}'>{{showNoMore}}</view>
 <!-- 客服 -->
-<!-- <button id="kefu" open-type="contact" bindcontact="handleContact" hover-class='kefu-hover'></button> -->
+<button id="kefu" open-type="contact" bindcontact="handleContact" hover-class='kefu-hover'></button>
 <!-- 公众号组件 -->
 <view class='office'>
   <official-account></official-account>

+ 2 - 2
pages/integral/pages/integral/integral.wxml

@@ -26,7 +26,7 @@
     </view>
     <view class="bar"></view>
     <view class="sign-list">
-      <view class="sign-btn" wx:for='{{sign_list}}' wx:key='{{index}}'>
+      <view class="sign-btn" wx:for='{{sign_list}}' wx:key='index'>
         <view class="sign-icon">
           <image src="{{mpMemberSigninList[index]?'../../images/sign_success.png':noSign!==0&&mpMemberSigninList.length === index&&isSign&&!isSupSign?'../../images/sign_wait.png':'../../images/sign_no.png'}}" mode="widthFix" class="sign_icon_img"></image>
           <view class="sign-bar {{mpMemberSigninList[index]?'bar-action':noSign!==0&&mpMemberSigninList.length === index&&isSign&&!isSupSign?'bar-wait':''}}"></view>
@@ -59,7 +59,7 @@
       <navigator class="gift-title-right" hover-class="none" url="/pages/integral/pages/task/task">更多任务 ></navigator>
     </view>
     <view class="integral-content">
-      <view class="integral-content-cell" wx:for='{{day_task}}' wx:key='{{index}}'>
+      <view class="integral-content-cell" wx:for='{{day_task}}' wx:key='index'>
         <view class="info">
           <view class="name">
             <text>{{item.taskSetting.taskName}}</text>

+ 0 - 2
pages/interview/index.json

@@ -1,7 +1,5 @@
 {
   "usingComponents": {
-    "i-icon": "../../ui/icon/index",
-    "i-divider": "../../ui/divider/index",
     "i-tag": "../../ui/tag/index"
   },
   "navigationBarTitleText": "面试邀请",

+ 1 - 4
pages/jianli/index.json

@@ -1,7 +1,4 @@
 {
   "navigationBarTitleText": "我的简历",
-  "usingComponents": {
-    "i-steps": "../../ui/steps/index",
-    "i-step": "../../ui/step/index"
-  }
+  "usingComponents": {}
 }

+ 1 - 4
pages/jinali-info/index.json

@@ -1,7 +1,4 @@
 {
   "navigationBarTitleText": "我的简历",
-  "usingComponents": {
-    "i-steps": "../../ui/steps/index",
-    "i-step": "../../ui/step/index"
-  }
+  "usingComponents": {}
 }

+ 1 - 4
pages/jipin/index.json

@@ -1,9 +1,6 @@
 {
   "usingComponents": {
-    "i-icon": "../../ui/icon/index",
-    "i-notice-bar": "../../ui/notice-bar/index",
-    "i-tag": "../../ui/tag/index",
-    "marquee": "../../ui/marquee/index"
+    "i-tag": "../../ui/tag/index"  
   },
   "enablePullDownRefresh": true,
   "navigationBarTitleText": "高薪急聘"

+ 0 - 3
pages/mine/index.json

@@ -1,8 +1,5 @@
 {
   "usingComponents": {
-    "i-cell-group": "../../ui/cell-group/index",
-    "i-cell": "../../ui/cell/index",
-    "i-icon": "../../ui/icon/index",
     "i-modal": "../../ui/modal/index"
   },
   "navigationBarTitleText": "我的"

+ 1 - 1
pages/mine/index.wxml

@@ -100,7 +100,7 @@
 </view>
 
 
-<view class='query' data-url="/pages/wallet/index" bindtap="toDetail">
+<view class='query' data-url="/pages/wallet/pages/index/index" bindtap="toDetail">
   <view class='querys'>
     <image class='moneytb' src='{{imgServerUrl}}/images/happyjob/yjfk.png'></image>
     <text class='queryxz'>我的钱包</text>

+ 1 - 4
pages/parttime/index.json

@@ -1,9 +1,6 @@
 {
   "usingComponents": {
-    "i-icon": "../../ui/icon/index",
-    "i-notice-bar": "../../ui/notice-bar/index",
-    "i-tag": "../../ui/tag/index",
-    "marquee": "../../ui/marquee/index"
+    "i-tag": "../../ui/tag/index"
   },
   "enablePullDownRefresh": true,
   "navigationBarTitleText": "兼职工作"

+ 0 - 2
pages/pt-detail/index.json

@@ -1,8 +1,6 @@
 {
   "navigationBarTitleText": "参团详情",
   "usingComponents": {
-    "i-button": "../../ui/button/index",
-    "i-input": "../../ui/input/index",
     "i-count-down": "../../ui/count-down/index"
   }
 }

+ 0 - 2
pages/pt-share/pt-share.json

@@ -1,8 +1,6 @@
 {
   "usingComponents": {
     "poster": "/components/wxa-plugin-canvas/poster/index",
-    "i-icon": "../../ui/icon/index",
-    "i-notice-bar": "../../ui/notice-bar/index",
     "i-tag": "../../ui/tag/index"
   }
 }

+ 1 - 3
pages/pt/index.json

@@ -1,8 +1,6 @@
 {
   "usingComponents": {
-    "i-icon": "../../ui/icon/index",
-    "i-tag": "../../ui/tag/index",
-    "i-count-down": "../../ui/count-down/index"
+    "i-tag": "../../ui/tag/index"
   },
   "enablePullDownRefresh": true,
   "navigationBarTitleText": "拼工"

+ 1 - 4
pages/reward/index.json

@@ -1,9 +1,6 @@
 {
   "usingComponents": {
-    "i-icon": "../../ui/icon/index",
-    "i-notice-bar": "../../ui/notice-bar/index",
-    "i-tag": "../../ui/tag/index",
-    "marquee": "../../ui/marquee/index"
+    "i-tag": "../../ui/tag/index"
   },
   "enablePullDownRefresh": true,
   "navigationBarTitleText": "入职奖励"

+ 0 - 2
pages/search-result/search-result.json

@@ -1,7 +1,5 @@
 {
   "usingComponents": {
-    "i-icon": "../../ui/icon/index",
-    "i-divider": "../../ui/divider/index",
     "i-tag": "../../ui/tag/index"
   },
   "navigationBarTitleText": "搜索岗位"

+ 1 - 7
pages/user-form/index.json

@@ -1,10 +1,4 @@
 {
   "navigationBarTitleText": "个人信息",
-  "usingComponents": {
-    "i-button": "../../ui/button/index",
-    "i-input": "../../ui/input/index",
-    "i-icon": "../../ui/icon/index",
-    "i-radio-group": "../../ui/radio-group/index",
-    "i-radio": "../../ui/radio/index"
-  }
+  "usingComponents": {}
 }

+ 1 - 5
pages/user-info/user-info.json

@@ -1,8 +1,4 @@
 {
   "navigationBarTitleText": "基本信息编辑",
-  "usingComponents": {
-    "i-button": "../../ui/button/index",
-    "i-input": "../../ui/input/index",
-    "i-icon": "../../ui/icon/index"
-  }
+  "usingComponents": {}
 }

+ 1 - 4
pages/user-job/index.json

@@ -1,7 +1,4 @@
 {
   "navigationBarTitleText": "添加求职意向",
-  "usingComponents": {
-    "i-button": "../../ui/button/index",
-    "i-input": "../../ui/input/index"
-  }
+  "usingComponents": {}
 }

+ 1 - 4
pages/user-works/index.json

@@ -1,7 +1,4 @@
 {
   "navigationBarTitleText": "添加工作经历",
-  "usingComponents": {
-    "i-button": "../../ui/button/index",
-    "i-input": "../../ui/input/index"
-  }
+  "usingComponents": {}
 }

+ 141 - 0
pages/wallet/pages/index/index.js

@@ -0,0 +1,141 @@
+import {
+  imgServerUrl
+} from '../../../../config/config';
+import {
+  getMoneyAccountDetail,
+  getHpMemberDetail
+} from '../../../../services/index'
+Page({
+  data: {
+    moneyBalance: '0.00',
+    imgServerUrl: imgServerUrl,
+    confirm: '',
+    model_message: '',
+    cover: true,
+    cancel: false,
+  },
+  tixian() {
+    wx.showModal({
+      title: '提示',
+      content: '如果您有提现需求,请联系客服400-692-0099',
+      confirmText: '知道了',
+      showCancel: false,
+      success: res => {
+        if (res.confirm) {
+          wx.makePhoneCall({
+            phoneNumber: '4006920099',
+          })
+          // wx.showModal({
+          //   title: '提示',
+          //   content: '是否立即拨打电话',
+          //   success: res => {
+          //     if (res.confirm) {
+
+          //     }
+          //   }
+          // })
+        }
+      }
+    })
+    return
+    const cover = !this.data.cover;
+    getHpMemberDetail({
+      user_id: wx.getStorageSync('user_id'),
+      user_token: wx.getStorageSync('user_token'),
+      member_id: wx.getStorageSync('member_id'),
+    }).then(res => {
+      if (res.errcode === 0) {
+        let _json = {
+          0: {
+            confirm: '好的',
+            cancel: true,
+            model_message: '为了保证资金安全,请先进行实名认证。'
+          },
+          1: {
+            confirm: '好的',
+            cancel: true,
+            model_message: '实名认证正在审核中,请耐心等待。'
+          },
+          3: {
+            confirm: '去下载',
+            cancel: false,
+            model_message: '为了保证资金安全,您需要在app上进行提现。'
+          },
+        }
+
+        this.setData({
+          cover,
+          ..._json[res.data.hpMember.authenticationStatus]
+        })
+      }
+    })
+  },
+  confirm() {
+    this.setData({
+      cover: true
+    })
+  },
+  cancel() {
+    this.setData({
+      cover: true
+    })
+  },
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad: function(options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady: function() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow: function() {
+    getMoneyAccountDetail({
+      user_id: wx.getStorageSync('user_id'),
+      user_token: wx.getStorageSync('user_token'),
+      member_id: wx.getStorageSync('member_id'),
+    }).then(res => {
+      if (res.errcode === 0) {
+        this.setData({
+          moneyBalance: res.data.MpMemberAccountAPI.moneyBalance.toFixed(2)
+        })
+      }
+    })
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide: function() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload: function() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh: function() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom: function() {
+
+  },
+})

+ 6 - 0
pages/wallet/pages/index/index.json

@@ -0,0 +1,6 @@
+{
+  "navigationBarTitleText": "我的钱包",
+  "usingComponents": {
+    "i-icon": "../../ui/icon/index"
+  }
+}

+ 34 - 0
pages/wallet/pages/index/index.wxml

@@ -0,0 +1,34 @@
+<view class='part'>
+  <view class='text'>账户余额</view>
+  <view class="money">¥{{moneyBalance}}</view>
+
+  <view class='tixian' bindtap="tixian">提现</view>
+  <view class='money-detail'>钱包明细
+    <i-icon type="enter" />
+  </view>
+  <navigator url="/pages/payment-details/payment-details?type=wallet" hover-class="none" class="shouzhi">收支明细</navigator>
+</view>
+
+<!-- <view class='list'>
+  <i-cell-group>
+    <i-cell i-class="item" title="入职返现" is-link>
+      <image class='icon' src='{{imgServerUrl}}/images/wallet/fanxian.png' slot="icon" mode='widthFix'></image>
+    </i-cell>
+    <i-cell i-class="item" title="推荐有奖" is-link url="../recommend/index">
+      <image class='icon' src='{{imgServerUrl}}/images/wallet/red-package.png' slot="icon" mode='widthFix'></image>
+    </i-cell>
+  </i-cell-group>
+</view> -->
+
+<view class="cover " hidden="{{cover}}">
+  <view class="model">
+    <view class="message">
+      <text>{{model_message}}</text>
+    </view>
+    <view class="model-button">
+      <view class="cancel" bindtap="cancel" hidden="{{cancel}}">取消</view>
+      <view class="confirm" bindtap="confirm">{{confirm}}</view>
+    </view>
+  </view>
+
+</view>

+ 105 - 0
pages/wallet/pages/index/index.wxss

@@ -0,0 +1,105 @@
+page {
+  height: 100%;
+  background: linear-gradient(90deg, rgba(78, 171, 225, 1) 0%, rgba(49, 121, 225, 1) 100%);
+}
+
+.part {
+  display: flex;
+  flex-direction: column;
+  justify-content: center;
+  align-items: center;
+  height: 50%;
+  font-size: 28rpx;
+}
+
+.money {
+  font-size: 80rpx;
+  color: #fff;
+  margin: 30rpx 0;
+}
+
+.text {
+  font-size: 12px;
+  color: #b0d1ff;
+}
+
+.tixian {
+  width: 440rpx;
+  height: 100rpx;
+  line-height: 100rpx;
+  text-align: center;
+  color: #3f91e1;
+  background: #fff;
+  border-radius: 50rpx;
+  margin-top: 60rpx;
+}
+
+.money-detail {
+  color: #169bd5;
+}
+
+.icon {
+  width: 40rpx;
+}
+
+.shouzhi {
+  font-size: 28rpx;
+  color: #fff;
+}
+
+.cover {
+  height: 100%;
+  width: 100%;
+  position: fixed;
+  left: 0;
+  top: 0;
+  background: rgba(0, 0, 0, 0.4);
+  display: flex;
+  align-items: center;
+  justify-content: center;
+}
+
+.model {
+  width: 600rpx;
+  height: 320rpx;
+  background: #f8f8f8;
+  border-radius: 30rpx;
+  display: flex;
+  flex-direction: column;
+  justify-content: space-between;
+}
+
+.message {
+  flex: 1;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  padding: 0 100rpx;
+  box-sizing: border-box;
+  text-align: center;
+}
+
+.model-button {
+  border-top: 2rpx solid #eee;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+}
+
+.cancel, .confirm {
+  width: 50%;
+  color: #327ae1;
+  line-height: 1;
+  text-align: center;
+  box-sizing: border-box;
+  padding: 30rpx 0;
+}
+
+.confirm {
+  flex: 1;
+  font-weight: bold;
+}
+
+.cancel {
+  border-right: 2rpx solid #eee;
+}

+ 63 - 0
pages/wallet/pages/withdrawal-result/withdrawal-result.js

@@ -0,0 +1,63 @@
+// pages/withdrawal-result/withdrawal-result.js
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+
+  },
+  back() {
+    wx.navigateBack({
+      delta: 2,
+    })
+  },
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad: function(options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady: function() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow: function() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide: function() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload: function() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh: function() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom: function() {
+
+  },
+})

+ 4 - 0
pages/wallet/pages/withdrawal-result/withdrawal-result.json

@@ -0,0 +1,4 @@
+{
+  "navigationBarTitleText": "提现",
+  "usingComponents": {}
+}

+ 21 - 0
pages/wallet/pages/withdrawal-result/withdrawal-result.wxml

@@ -0,0 +1,21 @@
+<!--pages/withdrawal-result/withdrawal-result.wxml-->
+<view class="container">
+  <view class="content">
+    <view class="left">
+      <image src="/images/happyjob/withdrawal-time.png"></image>
+    </view>
+    <view class="right">
+      <view class="top">
+        <view class="wait">提现申请已经提交,等待处理</view>
+        <view>提现至支付宝</view>
+        <view>金额:1.00元</view>
+      </view>
+      <view class="bottom">
+        <text>预计两小时内到账</text>
+      </view>
+    </view>
+  </view>
+  <view class="button" bindtap="back">
+    返回钱包
+  </view>
+</view>

+ 67 - 0
pages/wallet/pages/withdrawal-result/withdrawal-result.wxss

@@ -0,0 +1,67 @@
+/* pages/withdrawal-result/withdrawal-result.wxss */
+
+page {
+  background: #f5f5f5;
+}
+
+.content {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  background: #fff;
+  padding: 30rpx 0;
+}
+
+.content image {
+  width: 44rpx;
+  height: 287rpx;
+}
+
+.right {
+  height: 287rpx;
+  display: flex;
+  flex-direction: column;
+  justify-content: space-between;
+  margin-left: 45rpx;
+}
+
+.top {
+  color: #999;
+  font-size: 24rpx;
+  flex: 1;
+  display: flex;
+  flex-direction: column;
+}
+
+.top view {
+  margin-bottom: 15rpx;
+}
+
+.bottom {
+  flex: 1;
+  display: flex;
+  align-items: flex-end;
+}
+
+.wait {
+  color: #327ae1;
+  font-size: 32rpx;
+}
+
+.bottom {
+  color: #333;
+  font-size: 32rpx;
+  margin-bottom: 10rpx;
+}
+
+.button {
+  width: 690rpx;
+  height: 88rpx;
+  color: #fff;
+  font-size: 34rpx;
+  text-align: center;
+  line-height: 88rpx;
+  background: linear-gradient(90deg, rgba(78, 171, 225, 1) 0%, rgba(49, 121, 225, 1) 100%);
+  border-radius: 10rpx;
+  margin: 80rpx auto;
+}

+ 122 - 0
pages/wallet/pages/withdrawal/withdrawal.js

@@ -0,0 +1,122 @@
+// pages/withdrawal/withdrawal.js
+import {
+  getMoneyAccountDetail,
+} from '../../../../services/index'
+let setInter = false;
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    money: '',
+    active_index: '1'
+  },
+  // 清除输入框内容
+  clear() {
+    this.setData({
+      money: ''
+    })
+  },
+  // 输入可提现最大值
+  all() {
+    this.setData({
+      money: this.data.can_draw.toFixed(2)
+    })
+  },
+  // 展示按钮背景
+  show(e) {
+    clearTimeout(setInter);
+    setInter = setTimeout(_ => {
+      this.setData({
+        money: e.detail.value
+      })
+    }, 300)
+  },
+  // 改变金额格式
+  changeMoney(e) {
+    const _num = Number(e.detail.value);
+    this.setData({
+      money: (_num - _num % 10).toFixed(2)
+    })
+  },
+  // 更改提现方式
+  choose(e) {
+    const index = e.currentTarget.dataset.index;
+    this.setData({
+      active_index: index
+    })
+  },
+  // 提现
+  withdrawal() {
+    const money = Number(this.data.money);
+    console.log(money)
+    if (money) {
+      wx.navigateTo({
+        url: '/pages/withdrawal-result/withdrawal-result',
+      })
+    }
+
+  },
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad: function(options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady: function() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow: function() {
+    getMoneyAccountDetail({
+      user_id: wx.getStorageSync('user_id'),
+      user_token: wx.getStorageSync('user_token'),
+      member_id: wx.getStorageSync('member_id'),
+    }).then(res => {
+      if (res.errcode === 0) {
+        const moneyBalance = res.data.MpMemberAccountAPI.moneyBalance;
+        const can_draw = moneyBalance - moneyBalance % 10;
+        this.setData({
+          moneyBalance: moneyBalance.toFixed(2),
+          can_draw,
+        })
+      }
+    })
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide: function() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload: function() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh: function() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom: function() {
+
+  },
+})

+ 4 - 0
pages/wallet/pages/withdrawal/withdrawal.json

@@ -0,0 +1,4 @@
+{
+  "navigationBarTitleText": "提现",
+  "usingComponents": {}
+}

+ 40 - 0
pages/wallet/pages/withdrawal/withdrawal.wxml

@@ -0,0 +1,40 @@
+<!--pages/withdrawal/withdrawal.wxml-->
+<view class="container">
+  <view class="message">
+    钱包余额{{moneyBalance}}元,可提现{{can_draw}}元
+  </view>
+  <view class="money">
+    <view class="money-content">
+      <view class="money-content-title">提款金额</view>
+      <view class="money-content-input">
+        <view class="input">
+          <text>¥</text>
+          <input value="{{money}}" placeholder="0.00" placeholder-style="color:#999999" bindblur="changeMoney" bindinput="show"></input>
+        </view>
+        <view class="all">
+          <text bindtap="all">全部提现</text>
+          <image src="/images/happyjob/clear.png" class="all-icon" bindtap="clear"></image>
+        </view>
+      </view>
+    </view>
+    <view class="hint">
+      提现金额只能输入10的整倍数
+    </view>
+  </view>
+  <view class="pay-method">
+    <view class="method {{active_index === '1'&&'border'}}" data-index="1" bindtap="choose">
+      <image class="wechat" src="/images/happyjob/wechatpay.png"></image>
+      <text class="pay-text">微信钱包</text>
+      <image class="choose-pay" src="/images/happyjob/choose-pay.png" hidden="{{active_index !== '1'}}"></image>
+    </view>
+    <view class="method  {{active_index === '2'&&'border'}}" data-index="2" bindtap="choose">
+      <image class="alipay" src="/images/happyjob/alipay.png"></image>
+      <text class="pay-text">支付宝余额</text>
+      <image class="choose-pay" src="/images/happyjob/choose-pay.png" hidden="{{active_index !== '2'}}"></image>
+    </view>
+  </view>
+
+  <view class="button {{money&&'background'}}" bindtap="withdrawal">
+    预计两小时内到账,确认提现
+  </view>
+</view>

+ 136 - 0
pages/wallet/pages/withdrawal/withdrawal.wxss

@@ -0,0 +1,136 @@
+/* pages/withdrawal/withdrawal.wxss */
+
+page {
+  background: #f5f5f5;
+}
+
+.message {
+  height: 74rpx;
+  color: #327ae1;
+  font-size: 28rpx;
+  line-height: 74rpx;
+  padding: 0 30rpx;
+  box-sizing: border-box;
+  background: #e8f2ff;
+}
+
+.money {
+  padding: 30rpx 30rpx 0 30rpx;
+  box-sizing: border-box;
+  background: #fff;
+}
+
+.money-content {
+  height: 220rpx;
+}
+
+.money-content-title {
+  color: #333;
+  font-size: 28rpx;
+}
+
+.money-content-input {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+}
+
+.input {
+  flex: 1;
+  color: #333;
+  font-size: 68rpx;
+  display: flex;
+  align-items: center;
+  padding: 15rpx 0;
+}
+
+.input input {
+  height: 100%;
+}
+
+.all {
+  font-size: 28rpx;
+  color: #327ae1;
+  display: flex;
+  align-items: center;
+  justify-content: flex-end;
+}
+
+.all-icon {
+  height: 25rpx;
+  width: 25rpx;
+  margin-left: 15rpx;
+}
+
+.hint {
+  height: 100rpx;
+  color: #999;
+  font-size: 28rpx;
+  line-height: 100rpx;
+  border-top: 2rpx solid #eee;
+}
+
+.pay-method {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  padding: 45rpx;
+  box-sizing: border-box;
+}
+
+.method {
+  width: 314rpx;
+  height: 98rpx;
+  background: #fff;
+  border: 2rpx solid #eee;
+  padding: 0 30rpx;
+  box-sizing: border-box;
+  display: flex;
+  align-items: center;
+  justify-content: flex-start;
+  position: relative;
+}
+
+.wechat {
+  width: 56rpx;
+  height: 45rpx;
+}
+
+.alipay {
+  height: 56rpx;
+  width: 56rpx;
+}
+
+.pay-text {
+  color: #333;
+  font-size: 28rpx;
+  margin-left: 30rpx;
+}
+
+.choose-pay {
+  height: 24rpx;
+  width: 24rpx;
+  position: absolute;
+  right: 0;
+  bottom: 0;
+}
+
+.button {
+  width: 690rpx;
+  height: 88rpx;
+  color: #fff;
+  font-size: 34rpx;
+  text-align: center;
+  line-height: 88rpx;
+  background: #d8d8d8;
+  border-radius: 10rpx;
+  margin: 30rpx auto;
+}
+
+.background {
+  background: linear-gradient(90deg, rgba(78, 171, 225, 1) 0%, rgba(49, 121, 225, 1) 100%);
+}
+
+.border {
+  border: 2rpx solid #07aaff;
+}

+ 0 - 47
ui/action-sheet/index.js

@@ -1,47 +0,0 @@
-Component({
-    externalClasses: ['i-class', 'i-class-mask', 'i-class-header'],
-
-    options: {
-        multipleSlots: true
-    },
-
-    properties: {
-        visible: {
-            type: Boolean,
-            value: false
-        },
-        maskClosable: {
-            type: Boolean,
-            value: true
-        },
-        showCancel: {
-            type: Boolean,
-            value: false
-        },
-        cancelText: {
-            type: String,
-            value: '取消'
-        },
-        actions: {
-            type: Array,
-            value: []
-        }
-    },
-
-    methods: {
-        handleClickMask () {
-            if (!this.data.maskClosable) return;
-            this.handleClickCancel();
-        },
-
-        handleClickItem ({ currentTarget = {} }) {
-            const dataset = currentTarget.dataset || {};
-            const { index } = dataset;
-            this.triggerEvent('click', { index });
-        },
-
-        handleClickCancel () {
-            this.triggerEvent('cancel');
-        }
-    }
-});

+ 0 - 8
ui/action-sheet/index.json

@@ -1,8 +0,0 @@
-{
-  "component": true,
-  "usingComponents":
-  {
-    "i-button": "../button/index",
-    "i-icon": "../icon/index"
-  }
-}

+ 0 - 23
ui/action-sheet/index.wxml

@@ -1,23 +0,0 @@
-<view class="i-as-mask i-class-mask {{ visible ? 'i-as-mask-show' : '' }}" bindtap="handleClickMask"></view>
-<view class="i-class i-as {{ visible ? 'i-as-show' : '' }}">
-    <view class="i-as-header i-class-header"><slot name="header"></slot></view>
-    <view class="i-as-actions">
-        <view class="i-as-action-item" wx:for="{{ actions }}" wx:key="{{ item.name }}">
-            <i-button
-                bind:click="handleClickItem"
-                data-index="{{ index }}"
-                open-type="{{ item.openType }}"
-                type="ghost"
-                size="large"
-                long
-            >
-                <view class="i-as-btn-loading" wx:if="{{ item.loading }}"></view>
-                <i-icon wx:if="{{ item.icon }}" type="{{ item.icon }}" i-class="i-as-btn-icon"></i-icon>
-                <view class="i-as-btn-text" style="{{ item.color ? 'color: ' + item.color : '' }}">{{ item.name }}</view>
-            </i-button>
-        </view>
-    </view>
-    <view class="i-as-cancel" wx:if="{{ showCancel }}">
-        <i-button i-class="i-as-cancel-btn" type="ghost" size="large" long="true" bind:click="handleClickCancel">{{ cancelText }}</i-button>
-    </view>
-</view>

File diff suppressed because it is too large
+ 0 - 1
ui/action-sheet/index.wxss


+ 0 - 37
ui/alert/index.js

@@ -1,37 +0,0 @@
-Component({
-    externalClasses: ['i-class'],
-    options: {
-        multipleSlots: true
-    },
-    properties: {
-        //info, success, warning, error
-        type: {
-            type: String,
-            value: 'info'
-        },
-        closable: {
-            type: Boolean,
-            value: false
-        },
-        showIcon: {
-            type: Boolean,
-            default: false
-        },
-        desc: {
-            type: Boolean,
-            default: false
-        },
-    },
-    data: {
-        closed: false
-    },
-    methods: {
-        handleTap() {
-            this.setData({
-                closed: !this.data.closed,
-            });
-            this.triggerEvent('close');
-        },
-
-    }
-});

+ 0 - 7
ui/alert/index.json

@@ -1,7 +0,0 @@
-{
-    "component": true,
-    "usingComponents":
-    {
-        "i-icon": "../icon/index"
-    }
-}

+ 0 - 15
ui/alert/index.wxml

@@ -1,15 +0,0 @@
-<view class="i-class i-alert {{'i-alert-'+type}} {{showIcon?'i-alert-with-icon':''}} {{desc?'i-alert-with-desc':''}}" wx:if="{{!closed}}">
-    <view wx:if="{{ showIcon }}" class="i-alert-icon">
-        <i-icon type="prompt" wx:if="{{ type === 'info' }}" size="{{desc?24:16}}"></i-icon>
-        <i-icon type="success" wx:if="{{ type === 'success' }}" size="{{desc?24:16}}"></i-icon>
-        <i-icon type="warning" wx:if="{{ type === 'warning' }}" size="{{desc?24:16}}"></i-icon>
-        <i-icon type="delete" wx:if="{{ type === 'error' }}" size="{{desc?24:16}}"></i-icon>
-    </view>
-    <slot></slot>
-    <view class="i-alert-desc">
-        <slot name="desc"></slot>
-    </view>
-    <view class="i-alert-close" wx:if="{{ closable }}" bindtap="handleTap">
-        <i-icon type="close"></i-icon>
-    </view>
-</view>

File diff suppressed because it is too large
+ 0 - 1
ui/alert/index.wxss


+ 0 - 20
ui/avatar/index.js

@@ -1,20 +0,0 @@
-Component({
-    externalClasses: ['i-class'],
-
-    properties: {
-        // circle || square
-        shape: {
-            type: String,
-            value: 'circle'
-        },
-        // small || large || default
-        size: {
-            type: String,
-            value: 'default'
-        },
-        src: {
-            type: String,
-            value: ''
-        }
-    }
-});

+ 0 - 4
ui/avatar/index.wxml

@@ -1,4 +0,0 @@
-<view class="i-class i-avatar i-avatar-{{ shape }} i-avatar-{{ size }} {{ src ? 'i-avatar-image' : '' }}">
-    <image src="{{ src }}" wx:if="{{ src !== '' }}"></image>
-    <view class="i-avatar-string" wx:else><slot></slot></view>
-</view>

File diff suppressed because it is too large
+ 0 - 1
ui/avatar/index.wxss


+ 0 - 29
ui/badge/index.js

@@ -1,29 +0,0 @@
-Component({
-    externalClasses: ['i-class', 'i-class-alone'],
-
-    properties: {
-        count: {
-            type: Number,
-            value: 0,
-            observer: 'finalCount'
-        },
-        overflowCount: {
-            type: Number,
-            value: 99
-        },
-        dot: {
-            type: Boolean,
-            value: false
-        },
-    },
-    data: {
-        finalCount: 0
-    },
-    methods: {
-        finalCount() {
-            this.setData({
-                finalCount: parseInt(this.data.count) >= parseInt(this.data.overflowCount) ? `${this.data.overflowCount}+` : this.data.count
-            });
-        },
-    }
-});

+ 0 - 5
ui/badge/index.wxml

@@ -1,5 +0,0 @@
-<view class="i-class i-badge">
-    <slot></slot>
-    <view class="i-badge-dot" wx:if="{{ dot }}"></view>
-    <view class="i-badge-count i-class-alone" wx:elif="{{ count !== 0 }}">{{ finalCount }}</view>
-</view>

File diff suppressed because it is too large
+ 0 - 1
ui/badge/index.wxss


+ 0 - 37
ui/base/index.js

@@ -1,37 +0,0 @@
-function getCtx (selector) {
-    const pages = getCurrentPages();
-    const ctx = pages[pages.length - 1];
-
-    const componentCtx = ctx.selectComponent(selector);
-
-    if (!componentCtx) {
-        console.error('无法找到对应的组件,请按文档说明使用组件');
-        return null;
-    }
-    return componentCtx;
-}
-
-function Toast(options) {
-    const { selector = '#toast' } = options;
-    const ctx = getCtx(selector);
-
-    ctx.handleShow(options);
-}
-
-Toast.hide = function (selector = '#toast') {
-    const ctx = getCtx(selector);
-
-    ctx.handleHide();
-};
-
-function Message(options) {
-    const { selector = '#message' } = options;
-    const ctx = getCtx(selector);
-
-    ctx.handleShow(options);
-}
-
-module.exports = {
-    $Toast: Toast,
-    $Message: Message
-};

+ 0 - 26
ui/card/index.js

@@ -1,26 +0,0 @@
-Component({
-    externalClasses: ['i-class'],
-
-    options: {
-        multipleSlots: true
-    },
-
-    properties: {
-        full: {
-            type: Boolean,
-            value: false
-        },
-        thumb: {
-            type: String,
-            value: ''
-        },
-        title: {
-            type: String,
-            value: ''
-        },
-        extra: {
-            type: String,
-            value: ''
-        }
-    }
-});

+ 0 - 11
ui/card/index.wxml

@@ -1,11 +0,0 @@
-<view class="i-class i-card {{ full ? 'i-card-full' : '' }}">
-    <view class="i-class i-card-header">
-        <view class="i-card-header-content">
-            <image class="i-card-header-thumb" src="{{ thumb }}" mode="aspectFit" wx:if="{{ thumb }}" />
-            {{ title }}
-        </view>
-        <view class="i-card-header-extra" wx:if="{{ extra }}">{{ extra }}</view>
-    </view>
-    <view class="i-class i-card-body"><slot name="content"></slot></view>
-    <view class="i-class i-card-footer"><slot name="footer"></slot></view>
-</view>

File diff suppressed because it is too large
+ 0 - 1
ui/card/index.wxss


+ 0 - 33
ui/cell-group/index.js

@@ -1,33 +0,0 @@
-Component({
-    externalClasses: ['i-class'],
-
-    relations: {
-        '../cell/index': {
-            type: 'child',
-            linked () {
-                this._updateIsLastCell();
-            },
-            linkChanged () {
-                this._updateIsLastCell();
-            },
-            unlinked () {
-                this._updateIsLastCell();
-            }
-        }
-    },
-
-    methods: {
-        _updateIsLastCell() {
-            let cells = this.getRelationNodes('../cell/index');
-            const len = cells.length;
-
-            if (len > 0) {
-                let lastIndex = len - 1;
-
-                cells.forEach((cell, index) => {
-                    cell.updateIsLastCell(index === lastIndex);
-                });
-            }
-        }
-    }
-});

+ 0 - 3
ui/cell-group/index.wxml

@@ -1,3 +0,0 @@
-<view class="i-class i-cell-group">
-    <slot></slot>
-</view>

+ 0 - 86
ui/cell/index.js

@@ -1,86 +0,0 @@
-const warn = (msg, getValue) => {
-    console.warn(msg);
-    console.log('接受到的值为:', getValue);
-};
-
-Component({
-    externalClasses: ['i-class'],
-
-    options: {
-        multipleSlots: true
-    },
-
-    relations: {
-        '../cell-group/index': {
-            type: 'parent'
-        }
-    },
-
-    properties: {
-        // 左侧标题
-        title: {
-            type: String
-        },
-        // 标题下方的描述信息
-        label: {
-            type: String
-        },
-        // 右侧内容
-        value: {
-            type: String
-        },
-        // 只有点击 footer 区域才触发 tab 事件
-        onlyTapFooter: {
-            type: Boolean
-        },
-        // 是否展示右侧箭头并开启尝试以 url 跳转
-        isLink: {
-            type: null,
-            value: ''
-        },
-        // 链接类型,可选值为 navigateTo,redirectTo,switchTab,reLaunch
-        linkType: {
-            type: String,
-            value: 'navigateTo'
-        },
-        url: {
-            type: String,
-            value: ''
-        }
-    },
-
-    data: {
-        isLastCell: true
-    },
-
-    methods: {
-        navigateTo () {
-            const { url } = this.data;
-            const type = typeof this.data.isLink;
-
-            this.triggerEvent('click', {});
-
-            if (!this.data.isLink || !url || url === 'true' || url === 'false') return;
-
-            if (type !== 'boolean' && type !== 'string') {
-                warn('isLink 属性值必须是一个字符串或布尔值', this.data.isLink);
-                return;
-            }
-
-            if (['navigateTo', 'redirectTo', 'switchTab', 'reLaunch'].indexOf(this.data.linkType) === -1) {
-                warn('linkType 属性可选值为 navigateTo,redirectTo,switchTab,reLaunch', this.data.linkType);
-                return;
-            }
-            wx[this.data.linkType].call(wx, {url});
-        },
-        handleTap () {
-            if (!this.data.onlyTapFooter) {
-                this.navigateTo();
-            }
-        },
-
-        updateIsLastCell (isLastCell) {
-            this.setData({ isLastCell });
-        }
-    }
-});

+ 0 - 16
ui/cell/index.wxml

@@ -1,16 +0,0 @@
-<view bindtap="handleTap" class="i-class i-cell {{ isLastCell ? 'i-cell-last' : '' }} {{ isLink ? 'i-cell-access' : '' }}">
-    <view class="i-cell-icon">
-        <slot name="icon"></slot>
-    </view>
-    <view class="i-cell-bd">
-        <view wx:if="{{ title }}" class="i-cell-text">{{ title }}</view>
-        <view wx:if="{{ label }}" class="i-cell-desc">{{ label }}</view>
-        <slot></slot>
-    </view>
-    <view catchtap="navigateTo" class="i-cell-ft">
-        <block wx:if="{{value}}">{{ value }}</block>
-        <block wx:else>
-            <slot name="footer"></slot>
-        </block>
-    </view>
-</view>

File diff suppressed because it is too large
+ 0 - 1
ui/cell/index.wxss


+ 0 - 38
ui/checkbox-group/index.js

@@ -1,38 +0,0 @@
-Component({
-    externalClasses: ['i-class'],
-    relations: {
-        '../checkbox/index': {
-            type: 'child',
-            linked() {
-                this.changeCurrent();
-            },
-            linkChanged() {
-                this.changeCurrent();
-            },
-            unlinked() {
-                this.changeCurrent();
-            }
-        }
-    },
-    properties: {
-        current: {
-            type: Array,
-            value: [],
-            observer: 'changeCurrent'
-        },
-    },
-    methods: {
-        changeCurrent(val = this.data.current) {
-            let items = this.getRelationNodes('../checkbox/index');
-            const len = items.length;
-            if (len > 0) {
-                items.forEach(item => {
-                    item.changeCurrent(val.indexOf(item.data.value) !== -1);
-                });
-            }
-        },
-        emitEvent(current) {
-            this.triggerEvent('change', current);
-        }
-    }
-});

+ 0 - 7
ui/checkbox-group/index.json

@@ -1,7 +0,0 @@
-{
-    "component": true,
-    "usingComponents":
-    {
-        "i-cell-group": "../cell-group/index"
-    }
-}

+ 0 - 3
ui/checkbox-group/index.wxml

@@ -1,3 +0,0 @@
-<i-cell-group class="i-class">
-    <slot></slot>
-</i-cell-group>

+ 0 - 0
ui/checkbox-group/index.wxss


+ 0 - 56
ui/checkbox/index.js

@@ -1,56 +0,0 @@
-const prefixCls = 'i-checkbox';
-
-Component({
-    externalClasses: ['i-class'],
-    relations: {
-        '../checkbox-group/index': {
-            type: 'parent'
-        }
-    },
-    properties: {
-        value: {
-            type: String,
-            value: ''
-        },
-        checked: {
-            type: Boolean,
-            value: false
-        },
-        disabled: {
-            type: Boolean,
-            value: false
-        },
-        color: {
-            type: String,
-            value: '#2d8cf0'
-        },
-        position: {
-            type: String,
-            value: 'left', //left right
-            observer: 'setPosition'
-        }
-    },
-    data: {
-        checked: true,
-        positionCls: `${prefixCls}-checkbox-left`,
-    },
-    attached() {
-        this.setPosition();
-    },
-    methods: {
-        changeCurrent(current) {
-            this.setData({ checked: current });
-        },
-        checkboxChange() {
-            if (this.data.disabled) return;
-            const item = { current: !this.data.checked, value: this.data.value };
-            const parent = this.getRelationNodes('../checkbox-group/index')[0];
-            parent ? parent.emitEvent(item) : this.triggerEvent('change', item);
-        },
-        setPosition() {
-            this.setData({
-                positionCls: this.data.position.indexOf('left') !== -1 ? `${prefixCls}-checkbox-left` : `${prefixCls}-checkbox-right`,
-            });
-        }
-    }
-});

+ 0 - 7
ui/checkbox/index.json

@@ -1,7 +0,0 @@
-{
-    "component": true,
-    "usingComponents":
-    {
-        "i-cell": "../cell/index"
-    }
-}

+ 0 - 8
ui/checkbox/index.wxml

@@ -1,8 +0,0 @@
-<view class="i-class i-checkbox" catchtap="checkboxChange">
-    <i-cell i-class="i-checkbox-cell">
-        <label>
-            <radio value="{{value}}" checked="{{checked}}" color="{{checked?color:''}}" disabled="{{disabled}}" class="i-checkbox-radio {{positionCls}}" />
-            <view class="i-checkbox-title">{{value}}</view>
-        </label>
-    </i-cell>
-</view>

+ 0 - 1
ui/checkbox/index.wxss

@@ -1 +0,0 @@
-.i-checkbox-cell::after{display:block}.i-checkbox-checkbox-left{float:left}.i-checkbox-checkbox-right{float:right}.i-checkbox-radio{vertical-align:middle}.i-checkbox-title{display:inline-block;vertical-align:middle}

+ 0 - 20
ui/col/index.js

@@ -1,20 +0,0 @@
-Component({
-    externalClasses: ['i-class'],
-
-    relations: {
-        '../row/index': {
-            type: 'parent'
-        }
-    },
-
-    properties: {
-        span: {
-            value: 0,
-            type: Number
-        },
-        offset: {
-            value: 0,
-            type: Number
-        }
-    }
-});

+ 0 - 1
ui/col/index.wxml

@@ -1 +0,0 @@
-<view class="i-class i-col {{ span ? 'i-col-span-' + span : '' }} {{ offset ? 'i-col-offset-' + offset : '' }}"><slot></slot></view>

File diff suppressed because it is too large
+ 0 - 1
ui/col/index.wxss


+ 0 - 46
ui/collapse-item/index.js

@@ -1,46 +0,0 @@
-Component({
-    externalClasses: ['i-class-content', 'i-class-title', 'i-class'],
-
-    relations: {
-        '../collapse/index': {
-            type: 'parent',
-            linked: function (target) {
-                const options = {
-                    accordion: target.data.accordion
-                }
-                if (target.data.name === this.data.name) {
-                    options.showContent = 'i-collapse-item-show-content';
-                }
-                this.setData(options);
-            }
-        }
-    },
-
-    properties: {
-        title: String,
-        name: String
-    },
-
-    data: {
-        showContent: '',
-        accordion: false
-    },
-
-    options: {
-        multipleSlots: true
-    },
-
-    methods: {
-        trigger(e) {
-            const data = this.data;
-            if (data.accordion) {
-                this.triggerEvent('collapse', {name: data.name}, {composed: true, bubbles: true});
-            } else {
-                this.setData({
-                    showContent: data.showContent ? '' : 'i-collapse-item-show-content'
-                });
-            }
-        },
-    }
-});
-

+ 0 - 7
ui/collapse-item/index.json

@@ -1,7 +0,0 @@
-
-{
-  "component": true,
-  "usingComponents": {
-    "i-icon": "../icon/index"
-  }
-}

+ 0 - 9
ui/collapse-item/index.wxml

@@ -1,9 +0,0 @@
-<view id="{{name}}" class="i-class i-collapse-item ">
-    <view class="i-collapse-item-title-wrap" bindtap="trigger">
-        <i-icon size="16" type="enter" i-class="{{ showContent ? 'i-collapse-item-arrow-show' : 'i-collapse-item-arrow' }}"/>
-        <text class="i-collapse-item-title i-class-title">{{title}}</text>
-    </view>
-    <view class="i-collapse-item-content {{showContent}}  i-class-content">
-        <slot name="content"></slot>
-    </view>
-</view>

+ 0 - 1
ui/collapse-item/index.wxss

@@ -1 +0,0 @@
-.i-collapse-item{padding:2px 8px;border-top:1px solid #dddee1}.i-collapse-item-title{vertical-align:middle}.i-collapse-item-title-wrap{padding:2px 0 0}.i-collapse-item-content{padding:6px;display:none}.i-collapse-item-show-content{display:block}.i-collapse-item-arrow{transition:transform .2s ease-in-out}.i-collapse-item-arrow-show{transition:transform .2s ease-in-out;transform:rotate(90deg)}

+ 0 - 31
ui/collapse/index.js

@@ -1,31 +0,0 @@
-Component({
-    externalClasses: ['i-class'],
-
-    relations: {
-        '../collapse-item/index': {
-            type: 'child'
-        }
-    },
-    properties: {
-        name: String,
-        accordion: Boolean
-    },
-    methods: {
-        clickfn(e) {
-            const params = e.detail;
-            const allList = this.getRelationNodes('../collapse-item/index');
-            allList.forEach((item) => {
-                if (params.name === item.data.name) {
-                    item.setData({
-                        showContent: 'i-collapse-item-show-content'
-                    });
-                } else {
-                    item.setData({
-                        showContent: ''
-                    });
-                }
-            });
-        },
-    }
-});
-

+ 0 - 4
ui/collapse/index.wxml

@@ -1,4 +0,0 @@
-<view class="i-class i-collapse" bindcollapse="clickfn">
-  <slot></slot>
-</view>
-

+ 0 - 0
ui/collapse/index.wxss


+ 0 - 25
ui/divider/index.js

@@ -1,25 +0,0 @@
-Component({
-    externalClasses: ['i-class'],
-    properties: {
-        content: {
-            type: String,
-            value: ''
-        },
-        height : {
-            type: Number,
-            value: 48
-        },
-        color : {
-            type : String,
-            value : '#80848f'
-        },
-        lineColor : {
-            type : String,
-            value : '#e9eaec'
-        },
-        size : {
-            type: String,
-            value: 12
-        }
-    }
-});

+ 0 - 19
ui/divider/index.wxml

@@ -1,19 +0,0 @@
-<view class="i-divider i-class" style="{{parse.getStyle(color,size,height)}}">
-    <view class="i-divider-content" wx:if="{{content !== ''}}">
-        {{content}}
-    </view>
-    <view class="i-divider-content" wx:else>
-        <slot></slot>
-    </view>
-    <view class="i-divider-line" style="background:{{lineColor}}"></view>
-</view>
-<wxs module="parse">
-    module.exports = {
-        getStyle : function(color,size,height){
-            var color = 'color:' + color +';';
-            var size = 'font-size:' + size + 'px;';
-            var height = 'height:' + height+'px;'      
-            return color + size + height;
-        }
-    }
-</wxs>

+ 0 - 1
ui/divider/index.wxss

@@ -1 +0,0 @@
-.i-divider{width:100%;text-align:center;font-size:12px;position:relative;display:flex;align-items:center;justify-content:center}.i-divider-line{position:absolute;left:0;width:100%;height:1rpx;background-color:#f7f7f7;top:50%}.i-divider-content{position:relative;z-index:1;display:inline-block;padding:0 10px}

+ 0 - 33
ui/drawer/index.js

@@ -1,33 +0,0 @@
-Component({
-    externalClasses: ['i-class'],
-    properties: {
-        visible: {
-            type: Boolean,
-            value: false
-        },
-
-        mask: {
-            type: Boolean,
-            value: true
-        },
-
-        maskClosable: {
-            type: Boolean,
-            value: true
-        },
-
-        mode: {
-            type: String,
-            value: 'left' // left right
-        }
-    },
-    data: {},
-    methods: {
-        handleMaskClick() {
-            if (!this.data.maskClosable) {
-                return;
-            }
-            this.triggerEvent('close', {});
-        }
-    }
-});

+ 0 - 3
ui/drawer/index.json

@@ -1,3 +0,0 @@
-{
-  "component": true
-}

+ 0 - 6
ui/drawer/index.wxml

@@ -1,6 +0,0 @@
-<view class="i-class i-drawer {{ visible ? 'i-drawer-show' : '' }} {{ 'i-drawer-' + mode }}">
-    <view wx:if="{{ mask }}" class="i-drawer-mask" bindtap="handleMaskClick"></view>
-    <view class="i-drawer-container">
-        <slot></slot>
-    </view>
-</view>

File diff suppressed because it is too large
+ 0 - 1
ui/drawer/index.wxss


+ 0 - 10
ui/grid-icon/index.js

@@ -1,10 +0,0 @@
-Component({
-    externalClasses: ['i-class'],
-
-    relations: {
-        '../grid-item/index': {
-            type: 'parent'
-        }
-    },
-
-});

+ 0 - 0
ui/grid-icon/index.json


Some files were not shown because too many files changed in this diff