pages-member-feedback-Feedback.50327bfc.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-member-feedback-Feedback"],{"0868":function(e,t,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("5530")),r=a("26cb"),s=a("de79"),c={name:"MemberBase",data:function(){return{page:"",cartNumber:0}},props:{show:{type:Boolean,default:!0}},computed:(0,n.default)((0,n.default)({},(0,r.mapState)({user:function(e){return e.member.info},isOnline:function(e){return e.member.isOnline}})),{},{getCarCount:function(){return this.cartNumber>0&&this.cartNumber<100?this.cartNumber:this.cartNumber>=100?"99+":void 0}}),mounted:function(){var e=getCurrentPages(),t=e[e.length-1];this.page={route:t.route,options:t.options},this.user||uni.navigateTo({url:"/pages/home/memberlogin/Login?clear=1"}),this.getCartCount()},methods:{getCartCount:function(){var e=this;this.isOnline&&(0,s.cartQuantity)().then((function(t){t&&(e.cartNumber=t.result.cart_count)}))}}};t.default=c},"134b":function(e,t,a){var i=a("5c0c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("1291d0f1",i,!0,{sourceMap:!1,shadowMode:!1})},1620:function(e,t,a){"use strict";a.r(t);var i=a("7446"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},"1d0f":function(e,t,a){var i=a("ab61");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("5e92d202",i,!0,{sourceMap:!1,shadowMode:!1})},"4a18":function(e,t,a){"use strict";a("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.getWechatShare=t.getSmsCaptcha=t.checkPictureCaptcha=void 0;var i=a("887c");t.getSmsCaptcha=function(e,t){return(0,i.requestApi)("/Connect/get_sms_captcha","GET",{type:e,phone:t})};t.checkPictureCaptcha=function(e){return(0,i.requestApi)("/Seccode/check","POST",{captcha:e})};t.getWechatShare=function(e){return(0,i.requestApi)("/index/getWechatShare","POST",{url:e})}},"5b1d":function(e,t,a){"use strict";a.r(t);var i=a("a861"),n=a("1620");for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("a313");var s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"755ca49a",null,!1,i["a"],void 0);t["default"]=c.exports},"5c0c":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.scroll-view-wrapper[data-v-755ca49a]{display:flex;flex-direction:column}.scroll-view[data-v-755ca49a]{flex:1}.feedback-form[data-v-755ca49a]{background:#fff;padding:0 .6rem;box-shadow:0 4px 4px #f7f7f7;position:relative}.feedback-message[data-v-755ca49a]{background:#fbfbfb;margin:.5rem 0;font-size:.7rem;padding:.5rem;height:4rem;border:0;box-sizing:border-box;width:100%}.feedback-list[data-v-755ca49a]{background:#fff;padding:0 .6rem}.feedback-item[data-v-755ca49a]{background:#fff;border-bottom:1px dashed #eee}.feedback-info[data-v-755ca49a]{padding:.5rem 0;display:flex}.feedback-info .p-info[data-v-755ca49a]{width:100%}.feedback-info .p-info .name[data-v-755ca49a]{font-size:.7rem;color:#fb2630;word-break:break-all}.feedback-info .p-info .explain[data-v-755ca49a]{font-size:.7rem;margin-bottom:.5rem}.feedback-info .p-info .explain .right[data-v-755ca49a]{float:right;color:grey}.feedback-info .p-info .replay[data-v-755ca49a]{font-size:.7rem;padding-top:.5rem;color:#a2a6ad}.countdown[data-v-755ca49a]{width:auto;height:1.75rem;min-width:4rem}',""]),e.exports=t},"5d15":function(e,t,a){"use strict";a("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.getFeedbackList=t.addFeedback=void 0;var i=a("887c");t.addFeedback=function(e){return(0,i.requestApi)("/Memberfeedback/feedback_add","POST",{feedback:e},"member")};t.getFeedbackList=function(e){return(0,i.requestApi)("/Memberfeedback/feedback_list","POST",{page:e.page,per_page:e.per_page},"member")}},"69f5":function(e,t,a){"use strict";a.r(t);var i=a("0868"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},7446:function(e,t,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a("0b9f"),r=i(a("cce0")),s=i(a("7b4a")),c=(a("26cb"),i(a("79b8"))),o=a("5d15"),u=a("4a18"),d=i(a("f522")),l=a("0d25"),f={name:"MemberFeedback",computed:{fontSize:function(){return(0,n.getFontSize)()}},data:function(){return{navHeight:0,feedback:"",params:{page:0,per_page:10},pictureCode:"",pictureCodeUrl:"",pictureCodeValid:!1,feedback_list:!1,loading:!1,isMore:!0}},components:{TitleHeader:r.default,MemberBase:s.default,flexLine:d.default,EmptyRecord:c.default},mounted:function(){},created:function(){this.loadMore()},watch:{pictureCode:function(e){var t=this;e.length>=4&&(this.pictureCodeWait=!0,(0,u.checkPictureCaptcha)(e).then((function(e){t.pictureCodeWait=!1,t.pictureCodeValid=!0}),(function(e){t.pictureCodeWait=!1,uni.showToast({icon:"none",title:e.message})})))}},methods:{goBack:function(){uni.navigateBack({delta:1})},submit:function(){var e=this;this.feedback?(0,o.addFeedback)(this.feedback).then((function(t){uni.showToast({icon:"none",title:t.message}),e.feedback="",e.pictureCode="",e.params={page:0,per_page:10},e.feedback_list=!1,e.loading=!1,e.isMore=!0,e.loadMore(),e.changePictureCode()})).catch((function(e){uni.showToast({icon:"none",title:e.message})})):uni.showToast({icon:"none",title:"请先输入反馈内容"})},changePictureCode:function(){this.pictureCodeUrl=l.env.API_HOST+"/Seccode/makecode?r="+Math.random()},loadMore:function(){this.loading=!0,this.params.page=++this.params.page,this.isMore&&(this.loading=!1,this.getConsultList(!0))},getConsultList:function(){var e=this;uni.showLoading({title:"加载中"}),(0,o.getFeedbackList)(this.params).then((function(t){uni.hideLoading(),t.result.hasmore?e.isMore=!0:e.isMore=!1,e.feedback_list=t.result.feedback_list.data})).catch((function(e){uni.hideLoading(),uni.showToast({icon:"none",title:e.message})}))}}};t.default=f},"76f2":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){}));var i=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",{staticClass:"div flex-line",class:{border:this.showBorder}},[t("v-uni-view",{staticClass:"div left"},[this._t("default")],2),t("v-uni-view",{staticClass:"div right"},[this._t("right"),this.isLink?t("v-uni-text",{staticClass:"span iconfont arrow"},[this._v("")]):this._e()],2)],1)},n=[]},"79b8":function(e,t,a){"use strict";a.r(t);var i=a("bba65"),n=a("8909");for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);var s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=c.exports},"7b4a":function(e,t,a){"use strict";a.r(t);var i=a("8034"),n=a("69f5");for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("dacb");var s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"3e6c03f6",null,!1,i["a"],void 0);t["default"]=c.exports},8034:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"div member-base"},[i("v-uni-view",{staticClass:"status-holder"}),i("v-uni-view",{staticClass:"content"},[e._t("default")],2),e.show?i("v-uni-view",{staticClass:"div common-footer-wrap"},[i("v-uni-view",{staticClass:"common-footer"},[i("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/index/Index"==e.page.route}},[i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/index/Index","open-type":"reLaunch"}},["pages/home/index/Index"==e.page.route?i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("0207")}}):i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("241a")}}),i("v-uni-text",{staticClass:"span text"},[e._v("首页")])],1)],1),i("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/goodsclass/Goodsclass"==e.page.route}},[i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/goodsclass/Goodsclass"}},["pages/home/goodsclass/Goodsclass"==e.page.route?i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("79bf")}}):i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("d86e")}}),i("v-uni-text",{staticClass:"span text"},[e._v("分类")])],1)],1),i("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/search/Search"==e.page.route}},[i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/search/Search"}},["pages/home/search/Search"==e.page.route?i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("492b")}}):i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("1702")}}),i("v-uni-text",{staticClass:"span text"},[e._v("搜索")])],1)],1),i("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/member/cart/Cart"==e.page.route}},[i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/member/cart/Cart"}},["pages/member/cart/Cart"==e.page.route?i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("62a8")}}):i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("8559")}}),i("v-uni-text",{staticClass:"span text"},[e._v("购物车")]),e.cartNumber>0?i("v-uni-text",{staticClass:"span icon"},[e._v(e._s(e.getCarCount))]):e._e()],1)],1),i("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/member/index/Index"==e.page.route}},[i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/member/index/Index","open-type":"reLaunch"}},["pages/member/index/Index"==e.page.route?i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("857e")}}):i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("e31d")}}),i("v-uni-text",{staticClass:"span text"},[e._v("我的")])],1)],1)],1)],1):e._e()],1)},n=[]},"80c6":function(e,t,a){"use strict";a("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"flexLine",data:function(){return{}},props:{isLink:{type:Boolean,default:!1},showBorder:{type:Boolean,default:!1}},methods:{}};t.default=i},8909:function(e,t,a){"use strict";a.r(t);var i=a("a2ce"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},"8a0c":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.status-holder[data-v-3e6c03f6]{background-color:#fff}.member-base[data-v-3e6c03f6]{display:flex;flex-direction:column}.content[data-v-3e6c03f6]{flex:1}.item-wrap[data-v-3e6c03f6]{position:relative}.image[data-v-3e6c03f6]{width:1rem;height:1rem;display:block;margin-left:auto;margin-right:auto;margin-top:.2rem;margin-bottom:.2rem}.icon[data-v-3e6c03f6]{position:absolute;right:.8rem;top:.2rem;font-size:.5rem;line-height:.7rem;width:.9rem;height:.7rem;background:#ef3338;border-radius:1rem;text-align:center;color:#fff}',""]),e.exports=t},"9a3a":function(e,t,a){"use strict";var i=a("1d0f"),n=a.n(i);n.a},a2ce:function(e,t,a){"use strict";a("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={name:"EmptyRecord",data:function(){return{}},props:{},methods:{}}},a313:function(e,t,a){"use strict";var i=a("134b"),n=a.n(i);n.a},a861:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var i={pageMeta:a("6d42").default,uniNavBar:a("7bfb").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",[a("page-meta",{attrs:{"root-font-size":e.fontSize+"px"}}),a("member-base",{attrs:{show:!1}},[a("v-uni-view",{staticClass:"scroll-view-wrapper div container",staticStyle:{position:"absolute",top:"0",right:"0",left:"0",bottom:"0"}},[a("v-uni-view",{staticClass:"div common-header-wrap"},[a("v-uni-view",{staticClass:"status-holder"}),a("v-uni-view",{style:"height:"+e.navHeight+"px"}),a("v-uni-view",{staticClass:"common-header-holder"}),a("v-uni-view",{staticClass:"common-header-fixed"},[a("title-header"),a("uni-nav-bar",{staticClass:"common-header",attrs:{title:"意见反馈","left-icon":"back"},on:{clickLeft:function(t){arguments[0]=t=e.$handleEvent(t),e.goBack()}}})],1)],1),a("v-uni-view",{staticClass:"div feedback-form"},[a("v-uni-view",{staticClass:"div field-line-right"},[a("v-uni-textarea",{staticClass:"feedback-message field-input",attrs:{placeholder:"反馈内容:"},model:{value:e.feedback,callback:function(t){e.feedback=t},expression:"feedback"}})],1),a("v-uni-view",{staticClass:"div pt-10 pb-10"},[a("v-uni-view",{staticClass:"div common-btn ds-button-large",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit.apply(void 0,arguments)}}},[e._v("保存")])],1)],1),a("v-uni-view",{staticClass:"scroll-view div",staticStyle:{position:"relative"}},[a("v-uni-scroll-view",{staticClass:"div",staticStyle:{position:"absolute",top:"0",right:"0",left:"0",bottom:"0"},attrs:{"scroll-y":"true"},on:{scrolltolower:function(t){arguments[0]=t=e.$handleEvent(t),e.loadMore.apply(void 0,arguments)}}},[e.feedback_list&&e.feedback_list.length?a("v-uni-view",{staticClass:"div feedback-list"},e._l(e.feedback_list,(function(t,i){return a("v-uni-view",{key:i,staticClass:"div feedback-item"},[a("v-uni-view",{staticClass:"div feedback-info"},[a("v-uni-view",{staticClass:"div p-info"},[a("v-uni-view",{staticClass:"div explain"},[e._v("咨询内容"),a("v-uni-text",{staticClass:"span right"},[e._v(e._s(e.$moment.unix(t.fb_time).format("YYYY年MM月DD日")))])],1),a("v-uni-view",{staticClass:"div name"},[e._v(e._s(t.fb_content))])],1)],1)],1)})),1):e.feedback_list&&!e.feedback_list.length?a("empty-record"):e._e()],1)],1)],1)],1)],1)},r=[]},ab61:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.flex-line[data-v-c08b8c2a]{display:flex;flex:1;align-items:center;min-height:2.5rem;background:#fff}.flex-line.border[data-v-c08b8c2a]{border-bottom:1px dashed #eee}.flex-line .left[data-v-c08b8c2a]{display:flex;align-items:center;flex:1;font-size:.7rem;color:#333;font-weight:700}.flex-line .right[data-v-c08b8c2a]{display:flex;align-items:center;font-size:.7rem;color:#a2a6ad}.flex-line .right .arrow[data-v-c08b8c2a]{font-size:.7rem}',""]),e.exports=t},bba65:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){}));var i=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",{staticClass:"div common-empty-record"},[t("v-uni-text",{staticClass:"i iconfont"},[this._v("")]),t("v-uni-view",{staticClass:"p"},[this._v("没有找到相关记录")])],1)},n=[]},dacb:function(e,t,a){"use strict";var i=a("f6c0"),n=a.n(i);n.a},e4f8:function(e,t,a){"use strict";a.r(t);var i=a("80c6"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},f522:function(e,t,a){"use strict";a.r(t);var i=a("76f2"),n=a("e4f8");for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("9a3a");var s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"c08b8c2a",null,!1,i["a"],void 0);t["default"]=c.exports},f6c0:function(e,t,a){var i=a("8a0c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("11f8896b",i,!0,{sourceMap:!1,shadowMode:!1})}}]);