我和男配的一千零一夜

声漫文化

纯爱 穿越 日常

被迫穿书的师彦儒,为了求生不得不完成系统布置的任务,以回到现实世界,但无论哪一世,他总会遇到对他穷追不舍的秦臻玉……他逃他追,他插翅难飞。究竟是冤家路窄还是前缘未尽呢?
更多

评分

2023-04-24

更新时间

已完结

漫画评分

请输入正确的数字
稍后再评分

漫画吐槽

MIP.util.platform.start() if(window.location.origin != 'https://m.happymh.com'){ MIP.setData({sys:{isHost:false}}); } MIP.setData({"sys":{"linkType":"html"}}) var storage = MIP.util.customStorage(0); var user = storage.get("_u"); var uBookcase = storage.get("_bc"); var uHistory = storage.get("_ht"); var bc_time = storage.get("_bc_time"); if(user !== null){ user = JSON.parse(user) uBookcase = JSON.parse(uBookcase) uHistory = JSON.parse(uHistory) MIP.setData({"user":{"detail":user,"uHistory":uHistory ? uHistory : [],"uBookcase": uBookcase ? uBookcase : [],"bc_time":bc_time}}); } MIP.watch('user.changeTime', function (newVal, oldVal) { if(newVal !== 0){ var user = MIP.getData("user"); var detail = user.detail; var bookcase = user.uBookcase; var history = user.uHistory; storage.set("_u",JSON.stringify(detail)); storage.set("_bc",JSON.stringify(bookcase)); storage.set("_ht",JSON.stringify(history)); storage.set("_bc_time",user.bc_time); } }) MIP.watch('user.action', function (newVal, oldVal) { if(newVal === 'exit'){ localStorage.clear(); var expireOld = new Date((new Date()).getTime() - 24 * 3600000 * 365); var host = location.host; var mainHost = host.replace('m.', '.'); document.cookie = "sf_token=1; expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=/ ; domain="+mainHost; document.cookie = "sf_token=1; expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=/ ; domain="+host; document.cookie = "sf_token=1; expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=/"; } }) MIP.watch('sys.toastMsg.visible', function (newVal, oldVal) { var toastConfig = MIP.getData("sys.toastMsg"); if(newVal === true){ setTimeout(function(){ MIP.setData({sys:{toastMsg:{visible:false}}}) },toastConfig.timeout) } }) // window.onload = function(){ let user_type = parseInt(MIP.getData('user')['detail']['type']); let domain = 'https://m.happymh.com/'; if(user_type === 1){ let code = MIP.getData('serie_code'); let formData = new FormData(); formData.append('code', code); fetch('https://m.happymh.com/v2.0/apis/uu/readLog', { 'method': 'post', 'body': formData }).then( function(res){ return res.json(); }).then(function(result){ if(result.status !== 0){ MIP.setData({sys:{toastMsg:{content:result.msg, visible:true}}}); }else{ if(result.data.inBookcase !== undefined){ MIP.setData({inBookcase: result.data.inBookcase}); } if(result.data.last !== undefined){ let last = result.data.last; MIP.setData({history: {chapterId: last.ch_id, chapterName: last.chapter_name, chapterUrl : domain+'reads/'+code+'/'+last.ch_id}}); if(result.data.last.all_chapters !== undefined){ const readChids = result.data.last.all_chapters; const chapterList = MIP.getData('chapterList'); const newChapterList = chapterList.map(item => { if(readChids.indexOf(parseInt(item.id)) >= 0){ item.hasRead = true; }else{ item.hasRead = false; } return item; }); MIP.setData({'chapterList' : newChapterList, 'limitList':newChapterList.slice(0,9)}); } } } }).catch(function(error){ console.log(error.message); }); } // }; var storage = MIP.util.customStorage(0); var marrange = storage.get("_marrange"); if(marrange === null){ marrange = []; }else{ marrange = JSON.parse(marrange); } var serie_code = MIP.getData('serie_code'); var hasMarrange = marrange.findIndex( vv => vv.serie_code == serie_code); if(hasMarrange >=0){; MIP.setData({chapterArrangeLine:marrange[hasMarrange].chapterArrangeLine}); } MIP.watch("chapterArrangeLine", function(newVal, oldVal){ var storage = MIP.util.customStorage(0); var marrange = storage.get("_marrange"); if(marrange === null){ marrange = []; }else{ marrange = JSON.parse(marrange); } var serie_code = MIP.getData('serie_code'); var hasMarrange = marrange.findIndex( vv => vv.serie_code == serie_code); if(hasMarrange >=0){ marrange[hasMarrange] = {'serie_code':serie_code,'chapterArrangeLine':newVal}; }else{ marrange.push({'serie_code':serie_code,'chapterArrangeLine':newVal}); } storage.set("_marrange", JSON.stringify(marrange)); }) MIP.setData({nowtime:(new Date).getTime()}); setTimeout(function(){ var serie_code = MIP.getData('serie_code'); var uHistory = MIP.getData('user.uHistory'); var sys = MIP.getData('sys'); var hasInHistory = uHistory.find( vv => vv.serie_code == serie_code); if(hasInHistory){ MIP.setData({ history: { chapterId: hasInHistory.read_chapter_id, chapterUrl: sys.origin+'/reads/'+serie_code+'/'+ hasInHistory.read_chapter_id, chapterName: '续看'+hasInHistory.read_chapter_name } }); } var user = MIP.getData('user'); var time = (new Date()).getTime(); },500); setTimeout(function(){ var uBookcase = MIP.getData('user.uBookcase'); var serie_code = MIP.getData('serie_code'); var hasCollect = uBookcase.find(vv => vv.serie_code == serie_code); if(hasCollect){ MIP.setData({inBookcase: true}); } },500) var hasDownSet = false; var hasUpSet = false; MIP.viewport.on('scroll',function () { var scrolledTop = MIP.viewport.getScrollTop(); if(scrolledTop <=152 && !hasUpSet){ MIP.setData({zOpacity: {"opacity":1}}) hasDownSet=false; hasUpSet=true; } if(scrolledTop>152 && !hasDownSet){ MIP.setData({zOpacity: {"opacity":0}}) hasDownSet = true; hasUpSet = false; } });