Browse Source

删除冗余

bayi 11 months ago
parent
commit
bb0b7e6216
60 changed files with 3 additions and 2875 deletions
  1. 0 26
      app.js
  2. 1 14
      app.json
  3. 0 6
      components/navigationBar/index.js
  4. 0 3
      components/navigationBar/index.wxml
  5. 0 12
      components/videoPreview/index.js
  6. 0 9
      components/videoPreview/index.wxml
  7. 1 91
      pages/index/index.js
  8. 1 31
      pages/index/index.less
  9. 0 6
      pages/index/index.wxml
  10. 0 26
      pages/index/index.wxss
  11. BIN
      salesperson/image/b1.png
  12. BIN
      salesperson/image/b2.png
  13. BIN
      salesperson/image/b3.png
  14. BIN
      salesperson/image/blueR.png
  15. BIN
      salesperson/image/money.png
  16. 0 17
      salesperson/pages/commission/index.js
  17. 0 4
      salesperson/pages/commission/index.json
  18. 0 83
      salesperson/pages/commission/index.less
  19. 0 38
      salesperson/pages/commission/index.wxml
  20. 0 72
      salesperson/pages/commission/index.wxss
  21. 0 51
      salesperson/pages/fill/index.js
  22. 0 4
      salesperson/pages/fill/index.json
  23. 0 121
      salesperson/pages/fill/index.less
  24. 0 34
      salesperson/pages/fill/index.wxml
  25. 0 105
      salesperson/pages/fill/index.wxss
  26. 0 35
      salesperson/pages/gzhShare/index.js
  27. 0 3
      salesperson/pages/gzhShare/index.json
  28. 0 71
      salesperson/pages/gzhShare/index.less
  29. 0 21
      salesperson/pages/gzhShare/index.wxml
  30. 0 58
      salesperson/pages/gzhShare/index.wxss
  31. 0 34
      salesperson/pages/history/index.js
  32. 0 8
      salesperson/pages/history/index.json
  33. 0 96
      salesperson/pages/history/index.less
  34. 0 39
      salesperson/pages/history/index.wxml
  35. 0 83
      salesperson/pages/history/index.wxss
  36. 0 64
      salesperson/pages/lxDetail/index.js
  37. 0 6
      salesperson/pages/lxDetail/index.json
  38. 0 126
      salesperson/pages/lxDetail/index.less
  39. 0 67
      salesperson/pages/lxDetail/index.wxml
  40. 0 107
      salesperson/pages/lxDetail/index.wxss
  41. 0 38
      salesperson/pages/management/index.js
  42. 0 6
      salesperson/pages/management/index.json
  43. 0 113
      salesperson/pages/management/index.less
  44. 0 45
      salesperson/pages/management/index.wxml
  45. 0 95
      salesperson/pages/management/index.wxss
  46. 0 13
      salesperson/pages/sale/index.js
  47. 0 3
      salesperson/pages/sale/index.json
  48. 0 54
      salesperson/pages/sale/index.less
  49. 0 9
      salesperson/pages/sale/index.wxml
  50. 0 49
      salesperson/pages/sale/index.wxss
  51. 0 64
      salesperson/pages/saleOffice/index.js
  52. 0 7
      salesperson/pages/saleOffice/index.json
  53. 0 173
      salesperson/pages/saleOffice/index.less
  54. 0 56
      salesperson/pages/saleOffice/index.wxml
  55. 0 146
      salesperson/pages/saleOffice/index.wxss
  56. 0 90
      salesperson/pages/withdrawal/index.js
  57. 0 4
      salesperson/pages/withdrawal/index.json
  58. 0 163
      salesperson/pages/withdrawal/index.less
  59. 0 40
      salesperson/pages/withdrawal/index.wxml
  60. 0 136
      salesperson/pages/withdrawal/index.wxss

+ 0 - 26
app.js

