Browse Source

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

wangxin 5 năm trước cách đây
mục cha
commit
8c7994d16b

+ 0 - 141
pages/wallet/index.js

@@ -1,141 +0,0 @@
-import {
-  imgServerUrl
-} from '../../config/config.js'
-import {
-  getMoneyAccountDetail,
-  getHpMemberDetail
-} from '../../services/index.js'
-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() {
-
-  },
-})

+ 0 - 8
pages/wallet/index.json

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

+ 0 - 34
pages/wallet/index.wxml

@@ -1,34 +0,0 @@
-<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>

+ 0 - 105
pages/wallet/index.wxss

@@ -1,105 +0,0 @@
-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;
-}

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

@@ -1,63 +0,0 @@
-// 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() {
-
-  },
-})

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

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

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

@@ -1,21 +0,0 @@
-<!--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>

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

@@ -1,67 +0,0 @@
-/* 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;
-}

+ 0 - 122
pages/withdrawal/withdrawal.js

@@ -1,122 +0,0 @@
-// pages/withdrawal/withdrawal.js
-import {
-  getMoneyAccountDetail,
-} from '../../services/index.js'
-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() {
-
-  },
-})

+ 0 - 4
pages/withdrawal/withdrawal.json

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

+ 0 - 40
pages/withdrawal/withdrawal.wxml

@@ -1,40 +0,0 @@
-<!--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>

+ 0 - 136
pages/withdrawal/withdrawal.wxss

@@ -1,136 +0,0 @@
-/* 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 - 3
ui/avatar/index.json

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

+ 0 - 3
ui/badge/index.json

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

+ 0 - 3
ui/card/index.json

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

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

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

+ 0 - 3
ui/cell/index.json

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

+ 0 - 3
ui/col/index.json

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

+ 0 - 3
ui/collapse/index.json

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

+ 0 - 3
ui/divider/index.json

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

+ 0 - 4
ui/marquee/index.json

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