猎豆优选小程序

pages-subPackages-my-feedback.be3f9ec4.js 14KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPackages-my-feedback"],{"123c":function(t,e,a){"use strict";a.r(e);var n=a("eff7"),i=a.n(n);for(var c in n)["default"].indexOf(c)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(c);e["default"]=i.a},1335:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return c})),a.d(e,"a",(function(){return n}));var n={uIcon:a("5fbc").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{},[a("v-uni-view",{staticClass:"u-navbar",class:{"u-navbar-fixed":t.isFixed,"u-border-bottom":t.borderBottom},style:[t.navbarStyle]},[a("v-uni-view",{staticClass:"u-status-bar",style:{height:t.statusBarHeight+"px"}}),a("v-uni-view",{staticClass:"u-navbar-inner",style:[t.navbarInnerStyle]},[t.isBack?a("v-uni-view",{staticClass:"u-back-wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"u-icon-wrap"},[a("u-icon",{attrs:{name:t.backIconName,color:t.backIconColor,size:t.backIconSize}})],1),t.backText?a("v-uni-view",{staticClass:"u-icon-wrap u-back-text u-line-1",style:[t.backTextStyle]},[t._v(t._s(t.backText))]):t._e()],1):t._e(),t.title?a("v-uni-view",{staticClass:"u-navbar-content-title",style:[t.titleStyle]},[a("v-uni-view",{staticClass:"u-title u-line-1",style:{color:t.titleColor,fontSize:t.titleSize+"rpx",fontWeight:t.titleBold?"bold":"normal"}},[t._v(t._s(t.title))])],1):t._e(),a("v-uni-view",{staticClass:"u-slot-content"},[t._t("default")],2),a("v-uni-view",{staticClass:"u-slot-right"},[t._t("right")],2)],1)],1),t.isFixed&&!t.immersive?a("v-uni-view",{staticClass:"u-navbar-placeholder",style:{width:"100%",height:Number(t.navbarHeight)+t.statusBarHeight+"px"}}):t._e()],1)},c=[]},1624:function(t,e,a){var n=a("24fb");e=n(!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/* 文章场景相关 */.u-navbar[data-v-2920cc37]{width:100%}.u-navbar-fixed[data-v-2920cc37]{position:fixed;left:0;right:0;top:0;z-index:991}.u-status-bar[data-v-2920cc37]{width:100%}.u-navbar-inner[data-v-2920cc37]{display:flex;flex-direction:row;justify-content:space-between;position:relative;align-items:center}.u-back-wrap[data-v-2920cc37]{display:flex;flex-direction:row;align-items:center;flex:1;flex-grow:0;padding:%?14?% %?14?% %?14?% %?24?%}.u-back-text[data-v-2920cc37]{padding-left:%?4?%;font-size:%?30?%}.u-navbar-content-title[data-v-2920cc37]{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1;position:absolute;left:0;right:0;height:%?60?%;text-align:center;flex-shrink:0}.u-navbar-centent-slot[data-v-2920cc37]{flex:1}.u-title[data-v-2920cc37]{line-height:%?60?%;font-size:%?32?%;flex:1}.u-navbar-right[data-v-2920cc37]{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.u-slot-content[data-v-2920cc37]{flex:1;display:flex;flex-direction:row;align-items:center}',""]),t.exports=e},"1df2":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return c})),a.d(e,"a",(function(){return n}));var n={uNavbar:a("6103").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("u-navbar",{staticClass:"navbar-wrap",attrs:{"is-back":!0,title:"意见反馈",background:t.background,"title-color":"#ffffff","back-icon-color":"#ffffff"}}),a("v-uni-view",{staticClass:"tabs"},[a("v-uni-view",{class:["tab-item",1==t.type&&"tab-item-active"],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClickType(1)}}},[t._v("意见反馈")]),a("v-uni-view",{class:["tab-item",2==t.type&&"tab-item-active"],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClickType(2)}}},[t._v("反馈记录")])],1),1==t.type?[a("v-uni-view",{staticClass:"textarea-block"},[a("v-uni-textarea",{staticClass:"textarea",attrs:{"placeholder-style":"color:#cccccc",placeholder:"感谢您的宝贵建议,我们会尽快处理",maxlength:"100"},model:{value:t.feedback,callback:function(e){t.feedback=e},expression:"feedback"}}),a("v-uni-view",{staticClass:"textarea-hint"},[t._v("还可以输入"+t._s(100-t.feedback.length)+"字")])],1),a("v-uni-button",{class:["submit-button",t.feedback.length>0&&"submit-button-active"],attrs:{type:"default"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submitEvent.apply(void 0,arguments)}}},[t._v("提交")])]:t._e(),2==t.type?[t._l(t.feedbackList,(function(e){return a("v-uni-view",{key:"feedback"+e.id,staticClass:"feedback-item"},[a("v-uni-view",{staticClass:"feedback-time"},[t._v(t._s(e.feedback_time))]),a("v-uni-view",{staticClass:"feedback-con"},[a("v-uni-view",{staticClass:"problem"},[t._v(t._s(e.feedback))]),1==e.status?a("v-uni-view",{staticClass:"answer"},[t._v("回复:"+t._s(e.answer))]):t._e()],1)],1)})),t.feedbackList.length<=0&&!t.loading?a("v-uni-view",{staticClass:"no-data-blcok",staticStyle:{"margin-top":"200rpx"}},[a("v-uni-image",{staticClass:"no-data-img",attrs:{src:"/static/imgs/no-order.png",mode:"widthFix"}}),a("v-uni-view",{staticClass:"no-data-hint"},[t._v("您还没有提意见哦~")])],1):t._e()]:t._e()],2)},c=[]},2469:function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("99af");var i=n(a("c7eb")),c=n(a("1da1")),s=getApp(),o={data:function(){return{background:s.globalData.navbarBackground,feedback:"",type:1,feedbackList:[],page:1,isEnd:!1,loading:!1}},onReachBottom:function(){this.isEnd?uni.showToast({title:"没有更多了",icon:"none"}):this.loading||(this.loading=!0,this.page++,this.getFeedbackList())},onPullDownRefresh:function(){1!=this.type?(this.page=1,this.getFeedbackList()):uni.stopPullDownRefresh()},methods:{getFeedbackList:function(){var t=this;return(0,c.default)((0,i.default)().mark((function e(){var a,n,c,s;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return 1==t.page&&uni.pageScrollTo({scrollTop:0}),e.prev=1,a=t.$api.users_feedbackList,n={page:t.page},uni.showLoading({title:"加载中...",mask:!0}),e.next=7,t.$postJSON(a,n);case 7:c=e.sent,s=c.data,uni.hideLoading(),t.loading=!1,uni.stopPullDownRefresh(),s&&0==s.errno?(s.rst.pageInfo.pages<=t.page?t.isEnd=!0:t.isEnd=!1,1==t.page?t.feedbackList=s.rst.data:t.feedbackList=t.feedbackList.concat(s.rst.data)):uni.showToast({title:s.err||"操作失败",icon:"none"}),e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](1);case 17:case"end":return e.stop()}}),e,null,[[1,15]])})))()},onClickType:function(t){this.type=t,0==this.feedbackList.length&&(this.page=1,this.getFeedbackList())},submitEvent:function(){var t=this;return(0,c.default)((0,i.default)().mark((function e(){var a,n,c,s;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.feedback.length>0)){e.next=16;break}return e.prev=1,a=t.$api.users_userFeedback,n={user_feedback:t.feedback},uni.showLoading({title:"加载中...",mask:!0}),e.next=7,t.$postJSON(a,n);case 7:c=e.sent,s=c.data,uni.hideLoading(),s&&0==s.errno?(uni.showToast({title:"感谢您的宝贵建议,我们会尽快处理!",icon:"none"}),t.feedback=""):uni.showToast({title:s.err||"操作失败",icon:"none"}),e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](1),uni.showToast({title:"服务器错误",icon:"none"});case 16:case"end":return e.stop()}}),e,null,[[1,13]])})))()}}};e.default=o},"3b49":function(t,e,a){"use strict";var n=a("bb55"),i=a.n(n);i.a},6103:function(t,e,a){"use strict";a.r(e);var n=a("1335"),i=a("123c");for(var c in i)["default"].indexOf(c)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(c);a("3b49");var s=a("f0c5"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"2920cc37",null,!1,n["a"],void 0);e["default"]=o.exports},"83ce":function(t,e,a){"use strict";var n=a("c695"),i=a.n(n);i.a},"88b2":function(t,e,a){var n=a("24fb");e=n(!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/* 文章场景相关 */.feedback-item[data-v-e81fb90e]{width:%?710?%;margin:%?30?% auto 0}.feedback-item .feedback-time[data-v-e81fb90e]{color:#666;font-size:%?30?%;line-height:%?42?%}.feedback-item .feedback-con[data-v-e81fb90e]{background-color:#fff;border-radius:%?16?%;padding:%?26?%;margin-top:%?30?%}.feedback-item .feedback-con .problem[data-v-e81fb90e]{color:#1a1a1a;font-size:%?30?%;line-height:%?42?%}.feedback-item .feedback-con .answer[data-v-e81fb90e]{color:#e55454;font-size:%?30?%;line-height:%?42?%;border-top:%?2?% solid #f9f9fa;margin-top:%?30?%;padding-top:%?26?%}.tabs[data-v-e81fb90e]{display:flex;align-items:center;background-color:#fff;line-height:%?110?%;padding:0 %?20?%}.tabs .tab-item[data-v-e81fb90e]{margin:0 %?25?%;color:#333;font-size:%?30?%}.tabs .tab-item-active[data-v-e81fb90e]{font-size:%?34?%;font-weight:700}.tabs .tab-item-active[data-v-e81fb90e]::after{content:"";display:block;width:%?32?%;height:%?6?%;background:linear-gradient(90deg,#ff9048,#fb3f3c);border-radius:%?5?%;margin:auto}.textarea-block[data-v-e81fb90e]{background:#fff;margin:%?20?% auto;padding:%?20?%}.textarea-block .textarea[data-v-e81fb90e]{width:100%}.textarea-block .textarea-hint[data-v-e81fb90e]{text-align:right;font-size:%?24?%;line-height:%?26?%;color:#555}.textarea-block[data-v-e81fb90e], .submit-button[data-v-e81fb90e]{width:%?700?%}.submit-button[data-v-e81fb90e]{background-color:#eee;color:#fff;margin-top:%?100?%;font-size:%?36?%;line-height:%?90?%}.submit-button[data-v-e81fb90e]::after{border:none}.submit-button.submit-button-active[data-v-e81fb90e]{background:linear-gradient(45deg,#f4752a,#ef0f2a)}',""]),t.exports=e},"8f15":function(t,e,a){"use strict";a.r(e);var n=a("2469"),i=a.n(n);for(var c in n)["default"].indexOf(c)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(c);e["default"]=i.a},bb55:function(t,e,a){var n=a("1624");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("768dc6c5",n,!0,{sourceMap:!1,shadowMode:!1})},c695:function(t,e,a){var n=a("88b2");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("65ff9e64",n,!0,{sourceMap:!1,shadowMode:!1})},d4dd:function(t,e,a){"use strict";a.r(e);var n=a("1df2"),i=a("8f15");for(var c in i)["default"].indexOf(c)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(c);a("83ce");var s=a("f0c5"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"e81fb90e",null,!1,n["a"],void 0);e["default"]=o.exports},eff7:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3");var n=uni.getSystemInfoSync(),i={},c={name:"u-navbar",props:{height:{type:[String,Number],default:""},backIconColor:{type:String,default:"#606266"},backIconName:{type:String,default:"nav-back"},backIconSize:{type:[String,Number],default:"44"},backText:{type:String,default:""},backTextStyle:{type:Object,default:function(){return{color:"#606266"}}},title:{type:String,default:""},titleWidth:{type:[String,Number],default:"250"},titleColor:{type:String,default:"#606266"},titleBold:{type:Boolean,default:!1},titleSize:{type:[String,Number],default:32},isBack:{type:[Boolean,String],default:!0},background:{type:Object,default:function(){return{background:"#ffffff"}}},isFixed:{type:Boolean,default:!0},immersive:{type:Boolean,default:!1},borderBottom:{type:Boolean,default:!0},zIndex:{type:[String,Number],default:""},customBack:{type:Function,default:null}},data:function(){return{menuButtonInfo:i,statusBarHeight:n.statusBarHeight}},computed:{navbarInnerStyle:function(){var t={};return t.height=this.navbarHeight+"px",t},navbarStyle:function(){var t={};return t.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.navbar,Object.assign(t,this.background),t},titleStyle:function(){var t={};return t.left=(n.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.right=(n.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.width=uni.upx2px(this.titleWidth)+"px",t},navbarHeight:function(){return this.height?this.height:44}},created:function(){},methods:{goBack:function(){"function"===typeof this.customBack?this.customBack.bind(this.$u.$parent.call(this))():uni.navigateBack()}}};e.default=c}}]);