1 |
- (this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["pagesAccount/app-sub-service"],{"0698":function(t,e,s){"use strict";s.d(e,"b",(function(){return n})),s.d(e,"c",(function(){return a})),s.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","content"),attrs:{_i:0}})},a=[]},"084c":function(t,e,s){"use strict";s.r(e);var n=s("0698"),a=s("e2b8");for(var r in a)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(r);var i=s("f0c5"),o=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"0b79":function(t,e,s){"use strict";s.r(e);var n=s("eab4"),a=s.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},1439:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{}},onLoad:function(){},onShow:function(){},methods:{}}},"1a51":function(t,e,s){"use strict";s.r(e);var n=s("97dd"),a=s("9450");for(var r in a)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(r);var i=s("f0c5"),o=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"1e10":function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return r})),s.d(e,"a",(function(){return n}));var n={uniForms:s("42e9").default,uniFormsItem:s("9e90").default,uniEasyinput:s("2bf9").default},a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("view",{staticClass:t._$s(0,"sc","content"),attrs:{_i:0}},[s("view",{staticClass:t._$s(1,"sc","one"),attrs:{_i:1}},[t._v(t._$s(1,"t0-0",t._s(t.basicInfo.name)))]),s("view",{staticClass:t._$s(2,"sc","two"),attrs:{_i:2}},[s("uni-forms",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"auto",_i:3}},[s("uni-forms-item",{attrs:{name:"account",_i:4}},[s("uni-easyinput",{attrs:{type:"text",placeholder:"\u8bf7\u8f93\u5165\u767b\u5f55\u8d26\u53f7",_i:5},model:{value:t._$s(5,"v-model",t.form.account),callback:function(e){t.$set(t.form,"account",e)},expression:"form.account"}})],1),s("uni-forms-item",{attrs:{name:"password",_i:6}},[s("uni-easyinput",{attrs:{type:"password",placeholder:"\u8bf7\u8f93\u5165\u767b\u5f55\u5bc6\u7801",_i:7},model:{value:t._$s(7,"v-model",t.form.password),callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1)],1),s("view",{staticClass:t._$s(8,"sc","agree"),attrs:{_i:8}},[s("checkbox-group",{attrs:{_i:9},on:{change:t.changeAgree}},[s("label",[s("checkbox",{attrs:{checked:t._$s(11,"a-checked",t.agree),_i:11}}),s("text",{attrs:{_i:12},on:{click:function(e){return e.stopPropagation(),t.toAgree()}}})])])]),s("view",{staticClass:t._$s(13,"sc","btn"),attrs:{_i:13}},[s("button",{attrs:{_i:14},on:{click:function(e){return t.toSubmit("form")}}})])],1),s("view",{staticClass:t._$s(15,"sc","thr"),attrs:{_i:15}},[s("button",{attrs:{_i:16},on:{click:function(e){return t.toRegister()}}})])])},r=[]},"26d8":function(t,e,s){"use strict";s.r(e);var n=s("2f2a"),a=s.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"2f2a":function(t,e,s){"use strict";var n=s("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(s("a34a")),r=n(s("448a")),i=n(s("9523")),o=n(s("c973"));function c(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,n)}return s}function u(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?c(Object(s),!0).forEach((function(e){(0,i.default)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var l={data:function(){return{user:{},searchInfo:{},list:[],total:0,page:0,skip:0,limit:10,is_bottom:!1,scrollTop:0}},onLoad:function(){this.searchUser()},onHide:function(){},onPullDownRefresh:function(){var t=(0,o.default)(a.default.mark((function t(){var e;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this,e.clearPage(),t.next=4,e.search();case 4:uni.stopPullDownRefresh();case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),methods:{searchUser:function(){var t=this;uni.getStorage({key:"token",success:function(e){var s=t.$jwt(e.data);s&&t.$set(t,"user",s),t.search()},fail:function(t){uni.showToast({title:"\u6682\u65e0\u7528\u6237\u4fe1\u606f\uff0c\u65e0\u6cd5\u67e5\u8be2",icon:"none"})}})},search:function(){var t=this;return(0,o.default)(a.default.mark((function e(){var s,n,i,o,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t,n=s.user,i={skip:s.skip,limit:s.limit,user_id:n._id},e.next=5,s.$api("likes","GET",u(u({},i),s.searchInfo));case 5:o=e.sent,"0"==o.errcode&&(c=[].concat((0,r.default)(s.list),(0,r.default)(o.data)),s.$set(s,"list",c),s.$set(s,"total",o.total));case 7:case"end":return e.stop()}}),e)})))()},toInput:function(t){var e=t.detail.value;e?this.$set(this.searchInfo,"title",e):delete this.searchInfo.title,this.clearPage(),this.search()},toPage:function(){var t=this.list,e=this.limit;if(this.total>t.length){uni.showLoading({title:"\u52a0\u8f7d\u4e2d",mask:!0});var s=this.page+1;this.$set(this,"page",s);var n=s*e;this.$set(this,"skip",n),this.search(),uni.hideLoading()}else this.$set(this,"is_bottom",!0)},toScroll:function(t){var e=this.scrollTop;this.$set(this,"scrollTop",t.detail.scrollTop);var s=Math.sign(e-t.detail.scrollTop);1==s&&this.$set(this,"is_bottom",!1)},videoView:function(t){uni.navigateTo({url:"/pagesVideo/video/index?id=".concat(t._id)})},clearPage:function(){this.$set(this,"list",[]),this.$set(this,"skip",0),this.$set(this,"limit",10),this.$set(this,"page",0),this.searchInfo.title||delete this.searchInfo.title}}};e.default=l},"3c4e":function(t,e,s){"use strict";s.r(e);var n=s("fca8"),a=s.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"3d9a":function(t,e,s){"use strict";s.r(e);var n=s("a89c"),a=s("fedd");for(var r in a)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(r);var i=s("f0c5"),o=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"462b":function(t,e,s){"use strict";s.r(e);var n=s("4a1b"),a=s("9136");for(var r in a)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(r);var i=s("f0c5"),o=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"4a1b":function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return r})),s.d(e,"a",(function(){return n}));var n={uniIcons:s("e268").default},a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("view",{staticClass:t._$s(0,"sc","content"),attrs:{_i:0}},[s("view",{staticClass:t._$s(1,"sc","one"),attrs:{_i:1}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchInfo.title,expression:"searchInfo.title"}],attrs:{_i:2},domProps:{value:t._$s(2,"v-model",t.searchInfo.title)},on:{blur:t.toInput,input:function(e){e.target.composing||t.$set(t.searchInfo,"title",e.target.value)}}})]),s("view",{staticClass:t._$s(3,"sc","two"),attrs:{_i:3}},[s("scroll-view",{staticClass:t._$s(4,"sc","scroll-view"),attrs:{_i:4},on:{scrolltolower:t.toPage,scroll:t.toScroll}},[s("view",{staticClass:t._$s(5,"sc","list-scroll-view"),attrs:{_i:5}},[s("view",{staticClass:t._$s(6,"sc","two_1"),attrs:{_i:6}},t._l(t._$s(7,"f",{forItems:t.list}),(function(e,n,a,r){return s("view",{key:t._$s(7,"f",{forIndex:a,key:n}),staticClass:t._$s("7-"+r,"sc","list"),attrs:{_i:"7-"+r},on:{click:function(s){return t.videoView(e)}}},[s("image",{staticClass:t._$s("8-"+r,"sc","image"),attrs:{src:t._$s("8-"+r,"a-src",e.img_url&&e.img_url.length>0?e.img_url[0].url:""),_i:"8-"+r}}),s("view",{staticClass:t._$s("9-"+r,"sc","name textOver"),attrs:{_i:"9-"+r}},[t._v(t._$s("9-"+r,"t0-0",t._s(e.title)))]),s("view",{staticClass:t._$s("10-"+r,"sc","other"),attrs:{_i:"10-"+r}},[s("view",{staticClass:t._$s("11-"+r,"sc","other_1"),attrs:{_i:"11-"+r}},[s("uni-icons",{attrs:{type:"eye",color:"var(--rgbfff)",size:"12",_i:"12-"+r}}),t._v(t._$s("11-"+r,"t1-0",t._s(e.view_num)))],1),s("view",{staticClass:t._$s("13-"+r,"sc","other_2"),attrs:{_i:"13-"+r}},[t._v(t._$s("13-"+r,"t0-0",t._s(e.time_num)))])])])})),0)])])])])},r=[]},"4b29":function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return r})),s.d(e,"a",(function(){return n}));var n={uniDrawer:s("0f30").default,uniIcons:s("e268").default},a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("view",[s("uni-drawer",{ref:"drawerShow",attrs:{mode:t.drawer.mode,maskClick:!0,width:290,_i:1},on:{change:t.drawerChange}},[s("view",{staticClass:t._$s(2,"sc","drawer"),attrs:{_i:2}},[s("view",{staticClass:t._$s(3,"sc","drawer_1"),attrs:{_i:3}},[s("view",{staticClass:t._$s(4,"sc","left textOver"),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.drawer.title||"\u5f39\u7a97")))]),s("view",{staticClass:t._$s(5,"sc","right"),attrs:{_i:5}},[s("uni-icons",{attrs:{type:"clear",size:"30",_i:6},on:{click:function(e){return t.toClose()}}})],1)]),s("view",{staticClass:t._$s(7,"sc","drawer_2"),attrs:{_i:7}},[s("scroll-view",{staticClass:t._$s(8,"sc","scroll-view"),attrs:{_i:8}},[s("view",{staticClass:t._$s(9,"sc","list-scroll-view"),attrs:{_i:9}},[s("view",{staticClass:t._$s(10,"sc","info"),attrs:{_i:10}},[t._t("default",null,{_i:11})],2)])])])])])],1)},r=[]},"6d5c":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{}},onLoad:function(){},onShow:function(){},methods:{}}},"7ae7":function(t,e,s){"use strict";s.r(e);var n=s("e8ac"),a=s("3c4e");for(var r in a)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(r);var i=s("f0c5"),o=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"8b2c":function(t,e,s){"use strict";s.r(e);var n=s("1e10"),a=s("0b79");for(var r in a)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(r);var i=s("f0c5"),o=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"8e70":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{drawer:{type:Object}},data:function(){return{}},methods:{drawerChange:function(t){0==t&&this.$emit("toClose")},drawerOpen:function(){this.$refs.drawerShow.open()},toClose:function(){this.$emit("toClose")},drawerClose:function(){this.$refs.drawerShow.close()}},watch:{drawer:function(t,e){1==t.show&&0==e.show?this.drawerOpen():0==t.show&&1==e.show&&this.drawerClose()}}};e.default=n},"903c":function(t,e,s){"use strict";(function(t){var n=s("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(s("a34a")),r=n(s("448a")),i=n(s("c973")),o=n(s("9db5")),c={components:{upload:o.default},data:function(){return{form:{logo_url:[]},rules:{account:{rules:[{required:!0,errorMessage:"\u8bf7\u8f93\u5165\u767b\u5f55\u8d26\u53f7"}]},phone:{rules:[{required:!0,errorMessage:"\u8bf7\u8f93\u5165\u8054\u7cfb\u7535\u8bdd"}]}},genderList:[]}},onLoad:function(){this.search(),this.searchOther()},onShow:function(){},methods:{search:function(){var t=this;uni.getStorage({key:"token",success:function(){var e=(0,i.default)(a.default.mark((function e(s){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.$jwt(s.data),!n){e.next=6;break}return e.next=4,t.$api("user/".concat(n._id),"GET",{});case 4:r=e.sent,r&&"0"==r.errcode&&t.$set(t,"form",r.data);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})},uplSuc:function(t){this.$set(this.form,"".concat(t.name),[].concat((0,r.default)(this.form[t.name]),[t.data]))},uplDel:function(t){var e=this.form[t.name],s=e.filter((function(e,s){return s!=t.data.index}));this.$set(this.form,"".concat(t.name),s)},toSubmit:function(e){var s=this;s.agree;s.$refs[e].validate().then(function(){var t=(0,i.default)(a.default.mark((function t(e){var n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s.$api("user/".concat(s.form._id),"POST",e);case 2:n=t.sent,"0"==n.errcode?(uni.showToast({title:"\u7ef4\u62a4\u4fe1\u606f\u6210\u529f",icon:"none"}),uni.navigateBack()):uni.showToast({title:n.errmsg,icon:"none"});case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){t("log","err",e," at pagesAccount/basic/index.vue:109")}))},searchOther:function(){var t=this;return(0,i.default)(a.default.mark((function e(){var s,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t,e.next=3,s.$api("dictdata","GET",{type:"gender"});case 3:n=e.sent,"0"==n.errcode&&s.$set(s,"genderList",n.data);case 5:case"end":return e.stop()}}),e)})))()}}};e.default=c}).call(this,s("0de9")["default"])},9136:function(t,e,s){"use strict";s.r(e);var n=s("9993"),a=s.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},9450:function(t,e,s){"use strict";s.r(e);var n=s("903c"),a=s.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"97dd":function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return r})),s.d(e,"a",(function(){return n}));var n={uniForms:s("42e9").default,uniFormsItem:s("9e90").default,uniEasyinput:s("2bf9").default,uniDataCheckbox:s("07ac").default},a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("view",{staticClass:t._$s(0,"sc","content"),attrs:{_i:0}},[s("uni-forms",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"auto",_i:1}},[s("uni-forms-item",{attrs:{name:"account",_i:2}},[s("uni-easyinput",{attrs:{placeholder:"\u8bf7\u8f93\u5165\u767b\u5f55\u8d26\u53f7",disabled:!0,_i:3},model:{value:t._$s(3,"v-model",t.form.account),callback:function(e){t.$set(t.form,"account",e)},expression:"form.account"}})],1),s("uni-forms-item",{attrs:{name:"phone",_i:4}},[s("uni-easyinput",{attrs:{placeholder:"\u8bf7\u8f93\u5165\u8054\u7cfb\u7535\u8bdd",_i:5},model:{value:t._$s(5,"v-model",t.form.phone),callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1),s("uni-forms-item",{attrs:{name:"nick_name",_i:6}},[s("uni-easyinput",{attrs:{placeholder:"\u8bf7\u8f93\u5165\u8d26\u53f7\u6635\u79f0",_i:7},model:{value:t._$s(7,"v-model",t.form.nick_name),callback:function(e){t.$set(t.form,"nick_name",e)},expression:"form.nick_name"}})],1),s("uni-forms-item",{attrs:{name:"gender",_i:8}},[s("uni-data-checkbox",{attrs:{localdata:t.genderList,map:{text:"label",value:"value"},_i:9},model:{value:t._$s(9,"v-model",t.form.gender),callback:function(e){t.$set(t.form,"gender",e)},expression:"form.gender"}})],1),s("uni-forms-item",{attrs:{name:"logo_url",_i:10}},[s("upload",{attrs:{list:t.form.logo_url,name:"logo_url",count:1,_i:11},on:{uplSuc:t.uplSuc,uplDel:t.uplDel}})],1)],1),s("view",{staticClass:t._$s(12,"sc","btn"),attrs:{_i:12}},[s("button",{attrs:{_i:13},on:{click:function(e){return t.toSubmit("form")}}})])],1)},r=[]},9993:function(t,e,s){"use strict";var n=s("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(s("a34a")),r=n(s("448a")),i=n(s("9523")),o=n(s("c973"));function c(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,n)}return s}function u(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?c(Object(s),!0).forEach((function(e){(0,i.default)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var l={data:function(){return{user:{},searchInfo:{},list:[],total:0,page:0,skip:0,limit:10,is_bottom:!1,scrollTop:0}},onLoad:function(){this.searchUser()},onHide:function(){},onPullDownRefresh:function(){var t=(0,o.default)(a.default.mark((function t(){var e;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this,e.clearPage(),t.next=4,e.search();case 4:uni.stopPullDownRefresh();case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),methods:{searchUser:function(){var t=this;uni.getStorage({key:"token",success:function(e){var s=t.$jwt(e.data);s&&t.$set(t,"user",s),t.search()},fail:function(t){uni.showToast({title:"\u6682\u65e0\u7528\u6237\u4fe1\u606f\uff0c\u65e0\u6cd5\u67e5\u8be2",icon:"none"})}})},search:function(){var t=this;return(0,o.default)(a.default.mark((function e(){var s,n,i,o,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t,n=s.user,i={skip:s.skip,limit:s.limit,user_id:n._id},e.next=5,s.$api("collects","GET",u(u({},i),s.searchInfo));case 5:o=e.sent,"0"==o.errcode&&(c=[].concat((0,r.default)(s.list),(0,r.default)(o.data)),s.$set(s,"list",c),s.$set(s,"total",o.total));case 7:case"end":return e.stop()}}),e)})))()},toInput:function(t){var e=t.detail.value;e?this.$set(this.searchInfo,"title",e):delete this.searchInfo.title,this.clearPage(),this.search()},toPage:function(){var t=this.list,e=this.limit;if(this.total>t.length){uni.showLoading({title:"\u52a0\u8f7d\u4e2d",mask:!0});var s=this.page+1;this.$set(this,"page",s);var n=s*e;this.$set(this,"skip",n),this.search(),uni.hideLoading()}else this.$set(this,"is_bottom",!0)},toScroll:function(t){var e=this.scrollTop;this.$set(this,"scrollTop",t.detail.scrollTop);var s=Math.sign(e-t.detail.scrollTop);1==s&&this.$set(this,"is_bottom",!1)},videoView:function(t){uni.navigateTo({url:"/pagesVideo/video/index?id=".concat(t._id)})},clearPage:function(){this.$set(this,"list",[]),this.$set(this,"skip",0),this.$set(this,"limit",10),this.$set(this,"page",0),this.searchInfo.title||delete this.searchInfo.title}}};e.default=l},a89c:function(t,e,s){"use strict";s.d(e,"b",(function(){return n})),s.d(e,"c",(function(){return a})),s.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","content"),attrs:{_i:0}})},a=[]},c016:function(t,e,s){"use strict";s.r(e);var n=s("8e70"),a=s.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},c868:function(t,e,s){"use strict";s.r(e);var n=s("ee71"),a=s.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},cb7c:function(t,e,s){"use strict";s.r(e);var n=s("4b29"),a=s("c016");for(var r in a)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(r);var i=s("f0c5"),o=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},d2fa:function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return r})),s.d(e,"a",(function(){return n}));var n={uniIcons:s("e268").default},a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("view",{staticClass:t._$s(0,"sc","content"),attrs:{_i:0}},[s("view",{staticClass:t._$s(1,"sc","one"),attrs:{_i:1}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchInfo.title,expression:"searchInfo.title"}],attrs:{_i:2},domProps:{value:t._$s(2,"v-model",t.searchInfo.title)},on:{blur:t.toInput,input:function(e){e.target.composing||t.$set(t.searchInfo,"title",e.target.value)}}})]),s("view",{staticClass:t._$s(3,"sc","two"),attrs:{_i:3}},[s("scroll-view",{staticClass:t._$s(4,"sc","scroll-view"),attrs:{_i:4},on:{scrolltolower:t.toPage,scroll:t.toScroll}},[s("view",{staticClass:t._$s(5,"sc","list-scroll-view"),attrs:{_i:5}},[s("view",{staticClass:t._$s(6,"sc","two_1"),attrs:{_i:6}},t._l(t._$s(7,"f",{forItems:t.list}),(function(e,n,a,r){return s("view",{key:t._$s(7,"f",{forIndex:a,key:n}),staticClass:t._$s("7-"+r,"sc","list"),attrs:{_i:"7-"+r},on:{click:function(s){return t.videoView(e)}}},[s("image",{staticClass:t._$s("8-"+r,"sc","image"),attrs:{src:t._$s("8-"+r,"a-src",e.img_url&&e.img_url.length>0?e.img_url[0].url:""),_i:"8-"+r}}),s("view",{staticClass:t._$s("9-"+r,"sc","name textOver"),attrs:{_i:"9-"+r}},[t._v(t._$s("9-"+r,"t0-0",t._s(e.title)))]),s("view",{staticClass:t._$s("10-"+r,"sc","other"),attrs:{_i:"10-"+r}},[s("view",{staticClass:t._$s("11-"+r,"sc","other_1"),attrs:{_i:"11-"+r}},[s("uni-icons",{attrs:{type:"eye",color:"var(--rgbfff)",size:"12",_i:"12-"+r}}),t._v(t._$s("11-"+r,"t1-0",t._s(e.view_num)))],1),s("view",{staticClass:t._$s("13-"+r,"sc","other_2"),attrs:{_i:"13-"+r}},[t._v(t._$s("13-"+r,"t0-0",t._s(e.time_num)))])])])})),0)])])])])},r=[]},d75d:function(t,e,s){"use strict";s.r(e);var n=s("f5c1"),a=s("c868");for(var r in a)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(r);var i=s("f0c5"),o=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},e2b8:function(t,e,s){"use strict";s.r(e);var n=s("1439"),a=s.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},e8ac:function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return r})),s.d(e,"a",(function(){return n}));var n={uniForms:s("42e9").default,uniFormsItem:s("9e90").default,uniDataCheckbox:s("07ac").default,uniEasyinput:s("2bf9").default},a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("view",{staticClass:t._$s(0,"sc","content"),attrs:{_i:0}},[s("view",{staticClass:t._$s(1,"sc","one"),attrs:{_i:1}},[s("scroll-view",{staticClass:t._$s(2,"sc","money_scroll_view"),attrs:{_i:2}},t._l(t._$s(3,"f",{forItems:t.moneyList}),(function(e,n,a,r){return s("view",{key:t._$s(3,"f",{forIndex:a,key:n}),class:t._$s("3-"+r,"c",["list",t.form.active==n?"active":""]),attrs:{_i:"3-"+r},on:{click:function(s){return t.toChange(e,n)}}},[s("view",{staticClass:t._$s("4-"+r,"sc","title"),attrs:{_i:"4-"+r}},[t._v(t._$s("4-"+r,"t0-0",t._s(e.title)))]),s("view",{staticClass:t._$s("5-"+r,"sc","money"),attrs:{_i:"5-"+r}},[s("span",{staticClass:t._$s("6-"+r,"sc","fh"),attrs:{_i:"6-"+r}}),t._v(t._$s("5-"+r,"t1-0",t._s(e.money)))]),s("view",{staticClass:t._$s("7-"+r,"sc","other"),attrs:{_i:"7-"+r}},[t._v(t._$s("7-"+r,"t0-0",t._s(e.days)))])])})),0)]),s("view",{staticClass:t._$s(8,"sc","two"),attrs:{_i:8}},[s("view",{staticClass:t._$s(9,"sc","two_1"),attrs:{_i:9}},[s("button",{attrs:{_i:10},on:{click:t.toBuy}},[t._v(t._$s(10,"t0-0",t._s(t.form.money)))])]),s("view",{staticClass:t._$s(11,"sc","agree"),attrs:{_i:11}},[s("checkbox-group",{attrs:{_i:12},on:{change:t.changeAgree}},[s("label",[s("checkbox",{attrs:{checked:t._$s(14,"a-checked",t.agree),_i:14}}),s("text",{attrs:{_i:15},on:{click:function(e){return e.stopPropagation(),t.toAgree()}}})])])])]),s("c-drawer",{attrs:{drawer:t.drawer,_i:16},on:{toClose:t.toClose}},[s("view",{staticClass:t._$s(17,"sc","drawer_one"),attrs:{_i:17}},[s("uni-forms",{ref:"payForm",attrs:{model:t.payForm,rules:t.rules,_i:18}},[s("uni-forms-item",{attrs:{name:"type",_i:19}},[s("view",{staticClass:t._$s(20,"sc","label"),attrs:{_i:20}}),s("uni-data-checkbox",{attrs:{localdata:t.typeList,map:{text:"label",value:"value"},_i:21},on:{change:t.typeChange},model:{value:t._$s(21,"v-model",t.payForm.type),callback:function(e){t.$set(t.payForm,"type",e)},expression:"payForm.type"}})],1),s("uni-forms-item",{attrs:{_i:22}},[s("view",{staticClass:t._$s(23,"sc","label"),attrs:{_i:23}}),s("view",{staticClass:t._$s(24,"sc","img"),attrs:{_i:24}},[s("image",{staticClass:t._$s(25,"sc","image"),attrs:{src:t._$s(25,"a-src",t.payForm.img_url&&t.payForm.img_url.length>0?t.payForm.img_url[0].url:""),_i:25},on:{click:function(e){return t.imgView(t.payForm.img_url)}}})])]),s("uni-forms-item",{attrs:{name:"pay_no",_i:26}},[s("view",{staticClass:t._$s(27,"sc","label"),attrs:{_i:27}}),s("uni-easyinput",{attrs:{type:"number",placeholder:"\u8bf7\u8f93\u5165\u8f6c\u8d26\u5355\u53f7/\u8ba2\u5355\u53f7",_i:28},model:{value:t._$s(28,"v-model",t.payForm.pay_no),callback:function(e){t.$set(t.payForm,"pay_no",e)},expression:"payForm.pay_no"}})],1)],1),s("view",{staticClass:t._$s(29,"sc","btn"),attrs:{_i:29}},[s("button",{attrs:{_i:30},on:{click:function(e){return t.toSave()}}})]),s("view",{staticClass:t._$s(31,"sc","other"),attrs:{_i:31}},[s("view",{staticClass:t._$s(32,"sc","other_1"),attrs:{_i:32}}),s("view",{staticClass:t._$s(33,"sc","other_2"),attrs:{_i:33}},[s("view",{staticClass:t._$s(34,"sc","tip"),attrs:{_i:34}}),s("view",{staticClass:t._$s(35,"sc","tip"),attrs:{_i:35}})])])],1)])],1)},r=[]},eab4:function(t,e,s){"use strict";(function(t){var n=s("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(s("a34a")),r=n(s("c973")),i={data:function(){return{basicInfo:{},form:{},rules:{account:{rules:[{required:!0,errorMessage:"\u8bf7\u8f93\u5165\u767b\u5f55\u8d26\u53f7"}]},password:{rules:[{required:!0,errorMessage:"\u8bf7\u8f93\u5165\u767b\u5f55\u5bc6\u7801"}]}},agree:!0}},onLoad:function(){},onShow:function(){this.searchBasic()},methods:{searchBasic:function(){var t=this;uni.getStorage({key:"basicInfo",success:function(e){var s=e.data;t.$set(t,"basicInfo",s)}})},toSubmit:function(e){var s=this,n=s.agree;s.$refs[e].validate().then(function(){var t=(0,r.default)(a.default.mark((function t(e){var r;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=7;break}return t.next=3,s.$api("user/login","POST",e);case 3:r=t.sent,"0"==r.errcode?(uni.showToast({title:"\u8d26\u53f7\u767b\u5f55\u6210\u529f",icon:"none"}),uni.setStorage({key:"token",data:r.data,success:function(){uni.navigateBack()}})):uni.showToast({title:r.errmsg,icon:"none"}),t.next=8;break;case 7:uni.showToast({title:"\u8bf7\u9605\u8bfb\u5e76\u540c\u610f\u7528\u6237\u534f\u8bae\u548c\u9690\u79c1\u653f\u7b56",icon:"none"});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){t("log","err",e," at pagesAccount/login/index.vue:110")}))},toRegister:function(){uni.navigateTo({url:"/pagesAccount/register/index"})},changeAgree:function(){var t=!0;this.agree&&(t=!1),this.$set(this,"agree",t)},toAgree:function(){uni.navigateTo({url:"/pagesAccount/other/agree"})}}};e.default=i}).call(this,s("0de9")["default"])},ee71:function(t,e,s){"use strict";(function(t){var n=s("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(s("a34a")),r=n(s("c973")),i=n(s("448a")),o=n(s("9db5")),c={components:{upload:o.default},data:function(){return{basicInfo:{},form:{logo_url:[]},rules:{account:{rules:[{required:!0,errorMessage:"\u8bf7\u8f93\u5165\u767b\u5f55\u8d26\u53f7"}]},password:{rules:[{required:!0,errorMessage:"\u8bf7\u8f93\u5165\u767b\u5f55\u5bc6\u7801"}]},phone:{rules:[{required:!0,errorMessage:"\u8bf7\u8f93\u5165\u8054\u7cfb\u7535\u8bdd"}]}},agree:!0,genderList:[]}},onLoad:function(){},onShow:function(){this.searchBasic(),this.searchOther()},methods:{searchBasic:function(){var t=this;uni.getStorage({key:"basicInfo",success:function(e){var s=e.data;t.$set(t,"basicInfo",s)}})},uplSuc:function(t){this.$set(this.form,"".concat(t.name),[].concat((0,i.default)(this.form[t.name]),[t.data]))},uplDel:function(t){var e=this.form[t.name],s=e.filter((function(e,s){return s!=t.data.index}));this.$set(this.form,"".concat(t.name),s)},toSubmit:function(e){var s=this,n=s.agree;s.$refs[e].validate().then(function(){var t=(0,r.default)(a.default.mark((function t(e){var r;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=7;break}return t.next=3,s.$api("user","POST",e);case 3:r=t.sent,"0"==r.errcode?"0"==r.errcode&&(uni.showToast({title:"\u8d26\u53f7\u6ce8\u518c\u6210\u529f",icon:"none"}),uni.redirectTo({url:"/pagesAccount/login/index"})):uni.showToast({title:r.errmsg,icon:"none"}),t.next=8;break;case 7:uni.showToast({title:"\u8bf7\u9605\u8bfb\u5e76\u540c\u610f\u7528\u6237\u534f\u8bae\u548c\u9690\u79c1\u653f\u7b56",icon:"none"});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){t("log","err",e," at pagesAccount/register/index.vue:144")}))},changeAgree:function(){var t=!0;this.agree&&(t=!1),this.$set(this,"agree",t)},toAgree:function(){uni.navigateTo({url:"/pagesAccount/other/agree"})},searchOther:function(){var t=this;return(0,r.default)(a.default.mark((function e(){var s,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t,e.next=3,s.$api("dictdata","GET",{type:"gender"});case 3:n=e.sent,"0"==n.errcode&&s.$set(s,"genderList",n.data);case 5:case"end":return e.stop()}}),e)})))()}}};e.default=c}).call(this,s("0de9")["default"])},f1a0:function(t,e,s){"use strict";s.r(e);var n=s("d2fa"),a=s("26d8");for(var r in a)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(r);var i=s("f0c5"),o=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},f5c1:function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return r})),s.d(e,"a",(function(){return n}));var n={uniForms:s("42e9").default,uniFormsItem:s("9e90").default,uniEasyinput:s("2bf9").default,uniDataCheckbox:s("07ac").default},a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("view",{staticClass:t._$s(0,"sc","content"),attrs:{_i:0}},[s("view",{staticClass:t._$s(1,"sc","one"),attrs:{_i:1}},[t._v(t._$s(1,"t0-0",t._s(t.basicInfo.name)))]),s("view",{staticClass:t._$s(2,"sc","two"),attrs:{_i:2}},[s("uni-forms",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"auto",_i:3}},[s("uni-forms-item",{attrs:{name:"account",_i:4}},[s("uni-easyinput",{attrs:{placeholder:"\u8bf7\u8f93\u5165\u767b\u5f55\u8d26\u53f7",_i:5},model:{value:t._$s(5,"v-model",t.form.account),callback:function(e){t.$set(t.form,"account",e)},expression:"form.account"}})],1),s("uni-forms-item",{attrs:{name:"password",_i:6}},[s("uni-easyinput",{attrs:{type:"password",placeholder:"\u8bf7\u8f93\u5165\u767b\u5f55\u5bc6\u7801",_i:7},model:{value:t._$s(7,"v-model",t.form.password),callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),s("uni-forms-item",{attrs:{name:"phone",_i:8}},[s("uni-easyinput",{attrs:{placeholder:"\u8bf7\u8f93\u5165\u8054\u7cfb\u7535\u8bdd",_i:9},model:{value:t._$s(9,"v-model",t.form.phone),callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1),s("uni-forms-item",{attrs:{name:"nick_name",_i:10}},[s("uni-easyinput",{attrs:{placeholder:"\u8bf7\u8f93\u5165\u8d26\u53f7\u6635\u79f0",_i:11},model:{value:t._$s(11,"v-model",t.form.nick_name),callback:function(e){t.$set(t.form,"nick_name",e)},expression:"form.nick_name"}})],1),s("uni-forms-item",{attrs:{name:"gender",_i:12}},[s("uni-data-checkbox",{attrs:{localdata:t.genderList,map:{text:"label",value:"value"},_i:13},model:{value:t._$s(13,"v-model",t.form.gender),callback:function(e){t.$set(t.form,"gender",e)},expression:"form.gender"}})],1),s("uni-forms-item",{attrs:{name:"logo_url",_i:14}},[s("upload",{attrs:{list:t.form.logo_url,name:"logo_url",count:1,_i:15},on:{uplSuc:t.uplSuc,uplDel:t.uplDel}})],1)],1),s("view",{staticClass:t._$s(16,"sc","agree"),attrs:{_i:16}},[s("checkbox-group",{attrs:{_i:17},on:{change:t.changeAgree}},[s("label",[s("checkbox",{attrs:{checked:t._$s(19,"a-checked",t.agree),_i:19}}),s("text",{attrs:{_i:20},on:{click:function(e){return e.stopPropagation(),t.toAgree()}}})])])]),s("view",{staticClass:t._$s(21,"sc","btn"),attrs:{_i:21}},[s("button",{attrs:{_i:22},on:{click:function(e){return t.toSubmit("form")}}})])],1)])},r=[]},fca8:function(t,e,s){"use strict";(function(t){var n=s("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(s("a34a")),r=n(s("448a")),i=n(s("c973")),o=n(s("cb7c")),c=n(s("9db5")),u={components:{cDrawer:o.default,upload:c.default},data:function(){return{basicInfo:{},userInfo:{},moneyList:[],form:{active:0,mongy:0},agree:!0,updateUser:{},drawer:{title:"\u652f\u4ed8",show:!1,mode:"right"},payForm:{type:"0",img_url:[],pay_url:[]},rules:{pay_no:{rules:[{required:!0,errorMessage:"\u8bf7\u8f93\u5165\u8f6c\u8d26\u5355\u53f7/\u8ba2\u5355\u53f7"}]},pay_url:{rules:[{required:!1,errorMessage:"\u8bf7\u4e0a\u4f20\u652f\u4ed8\u8d26\u5355\u660e\u7ec6\u622a\u56fe"}]}},typeList:[{value:0,text:"\u5fae\u4fe1"},{value:1,text:"\u652f\u4ed8\u5b9d"}]}},onLoad:function(){this.searchBasic(),this.searchUser(),this.searchOther()},methods:{searchBasic:function(){var t=this;uni.getStorage({key:"basicInfo",success:function(e){var s=e.data;s.account_btn=s.account_btn.sort((function(t,e){return t.sort-e.sort})),t.$set(t,"basicInfo",s),t.typeChange({detail:{value:"0"}})}})},searchUser:function(){var e=this;uni.getStorage({key:"token",success:function(){var t=(0,i.default)(a.default.mark((function t(s){var n,r;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$jwt(s.data),t.next=3,e.$api("user/".concat(n._id),"GET");case 3:r=t.sent,"0"==r.errcode&&e.$set(e,"userInfo",r.data);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),fail:function(e){t("log","\u6682\u65e0\u767b\u5f55\u4fe1\u606f"," at pagesAccount/vip/index.vue:184")}})},toChange:function(t,e){var s={active:e,money:t.money,days:t.days};this.$set(this,"form",s)},toBuy:function(){var t,e=this.userInfo,s=this.form.money,n=this.form.days;if(1==this.agree)if(e&&e._id){if(e&&"0"==e.is_vip){var a=this.$moment().format("YYYY-MM-DD HH:mm:ss"),r=this.$moment().add(n,"days").format("YYYY-MM-DD HH:mm:ss");t={id:e._id,is_vip:"1",vip_start_time:a,vip_end_time:r},this.$set(this,"updateUser",t),this.oneBuy({user_id:e._id,money:s})}else if(e&&"1"==e.is_vip){var i=this.$moment(e.vip_end_time).add(n,"days").format("YYYY-MM-DD HH:mm:ss");t={id:e._id,vip_end_time:i},this.$set(this,"updateUser",t),this.oneBuy({user_id:e._id,money:s})}}else uni.showToast({title:"\u6682\u65e0\u7528\u6237\u4fe1\u606f\uff0c\u65e0\u6cd5\u652f\u4ed8\uff01",icon:"none"});else uni.showToast({title:"\u8bf7\u9605\u8bfb\u5e76\u540c\u610f\u201c\u4f1a\u5458\u670d\u52a1\u534f\u8bae\u201d",icon:"none"})},oneBuy:function(){this.$set(this,"drawer",{title:"\u652f\u4ed8",show:!0,mode:"right"})},typeChange:function(t){var e=this.basicInfo,s=t.detail.value;"0"==s?this.$set(this.payForm,"img_url",e.pay_info.wx_url):"1"==s&&this.$set(this.payForm,"img_url",e.pay_info.zfb_url)},uplSuc:function(t){this.$set(this.payForm,"".concat(t.name),[].concat((0,r.default)(this.payForm[t.name]),[t.data]))},uplDel:function(t){var e=this.payForm[t.name],s=e.filter((function(e,s){return s!=t.data.index}));this.$set(this.payForm,"".concat(t.name),s)},toSave:function(){var e=this;e.$refs.payForm.validate().then((function(t){e.toPay()})).catch((function(e){t("log","\u8868\u5355\u9519\u8bef\u4fe1\u606f\uff1a",e," at pagesAccount/vip/index.vue:289")}))},toPay:function(){var t=this;return(0,i.default)(a.default.mark((function e(){var s,n,r,i,o,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t,n=s.updateUser,r=s.form,i=s.payForm,o={user_id:s.userInfo._id,user_name:s.userInfo.nick_name,money_no:"NO"+s.$moment().valueOf(),type:"VIP",create_time:s.$moment().format("YYYY-MM-DD HH:mm:ss"),money:r.money,pay_no:i.pay_no},e.next=7,s.$api("user/".concat(n.id),"POST",n);case 7:if(c=e.sent,"0"!=c.errcode){e.next=13;break}return e.next=11,s.$api("moneylog","POST",o);case 11:c=e.sent,"0"==c.errcode?(uni.showToast({title:"\u5f00\u901a\u6210\u529f",icon:"success"}),uni.navigateBack()):uni.showToast({title:c.errmsg,icon:"error"});case 13:case"end":return e.stop()}}),e)})))()},toClose:function(){this.$set(this,"drawer",{title:"\u652f\u4ed8",show:!1,mode:"right"})},changeAgree:function(){var t=!0;this.agree&&(t=!1),this.$set(this,"agree",t)},toAgree:function(){uni.navigateTo({url:"/pagesAccount/other/vipagree"})},searchOther:function(){var t=this;return(0,i.default)(a.default.mark((function e(){var s,n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t,e.next=3,s.$api("vipsetting","GET",{is_use:"0"});case 3:return n=e.sent,"0"==n.errcode&&(s.$set(s,"moneyList",n.data),n.total>0&&(r={active:0,money:n.data[0].money,days:n.data[0].days},s.$set(s,"form",r))),e.next=7,s.$api("dictdata","GET",{type:"app_pay_type"});case 7:n=e.sent,"0"==n.errcode&&s.$set(s,"typeList",n.data);case 9:case"end":return e.stop()}}),e)})))()},imgView:function(e){t("log",e," at pagesAccount/vip/index.vue:379"),t("log",e[0].url," at pagesAccount/vip/index.vue:380"),uni.previewImage({current:0,urls:[e[0].url]})}}};e.default=u}).call(this,s("0de9")["default"])},fedd:function(t,e,s){"use strict";s.r(e);var n=s("6d5c"),a=s.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a}}]);
|