-
+
+ 选择商品券
+
+
+
+
-
-
-
-
-
-
- {{ initUnit(key) }}
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
- 满
-
-
-
- 人
-
-
- 删除
-
-
-
-
- + 添加
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/application/admin/view/shopro/commission/level/index.html b/application/admin/view/shopro/commission/level/index.html
index b245efa..9aa38b8 100755
--- a/application/admin/view/shopro/commission/level/index.html
+++ b/application/admin/view/shopro/commission/level/index.html
@@ -25,20 +25,31 @@
{{ scope.row.name }}
-
+
-
+ {{ scope.row.total_consume }}
-
- {{ scope.row.commission_rules?.commission_1 }}%
-
-
- {{ scope.row.commission_rules?.commission_2 }}%
-
-
- {{ scope.row.commission_rules?.commission_3 }}%
+
+
+ {{ scope.row.createtime }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{if $auth->check('shopro/commission/level/edit')}
diff --git a/public/assets/js/backend/shopro/commission/level.js b/public/assets/js/backend/shopro/commission/level.js
index 96b59e6..17fe46f 100755
--- a/public/assets/js/backend/shopro/commission/level.js
+++ b/public/assets/js/backend/shopro/commission/level.js
@@ -79,6 +79,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
level: null,
name: '',
image: '',
+ total_consume: '0.00',//消费门槛
commission_rules: {
commission_1: '0.00',
commission_2: '0.00',
@@ -86,6 +87,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
},
upgrade_type: 0,
upgrade_rules: {},
+ coupon_rules:{
+ programme_1:{},
+ programme_2:{}
+ },
+
},
rules: {
level: [{ required: true, message: '请选择等级权重', trigger: 'blur' }],
@@ -328,6 +334,37 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
});
}
+ function onSelectCoupon1() {
+ let ids = [];
+ form.model.coupon_rules.programme_1.forEach((i) => {
+ ids.push(i.id);
+ });
+ Fast.api.open(`shopro/coupon/select?multiple=true&status=normal`, "选择商品", {
+ callback(data) {
+ form.model.coupon_rules.programme_1 = data;
+ }
+ })
+ }
+
+ function onSelectCoupon2() {
+ let ids = [];
+ form.model.coupon_rules.programme_2.forEach((i) => {
+ ids.push(i.id);
+ });
+ Fast.api.open(`shopro/coupon/select?multiple=true&status=normal`, "选择商品", {
+ callback(data) {
+ form.model.coupon_rules.programme_2 = data;
+ }
+ })
+ }
+ function onDeleteCoupon1(index) {
+ form.model.coupon_rules.programme_1.splice(index, 1);
+ }
+
+ function onDeleteCoupon2(index) {
+ form.model.coupon_rules.programme_2.splice(index, 1);
+ }
+
onMounted(() => {
getLevelSelect()
if (state.type == 'add') {
@@ -349,7 +386,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
onAddUpgradeRules,
onDeleteRules,
initUnit,
- onConfirm
+ onConfirm,
+ onSelectCoupon1,
+ onSelectCoupon2,
+ onDeleteCoupon1,
+ onDeleteCoupon2
}
}
}