"use strict";var s=require("../common/vendor.js"),d=require("../api/adv.js"),c=require("../api/index.js");require("../common/request.js");const o={data(){return{advs:[],advImgs:[],id:null,item:{}}},onLoad(e){this.id=e.id},onShow(){this.getAdvList(),this.getQuestionsById()},onShareAppMessage(e){if(this.$isLogin())return{title:this.item.vesselName,path:"/pages_index/questionsDetails?id="+this.id,imageUrl:"https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20230106/6b459adfb1004c1a96219bcdf07e337c.png"}},onShareTimeline(e){if(this.utils.isLogin())return{title:this.item.title,imageUrl:"https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20230106/6b459adfb1004c1a96219bcdf07e337c.png"}},methods:{handleAdvClick(e){var i=this.advs[e];console.log(i.advUrl),i.showType==1?(s.index.setStorageSync("url",i.advUrl),s.index.navigateTo({url:"h5"})):i.showType==2?s.index.navigateTo({url:i.advUrl}):i.showType==3&&(s.index.setStorageSync("content",i.content),s.index.navigateTo({url:"content"}))},getAdvList(){var e=this,i={advType:6};d.getAdvList(i).then(n=>{n.code==200?(e.advImgs=[],e.advs=[],n.data.forEach(function(t){t.imageUrl!=null&&t.imageUrl!=""&&(e.advs.push(t),e.advImgs.push(t.imageUrl))})):s.index.showToast({icon:"none",title:"\u8BF7\u6C42\u5931\u8D25"})})},getQuestionsById(){let e={id:this.id};c.getQuestionsById(e).then(i=>{i.code==200?this.item=i.data:s.index.showToast({icon:"none",title:"\u8BF7\u6C42\u5931\u8D25"})},i=>{})}}};Array||s.resolveComponent("u-swiper")();const u=()=>"../uni_modules/uview-plus/components/u-swiper/u-swiper.js";Math||u();function l(e,i,n,t,a,r){return{a:s.t(a.item.title),b:s.t(a.item.views),c:s.t(a.item.createTime),d:a.item.answers,e:s.o(r.handleAdvClick),f:s.p({list:a.advImgs,indicator:!0,indicatorMode:"line",circular:!0})}}var h=s._export_sfc(o,[["render",l],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_index/questionsDetails.vue"]]);o.__runtimeHooks=6;wx.createPage(h);
