diff --git a/api/newFun.js b/api/newFun.js
index 56f6253..12359c1 100644
--- a/api/newFun.js
+++ b/api/newFun.js
@@ -211,4 +211,21 @@ export const editTransfer = (param) => {
// 数据统计
export const statistics = (param) => {
return request.post('data/statistics', param)
+}
+// 会员分类
+export const category = (param) => {
+ return request.post('category/list', param)
+}
+// 会员分类新增
+export const setStorePrice = (param) => {
+ return request.post('store/setStorePrice', param)
+}
+// 会员分类xiangqing
+export const getStorePriceInfo = (param) => {
+ return request.post('store/getStorePriceInfo', param)
+}
+
+// 会员分类编辑
+export const editStore = (param) => {
+ return request.post('store/editStore', param)
}
\ No newline at end of file
diff --git a/pages/news/user/report.vue b/pages/news/user/report.vue
index 156e815..892fbea 100644
--- a/pages/news/user/report.vue
+++ b/pages/news/user/report.vue
@@ -15,7 +15,7 @@
订单数{{ orderData.orderCount}}
- 支持人数{{ orderData.orderPayUser}}
+ 订单人数{{ orderData.orderPayUser}}
总成本金额¥{{ orderData.orderCostMoney}}
@@ -88,7 +88,7 @@
订单数{{ orderData.orderCount}}
- 支持人数{{ orderData.orderPayUser}}
+ 订单人数{{ orderData.orderPayUser}}
总成本金额¥{{ orderData.orderCostMoney}}
diff --git a/pages/news3/components/category.vue b/pages/news3/components/category.vue
new file mode 100644
index 0000000..601b033
--- /dev/null
+++ b/pages/news3/components/category.vue
@@ -0,0 +1,182 @@
+
+
+
+
+
+ 请选择分类
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+ 重置
+
+
+ 确定
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/news3/components/setRange.vue b/pages/news3/components/setRange.vue
index f4582d9..8dc1236 100644
--- a/pages/news3/components/setRange.vue
+++ b/pages/news3/components/setRange.vue
@@ -1,14 +1,14 @@
-
+
请设置价格区间
-
+
-
-
+
@@ -46,18 +46,29 @@
this.min = null;
this.max = null
},
- close() {
+ onClose() {
this.min = null;
this.max = null
},
- startPrice(e) {
- console.log(e)
- this.min = e
- },
- onRate(e){
- console.log(e)
- },
submit() {
+ if (!this.min) {
+ return this.$toast('请输入最低价格')
+ }
+ if (!this.max) {
+ return this.$toast('请输入最高价格')
+ }
+ if (0 >= this.min) {
+ this.min = null
+ return this.$toast('最低价格必须大于0')
+ }
+ if (0 >= this.max) {
+ this.max = null
+ return this.$toast('最高价格必须大于0')
+ }
+ if (this.min > this.max) {
+ this.max = null
+ return this.$toast('最高价格不能低于最低价格')
+ }
this.$emit('getprice', {
min: this.min,
max: this.max
diff --git a/pages/news3/vipPrice.vue b/pages/news3/vipPrice.vue
index 7d90a7c..79e9ba8 100644
--- a/pages/news3/vipPrice.vue
+++ b/pages/news3/vipPrice.vue
@@ -6,26 +6,33 @@
利润空间(元)
-
+
- {{item.name}}
-
+
+ {{item.category_name?item.category_name:'请选择分类'}}
+
+
+
+
+ -
+ 删除分类
+
+
-
+
-
- 0 - 100
+
+ {{val. min}} - {{val.max}}
请设置
-
- %
+
- {{val.startProfit}} - {{val.endProfit}}元
+ {{val.startProfit}} - {{val.endProfit}}
@@ -41,96 +48,308 @@
+
+
+ +
+ 新增分类模板
+
+
+ -
+ 删除分类模板
+
+
+
+
+ 提交
+
@@ -142,7 +361,7 @@
}
::v-deep .uni-input-wrapper {
- width: 160rpx !important;
+ width: 180rpx !important;
text-align: center !important;
height: 70rpx !important;
}
@@ -152,6 +371,18 @@
font-size: 28rpx;
}
+ .category_box {
+ display: flex;
+
+ .maxWith {
+ max-width: 400rpx;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: block;
+ }
+ }
+
.vipInfo {
.msg {
background: #FFE7E7;
@@ -173,13 +404,17 @@
}
.classifyContainer {
+ padding-bottom: 200rpx;
+
.classifyItem {
padding: 36upx 56upx;
background-color: #fff;
margin-bottom: 14upx;
.classTitle {
-
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
font-size: 28upx;
font-family: PingFang SC, PingFang SC;
font-weight: 500;
@@ -205,7 +440,7 @@
border-radius: 4rpx;
border: 2rpx solid #DADADA;
text-align: center;
- line-height: 74rpx;
+ line-height: 66rpx;
margin-right: 50rpx;
text {
@@ -232,9 +467,11 @@
}
.profit {
+ min-width: 180rpx;
border: none !important;
background: transparent !important;
line-height: 70rpx;
+ text-align: center;
::v-deep .uni-input-placeholder {
display: none;
@@ -290,4 +527,73 @@
}
}
}
+
+ .category {
+ display: flex;
+ align-items: center;
+ padding: 40rpx 0;
+
+ .rangeHandle {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-right: 20rpx;
+
+ .addFlag {
+ width: 30upx;
+ height: 30upx;
+ background: #FF6551;
+ border-radius: 50%;
+ color: #fff;
+ line-height: 26upx;
+ text-align: center;
+ opacity: 1;
+ }
+
+ .delBtn {
+ width: 30upx;
+ height: 30upx;
+ line-height: 26upx;
+ text-align: center;
+ background: #BDBDBD;
+ border-radius: 50%;
+ color: #fff;
+ opacity: 1;
+
+ }
+
+ text {
+
+ font-size: 24upx;
+ font-family: PingFang SC, PingFang SC;
+ font-weight: 400;
+ color: #3B3B3B;
+ margin-left: 10upx;
+ }
+ }
+ }
+
+ .price-fd {
+ width: 100%;
+ position: fixed;
+ left: 0;
+ bottom: 0;
+ padding: 0.9375rem;
+ z-index: 99;
+ background-color: #fafafa;
+ box-sizing: border-box;
+
+ .btn {
+ width: 630rpx;
+ line-height: 88rpx;
+ background: #F34A40;
+ border-radius: 88rpx;
+ text-align: center;
+ font-size: 28rpx;
+ font-weight: 500;
+ color: #FFFFFF;
+ margin: auto;
+ }
+ }
diff --git a/pages/user/index.vue b/pages/user/index.vue
index c5f6346..75db2c4 100644
--- a/pages/user/index.vue
+++ b/pages/user/index.vue
@@ -419,14 +419,14 @@
物流查询
-
会员价
-