@@ -17,7 +17,6 @@ App({
         // #if MP
         wx.setStorageSync('channelCode', '3001')
         this.updateApplet()
-        this.checkIsIos()
         // #elif ANDROID
         wx.setStorageSync('channelCode', '3001')
         this.initPlugin()
@@ -109,30 +108,6 @@ App({
 
         })
     },
-    checkIsIos: function () {
-        wx.getSystemInfo({
-            success: (res) => {
-                if (res.system.search('iOS') != -1) {
-                    this.globalData.isIOS = true
-                }
-                let {
-                    scene
-                } = wx.getLaunchOptionsSync()
-                // 1023	安卓系统桌面图标,1104微信聊天主界面下拉,「我的小程序」栏(基础库2.2.4-2.29.0版本废弃,2.29.1版本起生效) 
-                if (scene != 1023) {
-                    let preTime = wx.getStorageSync('preDesktopTime')
-                    let flag = !preTime ? true : (new Date() - preTime) / 43200000 > 1 ? true : false
-                    if (flag || !preTime) {
-                        this.globalData.desktopTips = true
-                        wx.setStorage({
-                            key: "preDesktopTime",
-                            data: new Date()
-                        })
-                    }
-                }
-            }
-        })
-    },
     // 音箱端登录
     deviceLogin() {
         // #if MP
@@ -235,7 +210,6 @@ App({
     globalData: {
         userInfo: null,
         isIOS: false, // 判断设备是否为苹果
-        desktopTips: false,
         navBarHeight: 0, // 导航栏高度
         menuRight: 0, // 胶囊距右方间距(方保持左、右间距一致)
         menuTop: 0, // 胶囊距底部间距(保持底部间距一致)

+ 1 - 14
app.json

@@ -102,20 +102,7 @@
         "pages/medalStore/index",
         "pages/orderRecord/index"
     ],
-    "subpackages": [{
-        "root": "salesperson",
-        "pages": [
-            "pages/sale/index",
-            "pages/saleOffice/index",
-            "pages/fill/index",
-            "pages/withdrawal/index",
-            "pages/lxDetail/index",
-            "pages/history/index",
-            "pages/management/index",
-            "pages/gzhShare/index",
-            "pages/commission/index"
-        ]
-    }],
+
     "tabBar": {
         "custom": true,
         "list": [{

+ 0 - 6
components/navigationBar/index.js

@@ -16,7 +16,6 @@ Component({
         store,
         fields: {
             userInfo: 'userInfo',
-            androidMask: 'androidMaskFun'
         },
         actions: {
             setUser: 'setUser'
@@ -119,10 +118,5 @@ Component({
         agree(e) {
             console.log("用户同意隐私授权, 接下来可以调用隐私协议中声明的隐私接口")
         },
-        toAndroidLogin() {
-            wx.redirectTo({
-                url: '/pages/donutLogin/index',
-            })
-        }
     }
 })

+ 0 - 3
components/navigationBar/index.wxml

@@ -46,7 +46,4 @@
         </view>
     </view>
 </view>
-<!-- #if ANDROID  -->
-<view class="androidMask" wx:if="{{androidMask}}" bind:tap="toAndroidLogin"></view>
-<!-- #endif -->
 <privacy-popup bind:agree="agree"></privacy-popup>

+ 0 - 12
components/videoPreview/index.js

@@ -73,8 +73,6 @@ Component({
         isOfficial: false,
         // 是否作者本人
         selfWork: false,
-        // 是否显示真实分享按钮
-        shareBtn: true
     },
     lifetimes: {
         attached() {
@@ -90,16 +88,6 @@ Component({
         }
     },
     methods: {
-        shareVideo() {
-            this.setData({
-                shareBtn: false
-            })
-            setTimeout(() => {
-                this.setData({
-                    shareBtn: true
-                })
-            }, 1500)
-        },
         // 播放视频
         playVideo() {
             this.triggerEvent('playVideo', this.data.videoInfoCopy.userRead.id)

+ 0 - 9
components/videoPreview/index.wxml

@@ -97,15 +97,6 @@
         </view>
     </view>
     <view class="workFooter" wx:if="{{videoInfoCopy.userRead.status!='CHECK'}}">
-        <button class="resetBtn mangeL-box" open-type="share" data-info='{{videoInfo}}' bindtap="shareVideo"
-            wx:if="{{shareBtn}}">
-            <image src="/static/share.png" mode="" class="icon" />
-            <view class="icon-name">分享</view>
-        </button>
-        <view class="resetBtn mangeL-box" wx:else>
-            <image src="/static/share.png" mode="" class="icon" />
-            <view class="icon-name">分享</view>
-        </view>
         <view class="mangeL-box" bindtap="collect">
             <image src="{{videoInfoCopy.isFavorites ? '/static/star_colored.png' : '/static/star.png'}}" mode=""
                 class="icon" />

+ 1 - 91
pages/index/index.js

@@ -3,9 +3,7 @@ import {
     getCategoryList,
     getResourceList
 } from "~/api/works"
-import {
-    setSubscribe,
-} from '~/api/global'
+
 import event from '~/mixins/event'
 import share from '~/mixins/share'
 import {
@@ -19,10 +17,8 @@ Page({
     behaviors: [share, event],
     data: {
         navBarHeight: app.globalData.navBarHeight,
-        desktopTips: app.globalData.desktopTips,
         categoryList: [],
         listOptions: {},
-        subscribeShow: false,
         tmplIds: [],
     },
     onLoad(options) {
@@ -35,20 +31,6 @@ Page({
                 this.requestAgain()
             }
         }
-        let {
-            desktopTips
-        } = app.globalData
-        if (desktopTips) {
-            setTimeout(() => {
-                this.setData({
-                    desktopTips: false
-                })
-                wx.setStorage({
-                    key: "preDesktopTime",
-                    data: new Date()
-                })
-            }, 6000)
-        }
     },
     onShow() {
         if (typeof this.getTabBar === 'function') {
@@ -57,30 +39,9 @@ Page({
             })
         }
     },
-    // 分享到朋友圈
-    shareImageMessage() {
-        wx.miniapp.shareImageMessage({
-            imagePath: '/static/375-300-1.jpg',
-            thumbPath: '/static/inviteH.png',
-            scene: 1,
-            success(res) {
-                console.log(res);
-                wx.showToast({
-                    title: '成功:分享图片',
-                })
-            },
-            fail(res) {
-                console.log(res);
-                wx.showToast({
-                    title: '失败:分享图片',
-                })
-            }
-        })
-    },
     requestAgain() {
         this.getResource()
         this.getCategoryList()
-        this.getSubscribe()
     },
     async getLocUserInfo() {
         this.storeBindings = createStoreBindings(this, {
@@ -125,62 +86,11 @@ Page({
             success(res) {}
         })
     },
-    closeDesktop() {
-        this.setData({
-            desktopTips: false
-        })
-        wx.setStorage({
-            key: "preDesktopTime",
-            data: new Date()
-        })
-    },
     jumpSearch() {
         wx.navigateTo({
             url: '/pages/childClassify/index?type=search',
         })
     },
-    async getSubscribe() {
-        let tmplIds = await setSubscribe()
-        this.setData({
-            tmplIds: tmplIds ? tmplIds : [],
-            subscribeShow: tmplIds ? true : false,
-        })
-    },
-    requestMessage() {
-        wx.requestSubscribeMessage({
-            tmplIds: this.data.tmplIds,
-            success: async (res) => {
-                let accept = []
-                this.data.tmplIds.forEach(item => {
-                    if (res[item] == 'accept') {
-                        accept.push(item)
-                    }
-                })
-                await setSubscribe({
-                    ids: accept
-                }, 'post')
-                this.getSubscribe()
-            },
-            fail: async (err) => {
-                await setSubscribe({
-                    ids: []
-                }, 'post')
-                this.getSubscribe()
-                /*  console.log(err);
-                 if (err.errCode == '20004') {
-                     // 20004
-                     wx.showModal({
-                         title: '温馨提示',
-                         content: '请同意允许我们向您发送订阅信息,请打开设置勾选订阅消息,这样能随时接到关于您作品的最新消息',
-                         complete: (res) => {
-                             if (res.cancel) {}
-                             if (res.confirm) {}
-                         }
-                     })
-                 } */
-            }
-        })
-    },
     onUnload() {
         this.storeBindings.destroyStoreBindings()
     },

+ 1 - 31
pages/index/index.less

@@ -46,34 +46,4 @@
             }
         }
     }
-
-    .desktopTips {
-        position: fixed;
-        z-index: 999;
-        right: 0rpx;
-
-        .triangle {
-            position: absolute;
-            right: 124rpx;
-            top: -26rpx;
-            border: 20rpx solid #F9F9FF;
-            border-top-color: transparent;
-            border-left-color: transparent;
-            border-right-color: transparent;
-        }
-
-        .tipsImg {
-            width: 530rpx;
-            height: 176rpx;
-        }
-    }
-}
-
-.subscribe {
-    position: fixed;
-    top: 0;
-    left: 0;
-    z-index: 99;
-    width: 100vw;
-    height: 100vh;
-}
+}

+ 0 - 6
pages/index/index.wxml

@@ -21,11 +21,5 @@
         <authority wx:if="{{listOptions.sortList[1]=='recommendReadList'}}"
             worksList="{{listOptions.recommendReadList}}" />
     </view>
-    <!-- 加桌提示 -->
-    <view class=" desktopTips" wx:if="{{desktopTips}}" style="top:{{navBarHeight+3}}px" bindtap="closeDesktop">
-        <view class="triangle"></view>
-        <image src="http://reader-wx.ai160.com/images/reader/v3/desktop-android.png" class="tipsImg" />
-    </view>
 </view>
-<view class="subscribe" wx:if="{{subscribeShow}}" bindtap="requestMessage"></view>
 <canvas id='share' type="2d"> </canvas>

+ 0 - 26
pages/index/index.wxss

@@ -42,29 +42,3 @@
   width: 28rpx;
   height: 28rpx;
 }
-.recommend .desktopTips {
-  position: fixed;
-  z-index: 999;
-  right: 0rpx;
-}
-.recommend .desktopTips .triangle {
-  position: absolute;
-  right: 124rpx;
-  top: -26rpx;
-  border: 20rpx solid #F9F9FF;
-  border-top-color: transparent;
-  border-left-color: transparent;
-  border-right-color: transparent;
-}
-.recommend .desktopTips .tipsImg {
-  width: 530rpx;
-  height: 176rpx;
-}
-.subscribe {
-  position: fixed;
-  top: 0;
-  left: 0;
-  z-index: 99;
-  width: 100vw;
-  height: 100vh;
-}

BIN
salesperson/image/b1.png


BIN
salesperson/image/b2.png


BIN
salesperson/image/b3.png


BIN
salesperson/image/blueR.png


BIN
salesperson/image/money.png


+ 0 - 17
salesperson/pages/commission/index.js

@@ -1,17 +0,0 @@
-import {
-    getSaleRule
-} from '~/api/sale'
-import event from '~/mixins/event'
-Page({
-    behaviors: [event],
-    data: {
-        list: []
-    },
-    async onLoad(options) {
-        let list = await getSaleRule()
-        this.setData({
-            list
-        })
-    },
-
-})

+ 0 - 4
salesperson/pages/commission/index.json

@@ -1,4 +0,0 @@
-{
-    "usingComponents": {},
-    "navigationBarTitleText": "佣金规则"
-}

+ 0 - 83
salesperson/pages/commission/index.less

@@ -1,83 +0,0 @@
-.container {
-    width: 100%;
-    min-height: 100vh;
-    padding: 50rpx 30rpx;
-    border-radius: 40rpx 40rpx 10rpx 10rpx;
-    background-color: white;
-
-    .title {
-        position: relative;
-        margin-bottom: 20rpx;
-        margin-left: 30rpx;
-        font-size: 30rpx;
-        font-weight: bold;
-        color: #0F0F0F;
-    }
-
-    .title:before {
-        position: absolute;
-        content: '';
-        left: -22rpx;
-        top: 14rpx;
-        width: 14rpx;
-        height: 14rpx;
-        background: #FF9D69;
-        border-radius: 50%;
-    }
-
-    .text {
-        font-size: 30rpx;
-        color: #333;
-        line-height: 60rpx;
-    }
-
-    .table {
-        width: 620rpx;
-        margin: 0 auto 26rpx;
-
-        .header {
-            margin-top: 10px;
-            padding: 12rpx 0;
-            background: #FF9D69;
-            border: 1rpx solid #FF9D69;
-            color: white;
-            font-size: 22rpx;
-            text-align: center;
-        }
-
-        .tr {
-            display: flex;
-            align-items: center;
-            font-size: 26rpx;
-            color: #1A1A1A;
-            text-align: center;
-            border: 1rpx solid #F6CFBA;
-            border-top: none;
-
-            view {
-                padding: 12rpx 0;
-                box-sizing: border-box;
-            }
-
-            .td1 {
-                width: 170rpx;
-                border-right: 1rpx solid #F6CFBA;
-            }
-
-            .td2 {
-                flex: 1;
-                border-right: 1rpx solid #F6CFBA;
-            }
-
-            .td3 {
-                width: 200rpx;
-            }
-        }
-    }
-
-    .desc {
-        margin-top: 12rpx;
-        font-size: 28rpx;
-        color: #333;
-    }
-}

+ 0 - 38
salesperson/pages/commission/index.wxml

@@ -1,38 +0,0 @@
-<view class="container">
-    <view class="title">分销规则</view>
-    <view class="text">一、申请注册成为推荐官。</view>
-    <view class="text">二、通过您的账号分享,邀约的用户,实现销售收益,即可获取佣金。</view>
-    <view class="text">三、佣金比例设置:</view>
-    <view class="table">
-        <view class="header">
-            分销员佣金比例设置对应表(仅供参考)
-        </view>
-        <view class="tr">
-            <view class="td1">等级</view>
-            <view class="td2">累计销售金额(元)</view>
-            <view class="td3">区间佣金比率</view>
-        </view>
-        <view class="tr" wx:for="{{list}}" wx:key="index">
-            <view class="td1">{{item.title}}</view>
-            <view class="td2" wx:if="{{index==0}}">≤{{item.endAmount/100}}</view>
-            <view class="td2" wx:if="{{index==list.length-1}}">>{{item.startAmount/100}}</view>
-            <view class="td2" wx:if="{{index!=0&&index!=list.length-1}}">
-                >{{item.startAmount/100}},≤{{item.endAmount/100}}
-            </view>
-            <view class="td3">{{item.ratio}}%</view>
-        </view>
-    </view>
-    <view class="desc">
-        假设累计销售金额10000元,那么您获取的佣金是?
-    </view>
-    <view class="desc" style="font-size: 24rpx;">
-        (10000-5000)*30%+(5000-1000)*25+(1000-0)*20%=2700元
-    </view>
-    <view class="text" style="margin-top:20rpx">四、结算流程</view>
-    <view class="text">1、您推荐的用户购买支付7天,该笔订单佣金方可结算提现。</view>
-    <view class="text">2、在推荐中心可查询所有订单收益,可在线发起提现申请。</view>
-    <view class="text">3、提现规则:账户佣金余额大于50元,方可发起提现申请。</view>
-    <view class="text">
-        4、提现申请24小时内经审核通过,自动转入您的微信钱包。根据微信小程序提现规则,单笔转账最高500元单日转账最高20,000元。
-    </view>
-</view>

+ 0 - 72
salesperson/pages/commission/index.wxss

@@ -1,72 +0,0 @@
-.container {
-  width: 100%;
-  min-height: 100vh;
-  padding: 50rpx 30rpx;
-  border-radius: 40rpx 40rpx 10rpx 10rpx;
-  background-color: white;
-}
-.container .title {
-  position: relative;
-  margin-bottom: 20rpx;
-  margin-left: 30rpx;
-  font-size: 30rpx;
-  font-weight: bold;
-  color: #0F0F0F;
-}
-.container .title:before {
-  position: absolute;
-  content: '';
-  left: -22rpx;
-  top: 14rpx;
-  width: 14rpx;
-  height: 14rpx;
-  background: #FF9D69;
-  border-radius: 50%;
-}
-.container .text {
-  font-size: 30rpx;
-  color: #333;
-  line-height: 60rpx;
-}
-.container .table {
-  width: 620rpx;
-  margin: 0 auto 26rpx;
-}
-.container .table .header {
-  margin-top: 10px;
-  padding: 12rpx 0;
-  background: #FF9D69;
-  border: 1rpx solid #FF9D69;
-  color: white;
-  font-size: 22rpx;
-  text-align: center;
-}
-.container .table .tr {
-  display: flex;
-  align-items: center;
-  font-size: 26rpx;
-  color: #1A1A1A;
-  text-align: center;
-  border: 1rpx solid #F6CFBA;
-  border-top: none;
-}
-.container .table .tr view {
-  padding: 12rpx 0;
-  box-sizing: border-box;
-}
-.container .table .tr .td1 {
-  width: 170rpx;
-  border-right: 1rpx solid #F6CFBA;
-}
-.container .table .tr .td2 {
-  flex: 1;
-  border-right: 1rpx solid #F6CFBA;
-}
-.container .table .tr .td3 {
-  width: 200rpx;
-}
-.container .desc {
-  margin-top: 12rpx;
-  font-size: 28rpx;
-  color: #333;
-}

+ 0 - 51
salesperson/pages/fill/index.js

@@ -1,51 +0,0 @@
-const app = getApp()
-import {
-    exchangemobile,
-} from '~/api/user'
-import {
-    registerSale
-} from '~/api/sale'
-Page({
-    data: {
-        menuTop: app.globalData.menuTop,
-        username: '',
-        mobile: '',
-        isSubmit: false
-    },
-    bindblur(e) {
-        this.setData({
-            username: e.detail.value.trim()
-        })
-    },
-    async getmobileNumber({
-        detail
-    }) {
-        let mobile = await exchangemobile({
-            code: detail.code
-        })
-        this.setData({
-            mobile
-        })
-    },
-    black() {
-        wx.navigateBack()
-    },
-    async submit() {
-        let {
-            mobile,
-            username
-        } = this.data
-        this.setData({
-            isSubmit: true
-        })
-        if (mobile && username) {
-            let res = await registerSale({
-                mobile,
-                name: username
-            })
-            wx.redirectTo({
-              url: '/salesperson/pages/saleOffice/index',
-            })
-        }
-    }
-})

+ 0 - 4
salesperson/pages/fill/index.json

@@ -1,4 +0,0 @@
-{
-    "usingComponents": {},
-    "navigationStyle": "custom"
-}

+ 0 - 121
salesperson/pages/fill/index.less

@@ -1,121 +0,0 @@
-.container {
-    position: relative;
-    width: 750rpx;
-    height: 100vh;
-    background: linear-gradient(158deg, #FDD65D 0%, #FFD55D 17%, #FDCB4E 38%, #FE9F16 100%);
-
-    .black {
-        padding: 10rpx 30rpx;
-        transform: rotate(180deg);
-        width: 18rpx;
-        height: 36rpx;
-        opacity: 0.8;
-    }
-
-    .titleBox {
-        text-align: center;
-        color: #570D07;
-        font-size: 30rpx;
-
-        .t1 {
-            margin: 10rpx 0;
-            font-weight: 500;
-        }
-
-        .t2 {
-            font-size: 20rpx;
-            opacity: 0.9;
-        }
-    }
-
-    .form {
-        margin: 36rpx auto;
-        width: 710rpx;
-        background: #FFFFFF;
-        border-radius: 20rpx;
-        font-size: 28rpx;
-
-        .row {
-            position: relative;
-            padding: 32rpx 47rpx;
-            display: flex;
-            align-items: center;
-
-            .label {
-                width: 150rpx;
-            }
-
-            .nickName {
-                text-align: left;
-                color: #666666;
-                font-size: 26rpx;
-            }
-
-
-            .resetBtn {
-                flex: 1;
-                font-size: 26rpx;
-                text-align: left;
-                color: #555555;
-            }
-        }
-
-        .r1:before {
-            position: absolute;
-            content: "请输入姓名";
-            bottom: -4rpx;
-            left: 194rpx;
-            color: red;
-        }
-        .r2:before {
-            position: absolute;
-            content: "请输入手机号";
-            bottom: -4rpx;
-            left: 194rpx;
-            color: red;
-        }
-    }
-
-    .qrCodeBox {
-        margin: 30rpx auto;
-        width: 710rpx;
-        box-sizing: border-box;
-        padding: 65rpx 40rpx 37rpx;
-        background: #FFFFFF;
-        font-size: 30rpx;
-        border-radius: 20rpx;
-        text-align: center;
-
-        .qrCode {
-            margin: 38rpx 0;
-            width: 256rpx;
-            height: 256rpx;
-            padding: 20rpx;
-            border-radius: 20rpx;
-            background-color: #FFF7E1;
-        }
-
-        .content {
-            margin-top: 20rpx;
-            text-align: left;
-        }
-    }
-
-    .bottom {
-        position: absolute;
-        width: 100%;
-        padding: 26rpx 0;
-        bottom: 0;
-        left: 0;
-        background-color: white;
-
-        .btn {
-            margin: 0 auto;
-            width: 466rpx;
-            padding: 14rpx 0;
-            background: linear-gradient(180deg, #6EC8FF 0%, #31BDFE 100%);
-            border-radius: 39rpx;
-            color: white;
-        }
-    }
-}

+ 0 - 34
salesperson/pages/fill/index.wxml

@@ -1,34 +0,0 @@
-<view class="container">
-    <image src="/static/black.png" style="margin-top:{{menuTop}}px;" class='black' bindtap="black" />
-    <view class="titleBox">
-        <view class="t1">填写个人信息</view>
-        <view class="t2">请填写真实信息</view>
-    </view>
-    <view class="form">
-        <view class="row {{isSubmit&&username==''?'r1':''}}" style="border-bottom: 1rpx solid #EEEEEE;">
-            <view class="label">*姓名</view>
-            <input placeholder="请输入真实姓名" class='nickName' placeholder-class="nickName" maxlength="8"
-                bindblur='bindblur'></input>
-        </view>
-        <view class="row {{isSubmit&&mobile==''?'r2':''}}">
-            <view class="label">*手机号</view>
-            <button class="resetBtn" open-type="getPhoneNumber"
-                bindgetphonenumber="getmobileNumber">{{mobile==''?'请输入手机号':mobile}}</button>
-        </view>
-    </view>
-    <view class="qrCodeBox">
-        <view>长按识别二维码 添加客服微信</view>
-        <image
-            src="https://reader-wx.ai160.com/images/reader/pay/saleQrcode.jpg"
-            show-menu-by-longpress="{{true}}" class="qrCode" />
-        <view class="content">
-            运营方案和营销工具的支持,共享优秀推荐案例
-        </view>
-        <view class="content">
-            遇到对账、结算、支付等问题,1对1沟通解决
-        </view>
-    </view>
-    <view class="bottom">
-        <button class="resetBtn btn" bindtap="submit">完成</button>
-    </view>
-</view>

+ 0 - 105
salesperson/pages/fill/index.wxss

@@ -1,105 +0,0 @@
-.container {
-  position: relative;
-  width: 750rpx;
-  height: 100vh;
-  background: linear-gradient(158deg, #FDD65D 0%, #FFD55D 17%, #FDCB4E 38%, #FE9F16 100%);
-}
-.container .black {
-  padding: 10rpx 30rpx;
-  transform: rotate(180deg);
-  width: 18rpx;
-  height: 36rpx;
-  opacity: 0.8;
-}
-.container .titleBox {
-  text-align: center;
-  color: #570D07;
-  font-size: 30rpx;
-}
-.container .titleBox .t1 {
-  margin: 10rpx 0;
-  font-weight: 500;
-}
-.container .titleBox .t2 {
-  font-size: 20rpx;
-  opacity: 0.9;
-}
-.container .form {
-  margin: 36rpx auto;
-  width: 710rpx;
-  background: #FFFFFF;
-  border-radius: 20rpx;
-  font-size: 28rpx;
-}
-.container .form .row {
-  position: relative;
-  padding: 32rpx 47rpx;
-  display: flex;
-  align-items: center;
-}
-.container .form .row .label {
-  width: 150rpx;
-}
-.container .form .row .nickName {
-  text-align: left;
-  color: #666666;
-  font-size: 26rpx;
-}
-.container .form .row .resetBtn {
-  flex: 1;
-  font-size: 26rpx;
-  text-align: left;
-  color: #555555;
-}
-.container .form .r1:before {
-  position: absolute;
-  content: "请输入姓名";
-  bottom: -4rpx;
-  left: 194rpx;
-  color: red;
-}
-.container .form .r2:before {
-  position: absolute;
-  content: "请输入手机号";
-  bottom: -4rpx;
-  left: 194rpx;
-  color: red;
-}
-.container .qrCodeBox {
-  margin: 30rpx auto;
-  width: 710rpx;
-  box-sizing: border-box;
-  padding: 65rpx 40rpx 37rpx;
-  background: #FFFFFF;
-  font-size: 30rpx;
-  border-radius: 20rpx;
-  text-align: center;
-}
-.container .qrCodeBox .qrCode {
-  margin: 38rpx 0;
-  width: 256rpx;
-  height: 256rpx;
-  padding: 20rpx;
-  border-radius: 20rpx;
-  background-color: #FFF7E1;
-}
-.container .qrCodeBox .content {
-  margin-top: 20rpx;
-  text-align: left;
-}
-.container .bottom {
-  position: absolute;
-  width: 100%;
-  padding: 26rpx 0;
-  bottom: 0;
-  left: 0;
-  background-color: white;
-}
-.container .bottom .btn {
-  margin: 0 auto;
-  width: 466rpx;
-  padding: 14rpx 0;
-  background: linear-gradient(180deg, #6EC8FF 0%, #31BDFE 100%);
-  border-radius: 39rpx;
-  color: white;
-}

+ 0 - 35
salesperson/pages/gzhShare/index.js

@@ -1,35 +0,0 @@
-import event from '~/mixins/event'
-import {
-    createStoreBindings
-} from 'mobx-miniprogram-bindings'
-import {
-    store
-} from '~/store/index'
-Page({
-    behaviors: [event],
-    data: {
-        userInfo: {},
-    },
-    async onLoad() {
-        // 手工绑定 
-        this.storeBindings = createStoreBindings(this, {
-            store,
-            fields: {
-                userInfo: 'userInfo',
-            }
-        })
-    },
-    clipboar({
-        currentTarget
-    }) {
-        wx.setClipboardData({
-            data: currentTarget.dataset.value,
-            success: function (res) { //成功回调函数
-                wx.showToast({
-                    title: '复制成功',
-                    icon: "success"
-                })
-            }
-        })
-    },
-})

+ 0 - 3
salesperson/pages/gzhShare/index.json

@@ -1,3 +0,0 @@
-{
-    "usingComponents": {}
-}

+ 0 - 71
salesperson/pages/gzhShare/index.less

@@ -1,71 +0,0 @@
-.container {
-    position: relative;
-    width: 100%;
-    min-height: 100vh;
-    padding: 32rpx 0;
-    background: url(https://reader-wx.ai160.com/images/reader/sell/bg1.jpg)no-repeat;
-    background-size: contain;
-
-    .copyBox {
-        display: flex;
-        align-items: flex-start;
-        justify-content: space-between;
-        padding: 26rpx 37rpx;
-        margin: 0 22rpx;
-        border-radius: 20rpx;
-        background: #FFF9EE;
-
-        .left {
-            .label {
-                margin-bottom: 12rpx;
-                font-size: 30rpx;
-                font-weight: bold;
-            }
-
-            .value {
-                width:500rpx;
-                font-size: 26rpx;
-            }
-        }
-
-        .copy {
-            padding: 8rpx 40rpx;
-            border-radius: 26rpx;
-            font-size: 24rpx;
-            color: #FFFFFF;
-        }
-    }
-
-    .b1 {
-        margin-bottom: 30rpx;
-
-        .label {
-            color: #FF9E00;
-        }
-
-        .copy {
-            background-color: #FEAB25;
-        }
-    }
-
-    .b2 {
-        background-color: #DAEDFF;
-
-        .label {
-            color: #2485E4;
-        }
-
-        .copy {
-            background-color: #4FC3FF;
-        }
-    }
-
-    .longImg {
-        margin-top: 30rpx;
-        width: 750rpx;
-        height: 1582rpx;
-        border-top-left-radius: 20rpx;
-        border-top-right-radius: 20rpx;
-        background-color: white;
-    }
-}

+ 0 - 21
salesperson/pages/gzhShare/index.wxml

@@ -1,21 +0,0 @@
-<view class="container">
-    <view class="copyBox b1">
-        <view class="left">
-            <view class="label">
-                小程序APPID
-            </view>
-            <view class="value">wx8961a3e5512f307c</view>
-        </view>
-        <view class="copy" catchtap="clipboar" data-value="wx8961a3e5512f307c">复制</view>
-    </view>
-    <view class="copyBox b2">
-        <view class="left">
-            <view class="label">
-                专属跳转路径
-            </view>
-            <view class="value textOver">/pages/index/index?uid={{userInfo.uid}}</view>
-        </view>
-        <view class="copy" data-value="/pages/index/index?uid={{userInfo.uid}}" catchtap="clipboar">复制</view>
-    </view>
-    <image src="https://reader-wx.ai160.com/images/reader/pay/gzRule.png" class="longImg" />
-</view>

+ 0 - 58
salesperson/pages/gzhShare/index.wxss

@@ -1,58 +0,0 @@
-.container {
-  position: relative;
-  width: 100%;
-  min-height: 100vh;
-  padding: 32rpx 0;
-  background: url(https://reader-wx.ai160.com/images/reader/sell/bg1.jpg) no-repeat;
-  background-size: contain;
-}
-.container .copyBox {
-  display: flex;
-  align-items: flex-start;
-  justify-content: space-between;
-  padding: 26rpx 37rpx;
-  margin: 0 22rpx;
-  border-radius: 20rpx;
-  background: #FFF9EE;
-}
-.container .copyBox .left .label {
-  margin-bottom: 12rpx;
-  font-size: 30rpx;
-  font-weight: bold;
-}
-.container .copyBox .left .value {
-  width: 500rpx;
-  font-size: 26rpx;
-}
-.container .copyBox .copy {
-  padding: 8rpx 40rpx;
-  border-radius: 26rpx;
-  font-size: 24rpx;
-  color: #FFFFFF;
-}
-.container .b1 {
-  margin-bottom: 30rpx;
-}
-.container .b1 .label {
-  color: #FF9E00;
-}
-.container .b1 .copy {
-  background-color: #FEAB25;
-}
-.container .b2 {
-  background-color: #DAEDFF;
-}
-.container .b2 .label {
-  color: #2485E4;
-}
-.container .b2 .copy {
-  background-color: #4FC3FF;
-}
-.container .longImg {
-  margin-top: 30rpx;
-  width: 750rpx;
-  height: 1582rpx;
-  border-top-left-radius: 20rpx;
-  border-top-right-radius: 20rpx;
-  background-color: white;
-}

+ 0 - 34
salesperson/pages/history/index.js

@@ -1,34 +0,0 @@
-import event from '~/mixins/event'
-import share from '~/mixins/share'
-import {
-    formatDate
-} from '~/utils/util'
-import reachBottom from '~/mixins/reachBottom';
-import {
-    getSaleInvite
-} from '~/api/sale'
-Page({
-    behaviors: [reachBottom, share, event],
-    data: {
-        dateTime: formatDate(new Date(), 6),
-    },
-    onLoad(options) {
-       
-        this.resetData();
-    },
-    bindDateChange(e) {
-        this.setData({
-            dateTime: e.detail.value
-        })
-        this.resetData()
-    },
-    openInvite() {
-        this.selectComponent("#InvitePop").openInvite()
-    },
-    loadMore() {
-        this.getData(getSaleInvite, {
-            dateTime: this.data.dateTime,
-            pageSize: 20,
-        });
-    },
-})

+ 0 - 8
salesperson/pages/history/index.json

@@ -1,8 +0,0 @@
-{
-    "usingComponents": {
-        "emptyBg": "/components/empty/index",
-        "InvitePop": "/components/invite/index"
-    },
-    "disableScroll": true,
-    "navigationBarTitleText": "我的邀请"
-}

+ 0 - 96
salesperson/pages/history/index.less

@@ -1,96 +0,0 @@
-.container {
-    padding: 0 14rpx;
-
-    .message {
-        padding: 14rpx 0;
-        text-align: center;
-        font-size: 24rpx;
-        color: #FE9221;
-        background: #FFFAEA;
-    }
-
-    .total {
-        margin: 12rpx 0 0;
-        background: #FFFFFF;
-        border-radius: 20rpx;
-
-        .box {
-            padding: 27rpx 31rpx;
-            display: flex;
-            align-items: center;
-            justify-content: space-between;
-            font-size: 30rpx;
-        }
-    }
-
-    .historyList {
-        position: fixed;
-        top: 0;
-        left: 0;
-        height: 100vh;
-        padding: 250rpx 14rpx 0rpx;
-        padding-bottom: calc(136rpx + env(safe-area-inset-bottom)) !important;
-        box-sizing: border-box;
-        z-index: -1;
-
-        .user {
-            display: flex;
-            align-items: center;
-            justify-content: space-between;
-            margin-bottom: 20rpx;
-            padding: 20rpx 28rpx;
-            background: #FFFFFF;
-            border-radius: 20rpx;
-
-            .avatar {
-                width: 64rpx;
-                height: 64rpx;
-                background: #D8D8D8;
-                border-radius: 50%;
-                border: 1rpx solid #979797;
-            }
-
-            .info {
-                flex: 1;
-                margin-left: 30rpx;
-
-                .nickName {
-                    margin-bottom: 6rpx;
-                    font-size: 30rpx;
-                }
-
-                .addTime {
-                    font-size: 26rpx;
-                    color: #7B7B7B;
-                }
-            }
-        }
-    }
-}
-
-.bottom {
-    position: absolute;
-    width: 100%;
-    padding: 26rpx 0;
-    bottom: 0;
-    left: 0;
-    background-color: white;
-
-    .btn {
-        margin: 0 auto;
-        margin-bottom: env(safe-area-inset-bottom) !important;
-        width: 466rpx;
-        padding: 14rpx 0;
-        background: linear-gradient(180deg, #6EC8FF 0%, #31BDFE 100%);
-        border-radius: 39rpx;
-        color: white;
-    }
-}
-
-.empty {
-    margin-top: 190rpx;
-
-    .nullImg {
-        transform: scale(0.8);
-    }
-}

+ 0 - 39
salesperson/pages/history/index.wxml

@@ -1,39 +0,0 @@
-<wxs src="../../../utils/filter.wxs" module="filters" />
-
-<view class="container">
-    <view class="message">被邀请用户为首次登录的用户</view>
-    <view class="total">
-        <view class="box">
-            <view class="label">统计日期</view>
-            <picker mode="date" value="{{dateTime}}" fields="month" start="2023-09" end="2100-09"
-                bindchange="bindDateChange">
-                <view class="picker">
-                    {{dateTime}} >
-                </view>
-            </picker>
-        </view>
-        <view class="box">
-            <view class="label">成功邀请</view>
-            <view>{{totalSize}}人</view>
-        </view>
-    </view>
-    <scroll-view class="historyList" scroll-y="true" enhanced show-scrollbar="{{false}}" scroll-top="{{scrollTop}}"
-        bindscrolltolower='loadMore' wx:if="{{!nullList}}">
-        <view class="user" wx:for="{{list}}" wx:key='index'>
-            <image src="{{item.avatar}}" class="avatar" />
-            <view class="info">
-                <view class="nickName">{{item.nickName||item.eid}}</view>
-                <view class="addTime">
-                    加入时间 :{{filters.formatDate(item.gmtCreated,1)}}
-                </view>
-            </view>
-        </view>
-    </scroll-view>
-    <view class="bottom">
-        <button class="resetBtn btn" bindtap="openInvite">
-            邀请用户
-        </button>
-    </view>
-    <emptyBg wx:if="{{nullList}}" message="暂无成功邀请记录"></emptyBg>
-    <InvitePop id="InvitePop"></InvitePop>
-</view>

+ 0 - 83
salesperson/pages/history/index.wxss

@@ -1,83 +0,0 @@
-.container {
-  padding: 0 14rpx;
-}
-.container .message {
-  padding: 14rpx 0;
-  text-align: center;
-  font-size: 24rpx;
-  color: #FE9221;
-  background: #FFFAEA;
-}
-.container .total {
-  margin: 12rpx 0 0;
-  background: #FFFFFF;
-  border-radius: 20rpx;
-}
-.container .total .box {
-  padding: 27rpx 31rpx;
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  font-size: 30rpx;
-}
-.container .historyList {
-  position: fixed;
-  top: 0;
-  left: 0;
-  height: 100vh;
-  padding: 250rpx 14rpx 0rpx;
-  padding-bottom: calc(136rpx + env(safe-area-inset-bottom)) !important;
-  box-sizing: border-box;
-  z-index: -1;
-}
-.container .historyList .user {
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  margin-bottom: 20rpx;
-  padding: 20rpx 28rpx;
-  background: #FFFFFF;
-  border-radius: 20rpx;
-}
-.container .historyList .user .avatar {
-  width: 64rpx;
-  height: 64rpx;
-  background: #D8D8D8;
-  border-radius: 50%;
-  border: 1rpx solid #979797;
-}
-.container .historyList .user .info {
-  flex: 1;
-  margin-left: 30rpx;
-}
-.container .historyList .user .info .nickName {
-  margin-bottom: 6rpx;
-  font-size: 30rpx;
-}
-.container .historyList .user .info .addTime {
-  font-size: 26rpx;
-  color: #7B7B7B;
-}
-.bottom {
-  position: absolute;
-  width: 100%;
-  padding: 26rpx 0;
-  bottom: 0;
-  left: 0;
-  background-color: white;
-}
-.bottom .btn {
-  margin: 0 auto;
-  margin-bottom: env(safe-area-inset-bottom) !important;
-  width: 466rpx;
-  padding: 14rpx 0;
-  background: linear-gradient(180deg, #6EC8FF 0%, #31BDFE 100%);
-  border-radius: 39rpx;
-  color: white;
-}
-.empty {
-  margin-top: 190rpx;
-}
-.empty .nullImg {
-  transform: scale(0.8);
-}

+ 0 - 64
salesperson/pages/lxDetail/index.js

@@ -1,64 +0,0 @@
-import {
-    getSaleData,
-    getIncomeList
-} from '~/api/sale'
-import event from '~/mixins/event'
-
-Page({
-    behaviors: [event],
-    data: {
-        currentIndex: 1,
-        categoryList: [{
-            id: 1,
-            title: '全部'
-        }, {
-            id: 2,
-            title: '7日'
-        }, {
-            id: 3,
-            title: '月'
-        }, {
-            id: 4,
-            title: '季'
-        }, {
-            id: 5,
-            title: '半年'
-        }],
-        allIncome: {},
-        orderList: {},
-        orderListKey: []
-    },
-    async onShow() {
-        let allIncome = await getSaleData()
-        this.getData()
-        this.setData({
-            allIncome,
-        })
-    },
-    async getData() {
-        let data = await getIncomeList({
-            pageSize: 1000,
-            type: this.data.currentIndex
-        })
-        let detailedList = {}
-        data.list.forEach(item => {
-            if (detailedList.hasOwnProperty(item.dateStr)) {
-                detailedList[item.dateStr].push(item)
-            } else {
-                detailedList[item.dateStr] = [item]
-            }
-        })
-        this.setData({
-            orderList: detailedList,
-            orderListKey: Object.keys(detailedList)
-        })
-    },
-    setClass({
-        currentTarget
-    }) {
-        this.setData({
-            currentIndex: currentTarget.dataset.index,
-        });
-        this.getData()
-    },
-})

+ 0 - 6
salesperson/pages/lxDetail/index.json

@@ -1,6 +0,0 @@
-{
-    "usingComponents": {
-        "emptyBg": "/components/empty/index"
-    },
-    "navigationBarTitleText": "收益报表"
-}

+ 0 - 126
salesperson/pages/lxDetail/index.less

@@ -1,126 +0,0 @@
-.container {
-    padding: 0 20rpx;
-
-    .statistics {
-        width: 100%;
-        padding: 40rpx;
-        display: flex;
-        align-items: center;
-        box-sizing: border-box;
-        background: #FFFFFF;
-        border-radius: 20rpx;
-
-        .col {
-            flex: 1;
-
-            .row {
-                margin-bottom: 60rpx;
-
-                .label {
-                    margin-bottom: 20rpx;
-                    font-size: 30rpx;
-                    color: #666666;
-                }
-
-                .money {
-                    font-size: 32rpx;
-                    font-weight: 500;
-                    color: #000000;
-                }
-            }
-
-            .row:last-child {
-                margin: 0;
-            }
-        }
-
-        .col2 {
-            padding-left: 80rpx;
-        }
-    }
-
-    .detailsBox {
-        margin-top: 40rpx;
-
-        .title {
-            font-size: 25rpx;
-            color: #7B7B7B;
-        }
-
-        .categoryBox {
-            margin-top: 24rpx;
-            margin-bottom: 38rpx;
-            display: flex;
-            align-items: center;
-            justify-content: space-between;
-
-            .category {
-                width: 126rpx;
-                padding: 8rpx 0;
-                font-size: 30rpx;
-                text-align: center;
-                color: #7A7A7A;
-                background: #FFFFFF;
-                border-radius: 29rpx;
-            }
-
-            .currentClass {
-                color: #FEAC57;
-                font-weight: bold;
-            }
-        }
-
-        .detailsList {
-            padding-bottom: 60rpx;
-            .group {
-                margin-bottom: 20rpx;
-                border-radius: 20rpx;
-                overflow: hidden;
-                background: #FFFFFF;
-
-                .header {
-                    display: flex;
-                    align-items: center;
-                    justify-content: space-between;
-                    padding: 12rpx 24rpx;
-                    font-size: 26rpx;
-                    background-color: #FFFAEA;
-                }
-
-                .body {
-                    padding: 0 35rpx;
-
-                    .row {
-                        display: flex;
-                        align-items: center;
-                        justify-content: space-between;
-                        padding: 20rpx 0;
-                        color: #7B7B7B;
-                        font-size: 26rpx;
-                        text-align: center;
-                        border-bottom: 1rpx solid #eee;
-
-                        .col {
-                            display: flex;
-                            flex-direction: column;
-
-                            .num {
-                                margin-bottom: 8rpx;
-                            }
-                            .add{
-                                color: #BA5858;
-                            }
-                            .reduce{
-                                color: #38B358;
-                            }
-                        }
-                    }
-
-                    .row:last-child {
-                        border: none
-                    }
-                }
-            }
-        }
-    }
-}

+ 0 - 67
salesperson/pages/lxDetail/index.wxml

@@ -1,67 +0,0 @@
-<wxs src="../../../utils/filter.wxs" module="filters" />
-
-<view class="container">
-    <view class="statistics">
-        <view class="col">
-            <view class="row">
-                <view class="label">累计收益(元)</view>
-                <view class="money">{{filters.twoDecimal(allIncome.income)}}</view>
-            </view>
-            <view class="row">
-                <view class="label">累计销售(元)</view>
-                <view class="money">{{filters.twoDecimal(allIncome.saleCount)}}</view>
-            </view>
-            <view class="row">
-                <view class="label">累计订单(笔)</view>
-                <view class="money">{{allIncome.orderCount}}</view>
-            </view>
-        </view>
-        <view class="col col2">
-            <view class="row">
-                <view class="label">可提现(元)</view>
-                <view class="money">{{filters.twoDecimal(allIncome.withdraw)}}</view>
-            </view>
-            <view class="row">
-                <view class="label">待结算(元)</view>
-                <view class="money">{{filters.twoDecimal(allIncome.waitSettlement)}}</view>
-            </view>
-            <view class="row">
-                <view class="label">累计邀请(人)</view>
-                <view class="money">{{allIncome.inviteCount}}</view>
-            </view>
-        </view>
-    </view>
-    <view class="detailsBox">
-        <view class="title">展示明细</view>
-        <view class="categoryBox">
-            <view class="category {{currentIndex==item.id?'currentClass':''}}" wx:for="{{categoryList}}" wx:key="id"
-                data-index="{{item.id}}" data-title='{{item.title}}' bindtap="setClass">
-                {{item.title}}
-            </view>
-        </view>
-        <view class="detailsList">
-            <view class="group" wx:for="{{orderListKey}}" wx:key="index">
-                <view class="header">
-                    <view>
-                        {{item}}
-                    </view>
-                    <view>
-                        结余(元)
-                    </view>
-                </view>
-                <view class="body">
-                    <view class="row" wx:for="{{orderList[item]}}" wx:key="id" wx:for-item="row">
-                        <view class="col">{{filters.formatDate(row.gmtCreated,6)}}日</view>
-                        <view class="col">
-                            <view class="num {{row.type=='1'?'add':'reduce'}}">
-                                {{row.type=='1'?'+':'-'}}{{filters.twoDecimal(row.amount)}}</view>
-                            {{row.title}}
-                        </view>
-                        <view class="col">{{filters.twoDecimal(row.balance)}}</view>
-                    </view>
-                </view>
-            </view>
-        </view>
-    </view>
-    <emptyBg wx:if="{{orderListKey.length==0}}" message="暂无订单" />
-</view>

+ 0 - 107
salesperson/pages/lxDetail/index.wxss

@@ -1,107 +0,0 @@
-.container {
-  padding: 0 20rpx;
-}
-.container .statistics {
-  width: 100%;
-  padding: 40rpx;
-  display: flex;
-  align-items: center;
-  box-sizing: border-box;
-  background: #FFFFFF;
-  border-radius: 20rpx;
-}
-.container .statistics .col {
-  flex: 1;
-}
-.container .statistics .col .row {
-  margin-bottom: 60rpx;
-}
-.container .statistics .col .row .label {
-  margin-bottom: 20rpx;
-  font-size: 30rpx;
-  color: #666666;
-}
-.container .statistics .col .row .money {
-  font-size: 32rpx;
-  font-weight: 500;
-  color: #000000;
-}
-.container .statistics .col .row:last-child {
-  margin: 0;
-}
-.container .statistics .col2 {
-  padding-left: 80rpx;
-}
-.container .detailsBox {
-  margin-top: 40rpx;
-}
-.container .detailsBox .title {
-  font-size: 25rpx;
-  color: #7B7B7B;
-}
-.container .detailsBox .categoryBox {
-  margin-top: 24rpx;
-  margin-bottom: 38rpx;
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-}
-.container .detailsBox .categoryBox .category {
-  width: 126rpx;
-  padding: 8rpx 0;
-  font-size: 30rpx;
-  text-align: center;
-  color: #7A7A7A;
-  background: #FFFFFF;
-  border-radius: 29rpx;
-}
-.container .detailsBox .categoryBox .currentClass {
-  color: #FEAC57;
-  font-weight: bold;
-}
-.container .detailsBox .detailsList {
-  padding-bottom: 60rpx;
-}
-.container .detailsBox .detailsList .group {
-  margin-bottom: 20rpx;
-  border-radius: 20rpx;
-  overflow: hidden;
-  background: #FFFFFF;
-}
-.container .detailsBox .detailsList .group .header {
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  padding: 12rpx 24rpx;
-  font-size: 26rpx;
-  background-color: #FFFAEA;
-}
-.container .detailsBox .detailsList .group .body {
-  padding: 0 35rpx;
-}
-.container .detailsBox .detailsList .group .body .row {
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  padding: 20rpx 0;
-  color: #7B7B7B;
-  font-size: 26rpx;
-  text-align: center;
-  border-bottom: 1rpx solid #eee;
-}
-.container .detailsBox .detailsList .group .body .row .col {
-  display: flex;
-  flex-direction: column;
-}
-.container .detailsBox .detailsList .group .body .row .col .num {
-  margin-bottom: 8rpx;
-}
-.container .detailsBox .detailsList .group .body .row .col .add {
-  color: #BA5858;
-}
-.container .detailsBox .detailsList .group .body .row .col .reduce {
-  color: #38B358;
-}
-.container .detailsBox .detailsList .group .body .row:last-child {
-  border: none;
-}

+ 0 - 38
salesperson/pages/management/index.js

@@ -1,38 +0,0 @@
-import event from '~/mixins/event'
-import reachBottom from '~/mixins/reachBottom';
-import {
-    getSaleOrder
-} from '~/api/sale'
-Page({
-    behaviors: [reachBottom,event],
-    data: {
-        currentIndex: '',
-        categoryList: [{
-            id: '',
-            title: '全部'
-        }, {
-            id: 1,
-            title: '已付款'
-        }, {
-            id: 2,
-            title: '退单'
-        }, ]
-    },
-
-    onLoad(options) {
-        this.resetData();
-    },
-    loadMore() {
-        this.getData(getSaleOrder, {
-            status: this.data.currentIndex
-        });
-    },
-    setClass({
-        currentTarget
-    }) {
-        this.setData({
-            currentIndex: currentTarget.dataset.index,
-        });
-        this.resetData();
-    },
-})

+ 0 - 6
salesperson/pages/management/index.json

@@ -1,6 +0,0 @@
-{
-    "usingComponents": {
-        "emptyBg": "/components/empty/index"
-    },
-    "navigationBarTitleText": "订单管理"
-}

+ 0 - 113
salesperson/pages/management/index.less

@@ -1,113 +0,0 @@
-.container {
-    padding: 0 20rpx;
-
-    .categoryBox {
-        margin: 24rpx 0;
-        display: flex;
-        align-items: center;
-        justify-content: space-between;
-
-        .category {
-            width: 126rpx;
-            padding: 8rpx 0;
-            font-size: 30rpx;
-            text-align: center;
-            color: #7A7A7A;
-            background: #FFFFFF;
-            border-radius: 29rpx;
-        }
-
-        .currentClass {
-            color: #FE9221;
-            font-weight: bold;
-        }
-    }
-
-    .orderList {
-        .tips {
-            margin-bottom: 20rpx;
-            position: relative;
-            padding: 14rpx 0;
-            text-align: center;
-            background: #FFFAEA;
-            font-size: 24rpx;
-            color: #FE9221;
-
-            .close {
-                position: absolute;
-                top: 50%;
-                transform: translateY(-50%);
-                right: 20rpx;
-                font-size: 40rpx;
-            }
-        }
-
-        .order {
-            width: 100%;
-            padding: 18rpx 26rpx;
-            box-sizing: border-box;
-            margin-bottom: 20rpx;
-            background: #FFFFFF;
-            border-radius: 20rpx;
-
-            .above {
-                display: flex;
-                align-items: flex-end;
-                justify-content: space-between;
-                padding-bottom: 18rpx;
-                border-bottom: 1rpx solid #eee;
-
-                .userInfo {
-                    display: flex;
-                    align-items: center;
-
-                    .avatar {
-                        margin-right: 18rpx;
-                        width: 64rpx;
-                        height: 64rpx;
-                        background: #D8D8D8;
-                        border-radius: 50%;
-                    }
-
-                    .nickName {
-                        margin-bottom: 6rpx;
-                        font-size: 30rpx;
-                    }
-
-                    .addTime {
-                        font-size: 26rpx;
-                        color: #7B7B7B;
-                    }
-                }
-
-                .state {
-                    font-size: 26rpx;
-                    color: #FE9221;
-                }
-            }
-
-            .below {
-                color: #7B7B7B;
-
-                .row {
-                    padding: 20rpx 0;
-                    display: flex;
-                    align-items: center;
-                    justify-content: space-between;
-                    font-size: 26rpx;
-
-                    .money {
-                        color: black;
-                    }
-                }
-            }
-        }
-    }
-}
-
-.empty {
-    margin-top: 190rpx;
-    .nullImg {
-        transform: scale(0.8);
-    }
-}

+ 0 - 45
salesperson/pages/management/index.wxml

@@ -1,45 +0,0 @@
-<wxs src="../../../utils/filter.wxs" module="filters" />
-
-<view class="container">
-    <view class="categoryBox">
-        <view class="category {{currentIndex==item.id?'currentClass':''}}" wx:for="{{categoryList}}" wx:key="id"
-            data-index="{{item.id}}" data-title='{{item.title}}' bindtap="setClass">
-            {{item.title}}
-        </view>
-    </view>
-    <scroll-view class="orderList" scroll-y="true" enhanced show-scrollbar="{{false}}" bindscrolltolower='loadMore'>
-        <view class="tips" wx:if="{{currentIndex=='2'}}">温馨提示:退款的订单不计入收益系统
-            <!--  <view class="close">×</view> -->
-        </view>
-        <view class="order" wx:for="{{list}}" wx:key="index">
-            <view class="above">
-                <view class="userInfo">
-                    <image src="{{item.avatar}}" class="avatar" />
-                    <view>
-                        <view class="nickName">{{item.name}}</view>
-                        <view class="addTime">
-                            加入时间 :{{filters.formatDate(item.joinTime,1)}}
-                        </view>
-                    </view>
-                </view>
-                <view class="state">{{item.status==1?'已付款':item.status==2?'退款':'其他'}}</view>
-            </view>
-            <view class="below">
-                <view class="row">
-                    <view>购买类型:{{item.title}} </view>
-                    <view>付款金额 <text class="money">{{filters.twoDecimal(item.amount)}}元</text>
-                    </view>
-                </view>
-                <view class="row" style="font-size: 22rpx;">
-                    <view>
-                        {{filters.formatDate(item.gmtCreated,1)}}付款
-                    </view>
-                    <view wx:if="{{item.status==2}}">
-                        {{filters.formatDate(item.gmtModified,1)}}退款
-                    </view>
-                </view>
-            </view>
-        </view>
-    </scroll-view>
-    <emptyBg wx:if="{{nullList}}" message="暂无订单记录"></emptyBg>
-</view>

+ 0 - 95
salesperson/pages/management/index.wxss

@@ -1,95 +0,0 @@
-.container {
-  padding: 0 20rpx;
-}
-.container .categoryBox {
-  margin: 24rpx 0;
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-}
-.container .categoryBox .category {
-  width: 126rpx;
-  padding: 8rpx 0;
-  font-size: 30rpx;
-  text-align: center;
-  color: #7A7A7A;
-  background: #FFFFFF;
-  border-radius: 29rpx;
-}
-.container .categoryBox .currentClass {
-  color: #FE9221;
-  font-weight: bold;
-}
-.container .orderList .tips {
-  margin-bottom: 20rpx;
-  position: relative;
-  padding: 14rpx 0;
-  text-align: center;
-  background: #FFFAEA;
-  font-size: 24rpx;
-  color: #FE9221;
-}
-.container .orderList .tips .close {
-  position: absolute;
-  top: 50%;
-  transform: translateY(-50%);
-  right: 20rpx;
-  font-size: 40rpx;
-}
-.container .orderList .order {
-  width: 100%;
-  padding: 18rpx 26rpx;
-  box-sizing: border-box;
-  margin-bottom: 20rpx;
-  background: #FFFFFF;
-  border-radius: 20rpx;
-}
-.container .orderList .order .above {
-  display: flex;
-  align-items: flex-end;
-  justify-content: space-between;
-  padding-bottom: 18rpx;
-  border-bottom: 1rpx solid #eee;
-}
-.container .orderList .order .above .userInfo {
-  display: flex;
-  align-items: center;
-}
-.container .orderList .order .above .userInfo .avatar {
-  margin-right: 18rpx;
-  width: 64rpx;
-  height: 64rpx;
-  background: #D8D8D8;
-  border-radius: 50%;
-}
-.container .orderList .order .above .userInfo .nickName {
-  margin-bottom: 6rpx;
-  font-size: 30rpx;
-}
-.container .orderList .order .above .userInfo .addTime {
-  font-size: 26rpx;
-  color: #7B7B7B;
-}
-.container .orderList .order .above .state {
-  font-size: 26rpx;
-  color: #FE9221;
-}
-.container .orderList .order .below {
-  color: #7B7B7B;
-}
-.container .orderList .order .below .row {
-  padding: 20rpx 0;
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  font-size: 26rpx;
-}
-.container .orderList .order .below .row .money {
-  color: black;
-}
-.empty {
-  margin-top: 190rpx;
-}
-.empty .nullImg {
-  transform: scale(0.8);
-}

+ 0 - 13
salesperson/pages/sale/index.js

@@ -1,13 +0,0 @@
-Page({
-    data: {
-    },
-    onLoad(options) {
-    },
-    jump({
-        currentTarget
-    }) {
-        wx.navigateTo({
-            url: `/salesperson/pages/${currentTarget.dataset.url}/index`,
-        })
-    },
-})  

+ 0 - 3
salesperson/pages/sale/index.json

@@ -1,3 +0,0 @@
-{
-    "usingComponents": {}
-}

+ 0 - 54
salesperson/pages/sale/index.less

@@ -1,54 +0,0 @@
-.container {
-    position: relative;
-    width: 750rpx;
-    min-height: 1330rpx;
-    height: 100vh;
-    background: url(https://reader-wx.ai160.com/images/reader/sell/saleBg.jpg) no-repeat;
-    background-size: 100%;
-    background-color: #FDA118;
-
-    .rule {
-        display: flex;
-        align-items: center;
-        justify-content: center;
-        width: 100%;
-        position: absolute;
-        top: 1030rpx;
-        color: #4AC2FF;
-        font-size: 32rpx;
-
-        .blueR {
-            margin-left: 15rpx;
-            width: 20rpx;
-            height: 30rpx;
-        }
-    }
-
-    .tips {
-        position: absolute;
-        top: 1140rpx;
-        width: 100%;
-        text-align: center;
-        color: white;
-        font-size: 32rpx;
-    }
-
-    .bottom {
-        position: absolute;
-        width: 100%;
-        padding: 26rpx 0;
-        bottom: 0;
-        left: 0;
-        background-color: white;
-
-        .btn {
-            margin: 0 auto;
-            width: 466rpx;
-            padding: 14rpx 0;
-            margin-bottom: env(safe-area-inset-bottom) !important;
-            background: linear-gradient(180deg, #6EC8FF 0%, #31BDFE 100%);
-            border-radius: 39rpx;
-            color: white;
-        }
-    }
-}

+ 0 - 9
salesperson/pages/sale/index.wxml

@@ -1,9 +0,0 @@
-<view class="container">
-    <view class="rule" bindtap="jump" data-url="commission">佣金规则
-        <image src="../../image/blueR.png" class='blueR' />
-    </view>
-    <view class="tips">注册推荐官,请填写个人信息</view>
-    <view class="bottom">
-        <button class="resetBtn btn" bindtap="jump" data-url='fill'>填写个人信息</button>
-    </view>
-</view>

+ 0 - 49
salesperson/pages/sale/index.wxss

@@ -1,49 +0,0 @@
-.container {
-  position: relative;
-  width: 750rpx;
-  min-height: 1330rpx;
-  height: 100vh;
-  background: url(https://reader-wx.ai160.com/images/reader/sell/saleBg.jpg) no-repeat;
-  background-size: 100%;
-  background-color: #FDA118;
-}
-.container .rule {
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  width: 100%;
-  position: absolute;
-  top: 1030rpx;
-  color: #4AC2FF;
-  font-size: 32rpx;
-}
-.container .rule .blueR {
-  margin-left: 15rpx;
-  width: 20rpx;
-  height: 30rpx;
-}
-.container .tips {
-  position: absolute;
-  top: 1140rpx;
-  width: 100%;
-  text-align: center;
-  color: white;
-  font-size: 32rpx;
-}
-.container .bottom {
-  position: absolute;
-  width: 100%;
-  padding: 26rpx 0;
-  bottom: 0;
-  left: 0;
-  background-color: white;
-}
-.container .bottom .btn {
-  margin: 0 auto;
-  width: 466rpx;
-  padding: 14rpx 0;
-  margin-bottom: env(safe-area-inset-bottom) !important;
-  background: linear-gradient(180deg, #6EC8FF 0%, #31BDFE 100%);
-  border-radius: 39rpx;
-  color: white;
-}

+ 0 - 64
salesperson/pages/saleOffice/index.js

@@ -1,64 +0,0 @@
-import {
-    getMyInfo,
-} from '~/api/user'
-import event from '~/mixins/event'
-import {
-    getSaleData
-} from '~/api/sale'
-import {
-    createStoreBindings
-} from 'mobx-miniprogram-bindings'
-import {
-    store
-} from '~/store/index'
-Page({
-    behaviors: [event],
-    data: {
-        allIncome: {}
-    },
-    async onLoad() {
-        // 手工绑定 
-        this.storeBindings = createStoreBindings(this, {
-            store,
-            fields: {
-                userInfo: 'userInfo',
-            }
-        })
-    },
-    async onShow() {
-        let allIncome = await getSaleData()
-        this.setData({
-            allIncome
-        })
-    },
-    jump({
-        currentTarget
-    }) {
-        wx.navigateTo({
-            url: `/salesperson/pages/${currentTarget.dataset.url}/index`,
-        })
-    },
-    openInvite() {
-        this.selectComponent("#InvitePop").openInvite()
-    },
-    onShareAppMessage() {
-        // #if MP
-        return {
-            title: '这个小程序太赞了!孩子朗读能力蹭蹭上涨,推荐你试试!',
-            path: `/pages/index/index?uid=${wx.getStorageSync('uid')}`,
-            imageUrl: 'http://reader-wx.ai160.com/images/reader/v3/375-300.png',
-        }
-        // #elif ANDROID
-        return {
-            title: '这个小程序太赞了!孩子朗读能力蹭蹭上涨,推荐你试试!',
-            userName: 'gh_50f61361ad1d',
-            path: `/pages/index/index?uid=${wx.getStorageSync('uid')}`,
-            imagePath: '/static/375-300-1.jpg',
-            webpageUrl: 'http://www.efunbox.cn',
-            withShareTicket: true,
-            miniprogramType: 1,
-            scene: 0,
-        }
-        // #endif
-    }
-})

+ 0 - 7
salesperson/pages/saleOffice/index.json

@@ -1,7 +0,0 @@
-{
-    "usingComponents": {
-        "InvitePop": "/components/invite/index"
-    },
-    "disableScroll": true,
-    "navigationBarTitleText": "推荐中心"
-}

+ 0 - 173
salesperson/pages/saleOffice/index.less

@@ -1,173 +0,0 @@
-.container {
-    position: relative;
-    height: 100vh;
-    padding: 38rpx 24rpx;
-    background: url(https://reader-wx.ai160.com/images/reader/sell/bg1.jpg)no-repeat;
-    background-size: contain;
-
-    .userBox {
-        display: flex;
-        align-items: flex-start;
-        justify-content: space-between;
-
-        .left {
-            display: flex;
-            align-items: center;
-
-            .avatar {
-                width: 106rpx;
-                height: 106rpx;
-                border-radius: 50%;
-                border: 1rpx solid white;
-            }
-
-            .identity {
-                margin-left: 24rpx;
-
-                .nickName {
-                    margin: 6rpx 0 20rpx;
-                    font-size: 30rpx;
-                }
-
-                .tag {
-                    padding: 5rpx 20rpx;
-                    border-radius: 20rpx;
-                    font-size: 22rpx;
-                    font-weight: bold;
-                    color: #FC6E1C;
-                    background: #FFFFFF;
-                }
-            }
-        }
-
-        .right {
-            padding: 8rpx 20rpx;
-            margin-right: -24rpx;
-            border-radius: 26rpx 0rpx 0rpx 26rpx;
-            font-size: 28rpx;
-            color: #FFFFFF;
-            background: #F19511;
-        }
-    }
-
-    .statistics {
-        margin: 44rpx 0 30rpx;
-        padding: 25rpx 41rpx;
-        background: #FFFFFF;
-        box-shadow: 0rpx 2rpx 14rpx 0rpx rgba(0, 0, 0, 0.02);
-        border-radius: 20rpx;
-
-        .above {
-            display: flex;
-            align-items: center;
-            justify-content: space-between;
-            padding-bottom: 18rpx;
-            border-bottom: 1rpx solid #EEEEEE;
-
-            .left {
-                .label {
-                    font-size:30rpx;
-                    font-weight: bold;
-                    color: #000000;
-                }
-
-                .money {
-                    margin-top: 12rpx;
-                    font-size: 43rpx;
-                    font-weight: 600;
-                    color: #FF8200;
-                }
-            }
-
-            .withdrawal {
-                padding: 8rpx 20rpx 8rpx 24rpx;
-                background: #FFA343;
-                border-radius: 28rpx;
-                color: white;
-
-                .rbtn {
-                    margin-left: 2rpx;
-                    width: 16rpx;
-                    height: 22rpx;
-                }
-            }
-        }
-
-        .below {
-            padding-top: 26rpx;
-            display: flex;
-            justify-content: space-between;
-
-            .box {
-                font-size: 28rpx;
-
-                .label {
-                    color: #333;
-                    font-size: 30rpx;
-                }
-
-                .money {
-                    font-size: 30rpx;
-                    margin-top: 18rpx;
-                    font-weight: bold;
-                }
-            }
-        }
-    }
-
-    .boxs {
-        display: flex;
-        align-items: flex-start;
-        justify-content: space-between;
-
-        .box {
-            width: 220rpx;
-            height: 172rpx;
-            display: flex;
-            flex-direction: column;
-            justify-content: center;
-            align-items: center;
-            background: #FFFFFF;
-            border-radius: 10rpx;
-
-            .b1 {
-                width: 74rpx;
-                height: 74rpx;
-            }
-
-            .b2 {
-                width: 62rpx;
-                height: 70rpx;
-            }
-
-            .b3 {
-                width: 70rpx;
-                height: 63rpx;
-            }
-
-            .name {
-                margin-top: 12rpx;
-                font-size: 30rpx;
-            }
-        }
-    }
-
-    .bottom {
-        position: absolute;
-        width: 100%;
-        padding: 26rpx 0;
-        bottom: 0;
-        left: 0;
-        background-color: white;
-
-        .btn {
-            margin: 0 auto;
-            width: 466rpx;
-            padding: 14rpx 0;
-            margin-bottom: env(safe-area-inset-bottom) !important;
-            background: linear-gradient(180deg, #6EC8FF 0%, #31BDFE 100%);
-            border-radius: 39rpx;
-            color: white;
-        }
-    }
-}

+ 0 - 56
salesperson/pages/saleOffice/index.wxml

@@ -1,56 +0,0 @@
-<wxs src="../../../utils/filter.wxs" module="filters" />
-
-<view class="container">
-    <view class="userBox">
-        <view class="left">
-            <image class='avatar' src='{{ userInfo.avatar}}'></image>
-            <view class="identity">
-                <view class="nickName">{{ allIncome.name}}</view>
-                <view class="tag">{{allIncome.level}}</view>
-            </view>
-        </view>
-        <view class="right" bindtap="jump" data-url="commission">查看分销规则</view>
-    </view>
-    <view class="statistics">
-        <view class="above">
-            <view class="left">
-                <view class="label">可提现金额(元)</view>
-                <view class="money">{{filters.twoDecimal(allIncome.withdraw)}}</view>
-            </view>
-            <view class="withdrawal" bindtap="jump" data-url="withdrawal">
-                去提现
-                <image src="/static/rbtn.png" class="rbtn" />
-            </view>
-        </view>
-        <view class="below">
-            <view class="box" bindtap="jump" data-url="lxDetail">
-                <view class="label">今日收益(元)</view>
-                <view class="money">{{filters.twoDecimal(allIncome.todayIncome)}}</view>
-            </view>
-            <view class="box" bindtap="jump" data-url="lxDetail">
-                <view class="label rtext">累计收益(元)</view>
-                <view class="money rtext" style="padding-right:20rpx;">{{filters.twoDecimal(allIncome.income)}}</view>
-            </view>
-        </view>
-    </view>
-    <view class="boxs">
-        <view class="box" bindtap="jump" data-url="history">
-            <image src="../../image/b1.png" class="b1" />
-            <view class="name">邀请记录</view>
-        </view>
-        <view class="box" bindtap="jump" data-url="management">
-            <image src="../../image/b2.png" class="b2" />
-            <view class="name">订单管理</view>
-        </view>
-        <view class="box" bindtap="jump" data-url="lxDetail">
-            <image src="../../image/b3.png" class="b3" />
-            <view class="name">收益报表</view>
-        </view>
-    </view>
-    <view class="bottom">
-        <button class="resetBtn btn" bindtap="openInvite">
-            邀请用户
-        </button>
-    </view>
-    <InvitePop id="InvitePop"></InvitePop>
-</view>

+ 0 - 146
salesperson/pages/saleOffice/index.wxss

@@ -1,146 +0,0 @@
-.container {
-  position: relative;
-  height: 100vh;
-  padding: 38rpx 24rpx;
-  background: url(https://reader-wx.ai160.com/images/reader/sell/bg1.jpg) no-repeat;
-  background-size: contain;
-}
-.container .userBox {
-  display: flex;
-  align-items: flex-start;
-  justify-content: space-between;
-}
-.container .userBox .left {
-  display: flex;
-  align-items: center;
-}
-.container .userBox .left .avatar {
-  width: 106rpx;
-  height: 106rpx;
-  border-radius: 50%;
-  border: 1rpx solid white;
-}
-.container .userBox .left .identity {
-  margin-left: 24rpx;
-}
-.container .userBox .left .identity .nickName {
-  margin: 6rpx 0 20rpx;
-  font-size: 30rpx;
-}
-.container .userBox .left .identity .tag {
-  padding: 5rpx 20rpx;
-  border-radius: 20rpx;
-  font-size: 22rpx;
-  font-weight: bold;
-  color: #FC6E1C;
-  background: #FFFFFF;
-}
-.container .userBox .right {
-  padding: 8rpx 20rpx;
-  margin-right: -24rpx;
-  border-radius: 26rpx 0rpx 0rpx 26rpx;
-  font-size: 28rpx;
-  color: #FFFFFF;
-  background: #F19511;
-}
-.container .statistics {
-  margin: 44rpx 0 30rpx;
-  padding: 25rpx 41rpx;
-  background: #FFFFFF;
-  box-shadow: 0rpx 2rpx 14rpx 0rpx rgba(0, 0, 0, 0.02);
-  border-radius: 20rpx;
-}
-.container .statistics .above {
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  padding-bottom: 18rpx;
-  border-bottom: 1rpx solid #EEEEEE;
-}
-.container .statistics .above .left .label {
-  font-size: 30rpx;
-  font-weight: bold;
-  color: #000000;
-}
-.container .statistics .above .left .money {
-  margin-top: 12rpx;
-  font-size: 43rpx;
-  font-weight: 600;
-  color: #FF8200;
-}
-.container .statistics .above .withdrawal {
-  padding: 8rpx 20rpx 8rpx 24rpx;
-  background: #FFA343;
-  border-radius: 28rpx;
-  color: white;
-}
-.container .statistics .above .withdrawal .rbtn {
-  margin-left: 2rpx;
-  width: 16rpx;
-  height: 22rpx;
-}
-.container .statistics .below {
-  padding-top: 26rpx;
-  display: flex;
-  justify-content: space-between;
-}
-.container .statistics .below .box {
-  font-size: 28rpx;
-}
-.container .statistics .below .box .label {
-  color: #333;
-  font-size: 30rpx;
-}
-.container .statistics .below .box .money {
-  font-size: 30rpx;
-  margin-top: 18rpx;
-  font-weight: bold;
-}
-.container .boxs {
-  display: flex;
-  align-items: flex-start;
-  justify-content: space-between;
-}
-.container .boxs .box {
-  width: 220rpx;
-  height: 172rpx;
-  display: flex;
-  flex-direction: column;
-  justify-content: center;
-  align-items: center;
-  background: #FFFFFF;
-  border-radius: 10rpx;
-}
-.container .boxs .box .b1 {
-  width: 74rpx;
-  height: 74rpx;
-}
-.container .boxs .box .b2 {
-  width: 62rpx;
-  height: 70rpx;
-}
-.container .boxs .box .b3 {
-  width: 70rpx;
-  height: 63rpx;
-}
-.container .boxs .box .name {
-  margin-top: 12rpx;
-  font-size: 30rpx;
-}
-.container .bottom {
-  position: absolute;
-  width: 100%;
-  padding: 26rpx 0;
-  bottom: 0;
-  left: 0;
-  background-color: white;
-}
-.container .bottom .btn {
-  margin: 0 auto;
-  width: 466rpx;
-  padding: 14rpx 0;
-  margin-bottom: env(safe-area-inset-bottom) !important;
-  background: linear-gradient(180deg, #6EC8FF 0%, #31BDFE 100%);
-  border-radius: 39rpx;
-  color: white;
-}

+ 0 - 90
salesperson/pages/withdrawal/index.js

@@ -1,90 +0,0 @@
-import {
-    getSaleData,
-    cashOut
-} from '~/api/sale'
-import event from '~/mixins/event'
-Page({
-    behaviors: [event],
-    data: {
-        allIncome: {},
-        money: '',
-        errMsg: '',
-        activationModal: false,
-    },
-    onShow() {
-        this.getIncome()
-    },
-    async getIncome() {
-        let allIncome = await getSaleData()
-        this.setData({
-            allIncome
-        })
-    },
-    async withdrawalFun() {
-        let money = this.data.money
-        if (isNaN(money)) {
-            this.setData({
-                errMsg: '金额不合法'
-            })
-            return
-        }
-        // 判断金额是否超过两位小数
-        var decimalCount = (money.split('.')[1] || '').length;
-        if (decimalCount > 2) {
-            this.setData({
-                errMsg: '最多两位小数'
-            })
-            return
-        }
-        if (money <= 0) {
-            this.setData({
-                errMsg: '请输入要提现的金额'
-            })
-            return
-        }
-        if (money > this.data.allIncome.withdraw / 100) {
-            this.setData({
-                errMsg: '可提现金额不足'
-            })
-            return
-        }
-        if (money > 500 || money < 50) {
-            this.setData({
-                errMsg: '提现金额需≥50元,单笔最高可提500元'
-            })
-            return
-        }
-        let res = await cashOut({
-            amount: money * 100
-        })
-        this.setData({
-            activationModal: true,
-        })
-        this.getIncome()
-    },
-    clearMoney() {
-        this.setData({
-            money: "",
-            errMsg: ""
-        });
-    },
-    setMoney({
-        detail
-    }) {
-        this.setData({
-            money: detail.value
-        });
-    },
-    jump({
-        currentTarget
-    }) {
-        wx.navigateTo({
-            url: `/salesperson/pages/${currentTarget.dataset.url}/index`,
-        })
-    },
-    closeModal() {
-        this.setData({
-            activationModal: false
-        })
-    },
-})

+ 0 - 4
salesperson/pages/withdrawal/index.json

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

+ 0 - 163
salesperson/pages/withdrawal/index.less

@@ -1,163 +0,0 @@
-.withdrawal {
-    width: 721rpx;
-    margin: 0 auto;
-    padding: 70rpx 74rpx 22rpx;
-    display: flex;
-    flex-direction: column;
-    align-items: center;
-    box-sizing: border-box;
-    background: #FFFFFF;
-    border-radius: 20rpx;
-
-
-    .mimg {
-        margin-bottom: 30rpx;
-        width: 159rpx;
-        height: 71rpx;
-    }
-
-    .formBox {
-        width: 465rpx;
-        text-align: left;
-
-        .title {
-            font-size: 30rpx;
-        }
-
-        .inputBox {
-            display: flex;
-            align-items: center;
-            justify-content: space-between;
-            padding-bottom: 6rpx;
-            border-bottom: 1rpx solid #97979791;
-
-            .icon {
-                font-size: 36rpx;
-                font-weight: bold;
-            }
-
-            .input {
-                margin-left: 10rpx;
-                flex: 1;
-            }
-
-            .close {
-                padding: 0 10rpx 0 20rpx;
-                font-size: 46rpx;
-                color: #979797;
-            }
-        }
-
-        .warning {
-            margin-top: 10rpx;
-            font-size: 26rpx;
-            color: #FF0000;
-        }
-
-        .amount {
-            margin: 30rpx 0 18rpx;
-            font-size: 30rpx;
-            font-weight: bold
-        }
-
-        .tips {
-            font-size: 26rpx;
-            color: #B2B2B2;
-        }
-    }
-
-    .submit {
-        margin-top: 90rpx;
-        padding: 15rpx 240rpx;
-        border-radius: 40rpx;
-        font-size: 36rpx;
-        letter-spacing: 4rpx;
-        color: #FFFFFF;
-        background: linear-gradient(180deg, #6EC8FF 0%, #31BDFE 100%);
-    }
-
-    .tips2 {
-        margin-top: 16rpx;
-        font-size: 26rpx;
-    }
-
-
-}
-
-.detail {
-    margin: 34rpx auto;
-    width: 710rpx;
-    box-sizing: border-box;
-    padding: 28rpx 20rpx;
-    display: flex;
-    align-items: center;
-    justify-content: space-between;
-    background: #FFFFFF;
-    border-radius: 20rpx;
-
-    .label {
-        font-size: 30rpx;
-    }
-
-    .black {
-        margin-right: 20rpx;
-        width: 16rpx;
-        height: 30rpx;
-        opacity: 0.6;
-    }
-}
-
-.activationModal {
-    position: fixed;
-    z-index: 2;
-    left: 0rpx;
-    top: 0rpx;
-    width: 100vw;
-    height: 100vh;
-    background: rgba(0, 0, 0, 0.7);
-
-    .box {
-        position: absolute;
-        left: 0;
-        right: 0;
-        top: 30%;
-        margin: auto;
-        width: 496rpx;
-        height: 365rpx;
-        background-color: white;
-        border-radius: 20rpx;
-        text-align: center;
-
-
-        .sLcon {
-            margin-top: 34rpx;
-            width: 100rpx;
-            height: 100rpx;
-        }
-
-        .tips1 {
-            margin: 36rpx 0rpx 24rpx;
-            color: #131313;
-            font-weight: bold;
-            font-size: 34rpx;
-        }
-
-        .tips2 {
-            font-size: 30rpx;
-            color: #12C962;
-        }
-
-    }
-
-    .close {
-        position: absolute;
-        padding: 40rpx;
-        width: 54rpx;
-        height: 54rpx;
-        left: 0;
-        right: 0;
-        bottom: -140rpx;
-        margin: auto;
-    }
-
-}

+ 0 - 40
salesperson/pages/withdrawal/index.wxml

@@ -1,40 +0,0 @@
-<wxs src="../../../utils/filter.wxs" module="filters" />
-
-<view class="container">
-    <view class="withdrawal">
-        <image src="../../image/money.png" class="mimg" />
-        <view class="formBox">
-            <view class="title">提现金额</view>
-            <view class="inputBox">
-                <view class="icon">¥</view>
-                <input class="input" type="digit" placeholder="可提现金额{{filters.twoDecimal(allIncome.withdraw)}}元"
-                    maxlength="7" value="{{money}}" bindinput="setMoney" />
-                <view class="close" bindtap="clearMoney">×</view>
-            </view>
-            <view class="warning" wx:if="{{errMsg!=''}}">{{errMsg}}</view>
-            <view class="amount">可提现金额 ¥{{filters.twoDecimal(allIncome.withdraw)}}</view>
-            <view class="tips">提现金额需≥50元,单笔最高提现500元</view>
-            <view class="tips">单日最高提现20,000元</view>
-        </view>
-        <button class="resetBtn submit" bindtap="withdrawalFun">
-            提现
-        </button>
-        <view class="tips2">
-            预计24小时内转到微信钱包
-        </view>
-    </view>
-    <view class="detail" bindtap="jump" data-url="lxDetail">
-        <view class="label">
-            收支明细
-        </view>
-        <image class='black' src='/static/black.png'></image>
-    </view>
-    <view class="activationModal" wx:if="{{activationModal}}">
-        <view class="box zoomIn">
-            <image src="/static/lan.png" class="sLcon" />
-            <view class="tips1">已发起提现</view>
-            <view class="tips2">预计24小时内到账</view>
-            <image src="/static/lollipop.png" class="close" catchtap="closeModal" />
-        </view>
-    </view>
-</view>

+ 0 - 136
salesperson/pages/withdrawal/index.wxss

@@ -1,136 +0,0 @@
-.withdrawal {
-  width: 721rpx;
-  margin: 0 auto;
-  padding: 70rpx 74rpx 22rpx;
-  display: flex;
-  flex-direction: column;
-  align-items: center;
-  box-sizing: border-box;
-  background: #FFFFFF;
-  border-radius: 20rpx;
-}
-.withdrawal .mimg {
-  margin-bottom: 30rpx;
-  width: 159rpx;
-  height: 71rpx;
-}
-.withdrawal .formBox {
-  width: 465rpx;
-  text-align: left;
-}
-.withdrawal .formBox .title {
-  font-size: 30rpx;
-}
-.withdrawal .formBox .inputBox {
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  padding-bottom: 6rpx;
-  border-bottom: 1rpx solid #97979791;
-}
-.withdrawal .formBox .inputBox .icon {
-  font-size: 36rpx;
-  font-weight: bold;
-}
-.withdrawal .formBox .inputBox .input {
-  margin-left: 10rpx;
-  flex: 1;
-}
-.withdrawal .formBox .inputBox .close {
-  padding: 0 10rpx 0 20rpx;
-  font-size: 46rpx;
-  color: #979797;
-}
-.withdrawal .formBox .warning {
-  margin-top: 10rpx;
-  font-size: 26rpx;
-  color: #FF0000;
-}
-.withdrawal .formBox .amount {
-  margin: 30rpx 0 18rpx;
-  font-size: 30rpx;
-  font-weight: bold;
-}
-.withdrawal .formBox .tips {
-  font-size: 26rpx;
-  color: #B2B2B2;
-}
-.withdrawal .submit {
-  margin-top: 90rpx;
-  padding: 15rpx 240rpx;
-  border-radius: 40rpx;
-  font-size: 36rpx;
-  letter-spacing: 4rpx;
-  color: #FFFFFF;
-  background: linear-gradient(180deg, #6EC8FF 0%, #31BDFE 100%);
-}
-.withdrawal .tips2 {
-  margin-top: 16rpx;
-  font-size: 26rpx;
-}
-.detail {
-  margin: 34rpx auto;
-  width: 710rpx;
-  box-sizing: border-box;
-  padding: 28rpx 20rpx;
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  background: #FFFFFF;
-  border-radius: 20rpx;
-}
-.detail .label {
-  font-size: 30rpx;
-}
-.detail .black {
-  margin-right: 20rpx;
-  width: 16rpx;
-  height: 30rpx;
-  opacity: 0.6;
-}
-.activationModal {
-  position: fixed;
-  z-index: 2;
-  left: 0rpx;
-  top: 0rpx;
-  width: 100vw;
-  height: 100vh;
-  background: rgba(0, 0, 0, 0.7);
-}
-.activationModal .box {
-  position: absolute;
-  left: 0;
-  right: 0;
-  top: 30%;
-  margin: auto;
-  width: 496rpx;
-  height: 365rpx;
-  background-color: white;
-  border-radius: 20rpx;
-  text-align: center;
-}
-.activationModal .box .sLcon {
-  margin-top: 34rpx;
-  width: 100rpx;
-  height: 100rpx;
-}
-.activationModal .box .tips1 {
-  margin: 36rpx 0rpx 24rpx;
-  color: #131313;
-  font-weight: bold;
-  font-size: 34rpx;
-}
-.activationModal .box .tips2 {
-  font-size: 30rpx;
-  color: #12C962;
-}
-.activationModal .close {
-  position: absolute;
-  padding: 40rpx;
-  width: 54rpx;
-  height: 54rpx;
-  left: 0;
-  right: 0;
-  bottom: -140rpx;
-  margin: auto;
-}