1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["shop-avtivity-list-updata"],{"0e0e":function(t,e,n){"use strict";n.r(e);var a=n("8cd9"),i=n("8380");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("c32d");var s=n("828b"),u=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"eaf116a2",null,!1,a["a"],void 0);e["default"]=u.exports},1939:function(t,e,n){var a=n("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-input[data-v-22f87c42]{display:flex;flex-direction:row;position:relative;flex:1}.tn-input__input[data-v-22f87c42]{font-size:%?28?%;color:#080808;flex:1}.tn-input__textarea[data-v-22f87c42]{width:auto;font-size:%?28?%;color:#080808;padding:%?10?% 0;line-height:normal;flex:1}.tn-input--border[data-v-22f87c42]{border-radius:%?6?%;border:%?2?% solid rgba(0,0,0,.1)}.tn-input--error[data-v-22f87c42]{border-color:#e83a30!important}.tn-input__right-icon[data-v-22f87c42]{line-height:1}.tn-input__right-icon .icon[data-v-22f87c42]{color:#aaa}.tn-input__right-icon__item[data-v-22f87c42]{margin-left:%?10?%}.tn-input__right-icon__clear .icon[data-v-22f87c42]{font-size:%?32?%}.tn-input__right-icon__select[data-v-22f87c42]{transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.tn-input__right-icon__select .icon[data-v-22f87c42]{font-size:%?26?%}.tn-input__right-icon__select--reverse[data-v-22f87c42]{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}',""]),t.exports=e},"434f":function(t,e,n){var a=n("aad2");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("ce8b5fd0",a,!0,{sourceMap:!1,shadowMode:!1})},"4fa6":function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.service=s;var i=a(n("9b1b")),o=a(n("05d8"));function s(t,e){return o.default.request((0,i.default)({method:"get",url:"manage/kefu/setting/index",data:t},e))}var u={service:s};e.default=u},"502e":function(t,e,n){"use strict";n.r(e);var a=n("8687"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},6864:function(t,e,n){"use strict";n.r(e);var a=n("a6a5"),i=n("502e");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("e370");var s=n("828b"),u=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"22f87c42",null,!1,a["a"],void 0);e["default"]=u.exports},"750c":function(t,e,n){var a=n("1939");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("dce1f50a",a,!0,{sourceMap:!1,shadowMode:!1})},8380:function(t,e,n){"use strict";n.r(e);var a=n("9338"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},8687:function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa"),n("0c26");var i=a(n("a7d1")),o={mixins:[i.default],name:"tn-input",props:{value:{type:[String,Number],default:""},type:{type:String,default:"text"},inputAlign:{type:String,default:"left"},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:"color: #AAAAAA"},disabled:{type:Boolean,default:!1},maxLength:{type:Number,default:255},height:{type:Number,default:0},autoHeight:{type:Boolean,default:!0},confirmType:{type:String,default:"done"},customStyle:{type:Object,default:function(){return{}}},fixed:{type:Boolean,default:!1},focus:{type:Boolean,default:!1},passwordIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},borderColor:{type:String,default:"#dcdfe6"},selectOpen:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},cursorSpacing:{type:Number,default:0},selectionStart:{type:Number,default:-1},selectionEnd:{type:Number,default:-1},trim:{type:Boolean,default:!0},showConfirmBar:{type:Boolean,default:!0},showRightIcon:{type:Boolean,default:!1},rightIcon:{type:String,default:""}},computed:{inputStyle:function(){var t={};return t.minHeight=this.height?this.height+"rpx":"textarea"===this.type?this.textareaHeight+"rpx":this.inputHeight+"rpx",t=Object.assign(t,this.customStyle),t},elSelectionStart:function(){return String(this.selectionStart)},elSelectionEnd:function(){return String(this.selectionEnd)}},data:function(){return{defaultValue:this.value,inputHeight:70,textareaHeight:100,validateState:!1,focused:!1,showPassword:!1,lastValue:""}},watch:{value:function(t,e){this.defaultValue=t,t!==e&&"select"===this.type&&this.handleInput({detail:{value:t}})}},created:function(){this.$on("on-form-item-error",this.onFormItemError)},methods:{handleInput:function(t){var e=this,n=t.detail.value;this.trim&&(n=this.$t.string.trim(n)),this.$emit("input",n),this.defaultValue=n,setTimeout((function(){e.dispatch("tn-form-item","on-form-change",n)}),40)},handleBlur:function(t){var e=this,n=t.detail.value;setTimeout((function(){e.focused=!1}),100),this.$emit("blur",n),setTimeout((function(){e.dispatch("tn-form-item","on-form-blur",n)}),40)},onFormItemError:function(t){this.validateState=t},onFocus:function(t){this.focused=!0,this.$emit("focus")},onConfirm:function(t){this.$emit("confirm",t.detail.value)},onClear:function(t){this.$emit("input","")},inputClick:function(){this.$emit("click")}}};e.default=o},"8cd9":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={tnNavBar:n("3703").default,tnRadioGroup:n("439e").default,tnRadio:n("bc0f").default,tnInput:n("6864").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{},[n("tn-nav-bar",{attrs:{fixed:!0}},[t._v("客服状态")]),n("v-uni-view",{style:{marginTop:t.vuex_custom_bar_height+10+"px"}},["kefu_status"==t.type?n("v-uni-view",[n("v-uni-view",{staticClass:"tn-flex-1 tn-padding-sm tn-margin",staticStyle:{"text-indent":"10rpx"}},[t._v("店员客服状态")]),n("v-uni-view",{staticClass:"shangpu-shadow tn-margin-sm"},[n("v-uni-view",{staticClass:"tn-padding-sm"},t._l(t.rougest,(function(e,a){return n("tn-radio-group",{key:a,on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.radioGroupChangedTada.apply(void 0,arguments)}},model:{value:t.datastud,callback:function(e){t.datastud=e},expression:"datastud"}},[n("v-uni-view",{staticClass:"tn-flex tn-margin-top"},[n("v-uni-view",{staticClass:"tn-flex-1 tn-margin-right-sm"},[t._v(t._s(e.name))]),n("tn-radio",{attrs:{name:e.kefu_status,disabled:e.disabled},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.radioChangedTada.apply(void 0,arguments)}}})],1)],1)})),1)],1)],1):"busy_reply"==t.type?n("v-uni-view",{staticClass:"tn-margin-sm"},[n("v-uni-view",{staticClass:"tn-padding-sm",staticStyle:{"text-indent":"10rpx"}},[t._v("忙碌状态自动回复")]),n("v-uni-view",{staticClass:"shangpu-shadow"},[n("v-uni-view",{staticClass:" tn-padding-sm"},[n("tn-input",{staticStyle:{color:"'#cbc9cc'"},attrs:{type:"textarea",placeholder:"当对话忙碌状态时,将自动回复此内容给顾客"},model:{value:t.store.data.kefu.busy_reply,callback:function(e){t.$set(t.store.data.kefu,"busy_reply",e)},expression:"store.data.kefu.busy_reply"}})],1)],1)],1):t._e()],1),n("v-uni-view",{staticClass:"tn-margin tn-text-center tn-padding-sm",staticStyle:{"background-color":"#33aafc",color:"white"},attrs:{disabled:!t.islegal},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onSubmit.apply(void 0,arguments)}}},[t._v("保存修改")])],1)},o=[]},9338:function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("2634")),o=a(n("2fdc")),s=a(n("4fa6")),u=a(n("05d8")),r={data:function(){return{rougest:[{name:"在线",disabled:!1,title:"",kefu_status:1},{name:"忙碌",disabled:!1,title:"",kefu_status:2},{name:"离线",disabled:!1,title:"",kefu_status:3}],datastud:1,type:"",title:"",clerk:{kefu_status:"1"},store:{data:{kefu:{busy_reply:""}}},islegal:!1,showPreLoading:!0}},onLoad:function(t){console.log(t,7777),this.type=t.type,console.log(t.type,77775522),this.rougest.kefu_status=this.clerk.kefu_status,this.settingIndex()},methods:{settingIndex:function(){var t=this;return(0,o.default)((0,i.default)().mark((function e(){var n,a;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t,e.next=3,s.default.service({});case 3:a=e.sent,a&&(console.log(a,"1111111111"),n.store=u.default.extend(n.store,a.store),n.clerk=u.default.extend(n.clerk,a.clerk));case 5:case"end":return e.stop()}}),e)})))()},radioChangedTada:function(t){this.clerk.kefu_status=this.rougest.kefu_status},radioGroupChangedTada:function(t){},onSubmit:function(){if(this.islegal){this.islegal=!1;var t={type:this.type};"kefu_status"==this.type?t["kefu_status"]=this.clerk.kefu_status:"busy_reply"==this.type&&(t["busy_reply"]=this.store.data.kefu.busy_reply),u.default.request({vue:this,url:"manage/kefu/setting/update"})}}}};e.default=r},a6a5:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"tn-input-class tn-input",class:{"tn-input--border":t.border,"tn-input--error":t.validateState},style:{padding:"0 "+(t.border?20:0)+"rpx",borderColor:t.borderColor,textAlign:t.inputAlign},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.inputClick.apply(void 0,arguments)}}},["textarea"===t.type?n("v-uni-textarea",{staticClass:"tn-input__input tn-input__textarea",style:[t.inputStyle],attrs:{value:t.defaultValue,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled||"select"===t.type,maxlength:t.maxLength,fixed:t.fixed,focus:t.focus,autoHeight:t.autoHeight,selectionStart:t.elSelectionStart,selectionEnd:t.elSelectionEnd,cursorSpacing:t.cursorSpacing,showConfirmBar:t.showConfirmBar},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInput.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBlur.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}}):n("v-uni-input",{staticClass:"tn-input__input",style:[t.inputStyle],attrs:{type:"password"===t.type?"text":t.type,value:t.defaultValue,password:"password"===t.type&&!t.showPassword,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled||"select"===t.type,maxlength:t.maxLength,focus:t.focus,confirmType:t.confirmType,selectionStart:t.elSelectionStart,selectionEnd:t.elSelectionEnd,cursorSpacing:t.cursorSpacing,showConfirmBar:t.showConfirmBar},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInput.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBlur.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"tn-input__right-icon tn-flex tn-flex-col-center"},[t.clearable&&""!==t.value&&t.focused?n("v-uni-view",{staticClass:"tn-input__right-icon__item tn-input__right-icon__clear",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClear.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"icon tn-icon-close"})],1):"text"===t.type&&!t.focused&&t.showRightIcon&&""!==t.rightIcon?n("v-uni-view",{staticClass:"tn-input__right-icon__item tn-input__right-icon__clear"},[n("v-uni-view",{staticClass:"icon",class:["tn-icon-"+t.rightIcon]})],1):t._e(),t.passwordIcon&&"password"===t.type?n("v-uni-view",{staticClass:"tn-input__right-icon__item tn-input__right-icon__clear",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showPassword=!t.showPassword}}},[t.showPassword?n("v-uni-view",{staticClass:"icon tn-icon-eye"}):n("v-uni-view",{staticClass:"tn-icon-eye-hide"})],1):t._e(),"select"===t.type?n("v-uni-view",{staticClass:"tn-input__right-icon__item tn-input__right-icon__select",class:{"tn-input__right-icon__select--reverse":t.selectOpen}},[n("v-uni-view",{staticClass:"icon tn-icon-up-triangle"})],1):t._e()],1)],1)},i=[]},aad2:function(t,e,n){var a=n("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.shangpu-shadow[data-v-eaf116a2]{border-radius:%?15?%;background-color:#fff;box-shadow:%?0?% %?0?% %?50?% %?0?% rgba(0,0,0,.07)}.shangpu-shadow .zhuangtai[data-v-eaf116a2]{height:%?220?%}',""]),t.exports=e},c32d:function(t,e,n){"use strict";var a=n("434f"),i=n.n(a);i.a},e370:function(t,e,n){"use strict";var a=n("750c"),i=n.n(a);i.a}}]);
|