1 Star 2 Fork 1

kaylee/短剧cps

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
alternate.js 3.49 KB
一键复制 编辑 原始数据 按行查看 历史
kaylee 提交于 2024-06-13 06:29 . cps
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/alternate"],{"0147":function(t,e,n){},"249e":function(t,e,n){"use strict";n.r(e);var a=n("96ca"),u=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=u.a},"46d2":function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("68b9");a(n("3240"));var u=a(n("b633"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(u.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"96ca":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{userDetail:0,authShow:!1,record:t.getStorageSync("appimg"),indexData:{},shortData:[],navImg:"",banShow:!1}},mounted:function(){this.getIndexData(),this.getAlternate()},props:{alternateShow:{type:Number,default:function(){return 0}}},watch:{alternateShow:{handler:function(e){this.userDetail=t.getStorageSync("userInfo")&&t.getStorageSync("userInfo").wxInfo||0,this.banShow=!(t.getStorageSync("ban")>=2)},deep:!0,immediate:!0}},methods:{getIndexData:function(){var t=this;this.util.request({url:"api/index/pageset",data:{app_type:1},success:function(e){t.indexData=e.data.data}})},getAlternate:function(){var e=this;this.util.request({url:"api/theater/theater_indexnew",data:{version:t.getStorageSync("version")},success:function(t){e.shortData=t.data.data}})},searchTap:function(){this.userDetail?t.navigateTo({url:"/subcontract/pages/search/search"}):this.authShow=!0},jumpWebApp:function(e){this.userDetail||!e.is_login?(0==e.url_type&&t.navigateTo({url:e.url}),1==e.url_type&&t.navigateTo({url:"/pages/web/web?src=".concat(e.url)}),2==e.url_type&&t.reLaunch({url:e.url}),3==e.url_type&&t.navigateToMiniProgram({appId:e.xcx_appid,path:e.url,envVersion:"release",success:function(t){console.log(t)},fail:function(t){console.log(t)}})):this.authShow=!0},navTap:function(e){this.userDetail?""!=e.code_img?(this.navImg=e.code_img,this.$refs.popup.open("center")):t.navigateTo({url:e.url}):this.authShow=!0},shortMore:function(e){e.localtype?(t.setStorageSync("localCate",e.cate_id),t.setStorageSync("localType",e.type_id)):(t.setStorageSync("shortCate",e.cate_id),t.setStorageSync("shortType",e.type_id)),this.$emit("jumpClassify",e.duanju_key)},shortItemTap:function(e){t.navigateTo({url:e})},banBtnTap:function(){var e=t.getStorageSync("ban")||0;t.setStorageSync("ban",e+1),this.banShow=!1},recordTap:function(){t.navigateTo({url:"../web/web?src=https://beian.miit.gov.cn/"})},user_login:function(t){this.authShow=!1,this.userDetail=t.wxInfo||0},cancel:function(){this.authShow=!1}}};e.default=n}).call(this,n("df3c")["default"])},ad13:function(t,e,n){"use strict";var a=n("0147"),u=n.n(a);u.a},b633:function(t,e,n){"use strict";n.r(e);var a=n("c520"),u=n("249e");for(var i in u)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(i);n("ad13");var o=n("828b"),r=Object(o["a"])(u["default"],a["b"],a["c"],!1,null,"58dc2963",null,!1,a["a"],void 0);e["default"]=r.exports},c520:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,"a88c"))},ban:function(){return n.e("components/ban/ban").then(n.bind(null,"72dc"))},authorize:function(){return n.e("components/authorize/authorize").then(n.bind(null,"7929"))}},u=function(){var t=this.$createElement;this._self._c},i=[]}},[["46d2","common/runtime","common/vendor"]]]);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/caylle/short-drama-cps.git
git@gitee.com:caylle/short-drama-cps.git
caylle
short-drama-cps
短剧cps
master

搜索帮助