提交 5519df15 authored 作者: 彭涛's avatar 彭涛

项目优化

上级 3cae800f
...@@ -158,6 +158,5 @@ ...@@ -158,6 +158,5 @@
}, },
"usingComponents": { "usingComponents": {
"tab-bar": "/components/custom-tab-bar/index" "tab-bar": "/components/custom-tab-bar/index"
}, }
"sitemapLocation": "sitemap.json"
} }
\ No newline at end of file
{ {
"usingComponents": {}, "component": true,
"component": true "usingComponents": {}
} }
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/group/groupInfo"],{"4b2c":function(e,t,i){"use strict";i.r(t);var n=i("a7b6"),a=i.n(n);for(var o in n)"default"!==o&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},"54b1":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return n}));var n={uTable:function(){return i.e("uview-ui/components/u-table/u-table").then(i.bind(null,"1d51"))},uTr:function(){return i.e("uview-ui/components/u-tr/u-tr").then(i.bind(null,"28fb"))},uTd:function(){return i.e("uview-ui/components/u-td/u-td").then(i.bind(null,"96652"))},bottomWindow:function(){return i.e("components/bottomWindow/bottomWindow").then(i.bind(null,"9537"))}},a=function(){var e=this,t=e.$createElement,i=(e._self._c,1==e.groupDetails.type||2==e.groupDetails.type?e.groupDetails.packageSettingsList.slice(1):null),n=3==e.groupDetails.type?e.groupDetails.packageSettingsList.slice(1):null,a=4==e.groupDetails.type?e.groupDetails.packageSettingsList.slice(1):null,o=5==e.groupDetails.type?e.groupDetails.packageSettingsList.slice(1):null;e._isMounted||(e.e0=function(t){e.settleShow=!1},e.e1=function(t){e.settelTypeShow=!1},e.e2=function(t){e.settleShow=!0},e.e3=function(t){e.settleShow=!0},e.e4=function(t){e.settleShow=!0},e.e5=function(t){e.settleShow=!0},e.e6=function(t){e.settleShow=!0},e.e7=function(t){e.settelTypeShow=!0},e.e8=function(t){e.settelTypeShow=!0},e.e9=function(t){e.settelTypeShow=!0}),e.$mp.data=Object.assign({},{$root:{l0:i,l1:n,l2:a,l3:o}})},o=[]},"62ab":function(e,t,i){"use strict";(function(e){i("0cf7");n(i("66fd"));var t=n(i("afec"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,i("543d")["createPage"])},a7b6:function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i("a000"),a=o(i("7363"));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){i.e("components/bottomWindow/bottomWindow").then(function(){return resolve(i("9537"))}.bind(null,i)).catch(i.oe)},c={created:function(){},onLoad:function(t){var i=this,n=e.getStorageSync("user");t.scene&&(i.packageId=decodeURIComponent(t.scene),console.log("scene",i.packageId)),i.type=e.getStorageSync("type"),i.packageId=t.id,1==i.type?(i.userType=n.userType,i.userId=n.enterpriseId,n&&i.isParticipate()):i.userId=n.electricId,n&&i.getBasicCreditScore(),i.getPackageDetail(),i.getallParticipatingCompanies()},onShow:function(){this.failDialog=!1;var t=e.getStorageSync("user");t&&this.getUserMessage(),1==this.type&&t&&this.isParticipate()},components:{bottomWindow:s},data:function(){return{type:null,isAuthenticate:"",certificationStatus:"",BasicCreditScore:!1,packageId:null,userId:null,userType:"",isJion:!1,remainder:[],remaindering:[],groupDetails:{},takeCompanyList:[],electricityLimited:[],isshare:!1,tableList:[],settleShow:!1,settelTypeShow:!1,failDialog:!1,hintText:"",failDialogBtnShow:"",btnText:"",isParticipated:"0",setIntervaltimerindex:"",brokerageShow:!1}},methods:{onShareAppMessage:function(t){var i=this,n=e.getStorageSync("user").certificationName;return console.log("that.packageId===",i.packageId),{title:n+"邀请您参与拼团",path:"/pages/group/groupInfo?id="+i.packageId,imageUrl:"https://fire.huoshitou.net/profile/icon/yaoqing.png",content:"邀请您参与限时拼团",desc:"电客",success:function(e){console.log("111111"),console.log(e)},fail:function(e){console.log("222222"),console.log(e)}}},closeModel:function(e){"closeModel"==e&&(this.isshare=!1)},invitation:function(){var t=this,i=e.getStorageSync("type"),n=e.getStorageSync("user");if(!n)return this.nologin(),!1;if(1==i){if(!n.enterpriseId||null==n.enterpriseId)return t.nologin(),!1}else if(!n.electricId||null==n.electricId)return t.nologin(),!1;if(2!=this.isAuthenticate)return t.failDialog=!0,t.failDialogBtnShow=!0,t.hintText="您未完成认证信息,无法邀请企业",t.btnText="去认证",!1;t.isshare=!0},linktoElectriCompanyDetail:function(t){console.log(t),e.navigateTo({url:"/pagesA/electriCompany/electriCompanyDetail?userId="+t})},linktoCompanys:function(){e.navigateTo({url:"/pages/group/Companys?id="+this.packageId})},clickBrokerage:function(){this.settleShow=!0,this.brokerageShow=!0},getBasicCreditScore:function(){var e=this;(0,n.get)(a.default.getBasicCreditScore,{type:e.type,userId:e.userId}).then((function(t){200==t.code?e.BasicCreditScore=t.data:console.log(t.msg)}))},getUserMessage:function(){var e=this;(0,n.get)(a.default.getUserInformation,{type:this.type,userId:this.userId}).then((function(t){200==t.code&&(e.isAuthenticate=t.data.isAuthenticate,e.certificationStatus=t.data.certificationStatus)}))},getPackageDetail:function(){var e=this;(0,n.get)(a.default.joinPackageDetail,{packageId:e.packageId}).then((function(t){if(200==t.code){e.groupDetails=t.data;var i=JSON.parse(t.data.electricityLimited),a=i.map((function(e,t){return t!=i.length-1&&(e+="、"),e}));e.electricityLimited=a,null!=t.data.timeSharingSpreadRelatedList&&(e.tableList=t.data.timeSharingSpreadRelatedList,e.tableList.map((function(e){null==e.value&&(e.value="-")})));var o=t.data.packageEndTime.replace("T"," ").replace(".000+0800","").replace(/-/g,"/");e.remainder.push((0,n.getDuration)(new Date(o).getTime()-(new Date).getTime())),e.remaindering.push(new Date(o).getTime()-(new Date).getTime()),e.setIntervaltimerindex=setInterval((function(){e.remaindering[0]>0&&(e.remaindering[0]-=1e3,e.remainder[0]=(0,n.getDuration)(e.remaindering[0])),e.$forceUpdate()}),1e3)}}))},getallParticipatingCompanies:function(){var e=this,t={};t=this.type&&this.userId?{type:this.type,userId:this.userId,packageId:this.packageId}:{packageId:this.packageId},(0,n.get)(a.default.allParticipatingCompanies,t).then((function(t){if(200==t.code){var i=t.data;e.takeCompanyList=i.map((function(e){return function(t){console.log(t),e.certificationName=t.substring(0,2)+"***有限公司"}(e.certificationName),e.createTime=e.createTime.substr(5,11),e}))}}))},exitGroup:function(t){console.log(t);var i=e.getStorageSync("user");if(!i){e.showToast({title:"您还未登录,请先登录!",icon:"none"});var n=setTimeout((function(){e.navigateTo({url:"/pages/login/login"}),clearTimeout(n)}),800);return!1}1==this.type?(this.failDialog=!0,this.failDialogBtnShow=!0,this.hintText="退出拼团意味着放弃当前收益,确定退出?",this.btnText="确定退出"):e.navigateTo({url:"/pages/group/GroupCompany?packageId="+this.packageId})},linktoGroupCompany:function(t,i){var o=this,s=this,c=e.getStorageSync("user"),r=e.getStorageSync("type");if(!c)return s.nologin(),!1;if(1==r){if(!c.enterpriseId||null==c.enterpriseId)return s.nologin(),!1}else if(!c.electricId||null==c.electricId)return s.nologin(),!1;if(this.packageId=t,!this.BasicCreditScore)return e.showToast({title:"您的信用分过低不能参与拼团",icon:"none"}),!1;if(1==r){var l=e.getStorageSync("user").enterpriseId;(0,n.get)(a.default.participatePackageCheck,{mode:"0",type:"1",packageId:this.packageId,userId:l}).then((function(t){if(200==t.code)e.navigateTo({url:"/pagesA/memberJion/memberJion?packageId="+o.packageId});else{o.failDialog=!0;var i=t.msg;i.indexOf("I")>-1||i.indexOf("H")>-1?(o.failDialogBtnShow=!0,o.hintText="您未完成实名认证,请先实名认证",o.btnText="去认证"):i.indexOf("a")>-1?(o.failDialogBtnShow=!0,o.hintText="您当前未准入市场,如已准入,请重新认证",o.btnText="重新认证"):i.indexOf("W")>-1?(o.hintText="您是存量已交易远期企业,不能参与拼团",o.btnText="我知道了"):i.indexOf("b")>-1?(o.hintText="您已参与独立询价套餐,不能参与拼团",o.btnText="我知道了"):i.indexOf("X")>-1?(o.failDialogBtnShow=!0,o.hintText="您已参与过同年度其他拼团套餐,是否退出已参与的拼团套餐并重新参与新拼团套餐",o.btnText="参与新套餐"):i.indexOf("J")>-1?(o.hintText="您的用电性质不符合",o.btnText="我知道了"):(o.hintText="您不满足拼团的峰平谷要求,无法参与拼团",o.btnText="我知道了")}}))}else 2!=this.isAuthenticate?(this.failDialog=!0,this.failDialogBtnShow=!0,this.hintText="您未完成实名认证,请先实名认证",this.btnText="去认证"):e.navigateTo({url:"/pages/group/GroupCompany?packageId="+this.packageId+"&packageType="+i})},nologin:function(){e.showToast({title:"您还未登录,请先登录!",icon:"none"});var t=setTimeout((function(){e.navigateTo({url:"/pages/login/login"}),clearTimeout(t)}),800)},cancleClcik:function(){this.failDialog=!1},handleClcik:function(){var t=this;"去认证"==this.btnText?1==this.type?e.navigateTo({url:"/pages/authentication/CompanyAuthentication"}):e.navigateTo({url:"/pages/Certification/Certification"}):"确定退出"==this.btnText?this.quitPackage():"参与新套餐"==this.btnText?(0,n.get)(a.default.replacementPackage,{mode:0,type:"1",packageId:this.packageId,userId:this.userId}).then((function(i){200==i.code?(t.failDialog=!1,e.navigateTo({url:"/pagesA/memberJion/memberJion?packageId="+t.packageId+"&newPackage=1"})):e.showToast({title:i.msg,icon:"none"})})):"我知道了"==this.btnText?this.failDialog=!1:"重新认证"==this.btnText&&e.navigateTo({url:"/pages/authentication/CompanyAuthentication"})},quitPackage:function(){var t=this;(0,n.get)(a.default.quitPackage,{packageId:this.packageId,userId:this.userId}).then((function(i){200==i.code?(t.failDialog=!1,e.showToast({title:"退出成功"}),e.navigateBack({delta:1})):e.showToast({title:"请联系管理员",icon:"none"})}))},isParticipate:function(){var e=this;(0,n.get)(a.default.isParticipate,{packageId:this.packageId,userId:this.userId}).then((function(t){200==t.code&&(e.isParticipated=t.msg)}))},openWord:function(t){e.showLoading({title:"文件打开中"});var i=t.split("="),n=i[i.length-1].replace(/http:/g,"https:");if(n.lastIndexOf(".pdf")>-1||n.lastIndexOf(".doc")>-1)e.downloadFile({url:n,success:function(t){200==t.statusCode&&e.openDocument({filePath:t.tempFilePath,success:function(){console.log("打开文档成功"),e.hideLoading()}})},fail:function(t){e.showToast({title:"打开文档失败,请联系管理员",icon:"none"})}});else{var a=[];a.push(n),e.previewImage({urls:a,longPressActions:{itemList:["发送给朋友","保存图片","收藏"],success:function(t){console.log("选中了第"+(t.tapIndex+1)+"个按钮,第"+(t.index+1)+"张图片"),e.hideLoading()},fail:function(e){console.log(e.errMsg)}}})}}}};t.default=c}).call(this,i("543d")["default"])},afec:function(e,t,i){"use strict";i.r(t);var n=i("54b1"),a=i("4b2c");for(var o in a)"default"!==o&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("e10d");var s,c=i("f0c5"),r=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);t["default"]=r.exports},e10d:function(e,t,i){"use strict";var n=i("ff49"),a=i.n(n);a.a},ff49:function(e,t,i){}},[["62ab","common/runtime","common/vendor"]]]); (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/group/groupInfo"],{"4b2c":function(e,t,i){"use strict";i.r(t);var n=i("a7b6"),a=i.n(n);for(var o in n)"default"!==o&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},6067:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return n}));var n={uTable:function(){return i.e("uview-ui/components/u-table/u-table").then(i.bind(null,"1d51"))},uTr:function(){return i.e("uview-ui/components/u-tr/u-tr").then(i.bind(null,"28fb"))},uTd:function(){return i.e("uview-ui/components/u-td/u-td").then(i.bind(null,"96652"))},bottomWindow:function(){return i.e("components/bottomWindow/bottomWindow").then(i.bind(null,"9537"))}},a=function(){var e=this,t=e.$createElement,i=(e._self._c,1==e.groupDetails.type||2==e.groupDetails.type?e.groupDetails.packageSettingsList.slice(1):null),n=3==e.groupDetails.type?e.groupDetails.packageSettingsList.slice(1):null,a=4==e.groupDetails.type?e.groupDetails.packageSettingsList.slice(1):null,o=5==e.groupDetails.type?e.groupDetails.packageSettingsList.slice(1):null;e._isMounted||(e.e0=function(t){e.settleShow=!1},e.e1=function(t){e.settelTypeShow=!1},e.e2=function(t){e.settleShow=!0},e.e3=function(t){e.settleShow=!0},e.e4=function(t){e.settleShow=!0},e.e5=function(t){e.settleShow=!0},e.e6=function(t){e.settleShow=!0},e.e7=function(t){e.settelTypeShow=!0},e.e8=function(t){e.settelTypeShow=!0},e.e9=function(t){e.settelTypeShow=!0}),e.$mp.data=Object.assign({},{$root:{l0:i,l1:n,l2:a,l3:o}})},o=[]},"62ab":function(e,t,i){"use strict";(function(e){i("0cf7");n(i("66fd"));var t=n(i("afec"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,i("543d")["createPage"])},a7b6:function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i("a000"),a=o(i("7363"));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){i.e("components/bottomWindow/bottomWindow").then(function(){return resolve(i("9537"))}.bind(null,i)).catch(i.oe)},c={created:function(){},onLoad:function(t){var i=this,n=e.getStorageSync("user");t.scene?(i.packageId=decodeURIComponent(t.scene),console.log("scene",i.packageId)):i.packageId=t.id,i.type=e.getStorageSync("type"),console.log("that.packageId====",i.packageId),1==i.type?(i.userType=n.userType,i.userId=n.enterpriseId,n&&i.isParticipate()):i.userId=n.electricId,n&&i.getBasicCreditScore(),i.getPackageDetail(),i.getallParticipatingCompanies()},onShow:function(){this.failDialog=!1;var t=e.getStorageSync("user");t&&this.getUserMessage(),1==this.type&&t&&this.isParticipate()},components:{bottomWindow:s},data:function(){return{type:null,isAuthenticate:"",certificationStatus:"",BasicCreditScore:!1,packageId:null,userId:null,userType:"",isJion:!1,remainder:[],remaindering:[],groupDetails:{},takeCompanyList:[],electricityLimited:[],isshare:!1,tableList:[],settleShow:!1,settelTypeShow:!1,failDialog:!1,hintText:"",failDialogBtnShow:"",btnText:"",isParticipated:"0",setIntervaltimerindex:"",brokerageShow:!1}},methods:{onShareAppMessage:function(t){var i=this,n=e.getStorageSync("user").certificationName;return console.log("that.packageId===",i.packageId),{title:n+"邀请您参与拼团",path:"/pages/group/groupInfo?id="+i.packageId,imageUrl:"https://fire.huoshitou.net/profile/icon/yaoqing.png",content:"邀请您参与限时拼团",desc:"电客",success:function(e){console.log("111111"),console.log(e)},fail:function(e){console.log("222222"),console.log(e)}}},closeModel:function(e){"closeModel"==e&&(this.isshare=!1)},invitation:function(){var t=this,i=e.getStorageSync("type"),n=e.getStorageSync("user");if(!n)return this.nologin(),!1;if(1==i){if(!n.enterpriseId||null==n.enterpriseId)return t.nologin(),!1}else if(!n.electricId||null==n.electricId)return t.nologin(),!1;if(2!=this.isAuthenticate)return t.failDialog=!0,t.failDialogBtnShow=!0,t.hintText="您未完成认证信息,无法邀请企业",t.btnText="去认证",!1;t.isshare=!0},linktoElectriCompanyDetail:function(t){console.log(t),e.navigateTo({url:"/pagesA/electriCompany/electriCompanyDetail?userId="+t})},linktoCompanys:function(){e.navigateTo({url:"/pages/group/Companys?id="+this.packageId})},clickBrokerage:function(){this.settleShow=!0,this.brokerageShow=!0},getBasicCreditScore:function(){var e=this;(0,n.get)(a.default.getBasicCreditScore,{type:e.type,userId:e.userId}).then((function(t){200==t.code?e.BasicCreditScore=t.data:console.log(t.msg)}))},getUserMessage:function(){var e=this;(0,n.get)(a.default.getUserInformation,{type:this.type,userId:this.userId}).then((function(t){200==t.code&&(e.isAuthenticate=t.data.isAuthenticate,e.certificationStatus=t.data.certificationStatus)}))},getPackageDetail:function(){var e=this;(0,n.get)(a.default.joinPackageDetail,{packageId:e.packageId}).then((function(t){if(200==t.code){e.groupDetails=t.data;var i=JSON.parse(t.data.electricityLimited),a=i.map((function(e,t){return t!=i.length-1&&(e+="、"),e}));e.electricityLimited=a,null!=t.data.timeSharingSpreadRelatedList&&(e.tableList=t.data.timeSharingSpreadRelatedList,e.tableList.map((function(e){null==e.value&&(e.value="-")})));var o=t.data.packageEndTime.replace("T"," ").replace(".000+0800","").replace(/-/g,"/");e.remainder.push((0,n.getDuration)(new Date(o).getTime()-(new Date).getTime())),e.remaindering.push(new Date(o).getTime()-(new Date).getTime()),e.setIntervaltimerindex=setInterval((function(){e.remaindering[0]>0&&(e.remaindering[0]-=1e3,e.remainder[0]=(0,n.getDuration)(e.remaindering[0])),e.$forceUpdate()}),1e3)}}))},getallParticipatingCompanies:function(){var e=this,t={};t=this.type&&this.userId?{type:this.type,userId:this.userId,packageId:this.packageId}:{packageId:this.packageId},(0,n.get)(a.default.allParticipatingCompanies,t).then((function(t){if(200==t.code){var i=t.data;e.takeCompanyList=i.map((function(e){return function(t){console.log(t),e.certificationName=t.substring(0,2)+"***有限公司"}(e.certificationName),e.createTime=e.createTime.substr(5,11),e}))}}))},exitGroup:function(t){console.log(t);var i=e.getStorageSync("user");if(!i){e.showToast({title:"您还未登录,请先登录!",icon:"none"});var n=setTimeout((function(){e.navigateTo({url:"/pages/login/login"}),clearTimeout(n)}),800);return!1}1==this.type?(this.failDialog=!0,this.failDialogBtnShow=!0,this.hintText="退出拼团意味着放弃当前收益,确定退出?",this.btnText="确定退出"):e.navigateTo({url:"/pages/group/GroupCompany?packageId="+this.packageId})},linktoGroupCompany:function(t,i){var o=this,s=this,c=e.getStorageSync("user"),r=e.getStorageSync("type");if(!c)return s.nologin(),!1;if(1==r){if(!c.enterpriseId||null==c.enterpriseId)return s.nologin(),!1}else if(!c.electricId||null==c.electricId)return s.nologin(),!1;if(this.packageId=t,!this.BasicCreditScore)return e.showToast({title:"您的信用分过低不能参与拼团",icon:"none"}),!1;if(1==r){var l=e.getStorageSync("user").enterpriseId;(0,n.get)(a.default.participatePackageCheck,{mode:"0",type:"1",packageId:this.packageId,userId:l}).then((function(t){if(200==t.code)e.navigateTo({url:"/pagesA/memberJion/memberJion?packageId="+o.packageId});else{o.failDialog=!0;var i=t.msg;i.indexOf("I")>-1||i.indexOf("H")>-1?(o.failDialogBtnShow=!0,o.hintText="您未完成实名认证,请先实名认证",o.btnText="去认证"):i.indexOf("a")>-1?(o.failDialogBtnShow=!0,o.hintText="您当前未准入市场,如已准入,请重新认证",o.btnText="重新认证"):i.indexOf("W")>-1?(o.hintText="您是存量已交易远期企业,不能参与拼团",o.btnText="我知道了"):i.indexOf("b")>-1?(o.hintText="您已参与独立询价套餐,不能参与拼团",o.btnText="我知道了"):i.indexOf("X")>-1?(o.failDialogBtnShow=!0,o.hintText="您已参与过同年度其他拼团套餐,是否退出已参与的拼团套餐并重新参与新拼团套餐",o.btnText="参与新套餐"):i.indexOf("J")>-1?(o.hintText="您的用电性质不符合",o.btnText="我知道了"):(o.hintText="您不满足拼团的峰平谷要求,无法参与拼团",o.btnText="我知道了")}}))}else 2!=this.isAuthenticate?(this.failDialog=!0,this.failDialogBtnShow=!0,this.hintText="您未完成实名认证,请先实名认证",this.btnText="去认证"):e.navigateTo({url:"/pages/group/GroupCompany?packageId="+this.packageId+"&packageType="+i})},nologin:function(){e.showToast({title:"您还未登录,请先登录!",icon:"none"});var t=setTimeout((function(){e.navigateTo({url:"/pages/login/login"}),clearTimeout(t)}),800)},cancleClcik:function(){this.failDialog=!1},handleClcik:function(){var t=this;"去认证"==this.btnText?1==this.type?e.navigateTo({url:"/pages/authentication/CompanyAuthentication"}):e.navigateTo({url:"/pages/Certification/Certification"}):"确定退出"==this.btnText?this.quitPackage():"参与新套餐"==this.btnText?(0,n.get)(a.default.replacementPackage,{mode:0,type:"1",packageId:this.packageId,userId:this.userId}).then((function(i){200==i.code?(t.failDialog=!1,e.navigateTo({url:"/pagesA/memberJion/memberJion?packageId="+t.packageId+"&newPackage=1"})):e.showToast({title:i.msg,icon:"none"})})):"我知道了"==this.btnText?this.failDialog=!1:"重新认证"==this.btnText&&e.navigateTo({url:"/pages/authentication/CompanyAuthentication"})},quitPackage:function(){var t=this;(0,n.get)(a.default.quitPackage,{packageId:this.packageId,userId:this.userId}).then((function(i){200==i.code?(t.failDialog=!1,e.showToast({title:"退出成功"}),e.navigateBack({delta:1})):e.showToast({title:"请联系管理员",icon:"none"})}))},isParticipate:function(){var e=this;(0,n.get)(a.default.isParticipate,{packageId:this.packageId,userId:this.userId}).then((function(t){200==t.code&&(e.isParticipated=t.msg)}))},openWord:function(t){e.showLoading({title:"文件打开中"});var i=t.split("="),n=i[i.length-1].replace(/http:/g,"https:");if(n.lastIndexOf(".pdf")>-1||n.lastIndexOf(".doc")>-1)e.downloadFile({url:n,success:function(t){200==t.statusCode&&e.openDocument({filePath:t.tempFilePath,success:function(){console.log("打开文档成功"),e.hideLoading()}})},fail:function(t){e.showToast({title:"打开文档失败,请联系管理员",icon:"none"})}});else{var a=[];a.push(n),e.previewImage({urls:a,longPressActions:{itemList:["发送给朋友","保存图片","收藏"],success:function(t){console.log("选中了第"+(t.tapIndex+1)+"个按钮,第"+(t.index+1)+"张图片"),e.hideLoading()},fail:function(e){console.log(e.errMsg)}}})}}}};t.default=c}).call(this,i("543d")["default"])},afec:function(e,t,i){"use strict";i.r(t);var n=i("6067"),a=i("4b2c");for(var o in a)"default"!==o&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("e10d");var s,c=i("f0c5"),r=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);t["default"]=r.exports},e10d:function(e,t,i){"use strict";var n=i("ff49"),a=i.n(n);a.a},ff49:function(e,t,i){}},[["62ab","common/runtime","common/vendor"]]]);
\ No newline at end of file \ No newline at end of file
...@@ -6,8 +6,38 @@ ...@@ -6,8 +6,38 @@
"setting": { "setting": {
"urlCheck": true, "urlCheck": true,
"es6": true, "es6": true,
"enhance": false,
"postcss": true, "postcss": true,
"minified": true "preloadBackgroundData": false,
"minified": true,
"newFeature": false,
"coverView": true,
"nodeModules": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"enableEngineNative": false,
"bundle": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "", "libVersion": "",
...@@ -15,19 +45,15 @@ ...@@ -15,19 +45,15 @@
"projectname": "gangshi", "projectname": "gangshi",
"condition": { "condition": {
"search": { "search": {
"current": -1,
"list": [] "list": []
}, },
"conversation": { "conversation": {
"current": -1,
"list": [] "list": []
}, },
"game": { "game": {
"current": -1,
"list": [] "list": []
}, },
"miniprogram": { "miniprogram": {
"current": -1,
"list": [] "list": []
} }
} }
......
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -536,10 +536,11 @@ var _api = _interopRequireDefault(__webpack_require__(/*! ../../static/util/api. ...@@ -536,10 +536,11 @@ var _api = _interopRequireDefault(__webpack_require__(/*! ../../static/util/api.
if (options.scene) { if (options.scene) {
that.packageId = decodeURIComponent(options.scene); that.packageId = decodeURIComponent(options.scene);
console.log('scene', that.packageId); console.log('scene', that.packageId);
} else {
that.packageId = options.id;
} }
that.type = uni.getStorageSync('type'); that.type = uni.getStorageSync('type');
that.packageId = options.id; console.log('that.packageId====', that.packageId);
// console.log(that.packageId)
if (that.type == 1) { if (that.type == 1) {
that.userType = user.userType; that.userType = user.userType;
that.userId = user.enterpriseId; that.userId = user.enterpriseId;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论