pages-mine-commonProblem.fb02ce12.js 7.0 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mine-commonProblem"],{"0c32":function(t,e,o){var n=o("371a");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("4f06").default;i("59a646fc",n,!0,{sourceMap:!1,shadowMode:!1})},"14ba":function(t,e,o){"use strict";o("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.request=e.baseURL=void 0;var n="http://yuanjie.n.broing.cn/api/";e.baseURL=n;var i=function(t){return new Promise((function(e,o){uni.request({url:n+t.url,method:t.method||"GET",data:t.data||{},header:{"Content-Type":"application/x-www-form-urlencoded",token:uni.getStorageSync("token")||""},success:function(t){console.log(t,uni.getStorageSync("token")),1==t.data.code?e(t.data.data):(401==t.data.code&&(uni.navigateTo({url:"/login/login"}),uni.clearStorageSync()),o(t.data.msg))},fail:function(t){console.log(t),o(t)}})}))};e.request=i},"300e":function(t,e,o){"use strict";var n=o("4ea4");o("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("96cf");var i=n(o("1da1")),a=o("bbe3"),r=o("a8b1"),s={data:function(){return{list2:[{name:"猜你想问"},{name:"退换货品"},{name:"服务条款"},{name:"分期支付"}],page:1,lastPage:1,curId:"",list:[]}},onLoad:function(){this.problemSort()},methods:{toItem:function(t){uni.navigateTo({url:"/pages/mine/questionDetails?id="+t})},problemSort:function(){var t=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,r.problemSort)();case 3:o=e.sent,t.list2=o.list,t.curId=o.list[0].id,t.problemList(),console.log("problemSort",o),e.next=14;break;case 10:e.prev=10,e.t0=e["catch"](0),uni.showToast({title:e.t0,icon:"none"}),console.log("problemSort",e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))()},problemList:function(t){var e=this;return(0,i.default)(regeneratorRuntime.mark((function o(){var n;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.prev=0,a.toa.loading("加载中"),o.next=4,(0,r.problemList)(e.curId,e.page,15);case 4:n=o.sent,a.toa.hideLoading(),e.lastPage=n.list.last_page,e.list=t?n.list.data:e.list.concat(n.list.data),console.log("problemList",n),o.next=15;break;case 11:o.prev=11,o.t0=o["catch"](0),uni.showToast({title:o.t0,icon:"none"}),console.log("problemList",o.t0);case 15:case"end":return o.stop()}}),o,null,[[0,11]])})))()},toggle:function(t){console.log(t),this.curId!=t.id&&(this.page=1,this.curId=t.id,this.problemList(1))},scrolltolower:function(){this.page>=this.lastPage||(this.page=this.page+1,this.problemList())}}};e.default=s},"371a":function(t,e,o){var n=o("24fb");e=n(!1),e.push([t.i,".top[data-v-6e8c949e]{position:absolute;left:0;top:0;width:100%;height:%?400?%;z-index:-1}.topTitle[data-v-6e8c949e]{position:absolute;left:%?44?%;top:%?134?%;color:#000;font-size:%?44?%;font-weight:700}.botQuestion[data-v-6e8c949e]{position:absolute;left:0;border-top-left-radius:%?20?%;border-top-right-radius:%?20?%;top:%?260?%;width:100%;background:#fff}.botQuestion .questionList[data-v-6e8c949e]{margin-top:%?10?%;height:calc(100vh - %?360?%)}.botQuestion .questionList .list[data-v-6e8c949e]{padding:0 %?32?%;margin-bottom:%?40?%;display:flex;justify-content:space-between;align-items:center}.botQuestion .questionList .list .arrow[data-v-6e8c949e]{margin-left:%?10?%;width:%?16?%;height:%?32?%}.botQuestion .questionList .list .arrow uni-image[data-v-6e8c949e]{width:%?16?%;height:%?32?%}",""]),t.exports=e},6775:function(t,e,o){"use strict";o.r(e);var n=o("cf66"),i=o("aa55");for(var a in i)"default"!==a&&function(t){o.d(e,t,(function(){return i[t]}))}(a);o("a337");var r,s=o("f0c5"),u=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"6e8c949e",null,!1,n["a"],r);e["default"]=u.exports},a337:function(t,e,o){"use strict";var n=o("0c32"),i=o.n(n);i.a},a8b1:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moneyLog=e.takeMoney=e.doFeedback=e.problemDetail=e.problemList=e.problemSort=e.getContactQrcode=e.logotLogin=e.getUserInfo=void 0;var n=o("14ba"),i=function(){return(0,n.request)({url:"user/index",method:"post",data:{}})};e.getUserInfo=i;var a=function(){return(0,n.request)({url:"user/logout",method:"post",data:{}})};e.logotLogin=a;var r=function(t){return(0,n.request)({url:"common/contact",method:"post",data:{type:t}})};e.getContactQrcode=r;var s=function(){return(0,n.request)({url:"common/problem_sort",method:"post",data:{}})};e.problemSort=s;var u=function(t,e,o){return(0,n.request)({url:"common/problem_list",method:"post",data:{sort_id:t,page:e,pagenum:o}})};e.problemList=u;var c=function(t){return(0,n.request)({url:"common/problem_detail",method:"post",data:{problem_id:t}})};e.problemDetail=c;var l=function(t,e){return(0,n.request)({url:"user/feedback",method:"post",data:{content:t,image:e}})};e.doFeedback=l;var d=function(t){return(0,n.request)({url:"user/user_withdraw",method:"post",data:t})};e.takeMoney=d;var f=function(){return(0,n.request)({url:"user/user_money_log",method:"post"})};e.moneyLog=f},aa55:function(t,e,o){"use strict";o.r(e);var n=o("300e"),i=o.n(n);for(var a in n)"default"!==a&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},bbe3:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.router=e.toa=e.hideLoading=e.loading=e.success=e.toast=void 0;var n=function(t){return uni.showToast({title:t,icon:"none"})};e.toast=n;var i=function(t){return uni.showToast({title:t})};e.success=i;var a=function(t){return uni.showLoading({title:"加载中"})};e.loading=a;var r=function(){return uni.hideLoading()};e.hideLoading=r;var s={toast:function(t){return uni.showToast({title:t,icon:"none"})},success:function(t){return uni.showToast({title:t})},loading:function(t){return uni.showLoading({title:t||"加载中",mask:!0})},hideLoading:function(){return uni.hideLoading()}};e.toa=s;var u={back:function(t){return uni.navigateBack({delta:t||1})}};e.router=u},cf66:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return n}));var n={uTabs:o("f383").default},i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{},[o("v-uni-view",{staticClass:"top"},[o("v-uni-image",{staticClass:"wh100",attrs:{src:"/static/questionBg.png",mode:""}})],1),o("v-uni-view",{staticClass:"topTitle"},[t._v("有什么可以帮您!")]),o("v-uni-view",{staticClass:"botQuestion"},[o("u-tabs",{attrs:{list:t.list2,lineColor:"#FED000",scrollable:!1},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggle.apply(void 0,arguments)}}}),o("v-uni-scroll-view",{staticClass:"questionList",attrs:{"scroll-y":"true"},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltolower.apply(void 0,arguments)}}},t._l(t.list,(function(e,n){return o("v-uni-view",{key:n,staticClass:"list",on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.toItem(e.id)}}},[o("v-uni-view",{staticClass:"question"},[t._v(t._s(e.title))]),o("v-uni-view",{staticClass:"arrow"},[o("v-uni-image",{attrs:{src:"/static/arrowR.png"}})],1)],1)})),1)],1)],1)},a=[]}}]);