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.
1 lines
16 KiB
1 lines
16 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-feedback-add"],{"0404":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={uPopup:n("9f5d").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"add"},[a("v-uni-view",{staticClass:"add-hd",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getConfigData()}}},[t._v("如需尽快解决问题,可直接联系在线客服"),a("v-uni-image",{attrs:{src:n("ded9")}})],1),a("v-uni-view",{staticClass:"add-content"},[a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"title"},[a("v-uni-text",{staticClass:"red"},[t._v("*")]),t._v("反馈内容")],1),a("v-uni-view",{staticClass:"box"},[a("v-uni-textarea",{attrs:{maxlength:"200",placeholder:"如有必要,请详细描述(200字以内)~"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}),a("v-uni-view",{staticClass:"tips"},[t._v(t._s(t.content.length)+"/200字")])],1)],1),a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"title"},[a("v-uni-text",{staticClass:"red"},[t._v("*")]),t._v("图片上传"),a("v-uni-text",{staticClass:"hs"},[t._v("(上传聊天截图或与问题描述相关的图片)")])],1),a("v-uni-view",{staticClass:"list"},[t._l(t.imgurl,(function(e,i){return a("v-uni-view",{key:i,staticClass:"item"},[a("v-uni-image",{staticClass:"pic",attrs:{src:e}}),a("v-uni-image",{staticClass:"del",attrs:{src:n("243d")},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toDel(i)}}})],1)})),a("v-uni-view",{staticClass:"upload",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadImg()}}},[a("v-uni-image",{staticClass:"pic",attrs:{src:n("fd1f")}}),a("v-uni-view",{staticClass:"txt"},[t._v("上传图片")])],1)],2)],1),a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"title"},[a("v-uni-text",{staticClass:"red"},[t._v("*")]),t._v("联系方式")],1),a("v-uni-view",{staticClass:"list"},[a("v-uni-view",{staticClass:"dd"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请填写您的姓名"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),a("v-uni-view",{staticClass:"dd"},[a("v-uni-input",{attrs:{type:"text",placeholder:"请填写您的电话"},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}})],1)],1)],1)],1),a("v-uni-view",{staticClass:"add-fd"},[a("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toReg()}}},[t._v("提交反馈")]),a("v-uni-view",{staticClass:"history",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toPage()}}},[t._v("反馈记录 >")])],1),a("u-popup",{attrs:{mode:"center","border-radius":"20","mask-close-able":!0},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[a("v-uni-view",{staticClass:"feed"},[a("v-uni-image",{attrs:{src:n("c6f5")}}),a("v-uni-view",{staticClass:"title"},[t._v("反馈提交成功")]),a("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.show=!1}}},[t._v("我知道了")])],1)],1)],1)},o=[]},"243d":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAsNJREFUSEvtl01vElEUhk8TyAx1OmqiJu2CllVXVE3Qv+DCuCGk6XYIH43RULCE0kzCqgltM5UOZOKigU4TCum2K/0JutC4Eo0LjNUQjQmOE/kYGHMIUxtTOpcC6UZWA/fc95n33HMP947B348dAOYA4AYAWE78PozHBgB8B4C3APAJBce6qncA4PYwCAQarwHgFYKnAeAewYRhhjxH8AMAmBymKoHWVwR7R7CmZmwNwQGzqFGM/wePIqunahKl+vDw8L7L5ZoLhULywcHBl7Pezu12T2az2UeVSuVodnZW6hVLBK5Wq2ssy16r1WoKx3FbxWLxVPj8/PxULpcLj4+Ps41G4zdFUUsDgRcXFx2iKC5ZrVa6F9zj8Uzu7e09sdlsE5qmNXmeT6+vr5cGAuNkn883LUlSpAv/xXGcYDhHp7u7uxGEtlqt5vLy8nYqlfpw1pIQpdoQOA2uaZpuOEXo6upqemNjo6dTQ6svME4KBoMz6XQ6jM5VVa3quq4zDHMFobFYTBQE4T3J1ugbjKJ+v39GFMXHNE0z+L1Wq6k8zz8jhRp/i323TCwkWZaxei+jiKqqP/1+f6pQKByRuD0XeGFhYSqbzXYKCbeMruttiqIu1et1LLgtUnhfqcbqlWU5QtP0RLvdbkaj0W1FUZqSJIUtFguNcK/X+3R/f/+zmXNiMDrN5XLH0JWVFXFzc7NTSIFAwJHJZLDgqHq9ruJWM3NOBMY2mM/nEcpi9fI8n0kmk+9Ouuo2mQ4ci83n8wn5fL7nmhOBFUVJMgxzFaHxePzY6b/pPNnhFEX5wbJsfKDOVSqVHtrtdkcikdgxaw641QRBCJbL5Y9Op3NnILBZoZxnnCjV5xE2m4NgDgCsZoFDHu8c9i7seHsRB/oXxhXmLgDcGnI6e8m9AYCXBhiD8NJ2EwCuj+CArwHAt+6lrYywP49/M8MLP/onAAAAAElFTkSuQmCC"},"2d5f":function(t,e,n){var a=n("d1a3");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("8942cacc",a,!0,{sourceMap:!1,shadowMode:!1})},"2ffc":function(t,e,n){"use strict";n.r(e);var a=n("3f46"),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},"3f46":function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("aa9c"),n("dd2b");var i=a(n("2634")),o=a(n("2fdc")),d={data:function(){return{show:!1,imgurl:[],content:"",tabIndex:1,name:"",phone:""}},methods:{toPage:function(){uni.navigateTo({url:"/pages/users/feedback/list"})},getConfigData: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,n.$api.getConfigData({dictType:"CONFIG_CUSTOMER_SERVICE_USERID"});case 3:a=e.sent,a.data.content&&n.toChat(a.data.content);case 5:case"end":return e.stop()}}),e)})))()},toChat:function(t){var e=this;return(0,o.default)((0,i.default)().mark((function n(){var a,o,d;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.findZegoToken({userId:uni.getStorageSync("userInfo").id,sellerId:t});case 2:a=n.sent,o=a.code,d=a.data,200==o&&(uni.setStorageSync("chatToken",d.token),uni.navigateTo({url:"/pages/users/chat/index?id="+t+"&roomId="+d.roomId}));case 6:case"end":return n.stop()}}),n)})))()},uploadImg:function(){var t=this;uni.chooseImage({count:9-t.imgurl.length,sizeType:["original"],sourceType:["album","camera"],success:function(e){console.log(e);for(var n=0;n<e.tempFilePaths.length;n++)uni.uploadFile({name:"file",url:t.$baseUrl+"/prod-api/common/upload",filePath:e.tempFilePaths[n],success:function(e){var n=JSON.parse(e.data),a=n.code,i=(n.fileName,n.url);n.msg;200==a?(uni.showToast({title:"上传成功"}),t.imgurl.push(i)):uni.showToast({icon:"error",title:"上传失败"})},fail:function(t){console.log(t)}})},fail:function(t){console.log("fail",t)}})},toReg:function(){var t=this;return(0,o.default)((0,i.default)().mark((function e(){var n,a,o,d;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,n.content){e.next=4;break}return uni.showToast({icon:"none",position:"bottom",title:"反馈内容不能为空!"}),e.abrupt("return");case 4:if(0!=n.imgurl.length){e.next=7;break}return uni.showToast({icon:"none",position:"bottom",title:"请上传图片"}),e.abrupt("return");case 7:if(n.name){e.next=10;break}return uni.showToast({icon:"none",position:"bottom",title:"姓名不能为空!"}),e.abrupt("return");case 10:if(n.phone){e.next=13;break}return uni.showToast({icon:"none",position:"bottom",title:"电话不能为空!"}),e.abrupt("return");case 13:return e.next=15,n.$api.feedback({userId:uni.getStorageSync("userInfo").id,content:n.content,imgurl:n.imgurl.join(","),name:n.name,phone:n.phone});case 15:a=e.sent,o=a.code,a.data,d=a.msg,200==o?(n.imgurl=[],n.content="",n.name="",n.phone="",n.show=!0):uni.showToast({icon:"none",position:"bottom",title:d});case 20:case"end":return e.stop()}}),e)})))()},tabItem:function(t){this.tabIndex=t},toDel:function(t){this.imgurl.splice(t,1)}}};e.default=d},c6f5:function(t,e,n){t.exports=n.p+"static/feed-01.png"},cc6a:function(t,e,n){"use strict";n.r(e);var a=n("0404"),i=n("2ffc");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("ea6e");var d=n("828b"),c=Object(d["a"])(i["default"],a["b"],a["c"],!1,null,"94ec7ce4",null,!1,a["a"],void 0);e["default"]=c.exports},d1a3:function(t,e,n){var a=n("c86c");e=a(!1),e.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/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.add[data-v-94ec7ce4]{overflow:hidden;padding-bottom:%?200?%}.add-hd[data-v-94ec7ce4]{padding:0 %?20?%;display:flex;align-items:center;justify-content:space-between;line-height:%?80?%;background:#fbebeb;font-weight:400;font-size:%?26?%;color:#e53623}.add-hd uni-image[data-v-94ec7ce4]{width:%?45?%;height:%?45?%}.add .feed[data-v-94ec7ce4]{width:%?670?%;height:%?688?%;background:#fff;border-radius:%?20?%;text-align:center;padding-top:%?70?%;box-sizing:border-box}.add .feed uni-image[data-v-94ec7ce4]{width:%?408?%;height:%?315?%}.add .feed .title[data-v-94ec7ce4]{font-weight:500;font-size:%?36?%;color:#222;margin-top:%?50?%}.add .feed .btn[data-v-94ec7ce4]{width:%?400?%;line-height:%?90?%;background:linear-gradient(0deg,#000,#3d3b38);box-shadow:0 %?4?% %?18?% 0 rgba(42,41,39,.34);border-radius:%?90?%;font-weight:500;font-size:%?30?%;color:#fff;margin:0 auto;margin-top:%?50?%}.add-content[data-v-94ec7ce4]{padding:%?30?%;overflow:hidden;background:#fff;border-radius:%?20?%;width:%?700?%;margin:0 auto;margin-top:%?20?%;box-sizing:border-box}.add-content .content[data-v-94ec7ce4]{box-sizing:border-box;overflow:hidden}.add-content .content .box[data-v-94ec7ce4]{width:100%;background:#f6f6f6;border-radius:%?10?%;padding:%?30?%;box-sizing:border-box;margin:%?30?% auto}.add-content .content .box uni-textarea[data-v-94ec7ce4]{width:100%;height:%?300?%;font-weight:400;font-size:%?28?%;color:#212121}.add-content .content .box .tips[data-v-94ec7ce4]{font-weight:400;font-size:%?28?%;color:#999;margin-top:%?20?%;text-align:right}.add-content .content .picker[data-v-94ec7ce4]{height:%?90?%;line-height:%?90?%;background:#f6f6f6;border-radius:%?10?%;padding:0 %?30?%;box-sizing:border-box;font-size:%?28?%;color:#333;margin:%?30?% auto}.add-content .content .tab[data-v-94ec7ce4]{display:flex;align-items:center;justify-content:flex-start;margin-top:%?20?%}.add-content .content .tab .li[data-v-94ec7ce4]{padding:0 %?40?%;font-weight:500;font-size:%?30?%;color:#333;line-height:%?61?%;background:#fff;border-radius:%?61?%;border:1px solid #ccc;text-align:center;margin-right:%?20?%}.add-content .content .tab .li-on[data-v-94ec7ce4]{background:linear-gradient(0deg,#000,#3d3b38);border:1px solid #2261cd;color:#fff}.add-content .title[data-v-94ec7ce4]{font-weight:400;font-size:%?30?%;color:#212121}.add-content .title .red[data-v-94ec7ce4]{color:#e53623}.add-content .title .hs[data-v-94ec7ce4]{font-size:%?24?%;color:#999}.add-content .list[data-v-94ec7ce4]{width:110%;margin-bottom:%?30?%;overflow:hidden}.add-content .list .dd[data-v-94ec7ce4]{width:100%;padding:0 %?20?%;box-sizing:border-box;background:#f6f6f6;border-radius:%?10?%;margin-top:%?20?%}.add-content .list .dd uni-input[data-v-94ec7ce4]{width:100%;height:%?90?%;line-height:%?90?%;font-weight:400;font-size:%?28?%;color:#212121}.add-content .list .upload[data-v-94ec7ce4]{width:%?150?%;height:%?150?%;background:#fff;border-radius:%?10?%;border:1px solid #ddd;float:left;font-weight:400;text-align:center;font-size:%?24?%;color:#999;margin-top:%?30?%}.add-content .list .upload uni-image[data-v-94ec7ce4]{width:%?50?%;height:%?50?%;display:block;margin:0 auto;margin-top:%?25?%;margin-bottom:%?10?%}.add-content .list .item[data-v-94ec7ce4]{width:%?150?%;height:%?150?%;border-radius:%?10?%;float:left;margin-top:%?30?%;overflow:hidden;position:relative;margin-right:%?12?%}.add-content .list .item .pic[data-v-94ec7ce4]{width:100%;height:100%}.add-content .list .item .del[data-v-94ec7ce4]{width:%?35?%;height:%?35?%;position:absolute;right:0;top:0;z-index:2}.add-fd[data-v-94ec7ce4]{width:100%;padding:%?20?% %?25?%;box-sizing:border-box;position:fixed;left:0;bottom:0;z-index:22;background-color:#fff}.add-fd .btn[data-v-94ec7ce4]{width:100%;line-height:%?90?%;background:linear-gradient(0deg,#000,#3d3b38);box-shadow:0 %?4?% %?18?% 0 rgba(42,41,39,.34);border-radius:%?90?%;text-align:center;font-weight:400;font-size:%?30?%;color:#fff;letter-spacing:%?2?%}.add-fd .history[data-v-94ec7ce4]{text-align:center;font-weight:400;font-size:%?26?%;color:#666;margin-top:%?20?%}',""]),t.exports=e},ded9:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAAqNJREFUWEft181LFGEcB/Dvb8xVrISCfJlZRWYWBAWJbNZDdOnQK0ZvYKciD14iQoheoGvkIXo7dCk6BBXUQTpImZ46BDuzSV3CqJ0RXBezN1Ap3HXnF7PZZYkOPs8jCjN/wPP7zHd+8zy/h7DGHlpjXkRg1V8sSjhKuCyBqCWilpDZElnbek2EJlrEIX0s80Z1uuH6Qj2ctc1xImoFMAcKjhopf0Q1Wgg8Y7c0FEh7DtBWAHli7tVd76FKtBA4hH3rStT+4mCQQLuIOWDQBcPNXFOFFgaHMG5ri+XWLzwAoafUZwFfb0x75whg2XAp4BIaoCnbvEFEZ//8HPzox7x3qv098jLR0sB/UVNJ6zwYA6DQzKOx2dkjWz58nZOFlg4OYdmkdQLAPQIqwRhbpwX761P+ZxloJeAQNmlbezXCUwAbmOHFithTN5b5JIpWBg5huaS5HaAhBuoImAH4gO54aRG0UnAIm9lmJfIVGCaCCWC+iOKxZmdieLlo5eAQ5tstDTHS3gJUH56KhpOpXdXgnG1eZaKLpe2P+U7c9U6vSnC4N08nrVsBcGYJezPuev3LxQoPP/8rzICWS5p3AepdKnRFdzKXRbDKwOlOVDZqVnhUHy8VYb6ku96AKFYJ+GMiUVWziZ+AcDAchgDq193MbRlY6eBcp17DFdWDAO0mcJEJfUbKuy8LKxX8ZUfrxnyhMATQTgIKDD5pON5jmVhp4Mn2+Gaqib0gIhuMBWjFHiM18Uw2Vgp4usOqK1bzCEAdAP8k4sN6yn+pAisMznYZceKqUYBaCZhd5KC72fVfqcIKg6dscxylSyh/DwLe15T2HZVYYfDSNT/OCLrjjv9ONVYYvBLA8horMq3JfLEILDPNf60VJRwlXJZA1BJRS5Ql8BvXKtItofaOOwAAAABJRU5ErkJggg=="},ea6e:function(t,e,n){"use strict";var a=n("2d5f"),i=n.n(a);i.a},fd1f:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABNlJREFUWEftmF1oHFUUx/9nZrPWB2ONxbj4QbVWMVgQBKEPfQv4UD9qMVFEqyG6ZyarUaKgqUGn1i98CQbdvXf8CLUqilWoQp99ED/Al1qlYhW1akN8UAxGs+3sXPeOs2E6TXZ2k9kNkd6n3bkf5zf/e+655wxhlTVaZbw4DdzqHVuWwkopcl13F4A7AKxLgP0NwB5m3r2cl1oWsBBigojubxJgnJlHonOKxeKlpmneDKAjfF72PG9foVD4Ob72koGllJsAfBlZ8DgAtQi8tpOt9fm+v8m27a/0f8dxjFwu9xOAC2NzDzNzT2rAruu+q5S6JVxwbyaTKdRT2vO8NwDcGI75gJlvigAfBXBBbP53zLwxFeBQ3YNAEGU83/c32rb9Yz1gIUQPEWlVg12tVCqbh4aGPtO/i8XiFYZh3F5zCSL6B8BbzPx9IrCUcp1hGJdVKpUF3cX3fWWa5hiArXoxIno1n8/f04gfSylfB3BnOO8jz/NGDcNY1C2VUkdt2/41uvZJg6WUTwN4CMAZjQAAOOH7/uVJ6tbWKpVK66tKfhs5XElmfB1Zstns0MDAwFzworUZruuOKaWaCjnNqFuzI6UUADiJNNb/GjMPngQspfwBwPpw4CEAf9VZ1ABwZHZ29oGRkZHfmzE+OTm5tlwujxPRlQC0gos1HVWu0Z1KqbJlWWviwDMAztLbnM1mO2tb0AxM2mOllL/UogczB94w7xJSyj8BdAI47nneuYVCoZ7CabMtuJ6UUoe7i3RnS4H1ZaCNOI5Tb8sTX7qlwGEEuA/AdQDOD289HZIOZDKZlwYHB48lEsYGtAxYCPEwET0J4MxFoLR7PcbME81AtwRYSvksgEdjIBWdyVVfInCNWiOinfl8Xo9vqKUO7Lru9UqpDyPWv9Cua5rmp3Nzc9TR0bEFgI7tV9XGKKW2WpZ1oBHiVIHDLOsbAEGCopTa19XVdVt/f38lCuM4zppcLvdmNbPbHj4/yMxXtx24VCpdaxjG56FhnZxfwsx/LwRSLBbPMU1TJ0c6bMLzvJ5CoXA4CTpVhYUQFhGVQqOvMPO99QCEEO8QUX+4G3dZlqUTobotVWAp5c5qEqOTJd12M/Pj9ay7rvtM9YodDceMMvNz7Qa2dSobKvayZVn5egBSyrcB3BqOuZuZ97QVWAixmYg+CY0em5qa2uA4TpACxpuU8mwA2ofX6r5oiZTwkuldzX19fWZvb+8RfdhCo3uZeUccwHGcTC6X02rqikK3r5l5Psy1DVgbEkJsJ6L3IkY/NgzjCd/3g9LH9/0thmFoPw/SxNB9tlmWtT/JHXR/qoeuZrC63eMAHowB6Apat/lKOfyfeDij67QEOFR6jIh0nbdYaaXj8y5mfr4RZSNipOfDCxysDUqpISK6QWdr6r9kQmdr73ueJxf6KJIE3zKF44YnJiYCpYeHh8tJUG09dMuBaWRu2xRuBKaRMf874KBqVkp5RHTxzMzMTHd3dyNCpD5menoanZ2dmeploz+6nKcNnFKECiEOEVHtBtKH5US0qk6dqv6COsiYRBSUXEqpPyzL6tK/58t8IcQOIkpMSNoMHpjzff8R27aDGB7/trYNwFMANqygulFN9AftF5j5xdrDJX/QXgmlT1F4pSCasXta4WbUWsrYVafwv7Ukn0uuxMFFAAAAAElFTkSuQmCC"}}]); |