启程易购后端代码
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.
 
 
 
 
 
 
qicheng_shop_backend/public/static/js/pages-users-feedback-index....

1 lines
14 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-feedback-index"],{"0a66":function(t,a,e){"use strict";e.r(a);var i=e("505f"),n=e("f5d3");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);e("748b");var s=e("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"1a099a38",null,!1,i["a"],void 0);a["default"]=c.exports},"41b2":function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-1a099a38]{width:100%;background-color:#fff}body.?%PAGE?%[data-v-1a099a38]{background-color:#fff}.tips[data-v-1a099a38]{background-color:#f1f1f1;padding:%?20?%}.tips .tipBox[data-v-1a099a38]{width:100%;height:%?100?%;background:var(--view-minorColor);border-radius:%?16?%;line-height:%?100?%;display:flex;justify-content:space-between;font-size:%?24?%;font-weight:400;color:var(--view-theme);padding:%?0?% %?30?%}.tips .tipBox .left[data-v-1a099a38]{display:flex}.tips .tipBox .left uni-image[data-v-1a099a38]{width:%?70?%;height:%?70?%;background:#fff;border-radius:50%;display:inline-block;margin-top:%?15?%}.tips .tipBox .left .font[data-v-1a099a38]{padding-left:%?20?%}.feedback-container[data-v-1a099a38]{padding:%?30?%}.feedback-container .item-box[data-v-1a099a38]{margin-bottom:%?40?%}.feedback-container .item-box .title-box[data-v-1a099a38]{font-size:%?28?%;color:#222}.feedback-container .item-box .title-box uni-text[data-v-1a099a38]{margin-right:%?10?%;color:var(--view-theme)}.feedback-container .item-box .title-box .des[data-v-1a099a38]{margin-left:%?10?%;font-size:%?22?%;color:#999}.feedback-container .item-box .tab-box[data-v-1a099a38]{margin-top:%?20?%;display:flex;flex-wrap:wrap}.feedback-container .item-box .tab-box .tab-item[data-v-1a099a38]{line-height:%?66?%;align-items:center;justify-content:center;width:%?200?%;margin-right:%?20?%;margin-bottom:%?20?%;border:1px solid #bfbfbf;border-radius:33px;font-size:%?28?%;text-align:center}.feedback-container .item-box .tab-box .tab-item.active[data-v-1a099a38]{background:var(--view-theme);color:#fff;border-color:var(--view-theme)}.feedback-container .item-box .picker[data-v-1a099a38]{margin-top:%?30?%}.feedback-container .item-box .picker .picker-box[data-v-1a099a38]{position:relative;width:100%;height:%?90?%;line-height:%?90?%;padding:0 %?30?%;background-color:#f5f5f5;border-radius:%?10?%}.feedback-container .item-box .picker .picker-box .iconfont[data-v-1a099a38]{position:absolute;right:%?30?%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:%?22?%;color:var(--view-theme)}.feedback-container .item-box .textarea-box[data-v-1a099a38]{background:#f5f5f5;border-radius:%?10?%}.feedback-container .item-box .textarea-box uni-textarea[data-v-1a099a38]{width:100%;height:%?300?%;margin-top:%?30?%;padding:%?20?% %?20?% 0;font-size:%?28?%;line-height:1.5}.feedback-container .item-box .textarea-box .num[data-v-1a099a38]{color:#999;text-align:right;padding:%?20?%}.feedback-container .item-box .upload-img[data-v-1a099a38]{display:flex;flex-wrap:wrap}.feedback-container .item-box .upload-img .img-wrapper[data-v-1a099a38]{position:relative;display:flex;flex-wrap:wrap;margin:%?30?% %?20?% %?20?% 0;width:%?158?%;height:%?158?%}.feedback-container .item-box .upload-img .img-wrapper uni-image[data-v-1a099a38]{width:%?158?%;height:%?158?%}.feedback-container .item-box .upload-img .img-wrapper .iconfont[data-v-1a099a38]{position:absolute;right:%?-15?%;top:%?-20?%;font-size:%?40?%;color:var(--view-theme)}.feedback-container .item-box .upload-img .img-wrapper[data-v-1a099a38]:nth-child(4n){margin-right:0}.feedback-container .item-box .upload-img .add-img[data-v-1a099a38]{display:flex;align-items:center;justify-content:center;width:%?158?%;height:%?158?%;background:#f5f5f5;border-radius:%?10?%;margin-top:%?30?%;margin-bottom:%?20?%}.feedback-container .item-box .upload-img .add-img .iconfont[data-v-1a099a38]{color:#b5b5b5;font-size:%?55?%}.feedback-container .item-box .input-box uni-input[data-v-1a099a38]{display:block;width:100%;height:%?90?%;margin-top:%?20?%;padding-left:%?20?%;background:#f5f5f5;border-radius:%?10?%;font-size:%?28?%}.feedback-container .item-box .sub-btn[data-v-1a099a38]{height:%?90?%;line-height:%?90?%;background:var(--view-theme);color:#fff;font-size:%?32?%;text-align:center;border-radius:%?45?%}.feedback-container .item-box .link[data-v-1a099a38]{display:flex;align-items:center;justify-content:center;margin-top:%?20?%}.feedback-container .item-box .link .iconfont[data-v-1a099a38]{margin-top:%?6?%;font-size:%?22?%}.feedback-container .success[data-v-1a099a38]{z-index:10;position:fixed;left:0;top:0;width:100%;height:100%}.feedback-container .success .bg[data-v-1a099a38]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.5)}.feedback-container .success .con[data-v-1a099a38]{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;width:%?500?%;height:%?540?%;background:#fff;border-radius:%?10?%;font-size:%?34?%;color:#282828}.feedback-container .success .con uni-image[data-v-1a099a38]{width:%?149?%;height:%?230?%}.feedback-container .success .con .btn[data-v-1a099a38]{width:%?340?%;height:%?90?%;line-height:%?90?%;margin-top:%?38?%;text-align:center;color:#fff;background-image:linear-gradient(-90deg,var(--view-bntColor21),var(--view-bntColor22));border-radius:%?45?%}',""]),t.exports=a},"48aa":function(t,a,e){var i=e("41b2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("78630a04",i,!0,{sourceMap:!1,shadowMode:!1})},"505f":function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{style:t.viewColor},[1==t.is_open_service&&t.service?e("v-uni-view",{staticClass:"tips"},[e("v-uni-view",{staticClass:"tipBox",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.toChat.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"left"},[e("v-uni-image",{attrs:{src:t.domain+"/static/images/kefu.png",mode:""}}),e("v-uni-view",{staticClass:"font"},[t._v("如需尽快解决问题,可直接联系在线客服")])],1),e("v-uni-view",[e("i",{staticClass:"iconfont icon-xiangyou",staticStyle:{fontSize:"24rpx"}})])],1)],1):t._e(),e("v-uni-view",{staticClass:"feedback-container"},[e("v-uni-view",{staticClass:"item-box"},[e("v-uni-view",{staticClass:"title-box"},[e("v-uni-text",[t._v("*")]),t._v("反馈类型")],1),t.tabList.length>0?e("v-uni-view",{staticClass:"tab-box"},[t._l(t.tabList,(function(a,i){return[e("v-uni-view",{key:i,staticClass:"tab-item",class:{active:i==t.tabKey},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindTab(a,i)}}},[t._v(t._s(a.cate_name))])]}))],2):t._e(),t.qsArray.length>0?e("v-uni-view",{staticClass:"picker"},[e("v-uni-picker",{attrs:{value:t.qsIndex,range:t.qsArray,"range-key":"cate_name"},on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.bindPickerChange.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"picker-box"},[t._v(t._s(t.qsArray[t.qsIndex]["cate_name"])),e("v-uni-text",{staticClass:"iconfont icon-xiangxia"})],1)],1)],1):t._e()],1),e("v-uni-view",{staticClass:"item-box"},[e("v-uni-view",{staticClass:"title-box"},[e("v-uni-text",[t._v("*")]),t._v("反馈内容")],1),e("v-uni-view",{staticClass:"textarea-box"},[e("v-uni-textarea",{attrs:{maxlength:"200",placeholder:"请输入文字"},model:{value:t.con,callback:function(a){t.con=a},expression:"con"}}),e("v-uni-view",{staticClass:"num"},[t._v(t._s(t.con.length)+"/200字")])],1)],1),e("v-uni-view",{staticClass:"item-box"},[e("v-uni-view",{staticClass:"title-box"},[e("v-uni-text",[t._v("*")]),t._v("图片上传"),e("v-uni-text",{staticClass:"des"},[t._v("(上传聊天截图或与问题描述相关的图片)")])],1),e("v-uni-view",{staticClass:"upload-img"},[t._l(t.uploadImg,(function(a,i){return t.uploadImg.length>0?e("v-uni-view",{staticClass:"img-wrapper"},[e("v-uni-image",{attrs:{src:a}}),e("v-uni-view",{staticClass:"iconfont icon-guanbi1",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.deleteImg(i)}}})],1):t._e()})),t.isUpload?e("v-uni-view",{staticClass:"add-img",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.uploadpic.apply(void 0,arguments)}}},[e("v-uni-text",{staticClass:"iconfont icon-xiangji"})],1):t._e()],2)],1),e("v-uni-view",{staticClass:"item-box"},[e("v-uni-view",{staticClass:"title-box"},[e("v-uni-text",[t._v("*")]),t._v("联系方式")],1),e("v-uni-view",{staticClass:"input-box"},[e("v-uni-input",{attrs:{type:"text",placeholder:"请填写您的姓名"},model:{value:t.name,callback:function(a){t.name=a},expression:"name"}}),e("v-uni-input",{attrs:{type:"text",placeholder:"请填写您的电话或邮箱"},model:{value:t.phone,callback:function(a){t.phone=a},expression:"phone"}})],1)],1),e("v-uni-view",{staticClass:"item-box"},[e("v-uni-view",{staticClass:"sub-btn",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.bindSub.apply(void 0,arguments)}}},[t._v("提交反馈")]),e("v-uni-navigator",{staticClass:"link",attrs:{url:"/pages/users/feedback/list","hover-class":"none"}},[t._v("反馈记录"),e("v-uni-text",{staticClass:"iconfont icon-xiangyou"})],1)],1),t.isShowbox?e("v-uni-view",{staticClass:"success"},[e("v-uni-view",{staticClass:"bg"}),e("v-uni-view",{staticClass:"con"},[e("v-uni-image",{attrs:{src:t.domain+"/static/diy/success"+t.keyColor+".png",mode:""}}),e("v-uni-view",{staticClass:"text"},[t._v("反馈提交成功")]),e("v-uni-view",{staticClass:"btn",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.close.apply(void 0,arguments)}}},[t._v("我知道了")])],1)],1):t._e()],1)],1)},n=[]},"5a7e":function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.checkPhone=function(t){return!!/^1(3|4|5|6|7|8|9)\d{9}$/.test(t)},a.isEmailAvailable=function(t){return!!/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(t)},a.isMoney=function(t){return!!/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(t)},e("ac1f"),e("00b4")},"748b":function(t,a,e){"use strict";var i=e("48aa"),n=e.n(i);n.a},ea6b:function(t,a,e){"use strict";e("7a82");var i=e("4ea4").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("d3b7"),e("159b"),e("14d9"),e("a434");var n=i(e("5530")),o=e("6859"),s=e("5a7e"),c=e("26cb"),r=e("f26a"),d=e("3255"),l={data:function(){return{domain:r.HTTP_REQUEST_URL,tabList:[],tabKey:0,qsArray:[],qsIndex:0,con:"",uploadImg:[],name:"",phone:"",isShowbox:!1,isUpload:!0,service:!1}},computed:(0,n.default)({},(0,d.configMap)(["is_open_service"],(0,c.mapGetters)(["viewColor","keyColor"]))),watch:{uploadImg:function(t,a){this.isUpload=t.length<6}},onLoad:function(){var t=this;this.hasService(),(0,o.feedbackType)().then((function(a){var e=a.data;t.tabList=e,t.getFeedBack(e)}))},methods:{toChat:function(){uni.navigateTo({url:"/pages/chat/customer_list/chat?mer_id=0"})},hasService:function(){var t=this;(0,o.hasServiceApi)(0).then((function(a){t.service=!0})).catch((function(a){t.service=!1}))},getFeedBack:function(t){var a=this;t.forEach((function(e,i){if(e.children)return a.tabKey=i,void(a.qsArray=t[a.tabKey].children)}))},bindPickerChange:function(t){this.qsIndex=t.target.value},bindTab:function(t,a){this.tabKey=a,this.qsIndex=0,this.qsArray=this.tabList[this.tabKey].children?this.tabList[this.tabKey].children:[]},uploadpic:function(){var t=this;t.$util.uploadImageOne("upload/image",(function(a){t.uploadImg.push(a.data.path),t.$set(t,"uploadImg",t.uploadImg)}))},close:function(){this.con="",this.uploadImg=[],this.name="",this.phone="",this.isShowbox=!1},deleteImg:function(t){this.uploadImg.splice(t,1)},bindSub:function(){var t=this;this.con?0!=this.uploadImg.length?this.name?this.phone?(0,s.isEmailAvailable)(this.phone)||(0,s.checkPhone)(this.phone)?(0,o.feedback)({type:this.qsArray[this.qsIndex]&&this.qsArray[this.qsIndex].feedback_category_id||0,content:this.con,images:this.uploadImg,realname:this.name,contact:this.phone}).then((function(a){t.isShowbox=!0})).catch((function(a){t.$util.Tips({title:a})})):uni.showToast({title:"请输入有效的电话或者邮箱",icon:"none"}):uni.showToast({title:"请输入电话或者邮箱",icon:"none"}):uni.showToast({title:"请输入姓名",icon:"none"}):uni.showToast({title:"请上传图片",icon:"none"}):uni.showToast({title:"请输入反馈内容",icon:"none"})}}};a.default=l},f5d3:function(t,a,e){"use strict";e.r(a);var i=e("ea6b"),n=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);a["default"]=n.a}}]);