You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
3.4 KiB

  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/center/consumer/remind"],{155:function(e,t,n){"use strict";n.r(t);var o=n(156),s=n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=s.a},156:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(6),s=function(){n.e("components/kx-datetime/kx-datetime").then(function(){return resolve(n(436))}.bind(null,n)).catch(n.oe)},i={data:function(){return{str:"",date:"",startdate:"2021-01-01 00:00",enddate:"2025-12-30 23:59",code:"",customerId:"",value:""}},components:{KXDateTime:s},methods:{kxdatetime:function(e){console.log(e),this.date=e},add:function(){if(this.date)if(this.value){var t=this;e.getSetting({withSubscriptions:!0,success:function(n){console.log(n),n&&n.subscriptionsSetting&&n.subscriptionsSetting.itemSettings&&"accept"==n.subscriptionsSetting.itemSettings["cBnJvhkMPHp0ReUiSdpM_Pd2usGeEEW6wx-5s6X4hEI"]?t.addFlag():e.requestSubscribeMessage({tmplIds:["cBnJvhkMPHp0ReUiSdpM_Pd2usGeEEW6wx-5s6X4hEI"],success:function(e){t.addFlag()},fail:function(e){console.log(e),o.showNone("请授权")}})},fail:function(e){console.log(e)}})}else e.showToast({title:"请填写备注",icon:"none"});else e.showToast({title:"请选择时间",icon:"none"})},addFlag:function(){var t=this,n={customerId:t.customerId,orderRemindTime:t.date+":00",code:t.code,remarks:this.value,OrderRemindDesc:this.value};this.$u.post("/customer/settingTime",n).then((function(t){e.showToast({title:"操作成功"}),e.navigateBack()}))}},onLoad:function(t){this.str=t.str,this.customerId=t.customerId||"";var n=this,o=(new Date).toLocaleDateString().split("/").join("-")+" "+(new Date).getHours()+":"+(new Date).getMinutes();this.startdate=o,console.log(o),e.login({success:function(e){e.code?n.code=e.code:console.log("登录失败!"+e.errMsg)}})}};t.default=i}).call(this,n(0)["default"])},157:function(e,t,n){},212:function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));try{o={uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-input/u-input")]).then(n.bind(null,594))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var s=function(){var e=this,t=e.$createElement;e._self._c},i=[];s._withStripped=!0},422:function(e,t,n){"use strict";(function(e){n(3);o(n(2));var t=o(n(423));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n(0)["createPage"])},423:function(e,t,n){"use strict";n.r(t);var o=n(212),s=n(155);for(var i in s)"default"!==i&&function(e){n.d(t,e,(function(){return s[e]}))}(i);n(424);var c,u=n(1),r=Object(u["a"])(s["default"],o["b"],o["c"],!1,null,"476d293d",null,!1,o["a"],c);r.options.__file="pages/center/consumer/remind.vue",t["default"]=r.exports},424:function(e,t,n){"use strict";var o=n(157),s=n.n(o);s.a}},[[422,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/center/consumer/remind.js.map