diff --git a/pages.json b/pages.json index 1aacb15b..f463f04d 100644 --- a/pages.json +++ b/pages.json @@ -484,13 +484,6 @@ "navigationBarTitleText": "推广返利" } }, - { - "path": "statistics/statistics", - "style": { - "enablePullDownRefresh": true, - "navigationBarTitleText": "数据统计" - } - }, { "path": "extraction/extraction", "style": { diff --git a/pages/plugins/distribution/recommend-form/recommend-form.vue b/pages/plugins/distribution/recommend-form/recommend-form.vue index f00ceda9..c874f510 100644 --- a/pages/plugins/distribution/recommend-form/recommend-form.vue +++ b/pages/plugins/distribution/recommend-form/recommend-form.vue @@ -529,13 +529,20 @@ var goods = this.popup_search_goods_list[value.out_value]; var temp_data = this.recommend_data; var spec_str = JSON.stringify(value.spec); + // 数据判断处理 var status = true; - for(var i in temp_data.detail_list) { - if(temp_data.detail_list[i]['goods_id'] == goods['id'] && temp_data.detail_list[i]['spec'] == spec_str) { - status = false; - break; + if((temp_data.detail_list || null) == null) { + temp_data.detail_list = []; + } + if(temp_data.detail_list.length > 0) { + for(var i in temp_data.detail_list) { + if(temp_data.detail_list[i]['goods_id'] == goods['id'] && temp_data.detail_list[i]['spec'] == spec_str) { + status = false; + break; + } } } + // 追加到关联商品中 if(status) { temp_data.detail_list.push({ diff --git a/pages/plugins/distribution/statistics/statistics.css b/pages/plugins/distribution/statistics/statistics.css deleted file mode 100644 index 2294df0f..00000000 --- a/pages/plugins/distribution/statistics/statistics.css +++ /dev/null @@ -1,8 +0,0 @@ -.container .item { - width: 50%; - box-sizing: border-box; -} -.container .title { - border-style: solid; - border-width: 0 0 0 3px; -} \ No newline at end of file diff --git a/pages/plugins/distribution/statistics/statistics.vue b/pages/plugins/distribution/statistics/statistics.vue deleted file mode 100644 index 5e360ada..00000000 --- a/pages/plugins/distribution/statistics/statistics.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - - \ No newline at end of file diff --git a/pages/plugins/distribution/user/user.css b/pages/plugins/distribution/user/user.css index 5302b272..d7be0ffb 100644 --- a/pages/plugins/distribution/user/user.css +++ b/pages/plugins/distribution/user/user.css @@ -41,6 +41,33 @@ .superior .superior-content image { width: 40rpx !important; height: 40rpx !important; +} + +/** + * 统计数据 + */ +.stats-container .item { + width: 50%; + box-sizing: border-box; +} +.stats-container-3 .item { + width: 33.33%; +} +.stats-container-4 .item { + width: 25%; +} +.stats-container .title { + border-style: solid; + border-width: 0 0 0 3px; +} +.stats-container .stats-switch-submit { + top: 20rpx; + right: 20rpx; + line-height: 44rpx; + padding: 0 40rpx 0 20rpx; +} +.popup-time-container .quit-time .item { + width: 25%; } /* diff --git a/pages/plugins/distribution/user/user.vue b/pages/plugins/distribution/user/user.vue index 3ca7958e..b69b5b47 100644 --- a/pages/plugins/distribution/user/user.vue +++ b/pages/plugins/distribution/user/user.vue @@ -23,7 +23,7 @@ - + 上级用户 @@ -38,6 +38,53 @@ {{item}} + + + + + + 基础统计 + + + + + + {{item.name}} + + {{item.value}} + + + + + + + + + + {{item.name}} + + {{((item.first || null) == null) ? '' : item.first}}{{item.value}} + + + + + + + + + + 返佣统计 + + + + {{item.name}} + + {{currency_symbol}}{{item.value}} + + + + + @@ -63,7 +110,45 @@ {{profit_ladder.msg}} 去推广 - + + + + + + + + + + + +
+ + + + {{item.name}} + + + + + + 开始时间 + + + + + + 结束时间 + + + + + + + +
+
+
+
@@ -73,27 +158,40 @@