qingnianyexiao2.0/unpackage/dist/build/web/static/js/packageA-my-management.feb9d87d.js
2025-04-01 09:03:51 +08:00

1 line
17 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["packageA-my-management"],{"001c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABDBJREFUaEPtmE1oXFUUx38nTSClqRS02EKKdWWhWXSh4KIFxYUBlba4sAvBLiy0WDHtvOkHBhwhUmXe6IAVs+iiggsFRQWL6aK00C4EBQVb0JURFUeMENsJDSSd49w3ifPmdT7unfdmkPDu9p2v//mfe949R1hjR9YYHlJA/3dGU4ZShvqcgbTk+pxwZ3cpQx1TltNBNvAUwjgwBuwA7lvRK6H8xgBfU2GGBS6Rk8WONh0EkmMop5vYyCsoE8AmyxjmgWmG8Tkqf1vqtBVLBpCvL1RBFB2ARIMqIUyQkY/jgooHyJTXCO8DL8YNZEV/mjLH4pRh94ByOsxGPkODuxI98yjnEWYY4Do3+TMQuIf7qTAW6AjPh+5WXd/o3OIZcrLcTZK6B+SrYeZwg1PFXPApFih0zLJJyAgvoUwhDEeCP4cnh/oHqKDPoXwUcTjLHcY5KT85BVLUh1hmBtge0TuIJx842YIuxgdfTQv+odqdtoSczQKP4ckvrgEE8r4+UNW/EgE1T5kHyYnphNbHveR8PQOc+s+DKbMKu5yZiYZomFri+4byE3Jk5HVrNM4M1er+j0h79vCk4OK0pWxeX0WYCn03LG12aRBuDOXVvAC+DDmco8y2jg3AFm2zhCn7yMoXtibcABX0XZSjoXIrkpVjts6s5PL6TvCTrZ9pPDlipetccnn9psrQwyHj43hy0daZlZyvT0LQ9VbPNTzZY6XrDMhXc3/q3W2AUY7L77bOrOTe0lHW8WuoCubIymYr3S4AaYPhMkMuF9YqqNpzaqlB1hPrq2EtGDjwdc0B+qvh/dWfkiuRla1W7HZRcleB3X1tCsq3ZOWRXgFqfJAqvW/bwlky8nJvAOV1L8LnkT/51oR/rKbDrY7soDxdZehCbwDVOpC5R/URW5kkK2/YOmwr52vGtJ44CXPrcsZTQV9DyYX+E4sMsYsJx7EhiszXHSjfRWajN/HktEuy3AGZZcgIP0ceqLMs8TinxYwR7ueMbmeIyw3jg1JiPWOuyxN3QLX/kVmKnI9EPssg485MGWbgq7sGvAoHOOG+NOkOUEGfRfnkLirMbCRMVp/873VsFLWdRIYKk01GcKcHaTgOd0A1MGb8HmxTW3MIH6LMcIcb3KYUyK5nC+vYGSwhlYNN115GZ4H9HRPSwrkboGZglOXqUNYOnMudOkeZI3Heh/aAWoFRDgRsCUWkYc/gAsTsDSa6WYpEndgBagfmhHwaGD2r97KIt7Lasl8Fm0QsUeSU/OOSgVaynQHVupDZ8tTLypSZYWYVTNi6uewbeAKCBeSjCKOhGWoO+BG4HtyvBS7EKa9moDoDiv5M24FJIsUxbdgBWgVlWmwrZmIGkpS6PSDj8W3dyXG5kZTzXthxA9SLCBK2mQJKOKGJm0sZSjylCRtMGUo4oYmbSxlKPKUJG/wXoYxURAZG4esAAAAASUVORK5CYII="},"125d":function(t,e,a){"use strict";var i=a("82f2"),n=a.n(i);n.a},"1fd2":function(t,e,a){"use strict";a.r(e);var i=a("5732"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},5732:function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("c223");var n=i(a("b7c7")),o=i(a("39d8")),s={data:function(){var t;return t={popupStyle:{width:"690rpx",margin:"0 auto",display:"flex",justifyContent:"center",alignItems:"center",padding:"0",borderRadius:"20rpx"},sortList:[{text:"按照价格排序",value:["acs","desc"]},{text:"按照编号排序",value:["acs","desc"]}],QRShow:!1,size:13,sortStyle:["#ff557f","#3f3f3f"],headers:[{status:"-1",text:"全部"},{status:"1",text:"上架"},{status:"2",text:"下架"}]},(0,o.default)(t,"popupStyle",{width:"690rpx",margin:"0 auto",display:"flex",justifyContent:"center",alignItems:"center",padding:"0",borderRadius:"20rpx"}),(0,o.default)(t,"selected","-1"),(0,o.default)(t,"auth_status","-1"),(0,o.default)(t,"page",1),(0,o.default)(t,"limit",10),(0,o.default)(t,"loadStatus","loading"),(0,o.default)(t,"keywords",""),(0,o.default)(t,"list",[]),(0,o.default)(t,"show",!1),(0,o.default)(t,"qrcode",{}),(0,o.default)(t,"order_no",""),(0,o.default)(t,"QR",{}),(0,o.default)(t,"last_page",0),(0,o.default)(t,"shop_id",""),t},onLoad:function(){this.shop_id=uni.getStorageSync("shop_id")},onShow:function(){this.page=1,this.list=[],this.getList(this.selected)},onReachBottom:function(){this.page<this.last_page&&(this.page++,this.getList(this.selected))},methods:{openUrl:function(t){uni.navigateTo({url:t})},switchSort:function(t,e){console.log(t,e)},toDetail:function(t,e){uni.navigateTo({url:"/packageA/my/addManagement?id="+t+"&shop_id="+e})},toList:function(t){uni.navigateTo({url:"/packageA/my/mentList?id="+t})},Confirm:function(t,e){var a=this;uni.$u.http.post("/api/school.worker.classes/update_status",{id:t,status:e}).then((function(t){1==t.code?(a.page=1,a.list=[],a.getList(a.selected)):uni.showToast({title:t.msg,icon:"none",duration:2e3})})).catch((function(t){console.error("请求失败",t)}))},addClass:function(){var t=this;uni.$u.http.get("/api/school/shop/auth_info").then((function(e){1==e.code?e.data.check_full?uni.navigateTo({url:"/packageA/my/addManagement?shop_id="+t.shop_id}):uni.showToast({title:"必要展示信息未完善,请先在机构完善展示信息",icon:"none",duration:2e3}):uni.showToast({title:e.msg,icon:"none",duration:2e3})})).catch((function(t){console.error("请求失败",t)}))},onInput:function(t){console.log(t);this.keywords=t.detail.value,this.page=1,this.list=[],this.selected="-1",this.getList(this.selected)},getList:function(t){var e=this;uni.$u.http.get("/api/school/classes/classes_list",{params:{keywords:this.keywords,page:this.page,limit:this.limit,status:t,order:"normal",shop_id:this.shop_id,auth_status:this.auth_status}}).then((function(t){1==t.code?(e.last_page=t.data.list.last_page,e.list=[].concat((0,n.default)(e.list),(0,n.default)(t.data.list.data)),e.list.length>=t.data.list.total?e.loadStatus="nomore":e.loadStatus="loading"):(uni.showToast({title:t.msg,icon:"none",duration:2e3}),e.loadStatus="loading")})).catch((function(t){console.error("请求失败",t),e.loadStatus="loading"}))},selectheader:function(t){this.selected=t,console.log(t,""),this.page=1,this.list=[],this.getList(t)},headerSelected:function(t){return this.selected===t}}};e.default=s},"82f2":function(t,e,a){var i=a("f2ad9");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("72ff85e8",i,!0,{sourceMap:!1,shadowMode:!1})},bedf:function(t,e,a){"use strict";a.r(e);var i=a("df2f"),n=a("1fd2");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("125d");var s=a("828b"),r=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"645f01d6",null,!1,i["a"],void 0);e["default"]=r.exports},df2f:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var i={uLoadmore:a("ad59").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"box flex justify-center align-items flex-column"},[i("v-uni-view",{staticClass:"con-center flex flex-column justify-center align-items",staticStyle:{"margin-top":"24rpx"}},[i("v-uni-view",{staticClass:"flex align-items",staticStyle:{width:"100%","justify-content":"flex-start"}},[i("v-uni-view",{staticClass:"search flex align-items",staticStyle:{width:"508rpx"}},[i("span",{staticClass:"dashed flex align-items justify-center"},[i("v-uni-image",{attrs:{src:a("001c"),mode:""}})],1),i("span",{staticClass:"line-search"}),i("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"搜索您的预约课程","placeholder-class":"plasty"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.onInput.apply(void 0,arguments)}},model:{value:t.keywords,callback:function(e){t.keywords=e},expression:"keywords"}})],1),i("span",{staticClass:"searchBtn",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.addClass()}}},[t._v("创建课程")])],1),i("v-uni-view",{staticClass:"header flex align-items w-100",staticStyle:{"justify-content":"space-between"}},t._l(t.headers,(function(e,a){return i("span",{key:a,staticClass:"s-header flex justify-center align-items",class:{selected:t.headerSelected(e.status)},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.selectheader(e.status)}}},[t._v(t._s(e.text))])})),0),i("span",{staticClass:"line"}),i("v-uni-view",{staticClass:"centerBox flex justify-start align-items flex-column"},t._l(t.list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"flex w-100 center flex-column",staticStyle:{"align-items":"center"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.toDetail(e.id,e.shop_id)}}},[i("v-uni-view",{staticClass:"flex",staticStyle:{width:"690rpx"}},[i("v-uni-image",{staticStyle:{width:"280rpx",height:"200rpx","border-radius":"12rpx"},attrs:{src:e.headimage,mode:""}}),i("v-uni-view",{staticClass:"flex flex-column rightBox"},[i("span",{staticClass:"name"},[t._v(t._s(e.title))]),i("span",{staticClass:"minge"},[t._v(t._s("开始时间 "+e.start_time_text))]),i("span",{staticClass:"minge"},[t._v(t._s("结束时间 "+e.end_time_text))]),0==e.feel?i("span",{staticClass:"price"},[t._v("课程价格:"),i("span",{staticStyle:{color:"#FF2323"}},[t._v(t._s("¥"+e.price))])]):i("span",{staticClass:"price",staticStyle:{color:"#FF2323"}},[t._v("免费")]),i("v-uni-view",{staticClass:"flex align-items",staticStyle:{"justify-content":"space-between","margin-top":"12rpx"}},[1==e.auth_status?i("span",{staticClass:"pass"},[t._v("审核通过")]):t._e(),0==e.auth_status?i("span",{staticClass:"full"},[t._v("审核中")]):t._e(),2==e.auth_status?i("span",{staticClass:"full"},[t._v("审核未通过")]):t._e()]),i("v-uni-view",{staticClass:"flex align-items",staticStyle:{"justify-content":"flex-end","margin-top":"12rpx"}},[1==e.status?i("span",{staticClass:"Cancel",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.Confirm(e.id,2)}}},[t._v("下架")]):t._e(),2==e.status?i("span",{staticClass:"Cancel",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.Confirm(e.id,1)}}},[t._v("上架")]):t._e(),1!=e.auth_status?i("span",{staticClass:"hui"},[t._v("上架")]):t._e(),i("span",{staticClass:"lan",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.toList(e.id)}}},[t._v("订单管理")])])],1)],1),i("span",{staticClass:"box-line"})],1)})),1)],1),i("u-loadmore",{attrs:{status:t.loadStatus}})],1)},o=[]},f2ad9:function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.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/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.box[data-v-645f01d6]{background:linear-gradient(180deg,#f1f2f8 0,#fff 5%,#fff)}.box .con-center[data-v-645f01d6]{width:%?690?%}.box .con-center .centerBack[data-v-645f01d6]{position:fixed;width:100%;height:100%;top:%?25?%;left:0;z-index:-1}.box .con-center .header[data-v-645f01d6]{height:%?50?%;margin-top:%?37?%}.box .con-center .header .s-header[data-v-645f01d6]{padding:%?10?% %?20?%;height:%?50?%;font-family:PingFang SC;font-weight:400;font-size:%?28?%;color:#9e9e9e;line-height:%?26?%}.box .con-center .header .s-header.selected[data-v-645f01d6]{padding:%?10?% %?20?%;height:%?50?%;background:#008cff;border-radius:%?12?% %?12?% %?12?% %?12?%;font-family:PingFang SC;font-weight:800;font-size:%?28?%;color:#fff;line-height:%?26?%}.box .con-center .searchBtn[data-v-645f01d6]{width:%?164?%;height:%?64?%;background:#008cff;border-radius:%?8?% %?8?% %?8?% %?8?%;font-family:PingFang SC;font-weight:500;font-size:%?32?%;color:#fff;display:flex;justify-content:center;align-items:center;margin-left:%?18?%}.w-100[data-v-645f01d6]{width:100%}.flex[data-v-645f01d6]{display:flex}.flex-start[data-v-645f01d6]{align-items:flex-start}.justify-center[data-v-645f01d6]{justify-content:center}.align-items[data-v-645f01d6]{align-items:center}.flex-column[data-v-645f01d6]{flex-flow:column}.justify-start[data-v-645f01d6]{justify-content:start}.line[data-v-645f01d6]{margin-top:%?18?%;width:%?690?%;height:%?1?%;background:#008cff;border-radius:%?0?% %?0?% %?0?% %?0?%}.centerBox[data-v-645f01d6]{width:%?690?%}.centerBox .error[data-v-645f01d6]{width:100%;word-break:break-all}.centerBox .box-line[data-v-645f01d6]{width:%?400?%;height:%?1?%;background:#d9d9d9;border-radius:%?0?% %?0?% %?0?% %?0?%;margin-top:%?24?%}.centerBox .center[data-v-645f01d6]{margin:%?32?% 0 %?32?% 0}.centerBox .rightBox[data-v-645f01d6]{margin-left:%?24?%;width:%?378?%}.centerBox .rightBox .line-row[data-v-645f01d6]{width:%?382?%;height:%?1?%;background:#d9d9d9;box-shadow:%?1?% %?1?% %?0?% %?0?% hsla(0,0%,40%,.25);margin:%?14?% 0 %?6?% 0}.centerBox .rightBox .price[data-v-645f01d6]{font-family:PingFang SC;font-weight:800;font-size:%?24?%;color:#ff2323}.centerBox .rightBox .hui[data-v-645f01d6]{width:%?138?%;height:%?48?%;background:#d9d9d9;border-radius:%?12?% %?12?% %?12?% %?12?%;font-family:PingFang SC;font-weight:800;font-size:%?24?%;color:#fff;letter-spacing:4px;display:flex;align-items:center;justify-content:center;align-self:flex-end;margin-right:%?16?%}.centerBox .rightBox .lan[data-v-645f01d6]{width:%?138?%;height:%?50?%;background:#008cff;border-radius:%?12?% %?12?% %?12?% %?12?%;font-family:PingFang SC;font-weight:800;font-size:%?24?%;color:#fff;letter-spacing:%?8?%;display:flex;align-items:center;justify-content:center;align-self:flex-end}.centerBox .rightBox .name[data-v-645f01d6]{font-family:PingFang SC;font-weight:800;font-size:%?36?%;color:#343434;margin-bottom:%?24?%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;\r\n /* 设置行数 */overflow:hidden;text-overflow:ellipsis;word-break:break-all\r\n /* 防止单词被截断 */}.centerBox .rightBox .minge[data-v-645f01d6]{font-family:PingFang SC;font-weight:500;font-size:%?24?%;color:#7a7a7a;margin-bottom:%?14?%}.centerBox .rightBox .pass[data-v-645f01d6]{font-family:PingFang SC;font-weight:500;font-size:%?26?%;color:#008cff}.centerBox .rightBox .full[data-v-645f01d6]{font-family:PingFang SC;font-weight:500;font-size:%?24?%;color:#ff2323}.centerBox .rightBox .money[data-v-645f01d6]{font-weight:800;font-size:%?24?%;color:#ff2323}.centerBox .rightBox .money span[data-v-645f01d6]{font-weight:500;font-size:%?24?%;color:#7a7a7a}.centerBox .rightBox .Cancel[data-v-645f01d6]{width:%?138?%;height:%?48?%;border-radius:%?12?% %?12?% %?12?% %?12?%;border:%?2?% solid #008cff;font-family:PingFang SC;font-weight:800;font-size:%?24?%;color:#008cff;line-height:%?32?%;letter-spacing:4px;display:flex;align-items:center;justify-content:center;align-self:flex-end;margin-right:%?16?%}.centerBox .rightBox .xia[data-v-645f01d6]{width:%?138?%;height:%?48?%;border-radius:%?12?% %?12?% %?12?% %?12?%;border:%?2?% solid #008cff;font-family:PingFang SC;font-weight:800;font-size:%?24?%;color:#008cff;line-height:%?32?%;letter-spacing:4px;display:flex;align-items:center;justify-content:center;align-self:flex-end}.centerBox .rightBox .make[data-v-645f01d6]{width:%?138?%;height:%?48?%;background:#008cff;border-radius:%?12?% %?12?% %?12?% %?12?%;font-family:PingFang SC;font-weight:800;font-size:%?24?%;color:#fff;line-height:%?32?%;letter-spacing:4px;display:flex;align-items:center;justify-content:center;align-self:flex-end;margin-left:%?16?%}.centerBox .rightBox .QR[data-v-645f01d6]{width:%?138?%;height:%?48?%;background:#4974ff;box-shadow:%?2?% %?2?% %?0?% %?0?% rgba(0,0,0,.4);border-radius:%?8?% %?8?% %?8?% %?8?%;font-weight:400;font-size:%?26?%;color:#eaeaea;display:flex;align-items:center;justify-content:center;align-self:flex-end;margin-top:%?50?%}.charge[data-v-645f01d6]{font-family:PingFang SC;font-weight:800;font-size:%?28?%;color:#ff2323;line-height:%?32?%}.search[data-v-645f01d6]{width:%?690?%;height:%?64?%;background:#fff;box-shadow:%?2?% %?2?% %?0?% %?0?% rgba(0,0,0,.4);border-radius:%?8?% %?8?% %?8?% %?8?%;border:%?2?% solid #008cff}.search .dashed uni-image[data-v-645f01d6]{width:%?52?%;height:%?52?%}.search .line-search[data-v-645f01d6]{width:%?2?%;height:%?42?%;background:#008cff;border-radius:%?0?% %?0?% %?0?% %?0?%}.search .input[data-v-645f01d6]{padding-left:%?12?%;height:100%;width:100%}.search[data-v-645f01d6] .input-placeholder{font-family:PingFang SC;font-weight:500;font-size:%?32?%;color:silver;line-height:%?32?%;text-align:left;font-style:normal;text-transform:none}.popup .header[data-v-645f01d6]{margin-left:%?24?%;font-family:PingFang SC;font-weight:800;font-size:%?42?%;color:#008cff;margin-top:%?34?%;width:%?690?%}.popup .line-row[data-v-645f01d6]{width:%?690?%;height:%?1?%;background:#d9d9d9;margin:%?11?% 0 %?31?% 0}.popup .pop-center .right[data-v-645f01d6]{margin-left:%?30?%}.popup .pop-center .right .title[data-v-645f01d6]{width:%?340?%;font-family:PingFang SC;font-weight:800;font-size:%?34?%;color:#343434}.popup .line-short[data-v-645f01d6]{width:%?400?%;height:%?1?%;background:#d9d9d9}.popup .popList[data-v-645f01d6]{justify-content:space-between;width:%?600?%;margin-top:%?32?%}.popup .popList .hei[data-v-645f01d6]{font-family:PingFang SC;font-weight:500;font-size:%?26?%;color:#343434}.popup .pop-btn[data-v-645f01d6]{width:%?690?%;margin-top:%?62?%;justify-content:space-around}.popup .pop-btn .Cancel[data-v-645f01d6]{width:%?306?%;height:%?80?%;border-radius:%?401?% %?401?% %?401?% %?401?%;border:%?2?% solid #008cff;font-family:PingFang SC;font-weight:800;font-size:%?34?%;color:#008cff}.popup .pop-btn .Confirm[data-v-645f01d6]{width:%?306?%;height:%?80?%;background:#008cff;border-radius:%?401?% %?401?% %?401?% %?401?%;font-family:PingFang SC;font-weight:800;font-size:%?34?%;color:#fff}.hui[data-v-645f01d6]{font-family:PingFang SC;font-weight:500;font-size:%?24?%;color:#7a7a7a}.white-space[data-v-645f01d6]{overflow:hidden;\r\n /* 确保超出容器的文本被隐藏 */white-space:nowrap;\r\n /* 确保文本在一行内显示 */text-overflow:ellipsis\r\n /* 使用省略号表示被截断的文本 */}',""]),t.exports=e}}]);