1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index~pages-index-service~pages-index-tissue","pages-index-home"],{"0fd2":function(t,e,n){"use strict";n.r(e);var i=n("5778"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"19ff":function(t,e,n){"use strict";var i=n("7f4b"),a=n.n(i);a.a},"29fd":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\r\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\r\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \r\n */.tn-btn[data-v-d2dc7f56]{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;line-height:1;text-align:center;text-decoration:none;overflow:visible;-webkit-transform:translate(%?0?%,%?0?%);transform:translate(%?0?%,%?0?%);border-radius:%?12?%;margin:0}.tn-btn--plain[data-v-d2dc7f56]{background-color:initial!important;background-image:none}.tn-btn--plain.tn-round[data-v-d2dc7f56]{border-radius:%?1000?%!important}',""]),t.exports=e},3309:function(t,e,n){"use strict";n.r(e);var i=n("c5a4"),a=n("0fd2");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("19ff");var o=n("f0c5"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"6bd8551d",null,!1,i["a"],void 0);e["default"]=s.exports},5778:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3"),n("14d9");var a=i(n("16ca")),r={mixins:[a.default],name:"tn-grid-item",props:{index:{type:[Number,String],default:""}},data:function(){return{parentData:{hoverClass:"",col:3}}},created:function(){this.updateParentData(),this.parent.children.push(this)},computed:{gridWidth:function(){return 100/Number(this.parentData.col)+"%"},hoverClass:function(){return"none"!==this.parentData.hoverClass?this.parentData.hoverClass+" tn-grid-item--hover":this.parentData.hoverClass}},methods:{updateParentData:function(){this.getParentData("tn-grid")},click:function(){this.$emit("click",this.index),this.parent&&this.parent.click(this.index)}}};e.default=r},7139:function(t,e,n){"use strict";n.r(e);var i=n("80e7"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"7f4b":function(t,e,n){var i=n("bd85");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("22c1a06d",i,!0,{sourceMap:!1,shadowMode:!1})},"80e7":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3"),n("c975"),n("fb6a"),n("baa5"),n("caad"),n("2532");var a=i(n("16ca")),r=n("e725"),o={mixins:[a.default],name:"tn-button",behaviors:["wx://form-field-button"],props:{index:{type:[Number,String],default:0},shape:{type:String,default:"default"},shadow:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:""},size:{type:String,default:""},fontBold:{type:Boolean,default:!1},padding:{type:String,default:"0 30rpx"},margin:{type:String,default:""},plain:{type:Boolean,default:!1},border:{type:Boolean,default:!0},borderBold:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},formType:{type:String,default:""},openType:{type:String,default:""},blockRepeatClick:{type:Boolean,default:!1},scene:{type:String,default:"none"},blockTime:{type:Number,default:200}},computed:{buttonClass:function(){var t="";switch(this.shape){case"icon":case"round":t+=" tn-round";break}if(this.shadow)if(""!==this.backgroundColorClass&&-1!=this.backgroundColorClass.indexOf("tn-bg")){var e=this.backgroundColor.slice(this.backgroundColor.lastIndexOf("-")+1);t+=" tn-shadow-".concat(e)}else t+=" tn-shadow-blur";if(this.fontBold&&(t+=" tn-text-bold"),this.plain&&(t+=" tn-btn--plain",this.border&&(t+=" tn-border-solid",this.borderBold&&(t+=" tn-bold-border"),""!==this.backgroundColor&&this.backgroundColor.includes("tn-bg")))){var n=this.backgroundColor.slice(this.backgroundColor.lastIndexOf("-")+1);t+=" tn-border-".concat(n)}return t},buttonStyle:function(){var t={};switch(this.size){case"sm":t.padding="0 20rpx",t.fontSize="22rpx",t.height=this.height||"48rpx";break;case"lg":t.padding="0 40rpx",t.fontSize="32rpx",t.height=this.height||"80rpx";break;default:t.padding="0 30rpx",t.fontSize="28rpx",t.height=this.height||"64rpx"}return this.padding&&(t.padding=this.padding),this.margin&&(t.margin=this.margin),this.fontSize&&(t.fontSize=this.fontSize+this.fontUnit),t.width="icon"===this.shape?t.height:this.width,t.padding="icon"===this.shape?"0":t.padding,this.fontColorStyle&&(t.color=this.fontColorStyle),this.backgroundColorClass||(this.plain?t.borderColor=this.backgroundColorStyle||"#080808":t.backgroundColor=this.backgroundColorStyle||"#FFFFFF"),this.shadow&&!this.backgroundColorClass&&(-1!=this.backgroundColorStyle.indexOf("#")?t.boxShadow="6rpx 6rpx 8rpx ".concat(this.backgroundColorStyle||"#000000","10"):-1==this.backgroundColorStyle.indexOf("rgb")&&-1==this.backgroundColorStyle.indexOf("rgba")&&this.backgroundColorStyle||(t.boxShadow="6rpx 6rpx 8rpx ".concat(this.backgroundColorStyle||"rgba(0, 0, 0, 0.1)"))),t}},data:function(){return{}},watch:{blockTime:{handler:function(t,e){this.initScene()}}},mounted:function(){this.initScene()},methods:{initScene:function(){this.debounceClick=(0,r.debounceFun)((function(){this.emitClick()}),this.blockTime),this.throttleClick=(0,r.throttleFun)((function(){this.emitClick()}),this.blockTime)},debounceClick:(0,r.debounceFun)((function(){this.emitClick()}),200),throttleClick:(0,r.throttleFun)((function(){this.emitClick()}),200),emitClick:function(){this.$emit("click",{index:Number(this.index)}),this.$emit("tap",{index:Number(this.index)})},handleClick:function(){this.disabled||(this.blockRepeatClick?this.throttleClick():"none"===this.scene?this.emitClick():"debounce"==this.scene?this.debounceClick():this.throttleClick())},handleGetUserInfo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.detail,n=void 0===e?{}:e;this.$emit("getuserinfo",n)},handleContact:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.detail,n=void 0===e?{}:e;this.$emit("contact",n)},handleGetPhoneNumber:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.detail,n=void 0===e?{}:e;this.$emit("getphonenumber",n)},handleError:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.detail,n=void 0===e?{}:e;this.$emit("error",n)}}};e.default=o},8125:function(t,e,n){var i=n("a52c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("c30751e6",i,!0,{sourceMap:!1,shadowMode:!1})},8392:function(t,e,n){"use strict";n.r(e);var i=n("f2b0"),a=n("8b26");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("8861");var o=n("f0c5"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"2c8773b1",null,!1,i["a"],void 0);e["default"]=s.exports},8861:function(t,e,n){"use strict";var i=n("8125"),a=n.n(i);a.a},"8b26":function(t,e,n){"use strict";n.r(e);var i=n("fd08"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},a52c:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\r\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\r\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \r\n */.tn-grid[data-v-2c8773b1]{width:100%;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}',""]),t.exports=e},baa5:function(t,e,n){var i=n("23e7"),a=n("e58c");i({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},bd85:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\r\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\r\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \r\n */.tn-grid-item[data-v-6bd8551d]{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:center;position:relative;flex-direction:column}.tn-grid-item__box[data-v-6bd8551d]{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-direction:column;flex:1;width:100%;height:100%}.tn-grid-item--hover[data-v-6bd8551d]{background:#f8f7f8!important}',""]),t.exports=e},c262:function(t,e,n){"use strict";var i=n("c348"),a=n.n(i);a.a},c348:function(t,e,n){var i=n("29fd");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("63d66e22",i,!0,{sourceMap:!1,shadowMode:!1})},c5a4:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"tn-grid-item-class tn-grid-item",class:[t.backgroundColorClass],style:{backgroundColor:t.backgroundColorStyle,width:t.gridWidth},attrs:{"hover-class":t.hoverClass,"hover-stay-time":150},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"tn-grid-item__box"},[t._t("default")],2)],1)},a=[]},e235:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-button",{staticClass:"tn-btn-class tn-btn",class:[t.buttonClass,t.backgroundColorClass,t.fontColorClass],style:[t.buttonStyle],attrs:{"hover-class":"tn-hover",loading:t.loading,disabled:t.disabled,"form-type":t.formType,"open-type":t.openType},on:{getuserinfo:function(e){arguments[0]=e=t.$handleEvent(e),t.handleGetUserInfo.apply(void 0,arguments)},getphonenumber:function(e){arguments[0]=e=t.$handleEvent(e),t.handleGetPhoneNumber.apply(void 0,arguments)},contact:function(e){arguments[0]=e=t.$handleEvent(e),t.handleContact.apply(void 0,arguments)},error:function(e){arguments[0]=e=t.$handleEvent(e),t.handleError.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleClick.apply(void 0,arguments)}}},[t._t("default")],2)},a=[]},e725:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.debounceFun=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return function(){for(var i=this,a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];clearTimeout(e),e=setTimeout((function(){t.apply(i,r)}),n)}},e.throttleFun=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=null;return function(){for(var i=this,a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];n||(n=setTimeout((function(){n=null,console.log("执行了"),t.apply(i,r)}),e))}}},f2b0:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"tn-grid-class tn-grid",style:{justifyContent:this.gridAlignStyle}},[this._t("default")],2)},a=[]},f566:function(t,e,n){"use strict";n.r(e);var i=n("e235"),a=n("7139");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("c262");var o=n("f0c5"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"d2dc7f56",null,!1,i["a"],void 0);e["default"]=s.exports},fd08:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3"),n("d81d");var i={name:"tn-grid",props:{col:{type:[Number,String],default:3},align:{type:String,default:"left"},hoverClass:{type:String,default:"tn-hover"}},data:function(){return{}},watch:{parentData:function(){this.children.length&&this.children.map((function(t){"function"===typeof t.updateParentData&&t.updateParentData()}))}},created:function(){this.children=[]},computed:{parentData:function(){return[this.hoverClass,this.col,this.border]},gridAlignStyle:function(){switch(this.align){case"left":return"flex-start";case"center":return"center";case"right":return"flex-end";default:return"flex-start"}}},methods:{click:function(t){this.$emit("click",t)}}};e.default=i}}]); |