You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xxdj1/unpackage/dist/build/h5/static/js/user-pages-detail.1f014336.js

1 line
19 KiB

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-detail"],{"0dda":function(i,n,e){"use strict";e.r(n);var o=e("c626"),t=e("f969");for(var c in t)["default"].indexOf(c)<0&&function(i){e.d(n,i,(function(){return t[i]}))}(c);e("4039");var u=e("f0c5"),l=Object(u["a"])(t["default"],o["b"],o["c"],!1,null,"59765974",null,!1,o["a"],void 0);n["default"]=l.exports},3995:function(i,n,e){"use strict";e("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("a9e3");var o={props:{name:{type:String,default:uni.$u.props.icon.name},color:{type:String,default:uni.$u.props.icon.color},size:{type:[String,Number],default:uni.$u.props.icon.size},bold:{type:Boolean,default:uni.$u.props.icon.bold},index:{type:[String,Number],default:uni.$u.props.icon.index},hoverClass:{type:String,default:uni.$u.props.icon.hoverClass},customPrefix:{type:String,default:uni.$u.props.icon.customPrefix},label:{type:[String,Number],default:uni.$u.props.icon.label},labelPos:{type:String,default:uni.$u.props.icon.labelPos},labelSize:{type:[String,Number],default:uni.$u.props.icon.labelSize},labelColor:{type:String,default:uni.$u.props.icon.labelColor},space:{type:[String,Number],default:uni.$u.props.icon.space},imgMode:{type:String,default:uni.$u.props.icon.imgMode},width:{type:[String,Number],default:uni.$u.props.icon.width},height:{type:[String,Number],default:uni.$u.props.icon.height},top:{type:[String,Number],default:uni.$u.props.icon.top},stop:{type:Boolean,default:uni.$u.props.icon.stop}}};n.default=o},4039:function(i,n,e){"use strict";var o=e("61f3"),t=e.n(o);t.a},"41cd":function(i,n,e){"use strict";e("7a82");var o=e("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(e("c7eb")),c=o(e("1da1")),u=o(e("5530"));e("99af"),e("caad"),e("2532");var l=e("26cb"),a=(o(e("7ded")),o(e("a7f9"))),r={components:{parser:a.default},data:function(){return{options:{},activeIndex:0,tabList:[{title:"项目介绍",id:0},{title:"禁忌说明",id:1},{title:"下单须知",id:2}],rule:{0:"introduce",1:"explain",2:"notice"},detail:{}}},computed:(0,l.mapState)({primaryColor:function(i){return i.config.configInfo.primaryColor},subColor:function(i){return i.config.configInfo.subColor},configInfo:function(i){return i.config.configInfo},userInfo:function(i){return i.user.userInfo}}),onLoad:function(i){this.$util.showLoading(),this.options=i,this.initIndex()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onShareAppMessage:function(i){var n=this.userInfo.id,e=this.detail,o=e.id,t=e.title,c=e.cover,u="/user/pages/detail?pid=".concat(n,"&id=").concat(o);return this.$util.log(u),{title:t,imageUrl:c,path:u}},methods:(0,u.default)((0,u.default)((0,u.default)({},(0,l.mapActions)(["getConfigInfo","getUserInfo"])),(0,l.mapMutations)(["getUserIndex"])),{},{initIndex:function(){var i=arguments,n=this;return(0,c.default)((0,t.default)().mark((function e(){var o;return(0,t.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=i.length>0&&void 0!==i[0]&&i[0],o||!n.$jweixin.isWechat()){e.next=5;break}return e.next=4,n.$jweixin.initJssdk();case 4:n.toAppShare();case 5:if(n.configInfo.id&&!o){e.next=8;break}return e.next=8,n.getConfigInfo();case 8:return e.next=10,n.getDetail();case 10:n.$util.setNavigationBarColor({bg:n.primaryColor});case 11:case"end":return e.stop()}}),e)})))()},initRefresh:function(){this.initIndex(!0)},toAppShare:function(){var i=this,n=this.userInfo.id,e=this.detail,o=(e.id,e.title),t=e.cover,c=window.location.href;c.includes("&pid=")&&(c=c.split("&pid=")[0]);var u="".concat(c,"&pid=").concat(n);this.$jweixin.wxReady((function(){i.$jweixin.showOptionMenu(),i.$jweixin.shareAppMessage(o,"",u,t),i.$jweixin.shareTimelineMessage(o,u,t)}))},getDetail:function(){var i=this;return(0,c.default)((0,t.default)().mark((function n(){var e;return(0,t.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e=i.options.id,n.next=3,i.$api.service.serviceInfo({id:e});case 3:i.detail=n.sent,i.$util.hideAll();case 5:case"end":return n