Commit 552665cf by 无尘

feat: 禁用积分处理

parent ca918a7d
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>分享有礼</title><link href=./static/css/app.137d12483ae8df5d9a52edcfb085ea4f.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.33.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.29.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-card.2.0.14.js></script><script src=//web-1251519181.file.myqcloud.com/components/people.2.0.38.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/selector.1.1.91.js></script><script type=text/javascript src=./static/js/manifest.8ab8a437dfc0c06c10d6.js></script><script type=text/javascript src=./static/js/vendor.b02712d05f24edc20c20.js></script><script type=text/javascript src=./static/js/app.64d61eb4071390c32e11.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>分享有礼</title><link href=./static/css/app.3a613f8f8e6a7ff8791466ad6ba439e0.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.33.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.29.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-card.2.0.14.js></script><script src=//web-1251519181.file.myqcloud.com/components/people.2.0.38.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/selector.1.1.91.js></script><script type=text/javascript src=./static/js/manifest.929ac7d64c51cfd27208.js></script><script type=text/javascript src=./static/js/vendor.b02712d05f24edc20c20.js></script><script type=text/javascript src=./static/js/app.64d61eb4071390c32e11.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var f,i,u,d=0,b=[];d<r.length;d++)i=r[d],t[i]&&b.push(t[i][0]),t[i]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,a);b.length;)b.shift()();if(a)for(d=0;d<a.length;d++)u=o(o.s=a[d]);return u};var r={},t={16:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"e3ae64373bf17ee56853",1:"cd8911fae63b93bb26df",2:"ab1d09eb625481bad456",3:"012377781f918c9b7df1",4:"afd0c01207959378baf4",5:"6292def4983145b5962d",6:"a7f8a076881c826bf057",7:"d2ca391d27760dce0507",8:"6278b7fbcae037415120",9:"b3295d4914390befbf99",10:"df35ee9de62c50cdc6eb",11:"d0725b11939656aef083",12:"7213ac9b1784cc20392d",13:"8c725a0a7a78dc387afc"}[e]+".js";var f=setTimeout(i,12e4);function i(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=i,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var f,i,u,d=0,s=[];d<r.length;d++)i=r[d],t[i]&&s.push(t[i][0]),t[i]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(d=0;d<a.length;d++)u=o(o.s=a[d]);return u};var r={},t={16:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"e3ae64373bf17ee56853",1:"cd8911fae63b93bb26df",2:"d84e726d25657883f13a",3:"d45f3a6f10894e7fcc21",4:"afd0c01207959378baf4",5:"6292def4983145b5962d",6:"a7f8a076881c826bf057",7:"d2ca391d27760dce0507",8:"6278b7fbcae037415120",9:"b3295d4914390befbf99",10:"df35ee9de62c50cdc6eb",11:"d0725b11939656aef083",12:"7213ac9b1784cc20392d",13:"8c725a0a7a78dc387afc"}[e]+".js";var f=setTimeout(i,12e4);function i(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=i,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-11-18 10:37:02
* @LastEditors: 无尘
* @LastEditTime: 2019-12-17 12:15:13
* @LastEditors : 无尘
* @LastEditTime : 2020-01-08 18:13:10
-->
<!--
<base-config @submitNext="submitNext"></base-config>
......@@ -206,6 +206,7 @@ export default {
if (!that.activeInfoData.dateRange) {
that.activeInfoData.dateRange = [];
}
that.activeInfoData.startDate = that.activeInfoData.dateRange[0];
let para = {
activityId: that.activeInfoData.activityId,
activityName: that.activeInfoData.activityName,
......
......@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-11-21 16:37:02
* @LastEditors: 无尘
* @LastEditTime: 2019-12-17 18:39:30
* @LastEditors : 无尘
* @LastEditTime : 2020-01-08 18:13:25
-->
<!--
<fraud-control></fraud-control>
......@@ -66,7 +66,7 @@ import fraudControl from '@/components/active-config/configs/fraud-control.vue';
<div class="store-select-title">
<span class="font-14 color-606266">限制额度:</span>
<el-input-number
:disabled="$route.query.editFlag || !notEdit"
:disabled="$route.query.editFlag || (!notEdit && activeIsStart)"
v-model="pointFreeze.amountLimitAmount"
controls-position="right"
:step="1"
......@@ -124,7 +124,7 @@ import fraudControl from '@/components/active-config/configs/fraud-control.vue';
<div class="store-select-title">
<span class="font-14 color-606266">延时时长:</span>
<el-input-number
:disabled="$route.query.editFlag"
:disabled="$route.query.editFlag || (!notEdit && activeIsStart)"
v-model="pointFreeze.pointControlDay"
controls-position="right"
:step="1"
......@@ -142,7 +142,7 @@ import fraudControl from '@/components/active-config/configs/fraud-control.vue';
<div class="store-select-title">
<span class="font-14 color-606266">冻结时长:</span>
<el-input-number
:disabled="$route.query.editFlag"
:disabled="$route.query.editFlag || (!notEdit && activeIsStart)"
v-model="pointFreeze.pointControlDay"
controls-position="right"
:step="1"
......@@ -182,6 +182,7 @@ export default {
components: {},
data() {
return {
activeIsStart: false, // 判断活动是否开始
pointFreeze: {
amountLimitFlag: 0,
amountLimitAmount: 1,
......@@ -251,7 +252,7 @@ export default {
*/
selectStore(item) {
const that = this;
if (that.$route.query.hasOwnProperty('activityId') && !that.notEdit) {
if (that.$route.query.hasOwnProperty('activityId') && !that.notEdit && that.activeIsStart) {
showMsg.showmsg('成交额上限控制禁止修改', 'warning');
return false;
}
......@@ -265,6 +266,10 @@ export default {
*/
selectMoney(item) {
const that = this;
if (that.$route.query.hasOwnProperty('activityId') && !that.notEdit && that.activeIsStart) {
showMsg.showmsg('积分处理方案禁止修改', 'warning');
return false;
}
if (that.$route.query.hasOwnProperty('editFlag')) {
return false;
}
......@@ -280,6 +285,10 @@ export default {
mounted() {
const that = this;
that.pointFreeze = JSON.parse(JSON.stringify(that.value));
if (Object.keys(that.$store.state.baseInfo).length) {
const startD = JSON.parse(JSON.stringify(that.$store.state.baseInfo)).startDate;
that.activeIsStart = new Date(startD).getTime() > new Date().getTime() ? false : true;
}
}
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment