Commit 0248249c by zhu_yu_dan

编辑积分制度时添加微盟

parent 1206478f
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-集团后台</title><link href=./static/css/app.6945c7ece43655e3ad42ec5a9dedfb05.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.a736574ce8018c43bd16.js></script><script type=text/javascript src=./static/js/vendor.f32da7744fc8917e2364.js></script><script type=text/javascript src=./static/js/app.9b51b4cdc33fdc49a791.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-集团后台</title><link href=./static/css/app.a86bddfc241e236ca66af31b0c09e04e.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.a4400e3db5cefca30fbe.js></script><script type=text/javascript src=./static/js/vendor.f32da7744fc8917e2364.js></script><script type=text/javascript src=./static/js/app.76809a90761d8206615e.js></script></body></html>
\ No newline at end of file \ No newline at end of file
webpackJsonp([21],{"6Qob":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("mvHQ"),n=i.n(s),o=i("5reh"),a=i("zL8q");function r(t){return t?(a.Message.warning(t),!1):(a.Message.warning("操作失败"),!1)}function l(t){return"cancel"==t?(a.Message.info(t||"cancel"),!1):t.hasOwnProperty("response")?401==t.response.status?(a.Message.error("登录过期"),!1):500==t.response.status?(a.Message.error("服务器错误500"),!1):void 0:(a.Message.error(t),!1)}var c=i("mw3O"),u={name:"login",data:function(){return{redirect:this.$route.query.redirect,token:"",form:{loginName:"damogic",password:"1",eid:"ff808081593917d90159398ec6340012"}}},computed:{imgHeight:function(){return document.body.clientHeight},imgWidth:function(){return document.body.clientWidth}},methods:{loginAnimate:function(){new LoginAnimate(loginwrap,{length:90,LineWeight:.1,clicked:!0,moveon:!0}).Run()},submitLogin:function(){var t=this;this.axios.post("/api-auth/do-login",c.stringify({loginName:this.form.loginName,password:this.form.password,eid:"ff808081593917d90159398ec6340012"})).then(function(e){if(e.data.success){(s=e.data.message)?a.Message.success(s):a.Message.success("操作成功");var i=decodeURIComponent(t.$route.query.redirect||"/index");t.$router.push({path:i})}else r(e.data.message);var s}).catch(function(t){l(t)})},getMenu:function(){var t=this;this.axios.get("/gic/get-menu").then(function(e){if(e.data.success){t.menuList=e.data.list,sessionStorage.setItem("menuList",n()(t.menuList));var i=t.$route.query.redirect||"/index";t.$router.push({path:i})}else r(e.data.errorMessage)}).catch(function(t){l(t)})}},mounted:function(){this.$store.commit(o.d,"login"),document.title=this.$store.state.title,this.loginAnimate()}},m={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"loginwrap",style:{height:t.imgHeight+"px"}},[i("div",{staticStyle:{position:"absolute",left:"0",height:"0",width:"100%"}},[i("canvas",{attrs:{id:"loginwrap",width:t.imgWidth,height:t.imgHeight}})]),t._v(" "),t._m(0),t._v(" "),i("div",{staticClass:"login_contetnt"},[i("h3",{staticClass:"login-top"},[t._v("让信息连接一切")]),t._v(" "),i("h4",{staticClass:"login-bottom"},[t._v("GIC商户后台")]),t._v(" "),i("div",{staticClass:"formlogin"},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":""}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{staticClass:"forminput",attrs:{placeholder:"账号"},model:{value:t.form.loginName,callback:function(e){t.$set(t.form,"loginName",e)},expression:"form.loginName"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:"密码"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.submitLogin("form")}},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),i("el-form-item",[i("button",{staticClass:"submit",on:{click:function(e){e.preventDefault(),t.submitLogin("form")}}},[t._v("立即登录")])])],1)],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logintop"},[e("div",{staticClass:"fl loginlogo"},[e("a",{staticClass:"fr logo",attrs:{href:"#"}},[this._v("login_logo.png")])]),this._v(" "),e("a",{staticClass:"home-link fr",attrs:{href:"http://www.demogic.com/"}},[this._v("返回首页")])])}]};var d=i("VU/8")(u,m,!1,function(t){i("OWNH")},null,null);e.default=d.exports},OWNH:function(t,e){}}); webpackJsonp([20],{"6Qob":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("mvHQ"),n=i.n(s),o=i("5reh"),a=i("zL8q");function r(t){return t?(a.Message.warning(t),!1):(a.Message.warning("操作失败"),!1)}function l(t){return"cancel"==t?(a.Message.info(t||"cancel"),!1):t.hasOwnProperty("response")?401==t.response.status?(a.Message.error("登录过期"),!1):500==t.response.status?(a.Message.error("服务器错误500"),!1):void 0:(a.Message.error(t),!1)}var c=i("mw3O"),u={name:"login",data:function(){return{redirect:this.$route.query.redirect,token:"",form:{loginName:"damogic",password:"1",eid:"ff808081593917d90159398ec6340012"}}},computed:{imgHeight:function(){return document.body.clientHeight},imgWidth:function(){return document.body.clientWidth}},methods:{loginAnimate:function(){new LoginAnimate(loginwrap,{length:90,LineWeight:.1,clicked:!0,moveon:!0}).Run()},submitLogin:function(){var t=this;this.axios.post("/api-auth/do-login",c.stringify({loginName:this.form.loginName,password:this.form.password,eid:"ff808081593917d90159398ec6340012"})).then(function(e){if(e.data.success){(s=e.data.message)?a.Message.success(s):a.Message.success("操作成功");var i=decodeURIComponent(t.$route.query.redirect||"/index");t.$router.push({path:i})}else r(e.data.message);var s}).catch(function(t){l(t)})},getMenu:function(){var t=this;this.axios.get("/gic/get-menu").then(function(e){if(e.data.success){t.menuList=e.data.list,sessionStorage.setItem("menuList",n()(t.menuList));var i=t.$route.query.redirect||"/index";t.$router.push({path:i})}else r(e.data.errorMessage)}).catch(function(t){l(t)})}},mounted:function(){this.$store.commit(o.d,"login"),document.title=this.$store.state.title,this.loginAnimate()}},m={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"loginwrap",style:{height:t.imgHeight+"px"}},[i("div",{staticStyle:{position:"absolute",left:"0",height:"0",width:"100%"}},[i("canvas",{attrs:{id:"loginwrap",width:t.imgWidth,height:t.imgHeight}})]),t._v(" "),t._m(0),t._v(" "),i("div",{staticClass:"login_contetnt"},[i("h3",{staticClass:"login-top"},[t._v("让信息连接一切")]),t._v(" "),i("h4",{staticClass:"login-bottom"},[t._v("GIC商户后台")]),t._v(" "),i("div",{staticClass:"formlogin"},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":""}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{staticClass:"forminput",attrs:{placeholder:"账号"},model:{value:t.form.loginName,callback:function(e){t.$set(t.form,"loginName",e)},expression:"form.loginName"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:"密码"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.submitLogin("form")}},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),i("el-form-item",[i("button",{staticClass:"submit",on:{click:function(e){e.preventDefault(),t.submitLogin("form")}}},[t._v("立即登录")])])],1)],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logintop"},[e("div",{staticClass:"fl loginlogo"},[e("a",{staticClass:"fr logo",attrs:{href:"#"}},[this._v("login_logo.png")])]),this._v(" "),e("a",{staticClass:"home-link fr",attrs:{href:"http://www.demogic.com/"}},[this._v("返回首页")])])}]};var d=i("VU/8")(u,m,!1,function(t){i("OWNH")},null,null);e.default=d.exports},OWNH:function(t,e){}});
//# sourceMappingURL=21.d00a22bde04cd9bcaa07.js.map //# sourceMappingURL=20.7b9c715be6b1f4fd1abb.js.map
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([25],{YPWR:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=o("bOdI"),a=o.n(l),n=o("5reh"),s={name:"App",data:function(){var e;return e={projectName:"gic-clique",contentHeight:"0px",collapseFlag:!1},a()(e,"collapseFlag",!1),a()(e,"leftModulesName","会员设置"),a()(e,"bodyHeight",document.body.clientHeight||document.documentElement.clientHeight),e},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},mounted:function(){this.$store.commit(n.d,"达摩GIC"),document.title=this.$store.state.title,this.pathName=window.location.hash.split("/")[1],console.log("pathname:",this.pathName,this.$route.path),this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},components:{}},i={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"index"}},[o("vue-gic-header",{attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),o("div",{staticClass:"content",attrs:{id:"content"}},[o("div",{staticClass:"content-body"},[o("div",{staticClass:"left-menu",class:{"small-left":e.collapseFlag},style:{minHeight:e.bodyHeight-66+"px"}},[o("vue-gic-aside-menu",{attrs:{projectName:e.projectName,leftModulesName:e.leftModulesName,collapseFlag:e.collapseFlag}})],1),e._v(" "),o("div",{staticClass:"right-right",class:{margin64:e.collapseFlag}},[o("router-view")],1)])])],1)},staticRenderFns:[]};var c=o("VU/8")(s,i,!1,function(e){o("rI3x")},null,null);t.default=c.exports},rI3x:function(e,t){}}); webpackJsonp([24],{YPWR:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=o("bOdI"),a=o.n(l),n=o("5reh"),s={name:"App",data:function(){var e;return e={projectName:"gic-clique",contentHeight:"0px",collapseFlag:!1},a()(e,"collapseFlag",!1),a()(e,"leftModulesName","会员设置"),a()(e,"bodyHeight",document.body.clientHeight||document.documentElement.clientHeight),e},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},mounted:function(){this.$store.commit(n.d,"达摩GIC"),document.title=this.$store.state.title,this.pathName=window.location.hash.split("/")[1],console.log("pathname:",this.pathName,this.$route.path),this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},components:{}},i={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"index"}},[o("vue-gic-header",{attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),o("div",{staticClass:"content",attrs:{id:"content"}},[o("div",{staticClass:"content-body"},[o("div",{staticClass:"left-menu",class:{"small-left":e.collapseFlag},style:{minHeight:e.bodyHeight-66+"px"}},[o("vue-gic-aside-menu",{attrs:{projectName:e.projectName,leftModulesName:e.leftModulesName,collapseFlag:e.collapseFlag}})],1),e._v(" "),o("div",{staticClass:"right-right",class:{margin64:e.collapseFlag}},[o("router-view")],1)])])],1)},staticRenderFns:[]};var c=o("VU/8")(s,i,!1,function(e){o("rI3x")},null,null);t.default=c.exports},rI3x:function(e,t){}});
//# sourceMappingURL=25.8b953bd9ff7d58cc8055.js.map //# sourceMappingURL=24.88b60652d5c177c02031.js.map
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,f,t){for(var o,d,b,i=0,u=[];i<a.length;i++)d=a[i],n[d]&&u.push(n[d][0]),n[d]=0;for(o in f)Object.prototype.hasOwnProperty.call(f,o)&&(e[o]=f[o]);for(c&&c(a,f,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=r(r.s=t[i]);return b};var a={},n={33:0};function r(c){if(a[c])return a[c].exports;var n=a[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var c=n[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,r){c=n[e]=[a,r]});c[2]=a;var f=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,r.nc&&t.setAttribute("nonce",r.nc),t.src=r.p+"static/js/"+e+"."+{0:"b86114f3dce96ac0e07b",1:"c1017b8a513cbf71ebbe",2:"344d5c61c44868322e7e",3:"88a303fc10feb8b51091",4:"f6a8f25f4e8cc458879d",5:"a4b8ca5df028eb5acd94",6:"652a05ac0e26b68c63c7",7:"dab0379a83ee21068ebd",8:"93a836f8e24ccbfa37a8",9:"f2fc23ef3295d1d71397",10:"ccf6df9372faa8ea7468",11:"fcd28c063fc5f42fcfb1",12:"5f2625be387d0754a192",13:"e9b269df79fbe5ad9c06",14:"bfd9c5010f9394195348",15:"db3b1d74067d6c022254",16:"371568a3cde808513ed8",17:"2a9a627585bfad35d6fd",18:"fd7287a651d92b585d92",19:"5834a038632e44903605",20:"7b9c715be6b1f4fd1abb",21:"09ef3499b85121c205bf",22:"accc95cfa79a18a4db8e",23:"bb05d6b76554ea1c07f4",24:"88b60652d5c177c02031",25:"8d762ae9ecd5555894e6",26:"ff6f0dc0f3ccb86ce531",27:"b7bc5cfa4165ec0d7dde",28:"096e3c9a8faca23ca3d8",29:"16999d57f486e85b197d",30:"666907bd786bd3d85c16"}[e]+".js";var o=setTimeout(d,12e4);function d(){t.onerror=t.onload=null,clearTimeout(o);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return t.onerror=t.onload=d,f.appendChild(t),a},r.m=e,r.c=a,r.d=function(e,c,a){r.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},r.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(c,"a",c),c},r.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},r.p="./",r.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.a4400e3db5cefca30fbe.js.map
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,t,f){for(var d,o,b,i=0,u=[];i<a.length;i++)o=a[i],n[o]&&u.push(n[o][0]),n[o]=0;for(d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d]);for(c&&c(a,t,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=r(r.s=f[i]);return b};var a={},n={33:0};function r(c){if(a[c])return a[c].exports;var n=a[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var c=n[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,r){c=n[e]=[a,r]});c[2]=a;var t=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,r.nc&&f.setAttribute("nonce",r.nc),f.src=r.p+"static/js/"+e+"."+{0:"b86114f3dce96ac0e07b",1:"c1017b8a513cbf71ebbe",2:"344d5c61c44868322e7e",3:"88a303fc10feb8b51091",4:"f6a8f25f4e8cc458879d",5:"a4b8ca5df028eb5acd94",6:"652a05ac0e26b68c63c7",7:"dab0379a83ee21068ebd",8:"93a836f8e24ccbfa37a8",9:"f2fc23ef3295d1d71397",10:"dd0179c5403b17075d8c",11:"fcd28c063fc5f42fcfb1",12:"5f2625be387d0754a192",13:"e9b269df79fbe5ad9c06",14:"bfd9c5010f9394195348",15:"db3b1d74067d6c022254",16:"371568a3cde808513ed8",17:"2a9a627585bfad35d6fd",18:"fd7287a651d92b585d92",19:"5834a038632e44903605",20:"b94c943ab05dbbaed50c",21:"d00a22bde04cd9bcaa07",22:"f3cfba5aaf2f484a4433",23:"abcff409e8a1b1b2e992",24:"84c8d7030c4d5bcc16c2",25:"8b953bd9ff7d58cc8055",26:"ff6f0dc0f3ccb86ce531",27:"b7bc5cfa4165ec0d7dde",28:"096e3c9a8faca23ca3d8",29:"16999d57f486e85b197d",30:"666907bd786bd3d85c16"}[e]+".js";var d=setTimeout(o,12e4);function o(){f.onerror=f.onload=null,clearTimeout(d);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return f.onerror=f.onload=o,t.appendChild(f),a},r.m=e,r.c=a,r.d=function(e,c,a){r.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},r.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(c,"a",c),c},r.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},r.p="./",r.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.a736574ce8018c43bd16.js.map
\ No newline at end of file
...@@ -1099,7 +1099,7 @@ export default { ...@@ -1099,7 +1099,7 @@ export default {
// 自定义人群 // 自定义人群
if(item.useCrowd==2){ if(item.useCrowd==2){
var arr = JSON.parse(item.crowdJson); var arr = item.crowdJson?JSON.parse(item.crowdJson):[];
that.selectCount = 0; that.selectCount = 0;
if(arr.list){ if(arr.list){
arr.list.forEach((item)=>{ arr.list.forEach((item)=>{
...@@ -1148,7 +1148,7 @@ export default { ...@@ -1148,7 +1148,7 @@ export default {
if (!!item.integralGet && !!item.integralGet.integral) { if (!!item.integralGet && !!item.integralGet.integral) {
item.integralGet.integral = Number(item.integralGet.integral/10).toFixed(1) item.integralGet.integral = Number(item.integralGet.integral/10).toFixed(1)
} }
var channelType = [];
if (!!item.channelList.length) { if (!!item.channelList.length) {
item.channelList[0] = item.channelList.splice(1,1,item.channelList[0])[0]; // 第一个与第二个互换位置 item.channelList[0] = item.channelList.splice(1,1,item.channelList[0])[0]; // 第一个与第二个互换位置
item.channelList.forEach(function(ele,index) { item.channelList.forEach(function(ele,index) {
...@@ -1177,10 +1177,31 @@ export default { ...@@ -1177,10 +1177,31 @@ export default {
ele.goodsRelationIdArr = []; ele.goodsRelationIdArr = [];
ele.goodsRelationIdArr = ele.strategyGoodsRelationIdArr || [] // 复制商品字段 ele.goodsRelationIdArr = ele.strategyGoodsRelationIdArr || [] // 复制商品字段
} }
// 判断是否有微盟
channelType.push(ele.channelType);
}) })
if(channelType.indexOf('9') < 0){
item.channelList.push({
integralStrategyChannelId: "", //id
enterpriseId: "",
integralStrategyId: "", //策略id
channelType: "9", //渠道类型 1微信 3:线下 5淘宝 6京东 7唯品会 8天猫
openStatus: true, //渠道配置是否启用 1启用 0停用
channelRelationEnterpriseType: "1", // 策略关联企业 1所有企业 2部分企业
channelRelationStoreType: "1", //策略关联门店类型 1所有门店 2门店分组 3部分门店
channelStoreType: "0", // 策略选择门店类型 (-1:所有 0:自营 1:联营 2:加盟,3代销4托管)
channelRelationProType: "1", // 策略关联商品类型 1所有商品 2商品品牌 3商品类目 4部分商品
integralUseDiscountControl: "1", // 折扣控制 1所有折扣商品适用 2折扣范围
integralUseDiscountControlUpper: "0.0",
integralUseDiscountControlLower: "0.0",
useProportionalRestriction: "0.0", // 抵现比例限制
strategyGoodsRelationIdArr: [], // 商品
storeRelationIdArr: [], //门店
enterpriseRelationIdArr: [] //商户
})
}
} }
console.log(item.channelList[0]) // console.log(item.channelList[0])
return item; return item;
}, },
......
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