aXin-0810 9 місяців тому
батько
коміт
8accc995b6

+ 127 - 115
src/packageMine/pages/salesProfit/index.vue

@@ -4,32 +4,37 @@
     :isScroll="true"
     :refresherTriggered="refresherTriggered"
     @refresherrefresh="refresherrefresh"
-    @scrolltolower="scrolltolower">
+    @scrolltolower="scrolltolower"
+  >
     <template slot="header">
       <view class="top-container">
         <view class="left"></view>
-        <view class="total">
-          <view class="text">可提现(元)</view>
-          <view class="num">{{count.ktx | priceFilter}}</view>
+        <view class="total" style="box-sizing: border-box; padding: 20rpx 0">
+          <view class="text">收益总金额(元)</view>
+          <view class="num">{{ count.zsy | priceFilter }}</view>
         </view>
         <view class="right">
-          <view class="btn btn1" @tap="navToPage(`/packageMine/pages/salesProfit/withdraw/list`)">提现明细</view>
-          <view class="btn btn2" @tap="navToPage(`/packageMine/pages/salesProfit/withdraw/index`)">提现</view>
+          <!-- <view class="btn btn1" @tap="navToPage(`/packageMine/pages/salesProfit/withdraw/list`)">提现明细</view>
+          <view class="btn btn2" @tap="navToPage(`/packageMine/pages/salesProfit/withdraw/index`)">提现</view> -->
         </view>
       </view>
       <view class="stats-container">
-        <view class="item" @tap="navToPage(`/packageMine/pages/salesProfit/orderList?tab=ING`)">
+        <!-- <view class="item" @tap="navToPage(`/packageMine/pages/salesProfit/orderList?tab=ING`)">
           <view class="text">提现中(元)<text class="iconfont icon-jinru"></text></view>
-          <view class="num">{{count.txz | priceFilter}}</view>
-        </view>
+          <view class="num">{{ count.txz | priceFilter }}</view>
+        </view> -->
         <view class="item" @tap="navToPage(`/packageMine/pages/salesProfit/orderList?tab=WAIT`)">
           <view class="text">待结算(元)<text class="iconfont icon-jinru"></text></view>
-          <view class="num">{{count.djs | priceFilter}}</view>
+          <view class="num">{{ count.djs | priceFilter }}</view>
         </view>
         <view class="item" @tap="navToPage(`/packageMine/pages/salesProfit/orderList?tab=OVER`)">
-          <view class="text">已提现(元)<text class="iconfont icon-jinru"></text></view>
-          <view class="num">{{count.ytx | priceFilter}}</view>
+          <view class="text">已结算(元)<text class="iconfont icon-jinru"></text></view>
+          <view class="num">{{ count.yjs | priceFilter }}</view>
         </view>
+        <!-- <view class="item" @tap="navToPage(`/packageMine/pages/salesProfit/orderList?tab=OVER`)">
+          <view class="text">已提现(元)<text class="iconfont icon-jinru"></text></view>
+          <view class="num">{{ count.ytx | priceFilter }}</view>
+        </view> -->
       </view>
     </template>
 
@@ -41,12 +46,12 @@
       <view class="item" v-for="(item, index) in dataList" :key="index">
         <view class="row">
           <view class="label">订单单号</view>
-          <view class="value">{{item.orderId}}</view>
-          <view class="status blue">{{item.status | statusFilter}}</view>
+          <view class="value">{{ item.orderId }}</view>
+          <view class="status blue">{{ item.status | statusFilter }}</view>
         </view>
         <view class="row">
           <view class="label">创建时间</view>
-          <view class="value">{{item.createTime}}</view>
+          <view class="value">{{ item.createTime }}</view>
         </view>
         <!-- <view class="row">
           <view class="label">所属网点</view>
@@ -54,16 +59,20 @@
         </view> -->
         <view class="row">
           <view class="label">客户电话</view>
-          <view class="value">{{item.userMobile}}</view>
+          <view class="value">{{ item.userMobile }}</view>
         </view>
         <view class="row">
           <view class="label">订单金额</view>
-          <view class="value">¥{{item.totalAmount | priceFilter}}</view>
+          <view class="value">¥{{ item.totalAmount | priceFilter }}</view>
         </view>
         <view class="row">
           <view class="label">销售利润</view>
-          <view class="value" :class="(item.workerAmount > 0 || item.status == 'REFUND') ? 'blue':'orange'">¥{{item.workerAmount | priceFilter}}</view>
-          <view class="status" :class="(item.workerAmount > 0 || item.status == 'REFUND') ? 'blue':'orange'">{{(item.workerAmount > 0 || item.status == 'REFUND') ? '销售':'退款'}}</view>
+          <view class="value" :class="item.workerAmount > 0 || item.status == 'REFUND' ? 'blue' : 'orange'"
+            >¥{{ item.workerAmount | priceFilter }}</view
+          >
+          <view class="status" :class="item.workerAmount > 0 || item.status == 'REFUND' ? 'blue' : 'orange'">{{
+            item.workerAmount > 0 || item.status == 'REFUND' ? '销售' : '退款'
+          }}</view>
         </view>
       </view>
     </view>
@@ -72,119 +81,122 @@
   <!-- #endif -->
 
   <!-- #ifndef H5 -->
-  <web-view :src="webViewHref(`/packageMine/pages/salesProfit/index`, pam, crossPagePam)" @message="crossPage.$listener"></web-view>
+  <web-view
+    :src="webViewHref(`/packageMine/pages/salesProfit/index`, pam, crossPagePam)"
+    @message="crossPage.$listener"
+  ></web-view>
   <!-- #endif -->
 </template>
 
 <script>
-  // #ifdef H5
-  export default {
-    filters: {
-      statusFilter(val) {
-        const MAP = {
-          WAIT: '待结算',
-          WAIT_ING: '可提现',
-          ING: '提现中',
-          OVER: '已提现',
-        }
-        return MAP[val];
+// #ifdef H5
+export default {
+  filters: {
+    statusFilter(val) {
+      const MAP = {
+        WAIT: '待结算',
+        WAIT_ING: '可提现',
+        ING: '提现中',
+        OVER: '已结算',
       }
-    },
+      return MAP[val];
+    }
+  },
 
-    data() {
-      return {
-        refresherTriggered: false,
-        count: {},
-				dataList: [], // 收益列表
-				pageNum: 1,
-        loadStatus: 0,
-        refresherTriggered: false,
-      }
-    },
+  data() {
+    return {
+      refresherTriggered: false,
+      count: {},
+		dataList: [], // 收益列表
+		pageNum: 1,
+      loadStatus: 0,
+      refresherTriggered: false,
+    }
+  },
 
-    onLoad() {
+  onLoad() {
+    this.getCount();
+	this.getList();
+
+    this.crossPage.$on('refreshSalesProfitIndex', () => {
       this.getCount();
-			this.getList();
+      this.refreshList();
+    });
+  },
 
-      this.crossPage.$on('refreshSalesProfitIndex', () => {
-        this.getCount();
-        this.refreshList();
-      });
-    },
+  onUnload() {
+    this.crossPage.$off('refreshSalesProfitIndex');
+  },
 
-    onUnload() {
-      this.crossPage.$off('refreshSalesProfitIndex');
+  methods: {
+    getCount() {
+      this.$api.post('/withdrawal/amount/count')
+      .then(res => {
+        this.count = res.data || {};
+      })
     },
 
-    methods: {
-      getCount() {
-        this.$api.post('/withdrawal/amount/count')
-        .then(res => {
-          this.count = res.data || {};
-        })
-      },
-
-      // 获取列表
-      getList() {
-      	this.$api.post('/settlementOrder/list/pageV2', {
-          pageNum: this.pageNum,
-          pageSize: 10,
-      	}).then(res => {
-      		this.loadStatus = 0;
-      		let list = res.data.records;
-      		if (list.length < 10) {
-      		  this.loadStatus = 2;
-      		}
-      		this.dataList = this.dataList.concat(list);
-      	}).catch(() => {
-          this.loadStatus = 2;
-        }).finally(res => {
-          this.refresherTriggered = false;
-        })
-      },
-
-      // 滚动到底部
-      scrolltolower(e) {
-        if (this.loadStatus === 0) {
-          this.pageNum++;
-          this.getList();
-        }
-      },
-
-      // 触发下拉刷新
-      refresherrefresh(e) {
-        this.refresherTriggered = true;
-        this.getCount();
-        this.refreshList();
-      },
+    // 获取列表
+    getList() {
+    	this.$api.post('/settlementOrder/list/pageV2', {
+        pageNum: this.pageNum,
+        pageSize: 10,
+    	}).then(res => {
+    		this.loadStatus = 0;
+    		let list = res.data.records;
+    		if (list.length < 10) {
+    		  this.loadStatus = 2;
+    		}
+    		this.dataList = this.dataList.concat(list);
+    	}).catch(() => {
+        this.loadStatus = 2;
+      }).finally(res => {
+        this.refresherTriggered = false;
+      })
+    },
 
-      refreshList() {
-        this.dataList = [];
-        this.pageNum = 1;
+    // 滚动到底部
+    scrolltolower(e) {
+      if (this.loadStatus === 0) {
+        this.pageNum++;
         this.getList();
-      },
+      }
+    },
+
+    // 触发下拉刷新
+    refresherrefresh(e) {
+      this.refresherTriggered = true;
+      this.getCount();
+      this.refreshList();
+    },
 
-      navToPage(url) {
-        this.$navToPage({
-          url
-        })
-      },
+    refreshList() {
+      this.dataList = [];
+      this.pageNum = 1;
+      this.getList();
     },
-  }
 
-  // #endif
-  // #ifndef H5
-  export default {
-    data() {
-      return {
-        pam: {},
-      }
+    navToPage(url) {
+      this.$navToPage({
+        url
+      })
     },
-    onLoad(pam) {
-      this.pam = pam;
+  },
+}
+
+// #endif
+// #ifndef H5
+export default {
+  data() {
+    return {
+      pam: {},
     }
+  },
+  onLoad(pam) {
+    this.pam = pam;
   }
-  // #endif
+}
+// #endif
 </script>
 
 <style lang="scss" scoped>
@@ -206,7 +218,7 @@
       font-size: 28rpx;
     }
     .btn1 {
-      background: rgba($color: #ffffff, $alpha: .2);
+      background: rgba($color: #ffffff, $alpha: 0.2);
       color: #ffffff;
     }
     .btn2 {
@@ -219,7 +231,7 @@
     text-align: center;
     .text {
       font-size: 24rpx;
-      color: rgba($color: #ffffff, $alpha: .7);
+      color: rgba($color: #ffffff, $alpha: 0.7);
     }
     .num {
       font-size: 40rpx;
@@ -238,7 +250,7 @@
     text-align: center;
     .text {
       font-size: 24rpx;
-      color: rgba($color: #ffffff, $alpha: .7);
+      color: rgba($color: #ffffff, $alpha: 0.7);
       .iconfont {
         font-size: 24rpx;
         margin-left: 8rpx;

+ 146 - 141
src/packageMine/pages/salesProfit/orderList.vue

@@ -5,19 +5,20 @@
       :isScroll="true"
       :refresherTriggered="refresherTriggered"
       @refresherrefresh="refresherrefresh"
-      @scrolltolower="scrolltolower">
+      @scrolltolower="scrolltolower"
+    >
       <template slot="header">
         <view class="date-container" @tap="isShowDatePicker = true">
           <view class="box">
             <u-icon name="calendar" size="22"></u-icon>
-            <view class="value" v-if="startDate">{{startDate}}</view>
+            <view class="value" v-if="startDate">{{ startDate }}</view>
             <view class="placeholder" v-else>开始时间</view>
             <view class="text">至</view>
-            <view class="value" v-if="endDate">{{endDate}}</view>
+            <view class="value" v-if="endDate">{{ endDate }}</view>
             <view class="placeholder" v-else>结束时间</view>
           </view>
         </view>
-        <view class="tab-container">
+        <view class="tab-container" v-if="tabCurrent > -1">
           <u-tabs
             :scrollable="false"
             :list="tabList"
@@ -30,7 +31,8 @@
             :inactiveStyle="{
               color: '#666666'
             }"
-            itemStyle="padding-left: 0; padding-right: 0; height: 88rpx;">
+            itemStyle="padding-left: 0; padding-right: 0; height: 88rpx;"
+          >
           </u-tabs>
         </view>
       </template>
@@ -39,186 +41,189 @@
         <view class="item" v-for="(item, index) in dataList" :key="index">
           <view class="row">
             <view class="label">订单单号</view>
-            <view class="value">{{item.orderId}}</view>
-            <view class="status blue">{{item.status | statusFilter}}</view>
+            <view class="value">{{ item.orderId }}</view>
+            <view class="status blue">{{ item.status | statusFilter }}</view>
           </view>
-          <!-- <view class="row">
-            <view class="label">所属网点</view>
-            <view class="value">{{item.websitName}}</view>
-          </view> -->
           <view class="row">
             <view class="label">客户电话</view>
-            <view class="value">{{item.userMobile}}</view>
+            <view class="value">{{ item.userMobile }}</view>
           </view>
           <view class="row">
             <view class="label">订单金额</view>
-            <view class="value">¥{{item.totalAmount | priceFilter}}</view>
+            <view class="value">¥{{ item.totalAmount | priceFilter }}</view>
           </view>
           <view class="row">
-            <view class="label">销售利润</view>
-            <view class="value" :class="(item.workerAmount > 0 || item.status == 'REFUND') ? 'blue':'orange'">¥{{item.workerAmount | priceFilter}}</view>
-            <view class="status" :class="(item.workerAmount > 0 || item.status == 'REFUND') ? 'blue':'orange'">{{(item.workerAmount > 0 || item.status == 'REFUND') ? '销售':'退款'}}</view>
+            <view class="label">分账金额</view>
+            <view class="value blue">¥{{ item.workerAmount | priceFilter }}</view>
+            <view class="status blue">{{ { M: '辅材', P: '配件' }[item.goodsTyp] }}</view>
           </view>
         </view>
       </view>
       <Loading :loadStatus="loadStatus" :dataList="dataList" />
-
     </zj-page-layout>
 
     <zj-dialog-dateRangePicker v-model="isShowDatePicker" @confirm="confirmDate"></zj-dialog-dateRangePicker>
-
   </view>
   <!-- #endif -->
 
   <!-- #ifndef H5 -->
-  <web-view :src="webViewHref(`/packageMine/pages/salesProfit/orderList`, pam, crossPagePam)" @message="crossPage.$listener"></web-view>
+  <web-view
+    :src="webViewHref(`/packageMine/pages/salesProfit/orderList`, pam, crossPagePam)"
+    @message="crossPage.$listener"
+  ></web-view>
   <!-- #endif -->
 </template>
 
 <script>
-  // #ifdef H5
-	import zjDialogDateRangePicker from '@/components/zj-dialog/zj-dialog-dateRangePicker.vue';
+ // #ifdef H5
+import zjDialogDateRangePicker from '@/components/zj-dialog/zj-dialog-dateRangePicker.vue';
 
-  export default {
-		components: {
-			zjDialogDateRangePicker,
-		},
+ export default {
+	components: {
+		zjDialogDateRangePicker,
+	},
 
-    filters: {
-      statusFilter(val) {
-        const MAP = {
-          WAIT: '待结算',
-          WAIT_ING: '可提现',
-          ING: '提现中',
-          OVER: '已提现',
-        }
-        return MAP[val];
-      },
-    },
+   filters: {
+     statusFilter(val) {
+       const MAP = {
+         WAIT: '待结算',
+        //  WAIT_ING: '可提现',
+        //  ING: '提现中',
+         OVER: '已结算',
+         YC: '异常结算',
+         OK : '已结算',
+         LINE: '线下结算',
+       }
+       return MAP[val];
+     },
+   },
 
-    data() {
-      return {
-				dataList: [],
-				pageNum: 1,
-				loadStatus: 0,
-        refresherTriggered: false,
-        tabList: [
-          {name: '待结算', value: 'WAIT'},
-          {name: '可提现', value: 'WAIT_ING'},
-          {name: '提现中', value: 'ING'},
-          {name: '已提现', value: 'OVER'},
-        ],
-        status: '',
-        isShowDatePicker: false,
-        startDate: '',
-        endDate: '',
-      }
-    },
+   data() {
+     return {
+			dataList: [],
+			pageNum: 1,
+			loadStatus: 0,
+       refresherTriggered: false,
+       tabList: [
+         {name: '待结算', value: 'WAIT'},
+        //  {name: '可提现', value: 'WAIT_ING'},
+        //  {name: '提现中', value: 'ING'},
+         {name: '已结算', value: 'OVER'},
+       ],
+       status: '',
+       isShowDatePicker: false,
+       startDate: '',
+       endDate: '',
+     }
+   },
 
-    computed:{
-    	tabCurrent() {
-    		return this.tabList.map(item => item.value).indexOf(this.status) || 0;
-    	}
-    },
+   computed:{
+   	tabCurrent() {
+   		return this.tabList.map(item => item.value).indexOf(this.status);
+   	}
+   },
 
-    onLoad({tab}) {
-      this.status = tab || 'WAIT';
-      this.getList();
-    },
+   onLoad({tab}) {
+     this.status = tab;
+     this.getList();
+   },
 
-    methods: {
-      getList() {
-      	this.loadStatus = 1;
-      	this.$api.post('/settlementOrder/list/pageV2', {
-      	  pageNum: this.pageNum,
-      	  pageSize: 10,
-          startTime: this.startDate ? this.startDate + ' 00:00:00' : '',
-          endTime: this.endDate ? this.endDate + ' 23:59:59' : '',
-          status: this.status,
-      	}).then(res => {
-      		this.loadStatus = 0;
-      		let list = res.data.records;
-      		if (list.length < 10) {
-      		  this.loadStatus = 2;
-      		}
-      		this.dataList = this.dataList.concat(list);
-      	}).catch(() => {
-      	  this.loadStatus = 2;
-      	}).finally(res => {
-      	  this.refresherTriggered = false;
-      	})
-      },
+   methods: {
+     getList() {
+     	this.loadStatus = 1;
+     	this.$api.post('/settlementOrder/list/pageV2', {
+     	  pageNum: this.pageNum,
+     	  pageSize: 10,
+         startTime: this.startDate ? this.startDate + ' 00:00:00' : '',
+         endTime: this.endDate ? this.endDate + ' 23:59:59' : '',
+          status: ({
+            WAIT: "WAIT,YC",
+            OVER:"OK,LINE"
+          })[this.status],
+     	}).then(res => {
+     		this.loadStatus = 0;
+     		let list = res.data.records;
+     		if (list.length < 10) {
+     		  this.loadStatus = 2;
+     		}
+     		this.dataList = this.dataList.concat(list);
+     	}).catch(() => {
+     	  this.loadStatus = 2;
+     	}).finally(res => {
+     	  this.refresherTriggered = false;
+     	})
+     },
 
-      changeTab(e) {
-      	// this.tabCurrent = e.index;
-      	this.status = e.value;
-        this.refreshList();
-      },
+     changeTab(e) {
+     	// this.tabCurrent = e.index;
+     	this.status = e.value;
+       this.refreshList();
+     },
 
-      // 选择日期
-      confirmDate(item) {
-      	let [start, end] = item;
-      	if (start == '' || end == '') {
-      		this.startDate = '';
-      		this.endDate = '';
-      		return;
-      	}
-      	this.startDate = start;
-      	this.endDate = end;
+     // 选择日期
+     confirmDate(item) {
+     	let [start, end] = item;
+     	if (start == '' || end == '') {
+     		this.startDate = '';
+     		this.endDate = '';
+     		return;
+     	}
+     	this.startDate = start;
+     	this.endDate = end;
 
-      	this.refreshList();
-      },
+     	this.refreshList();
+     },
 
-      refreshList() {
-      	this.dataList = [];
-      	this.pageNum = 1;
-      	this.getList();
-      },
+     refreshList() {
+     	this.dataList = [];
+     	this.pageNum = 1;
+     	this.getList();
+     },
 
-      // 滚动到底部
-      scrolltolower(e) {
-      	if (this.loadStatus === 0) {
-      		this.pageNum++;
-      		this.getList();
-      	}
-      },
+     // 滚动到底部
+     scrolltolower(e) {
+     	if (this.loadStatus === 0) {
+     		this.pageNum++;
+     		this.getList();
+     	}
+     },
 
-      // 触发下拉刷新
-      refresherrefresh(e) {
-      	this.refresherTriggered = true;
-      	this.refreshList();
-      },
+     // 触发下拉刷新
+     refresherrefresh(e) {
+     	this.refresherTriggered = true;
+     	this.refreshList();
+     },
 
-      toDetail(item) {
-        this.$navToPage({
-          url: `/packageMaterial/pages/sale/orderDetail?id=${item.orderId}`
-        })
-      },
-    },
-  }
+     toDetail(item) {
+       this.$navToPage({
+         url: `/packageMaterial/pages/sale/orderDetail?id=${item.orderId}`
+       })
+     },
+   },
+ }
 
-  // #endif
-  // #ifndef H5
-  export default {
-    data() {
-      return {
-        pam: {},
-      }
-    },
-    onLoad(pam) {
-      this.pam = pam;
-    }
-  }
-  // #endif
+ // #endif
+ // #ifndef H5
+ export default {
+   data() {
+     return {
+       pam: {},
+     }
+   },
+   onLoad(pam) {
+     this.pam = pam;
+   }
+ }
+ // #endif
 </script>
 
 <style lang="scss" scoped>
 .tab-container {
-  background: #FFFFFF;
+  background: #ffffff;
 }
 
 .date-container {
-  background: #FFFFFF;
+  background: #ffffff;
   padding: 0 20rpx;
   .box {
     padding-left: 20rpx;

+ 97 - 59
src/pages/mine/index.vue

@@ -1,7 +1,12 @@
 <template>
   <view>
-    <zj-page-layout :isScroll="true" :isWxCustomPage="true" :isLoading="isLoading"
-      :refresherTriggered="refresherTriggered" @refresherrefresh="refresherrefresh">
+    <zj-page-layout
+      :isScroll="true"
+      :isWxCustomPage="true"
+      :isLoading="isLoading"
+      :refresherTriggered="refresherTriggered"
+      @refresherrefresh="refresherrefresh"
+    >
       <!-- <template slot="header">
         <view class="header-container" :style="cuStyle">我的</view>
       </template> -->
@@ -39,8 +44,12 @@
           </view>
 
           <view class="stats">
-            <view class="item" v-for="(item, index) in statsList.filter(o => o.show)" :key="index"
-              @tap="navToPage(item.link)">
+            <view
+              class="item"
+              v-for="(item, index) in statsList.filter(o => o.show)"
+              :key="index"
+              @tap="navToPage(item.link)"
+            >
               <view class="value">{{ item.num }}</view>
               <view class="label">{{ item.name }}</view>
             </view>
@@ -57,8 +66,12 @@
               </view>
             </view>
             <view class="list">
-              <view class="item" v-for="(item, index) in shareProfitList" :key="index"
-                @tap="navToPage('/packageMine/pages/profit/list', 1)">
+              <view
+                class="item"
+                v-for="(item, index) in shareProfitList"
+                :key="index"
+                @tap="navToPage('/packageMine/pages/profit/list', 1)"
+              >
                 <view class="num">{{ item.num | priceFilter }}</view>
                 <view class="title">{{ item.title }}</view>
               </view>
@@ -74,8 +87,12 @@
               </view>
             </view>
             <view class="list">
-              <view class="item" v-for="(item, index) in salesProfitList" :key="index"
-                @tap="navToPage('/packageMine/pages/salesProfit/index', 1)">
+              <view
+                class="item"
+                v-for="(item, index) in salesProfitList"
+                :key="index"
+                @tap="navToPage('/packageMine/pages/salesProfit/index', 1)"
+              >
                 <view class="num">{{ item.num | priceFilter }}</view>
                 <view class="title">{{ item.title }}</view>
               </view>
@@ -91,8 +108,12 @@
               </view>
             </view>
             <view class="list">
-              <view class="item" v-for="(item, index) in orderList" :key="index"
-                @tap="navToPage(`/packageMine/pages/order/list?tab=${item.key}`, 1)">
+              <view
+                class="item"
+                v-for="(item, index) in orderList"
+                :key="index"
+                @tap="navToPage(`/packageMine/pages/order/list?tab=${item.key}`, 1)"
+              >
                 <view class="icon">
                   <text class="iconfont" :class="item.icon"></text>
                   <u-badge max="99" :value="item.num" :absolute="true" :offset="[-4, -4]"></u-badge>
@@ -108,8 +129,12 @@
             </view>
             <view class="list">
               <block v-for="(item, index) in menuList.filter(o => o.show)" :key="index">
-                <button v-if="item.fn == 'phone'" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber"
-                  class="item">
+                <button
+                  v-if="item.fn == 'phone'"
+                  open-type="getPhoneNumber"
+                  @getphonenumber="getPhoneNumber"
+                  class="item"
+                >
                   <view class="icon"><text class="iconfont" :class="item.icon"></text></view>
                   <view class="title">{{ item.name }}</view>
                   <view class="right"><text class="iconfont icon-jinru"></text></view>
@@ -119,11 +144,15 @@
                   <view class="title">{{ item.name }}</view>
                   <view class="right"><text class="iconfont icon-jinru"></text></view>
                 </button>
-				<view v-else-if="item.icon == 'coupon'" class="item" @tap="item.link ? navToPage(item.link, 1) : actionFn(item.fn)">
-				  <view class="icon"><u-icon size="20" :name="item.icon"></u-icon></view>
-				  <view class="title">{{ item.name }}</view>
-				  <view class="right"><text class="iconfont icon-jinru"></text></view>
-				</view>
+                <view
+                  v-else-if="item.icon == 'coupon'"
+                  class="item"
+                  @tap="item.link ? navToPage(item.link, 1) : actionFn(item.fn)"
+                >
+                  <view class="icon"><u-icon size="20" :name="item.icon"></u-icon></view>
+                  <view class="title">{{ item.name }}</view>
+                  <view class="right"><text class="iconfont icon-jinru"></text></view>
+                </view>
                 <view v-else class="item" @tap="item.link ? navToPage(item.link, 1) : actionFn(item.fn)">
                   <view class="icon"><text class="iconfont" :class="item.icon"></text></view>
                   <view class="title">{{ item.name }}</view>
@@ -142,8 +171,8 @@
 </template>
 
 <script>
-import { getNoticeNum, getOrderNum, selectionChange } from '@/common/utils/util.js';
-import { getStorage } from "@/common/utils/storage.js"
+import { getNoticeNum, getOrderNum, selectionChange } from '@/common/utils/util.js'
+import { getStorage } from '@/common/utils/storage.js'
 export default {
   data() {
     return {
@@ -157,7 +186,7 @@ export default {
         { title: '累计分销收益', num: 0 }
       ],
       salesProfitList: [
-        { title: '可提现金额', num: 0 },
+        { title: '已结算金额', num: 0 },
         { title: '待结算金额', num: 0 }
       ],
       orderList: [
@@ -169,7 +198,7 @@ export default {
       statsList: [],
       menuList: [],
       noticeNum: 0,
-      qrcode2: ""
+      qrcode2: ''
     }
   },
   computed: {
@@ -197,13 +226,13 @@ export default {
   },
 
   async onShow() {
-    selectionChange();
+    selectionChange()
 
     this.configInfo = await this.$getConfigInfo()
 
     // if(this.isLogin) {
     this.userInfo = await this.$getUserInfo()
-    await this.getCouponList();
+    await this.getCouponList()
     this.initList()
     await this.getCount()
     await this.getShareProfitCount()
@@ -226,7 +255,7 @@ export default {
       this.configInfo = await this.$getConfigInfo()
       // if(this.isLogin) {
       this.userInfo = await this.$getUserInfo()
-      await this.getCouponList();
+      await this.getCouponList()
       this.initList()
       await this.getCount()
       await this.getShareProfitCount()
@@ -321,7 +350,7 @@ export default {
           icon: 'icon-kehu',
           link: '/packageMine/pages/mySecurityFee',
           show: this.isWorkerUser
-        },
+        }
       ]
     },
 
@@ -333,25 +362,27 @@ export default {
     // 授权手机号
     getPhoneNumber(e) {
       if (!e.detail.iv) {
-        return this.$toast('获取手机号失败');
+        return this.$toast('获取手机号失败')
       }
       uni.login({
         provider: 'weixin',
-        success: (loginRes) => {
-          this.$api.post('/user/auth', {
-            code: loginRes.code,
-            phoneCode: e.detail.code,
-          }).then(async res => {
-            this.$store.commit("user/set_token", res.data.token)
-            this.$store.commit("user/set_openId", res.data.openId)
-            this.$store.commit("user/set_name", res.data.nickName)
-            this.$store.commit("user/set_avatar", res.data.avatar)
-            this.$store.commit("user/set_userId", res.data.userId)
-            this.$store.commit("user/set_mobile", res.data.mobile)
-            this.$successToast('授权成功');
-          })
+        success: loginRes => {
+          this.$api
+            .post('/user/auth', {
+              code: loginRes.code,
+              phoneCode: e.detail.code
+            })
+            .then(async res => {
+              this.$store.commit('user/set_token', res.data.token)
+              this.$store.commit('user/set_openId', res.data.openId)
+              this.$store.commit('user/set_name', res.data.nickName)
+              this.$store.commit('user/set_avatar', res.data.avatar)
+              this.$store.commit('user/set_userId', res.data.userId)
+              this.$store.commit('user/set_mobile', res.data.mobile)
+              this.$successToast('授权成功')
+            })
         }
-      });
+      })
     },
 
     // 获取订单数量
@@ -417,7 +448,8 @@ export default {
     // 获取销售收益统计
     async getSalesProfitCount() {
       return new Promise((resolve, reject) => {
-        this.$api.post('/withdrawal/amount/count')
+        this.$api
+          .post('/withdrawal/amount/count')
           .then(res => {
             const data = res.data || {}
             this.salesProfitList[0].num = data.ktx
@@ -433,31 +465,37 @@ export default {
     // 获取可领优惠券列表
     async getCouponList() {
       return new Promise((resolve, reject) => {
-        this.$api.get('/coupon/list/all', {
-          userId: this.$store.state.user.userId
-        }).finally(res => {
-          resolve(1)
-        })
-    	})
+        this.$api
+          .get('/coupon/list/all', {
+            userId: this.$store.state.user.userId
+          })
+          .finally(res => {
+            resolve(1)
+          })
+      })
     },
 
     getweixinpeizhi() {
-      this.$api.get('/common/wechat/detail')
-        .then(res => {
-          this.qrcode2 = res.data.qrcode2
-        })
+      this.$api.get('/common/wechat/detail').then(res => {
+        this.qrcode2 = res.data.qrcode2
+      })
     },
 
     openCode() {
-      this.$api.post('/common/get/mp/qrcode', {
-        companyWechatId: getStorage("user").companyWechatId || "",
-        userId: this.$store.state.user.userId
-      })
+      this.$api
+        .post('/common/get/mp/qrcode', {
+          companyWechatId: getStorage('user').companyWechatId || '',
+          userId: this.$store.state.user.userId
+        })
         .then(res => {
           uni.previewImage({
-            current: res.data.ticket ? `https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=${res.data.ticket}` : this.qrcode2,
-            urls: [res.data.ticket ? `https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=${res.data.ticket}` : this.qrcode2],
-          });
+            current: res.data.ticket
+              ? `https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=${res.data.ticket}`
+              : this.qrcode2,
+            urls: [
+              res.data.ticket ? `https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=${res.data.ticket}` : this.qrcode2
+            ]
+          })
         })
     },
 
@@ -492,7 +530,7 @@ export default {
             item.num = 0
           })
         })
-        .catch(() => { })
+        .catch(() => {})
     }
   }
 }