1 Star 2 Fork 1

kaylee/短剧cps

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
indexCommon.js 5.18 KB
一键复制 编辑 原始数据 按行查看 历史
kaylee 提交于 2024-06-13 06:29 . cps
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/indexCommon"],{"228d":function(t,e,a){"use strict";var n=a("fc99"),i=a.n(n);i.a},"2a1c":function(t,e,a){"use strict";a.r(e);var n=a("48b1"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"48b1":function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{userDetail:0,authShow:!1,isiPhoneX:t.getStorageSync("iPhoneX"),record:t.getStorageSync("appimg"),indexData:{},tabData:[{icon:"../../static/icon/indexTab02.png",name:"快手"},{icon:"../../static/icon/indexTab03.png",name:"微信"},{icon:"../../static/icon/indexTab01.png",name:"抖音"}],active:2,tabId:"tabId-1",tabTypeData:[],tabTypeActive:0,shortData:{},elmData:"",navImg:"",gzhLogo:"",banShow:!1}},mounted:function(){this.getIndexData(),this.getIndexTab(),this.getGzhLogo()},props:{indexShow:{type:Number,default:function(){return 0}}},watch:{indexShow:{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}})},getIndexTab:function(){var t=this;this.util.request({url:"api/index/tab",data:{type:"0"},success:function(e){t.tabTypeData=e.data.data,t.tabTypeActive=e.data.data[0].id,t.tabTypeTap(e.data.data[0].id,!1)}})},getShort:function(){var e=this;this.util.request({url:"api/theater/theater_index",data:{theater_type:this.active,version:t.getStorageSync("version")},success:function(t){e.shortData=t.data.data}})},getNovel:function(){var e=this;this.util.request({url:"api/books/theater_index",data:{version:t.getStorageSync("version")},success:function(t){e.shortData=t.data.data}})},getMovie:function(){var e=this;this.util.request({url:"api/movie/theater_index",data:{version:t.getStorageSync("version")},success:function(t){e.shortData=t.data.data}})},getIndexElm:function(){var e=this;this.util.request({url:"api/elm/imgs",data:{version:t.getStorageSync("version")},success:function(t){e.elmData=t.data.data}})},getGzhLogo:function(){var t=this;this.util.request({url:"api/index/gzh_logo",data:{userid:this.userDetail.userId},success:function(e){t.gzhLogo=e.data.data.gzh_logo}})},tabTap:function(t){this.active=t,this.getShort()},tabTypeTap:function(t,e){this.shortData={},this.tabTypeActive=t,e&&(this.tabId="tabId".concat(0==t?t:t-1)),"0"==t&&this.getShort(),"1"==t&&this.getIndexElm(),"2"==t&&this.getMovie(),"3"==t&&this.getNovel()},shortMore:function(e){t.setStorageSync("shortCate",e.cate_id),t.setStorageSync("shortType",e.type_id),this.$emit("jumpClassify",e.duanju_key)},shortItemTap:function(e){"2"!=this.tabTypeActive||this.userDetail?t.navigateTo({url:e}):this.authShow=!0},searchTap:function(){this.userDetail?t.navigateTo({url:"/subcontract/pages/search/search"}):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},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},elmImgTap:function(){this.userDetail?t.navigateTo({url:"/subcontract/pages/elm/elm"}):this.authShow=!0},recordTap:function(){t.navigateTo({url:"../web/web?src=https://beian.miit.gov.cn/"})},attentionTap:function(){t.navigateTo({url:"/subcontract/pages/attention/attention"})},banBtnTap:function(){var e=t.getStorageSync("ban")||0;t.setStorageSync("ban",e+1),this.banShow=!1},user_login:function(t){this.authShow=!1,this.userDetail=t.wxInfo||0},cancel:function(){this.authShow=!1}}};e.default=a}).call(this,a("df3c")["default"])},"5cb6":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={uniPopup:function(){return a.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(a.bind(null,"a88c"))},ban:function(){return a.e("components/ban/ban").then(a.bind(null,"72dc"))},authorize:function(){return a.e("components/authorize/authorize").then(a.bind(null,"7929"))}},i=function(){var t=this.$createElement;this._self._c},o=[]},ae4d:function(t,e,a){"use strict";a.r(e);var n=a("5cb6"),i=a("2a1c");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("228d");var u=a("828b"),s=Object(u["a"])(i["default"],n["b"],n["c"],!1,null,"21305a5e",null,!1,n["a"],void 0);e["default"]=s.exports},fc99:function(t,e,a){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/index/indexCommon-create-component',
{
'pages/index/indexCommon-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("ae4d"))
})
},
[['pages/index/indexCommon-create-component']]
]);
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

搜索帮助