Files
phalapi-pro/public/platform/js/chunk-5bbf82eb.e626f6b3.js
2022-03-21 11:16:38 +08:00

1 line
6.7 KiB
JavaScript
Raw Permalink 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([["chunk-5bbf82eb"],{7872:function(t,e,r){"use strict";r("f76e")},b255:function(t,e,r){"use strict";r.d(e,"g",(function(){return n})),r.d(e,"a",(function(){return o})),r.d(e,"f",(function(){return p})),r.d(e,"c",(function(){return s})),r.d(e,"b",(function(){return i})),r.d(e,"e",(function(){return u})),r.d(e,"d",(function(){return l}));var a=r("66df"),n=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Apps.GetAppList",data:t})},o=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Apps.AddApp",data:t})},p=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Apps.GetMyAppInfo",data:t})},s=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Apps.EditMyApp",data:t})},i=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Apps.CancelApp",data:t})},u=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Apps.GetAppDropdownList",data:t})},l=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Rights.GetAllAppApis",data:t})}},bb5d:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"permission-skim content-layer min-h"},[t.app_options.length?r("div",{staticClass:"head"},[r("div",{staticClass:"title"},[t._v(t._s(t.$t("select_app"))+"")]),r("Select",{staticStyle:{width:"200px"},model:{value:t.app_key,callback:function(e){t.app_key=e},expression:"app_key"}},t._l(t.app_options,(function(e){return r("Option",{key:e.app_key,attrs:{value:e.app_key}},[t._v(t._s(e.app_name))])})),1),r("div",{staticClass:"show-key"},[t._v(t._s(t.$t("current_app_key"))+""),r("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.app_key))])])],1):r("div",{staticClass:"search-tips-title"},[t._v(t._s(t.$t("no_app")))]),t.tableData.length||t.loading?r("Table",{attrs:{loading:t.loading,columns:t.tableHead,data:t.tableData},scopedSlots:t._u([{key:"service",fn:function(e){var a=e.row;return[r("a",{attrs:{href:t.urlStr(a),target:"blank"}},[t._v(t._s(a.service))])]}},{key:"is_allow",fn:function(e){var a=e.row;return[a.is_allow?r("span",[t._v(t._s(t.$t("permitted")))]):r("span",[t._v(t._s(t.$t("not_permitted")))])]}},{key:"product_id",fn:function(e){var a=e.row;return[r("Button",{attrs:{disabled:0==a.product_id,type:"primary"},on:{click:function(e){return t.goBuy(a)}}},[t._v(t._s(t.$t("buy_now")))])]}}])}):r("div",{staticClass:"no-data"},[r("router-link",{attrs:{to:{path:"/application/list"}}},[r("Button",{attrs:{type:"primary",ghost:"",size:"large"}},[t._v(t._s(t.$t("create_your_first_new_app")))])],1)],1),r("div",{staticStyle:{margin:"30px 0px 10px 0px"}},[r("h2",[t._v(t._s(t.$t("more_product")))])]),r("Table",{attrs:{loading:t.loadingProductMore,columns:t.tableHeadProductMore,data:t.tableDataProductMore},scopedSlots:t._u([{key:"price",fn:function(e){var a=e.row;return[r("p",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("my_order_list_1"))+t._s(a.price))])]}},{key:"product_id",fn:function(e){var a=e.row;return[r("Button",{attrs:{type:"primary"},on:{click:function(e){return t.goBuy(a)}}},[t._v(t._s(t.$t("buy_now")))])]}}])})],1)},n=[],o=(r("ac67"),r("1bc7"),r("32ea"),r("3612")),p=r("b255"),s=r("f8b7"),i=r("7736"),u=r("c276");function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){Object(o["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var d={data:function(){return{app_key:"",app_options:[],getList_Opts:{access_token:Object(u["g"])(),app_name:""},tableHead:[{title:this.$t("api_feature"),key:"title"},{title:this.$t("api_name"),slot:"service"},{title:this.$t("api_permission_status"),slot:"is_allow"},{title:this.$t("api_set_meal"),slot:"product_id",width:"150"}],tableData:[],loading:!1,tableHeadProductMore:[{title:this.$t("product_name"),key:"product_name"},{title:this.$t("price"),slot:"price"},{title:this.$t("api_set_meal"),slot:"product_id",width:"150"}],tableDataProductMore:[],loadingProductMore:!1}},watch:{app_key:function(t,e){var r=this;t&&(this.loading=!0),this.loading=!0;var a=new FormData;a.append("access_token",this.token),a.append("app_key",t),Object(p["d"])(a).then((function(t){r.$set(r.$data,"tableData",t.data.apis),r.loading=!1}))}},computed:c({},Object(i["e"])({token:function(t){return t.user.token}})),methods:{urlStr:function(t){var e="/docs.php?service=".concat(t.service,"&detail=1&type=fold");return e},getAppList:function(t){var e=this;this.loading=!0;var r=this.getList_Opts,a=new FormData;for(var n in r)""!==r[n]&&a.append(n,r[n]);Object(p["e"])(a).then((function(t){e.app_options=t.data,e.app_options.length&&(e.app_key=e.app_options[0].app_key),e.loading=!1}))},goBuy:function(t){this.$router.push({name:"placeAnOrder",query:{product_id:t.product_id}})}},created:function(){var t=this;this.getAppList(),this.loadingProductMore=!0;var e=new FormData;e.append("access_token",this.token),Object(s["d"])(e).then((function(e){t.$set(t.$data,"tableDataProductMore",e.data.items),t.loadingProductMore=!1}))}},f=d,_=(r("7872"),r("4ac2")),h=Object(_["a"])(f,a,n,!1,null,null,null);e["default"]=h.exports},f76e:function(t,e,r){},f8b7:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"f",(function(){return o})),r.d(e,"g",(function(){return p})),r.d(e,"h",(function(){return s})),r.d(e,"e",(function(){return i})),r.d(e,"c",(function(){return u})),r.d(e,"b",(function(){return l})),r.d(e,"d",(function(){return c}));var a=r("66df"),n=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Mall_Mall.CreateOrder",data:t})},o=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Mall_Mall.PreviewOrder",data:t})},p=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Mall_Mall.PreviewPay",data:t})},s=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Mall_Mall.StartPay",data:t})},i=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Mall_Mall.PaySuccess",data:t})},u=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Mall_Mall.GetMyOrderList",data:t})},l=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Mall_Mall.GetMyFlowList",data:t})},c=function(t){return a["a"].request({method:"post",url:"platform.php?s=Platform.Mall_Mall.GetProductMoreList",data:t})}}}]);