猎豆优选小程序

pages-subPackages-my-zskf.fd9cd89a.js 14KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPackages-my-zskf"],{"123c":function(t,e,n){"use strict";n.r(e);var i=n("eff7"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},1335:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uIcon:n("5fbc").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{},[n("v-uni-view",{staticClass:"u-navbar",class:{"u-navbar-fixed":t.isFixed,"u-border-bottom":t.borderBottom},style:[t.navbarStyle]},[n("v-uni-view",{staticClass:"u-status-bar",style:{height:t.statusBarHeight+"px"}}),n("v-uni-view",{staticClass:"u-navbar-inner",style:[t.navbarInnerStyle]},[t.isBack?n("v-uni-view",{staticClass:"u-back-wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"u-icon-wrap"},[n("u-icon",{attrs:{name:t.backIconName,color:t.backIconColor,size:t.backIconSize}})],1),t.backText?n("v-uni-view",{staticClass:"u-icon-wrap u-back-text u-line-1",style:[t.backTextStyle]},[t._v(t._s(t.backText))]):t._e()],1):t._e(),t.title?n("v-uni-view",{staticClass:"u-navbar-content-title",style:[t.titleStyle]},[n("v-uni-view",{staticClass:"u-title u-line-1",style:{color:t.titleColor,fontSize:t.titleSize+"rpx",fontWeight:t.titleBold?"bold":"normal"}},[t._v(t._s(t.title))])],1):t._e(),n("v-uni-view",{staticClass:"u-slot-content"},[t._t("default")],2),n("v-uni-view",{staticClass:"u-slot-right"},[t._t("right")],2)],1)],1),t.isFixed&&!t.immersive?n("v-uni-view",{staticClass:"u-navbar-placeholder",style:{width:"100%",height:Number(t.navbarHeight)+t.statusBarHeight+"px"}}):t._e()],1)},s=[]},1624:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.u-navbar[data-v-2920cc37]{width:100%}.u-navbar-fixed[data-v-2920cc37]{position:fixed;left:0;right:0;top:0;z-index:991}.u-status-bar[data-v-2920cc37]{width:100%}.u-navbar-inner[data-v-2920cc37]{display:flex;flex-direction:row;justify-content:space-between;position:relative;align-items:center}.u-back-wrap[data-v-2920cc37]{display:flex;flex-direction:row;align-items:center;flex:1;flex-grow:0;padding:%?14?% %?14?% %?14?% %?24?%}.u-back-text[data-v-2920cc37]{padding-left:%?4?%;font-size:%?30?%}.u-navbar-content-title[data-v-2920cc37]{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1;position:absolute;left:0;right:0;height:%?60?%;text-align:center;flex-shrink:0}.u-navbar-centent-slot[data-v-2920cc37]{flex:1}.u-title[data-v-2920cc37]{line-height:%?60?%;font-size:%?32?%;flex:1}.u-navbar-right[data-v-2920cc37]{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.u-slot-content[data-v-2920cc37]{flex:1;display:flex;flex-direction:row;align-items:center}',""]),t.exports=e},"34e7":function(t,e,n){"use strict";n.r(e);var i=n("3ae4"),a=n("c2d0");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("a6f8");var o=n("f0c5"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"0d3e95cb",null,!1,i["a"],void 0);e["default"]=c.exports},3597:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.kf-block[data-v-0d3e95cb]{display:flex;justify-content:center;align-items:center;margin-top:%?40?%;line-height:%?50?%;font-size:%?32?%;color:#333}.kf-block .avatar[data-v-0d3e95cb]{width:%?70?%;height:%?70?%;border-radius:50%;margin-right:%?20?%}.text-block[data-v-0d3e95cb]{display:flex;justify-content:center;align-items:center;font-size:%?32?%;line-height:%?40?%;margin-top:%?20?%}.text-block .img[data-v-0d3e95cb]{width:%?40?%;height:%?40?%;margin-right:%?10?%}.kf-evm[data-v-0d3e95cb]{display:block;width:%?280?%;height:%?280?%;margin:%?80?% auto}.button[data-v-0d3e95cb]{width:%?440?%;line-height:%?70?%;background-color:#f52b18;font-size:%?32?%;color:#fff;text-align:center;margin:auto;margin-top:%?30?%;border-radius:%?6?%}.wx-text[data-v-0d3e95cb]{font-size:%?26?%;text-align:center;line-height:%?40?%;margin-top:%?10?%}.add-question[data-v-0d3e95cb]{text-align:center;font-size:%?26?%;line-height:%?40?%;margin-top:%?100?%}.add-question .fws_button[data-v-0d3e95cb]{color:#f52b18;margin-left:%?6?%;font-size:%?32?%;font-weight:700}.h5-hint[data-v-0d3e95cb]{text-align:center;font-size:%?26?%;line-height:%?40?%;color:#666}.warp[data-v-0d3e95cb]{display:flex;align-items:center;justify-content:center;height:100%}.rect[data-v-0d3e95cb]{width:%?600?%;height:%?900?%;background-color:#fff;border-radius:%?20?%;padding:%?20?% %?40?%}',""]),t.exports=e},"3ae4":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uNavbar:n("6103").default,uMask:n("a4db").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("u-navbar",{staticClass:"navbar-wrap",attrs:{"is-back":!0,title:"专属客服",background:t.background,"title-color":"#ffffff","back-icon-color":"#ffffff"}}),n("v-uni-view",{staticClass:"kf-block"},[t.serviceInfo.headimgurl?n("v-uni-image",{staticClass:"avatar",attrs:{src:t.serviceInfo.headimgurl}}):n("v-uni-image",{staticClass:"avatar",attrs:{src:"/static/imgs/avatar-login.png"}}),n("v-uni-text",[t._v("我是你的专属客服,添加微信好友可:")])],1),t.serviceInfo.text?t._l(t.serviceInfo.text,(function(e){return n("v-uni-view",{staticClass:"text-block"},[n("v-uni-image",{staticClass:"img",attrs:{src:"/static/imgs/kefu_icon.png",mode:"widthFix"}}),n("v-uni-text",[t._v(t._s(e))])],1)})):t._e(),n("v-uni-image",{staticClass:"kf-evm",attrs:{src:t.serviceInfo.qrcode,mode:"widthFix","show-menu-by-longpress":!0}}),n("v-uni-view",{staticClass:"h5-hint"},[t._v("长按识别二维码或保存二维码到手机")]),n("v-uni-view",{staticClass:"h5-hint"},[t._v("您还可以复制微信号添加专属客服")]),t.serviceInfo.wechat?[n("v-uni-view",{staticClass:"button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.copyEvent.apply(void 0,arguments)}}},[t._v("复制微信号")])]:t._e(),n("v-uni-view",{staticClass:"add-question"},[t._v("添加客服遇到问题,请联系"),n("v-uni-text",{staticClass:"fws_button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showMask=!0}}},[t._v("服务商")])],1),n("u-mask",{attrs:{show:t.showMask},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showMask=!1}}},[n("v-uni-view",{staticClass:"warp"},[n("v-uni-view",{staticClass:"rect",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e)}}},[n("v-uni-view",{staticClass:"kf-block"},[t.serviceInfo.server_info.headimgurl?n("v-uni-image",{staticClass:"avatar",attrs:{src:t.serviceInfo.server_info.headimgurl}}):n("v-uni-image",{staticClass:"avatar",attrs:{src:"/static/imgs/avatar-login.png"}}),n("v-uni-text",[t._v("我是服务商")])],1),n("v-uni-image",{staticClass:"kf-evm",attrs:{src:t.serviceInfo.server_info.qrcode,mode:"widthFix","show-menu-by-longpress":!0}}),n("v-uni-view",{staticClass:"h5-hint"},[t._v("长按识别二维码或保存二维码到手机")]),n("v-uni-view",{staticClass:"h5-hint"},[t._v("您还可以复制微信号添加专属客服")]),t.serviceInfo.server_info.wechat?[n("v-uni-view",{staticClass:"button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.copyEvent("fws")}}},[t._v("复制微信号")])]:t._e()],2)],1)],1)],2)},s=[]},"3b49":function(t,e,n){"use strict";var i=n("bb55"),a=n.n(i);a.a},6103:function(t,e,n){"use strict";n.r(e);var i=n("1335"),a=n("123c");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("3b49");var o=n("f0c5"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"2920cc37",null,!1,i["a"],void 0);e["default"]=c.exports},"6f2c":function(t,e,n){var i=n("3597");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("4b3626f5",i,!0,{sourceMap:!1,shadowMode:!1})},"9e95":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("c7eb")),s=i(n("1da1")),o=getApp(),c={data:function(){return{background:o.globalData.navbarBackground,serviceInfo:{},showMask:!1}},onLoad:function(){this.getService()},methods:{downloadImg:function(t){wx.showLoading({title:"加载中..."});var e=this.serviceInfo.qrcode;"fws"==t&&(e=this.serviceInfo.server_info.qrcode),wx.downloadFile({url:e,success:function(t){wx.saveImageToPhotosAlbum({filePath:t.tempFilePath,success:function(t){wx.hideLoading(),wx.showModal({title:"提示",content:"保存成功",modalType:!1})},fail:function(t){"saveImageToPhotosAlbum:fail:auth denied"!==t.errMsg&&"saveImageToPhotosAlbum:fail auth deny"!==t.errMsg&&"saveImageToPhotosAlbum:fail authorize no response"!==t.errMsg||wx.showModal({title:"提示",content:"需要您授权保存相册",modalType:!1,success:function(t){wx.openSetting({success:function(t){console.log("settingdata",t),t.authSetting["scope.writePhotosAlbum"]?wx.showModal({title:"提示",content:"获取权限成功,再次点击图片即可保存",modalType:!1}):wx.showModal({title:"提示",content:"获取权限失败,将无法保存到相册哦~",modalType:!1})},fail:function(t){console.log("failData",t)},complete:function(t){console.log("finishData",t)}})}})},complete:function(t){wx.hideLoading()}})}})},getService:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var n,i,s,o;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,n=t.$api.adzoneCreate_belongToYou,i={},uni.showLoading({title:"加载中...",mask:!0}),e.next=6,t.$postJSON(n,i);case 6:s=e.sent,o=s.data,o&&0==o.errno?t.serviceInfo=o.rst:uni.showToast({title:o.err||"操作失败",icon:"none"}),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),uni.showToast({title:"服务器错误",icon:"none"});case 14:return e.prev=14,uni.hideLoading(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})))()},copyEvent:function(t){var e=this.serviceInfo.wechat;"fws"==t&&(e=this.serviceInfo.server_info.wechat),this.$copyEvent({text:e})}}};e.default=c},a6f8:function(t,e,n){"use strict";var i=n("6f2c"),a=n.n(i);a.a},bb55:function(t,e,n){var i=n("1624");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("768dc6c5",i,!0,{sourceMap:!1,shadowMode:!1})},c2d0:function(t,e,n){"use strict";n.r(e);var i=n("9e95"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},eff7:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var i=uni.getSystemInfoSync(),a={},s={name:"u-navbar",props:{height:{type:[String,Number],default:""},backIconColor:{type:String,default:"#606266"},backIconName:{type:String,default:"nav-back"},backIconSize:{type:[String,Number],default:"44"},backText:{type:String,default:""},backTextStyle:{type:Object,default:function(){return{color:"#606266"}}},title:{type:String,default:""},titleWidth:{type:[String,Number],default:"250"},titleColor:{type:String,default:"#606266"},titleBold:{type:Boolean,default:!1},titleSize:{type:[String,Number],default:32},isBack:{type:[Boolean,String],default:!0},background:{type:Object,default:function(){return{background:"#ffffff"}}},isFixed:{type:Boolean,default:!0},immersive:{type:Boolean,default:!1},borderBottom:{type:Boolean,default:!0},zIndex:{type:[String,Number],default:""},customBack:{type:Function,default:null}},data:function(){return{menuButtonInfo:a,statusBarHeight:i.statusBarHeight}},computed:{navbarInnerStyle:function(){var t={};return t.height=this.navbarHeight+"px",t},navbarStyle:function(){var t={};return t.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.navbar,Object.assign(t,this.background),t},titleStyle:function(){var t={};return t.left=(i.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.right=(i.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.width=uni.upx2px(this.titleWidth)+"px",t},navbarHeight:function(){return this.height?this.height:44}},created:function(){},methods:{goBack:function(){"function"===typeof this.customBack?this.customBack.bind(this.$u.$parent.call(this))():uni.navigateBack()}}};e.default=s}}]);