1 line
16 KiB
Plaintext
1 line
16 KiB
Plaintext
{"version":3,"sources":[null,"webpack:///D:/chenq/chen/hengmei/hengmei/components/foot-tab.vue?848f","webpack:///D:/chenq/chen/hengmei/hengmei/components/foot-tab.vue?7764","webpack:///D:/chenq/chen/hengmei/hengmei/components/foot-tab.vue?4b31","uni-app:///components/foot-tab.vue","webpack:///D:/chenq/chen/hengmei/hengmei/components/foot-tab.vue?2481","webpack:///D:/chenq/chen/hengmei/hengmei/components/foot-tab.vue?2b9c"],"names":["name","props","newcurrent","type","default","titleList","imgList","data","vision","isShowT","isKef","mounted","methods","cancleEv","choosefoot","uni","url","existMobile","action","id","goLogin","comfirmev"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqH;AACrH;AAC4D;AACL;AACa;;;AAGpE;AACgL;AAChL,gBAAgB,uLAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,mFAAM;AACR,EAAE,4FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,uFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAsqB,CAAgB,oqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBCmC1rB;EACAA;EACAC;IACAC;MACAC;MACAC;IACA;IACAC;MACAF;MACAC;QACA;QACA;MACA;IACA;;IACAE;MACAH;MACAC;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;MACA;IACA;EACA;EACAG;IACA;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACA;MACA;IACA;MACA;IACA;EACA;EACAC;IACAC;MACA;IACA;IACAC;MACA;MACA;MACA;MACA;QACA;UACAC;YAAAC;UAAA;UACA;QACA;UACA;YACAC;cAAAD;YAAA;UACA;YACAD;cAAAC;YAAA;UACA;UACA;QACA;UACA;YACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;gBAAAb;gBAAAe;gBAAAC;cAAA;cACA;cACA;YACA;UACA;YACA;YACA;YACA;cAAAhB;cAAAe;cAAAC;YAAA;YACA;YACA;UACA;UACA;QACA;UACA;YACAF;cAAAD;YAAA;UACA;YACAD;cAAAC;YAAA;UACA;UACA;QACA;UACA;YACAC;cAAAD;YAAA;UACA;YACAD;cAAAC;YAAA;UACA;UACA;MAAA;IAEA;IACA;IACAI;MACAL;QACAC;MACA;IACA;IACAK;MACA;IACA;EACA;AACA;AAAA,4B;;;;;;;;;;;;;AC/JA;AAAA;AAAA;AAAA;AAAm9B,CAAgB,66BAAG,EAAC,C;;;;;;;;;;;ACAv+B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/foot-tab.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./foot-tab.vue?vue&type=template&id=40d782f1&\"\nvar renderjs\nimport script from \"./foot-tab.vue?vue&type=script&lang=js&\"\nexport * from \"./foot-tab.vue?vue&type=script&lang=js&\"\nimport style0 from \"./foot-tab.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/foot-tab.vue\"\nexport default component.exports","export * from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./foot-tab.vue?vue&type=template&id=40d782f1&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./foot-tab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./foot-tab.vue?vue&type=script&lang=js&\"","<template>\r\n <view>\r\n\t\t<!-- 方案一 -->\r\n <!-- <view class=\"foot-box\">\r\n <view @tap=\"choosefoot(index)\" v-for=\"(item,index) in tabArr\" :key=\"index\" style=\"display: flex;justify-content: center;flex-direction: column;align-items: center;\">\r\n\t\t\t\t<image class=\"moImg\" v-if=\"newcurrent==index\" :src=\"item.selectedIconPath\"></image>\r\n\t\t\t\t<image class=\"moImg\" v-else :src=\"item.iconPath\"></image>\r\n <view :class=\"newcurrent==index?'footactive':'footmo'\" style=\"margin-top: 8rpx;\">{{item.text}}</view>\r\n </view>\r\n </view> -->\r\n\t\t\r\n\t\t<!-- 方案二 -->\r\n\t\t<view class=\"foot-boxtwo\">\r\n\t\t\t<!-- 图片列表 -->\r\n\t\t\t<view class=\"item-box\">\r\n\t\t\t\t<view v-for=\"(itemi,index) in imgList\" :key=\"index\" @tap=\"choosefoot(index)\" :class=\"index==2 ? 'centerBox':''\">\r\n\t\t\t\t\t<view class=\"posir\" :class=\"index==2 ? 'centerBox-item':''\">\r\n\t\t\t\t\t\t<image :class=\"index==2 ? 'centerImg':'moImg'\" v-if=\"newcurrent==index\" :src=\"itemi.selectedIconPath\"></image>\r\n\t\t\t\t\t\t<image :class=\"index==2 ? 'centerImg':'moImg'\" v-else :src=\"itemi.iconPath\"></image>\r\n\t\t\t\t\t\t<button v-if=\"index==2 && isKef\" class=\"fon24 posia\" style=\"opacity: 0;top: 0;left: 0;right: 0;bottom: 0;\" open-type=\"contact\">客服</button>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 标题列表 -->\r\n\t\t\t<view class=\"item-box\">\r\n\t\t\t\t<view @tap=\"choosefoot(index)\" :class=\"newcurrent==index ? 'footactive':'footmo'\"\r\n\t\t\t\t v-for=\"(itemt,index) in titleList\" :key=\"index\">{{itemt}}</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 弹框 -->\r\n\t\t<pu-po :isShowT=\"isShowT\" :comfrimVal=\"'好的'\" :contentVal=\"'暂未开放此功能,请耐心等候'\" \r\n\t\t:isCenter=\"true\" @comfirmev=\"comfirmev\"></pu-po>\r\n </view>\r\n</template>\r\n<script>\r\n export default {\r\n name:'footTab',\r\n\t\tprops:{\r\n\t\t\tnewcurrent:{\r\n\t\t\t\ttype:Number,\r\n\t\t\t\tdefault:0\r\n\t\t\t},\r\n\t\t\ttitleList:{\r\n\t\t\t\ttype:Array,\r\n\t\t\t\tdefault:function(){\r\n\t\t\t\t\treturn uni.getStorageSync('footTitle')\r\n\t\t\t\t\t// return ['首页','分类','客服','商城','我的']\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\timgList:{\r\n\t\t\t\ttype:Array,\r\n\t\t\t\tdefault:function(){\r\n\t\t\t\t\treturn uni.getStorageSync('imgList')\r\n\t\t\t\t\t// return [\r\n\t\t\t\t\t// \t{\r\n\t\t\t\t\t// \t\ticonPath: '/static/tabbar/homem.png',//默认icon\r\n\t\t\t\t\t// \t\tselectedIconPath: '/static/tabbar/homeAc.png',//选中icon\r\n\t\t\t\t\t// \t},\r\n\t\t\t\t\t// \t{\r\n\t\t\t\t\t// \t\ticonPath: '/static/tabbar/catem.png',//默认icon\r\n\t\t\t\t\t// \t\tselectedIconPath: '/static/tabbar/cates.png',//选中icon\r\n\t\t\t\t\t// \t},\r\n\t\t\t\t\t// \t{\r\n\t\t\t\t\t// \t\ticonPath: '/static/tabbar/customerm.png',//默认icon\r\n\t\t\t\t\t// \t\tselectedIconPath: '/static/tabbar/customerm.png',//选中icon\r\n\t\t\t\t\t// \t},\r\n\t\t\t\t\t// \t{\r\n\t\t\t\t\t// \t\ticonPath: '/static/tabbar/shopm.png',//默认icon\r\n\t\t\t\t\t// \t\tselectedIconPath: '/static/tabbar/shopa.png',//选中icon\r\n\t\t\t\t\t// \t},\r\n\t\t\t\t\t// \t{\r\n\t\t\t\t\t// \t\ticonPath: '/static/tabbar/mym.png',//默认icon\r\n\t\t\t\t\t// \t\tselectedIconPath: '/static/tabbar/mya.png',//选中icon\r\n\t\t\t\t\t// \t}\r\n\t\t\t\t\t// ]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n data() {\r\n return {\r\n\t\t\t\tvision:false,\r\n\t\t\t\tisShowT:false,\r\n\t\t\t\tisKef:true,\r\n };\r\n },\r\n\t\tmounted() {\r\n\t\t\tif(uni.getStorageSync('authorization')==1){\r\n\t\t\t\tif(uni.getStorageSync('phone_active')==0) this.isKef = false\r\n\t\t\t}else{\r\n\t\t\t\tthis.isKef = true\r\n\t\t\t}\r\n\t\t},\r\n methods:{\r\n\t\t\tcancleEv(e){\r\n\t\t\t\tif(e==0) this.vision = false\r\n\t\t\t},\r\n choosefoot(index){\r\n\t\t\t\tlet existMobile = uni.getStorageSync('phone_active');\r\n\t\t\t\tlet existActive = uni.getStorageSync('is_active');\r\n // this.current = index\r\n\t\t\t\tswitch (index){\r\n\t\t\t\t\tcase 0:\r\n\t\t\t\t\tuni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'})\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tif(uni.getStorageSync('authorization')==1){\r\n\t\t\t\t\t\t\texistMobile!==0 ? uni.reLaunch({url:'/pages/tabbar/cate/cate?index=0'}) : this.goLogin();\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tuni.reLaunch({url:'/pages/tabbar/cate/cate?index=0'})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tif(uni.getStorageSync('authorization')==1){\r\n\t\t\t\t\t\t\tif(existMobile!==0){\r\n\t\t\t\t\t\t\t\t// wx.openCustomerServiceChat({\r\n\t\t\t\t\t\t\t\t// \textInfo: {url: `https://work.weixin.qq.com/kfid/kfcb3bba5b57d9a42ba?enc_scene=ENC616HXDjLYNcmsR49PBE75UERg8Ncv3dygpYjfnh3XVvA&scene_param=${uni.getStorageSync('openid')}`},\r\n\t\t\t\t\t\t\t\t// \tcorpId: 'ww1f86f258d4ff5817',\r\n\t\t\t\t\t\t\t\t// \tsuccess(res) {}\r\n\t\t\t\t\t\t\t\t// })\r\n\t\t\t\t\t\t\t\tthis.$requst.post('user/rand-bind-service').then(res=>{})\r\n\t\t\t\t\t\t\t\tthis.$toolAll.tools.closeTimer()//清空埋点倒计时\r\n\t\t\t\t\t\t\t\tthis.$requst.post('user/record',{type:'other',action:'ask',id:0}).then(res=>{},error=>{})\r\n\t\t\t\t\t\t\t\t// 调用tools.js中的种植埋点事件\r\n\t\t\t\t\t\t\t\tthis.$toolAll.tools.plantPoint(5);\r\n\t\t\t\t\t\t\t} else this.goLogin()\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tthis.$requst.post('user/rand-bind-service').then(res=>{})\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.closeTimer()//清空埋点倒计时\r\n\t\t\t\t\t\t\tthis.$requst.post('user/record',{type:'other',action:'ask',id:0}).then(res=>{},error=>{})\r\n\t\t\t\t\t\t\t// 调用tools.js中的种植埋点事件\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.plantPoint(5);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tif(uni.getStorageSync('authorization')==1){\r\n\t\t\t\t\t\t\texistMobile!==0 ? uni.reLaunch({url:'/pages/tabbar/shop/shop'}) : this.goLogin();\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tuni.reLaunch({url:'/pages/tabbar/shop/shop'})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\tif(uni.getStorageSync('authorization')==1){\r\n\t\t\t\t\t\t\texistMobile!==0&&existActive!==0 ? uni.reLaunch({url:'/pages/tabbar/my/staffDuan'}) : this.goLogin();\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tuni.reLaunch({url:'/pages/tabbar/my/staffDuan'})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n },\r\n\t\t\t// 前往登录页\r\n\t\t\tgoLogin(){\r\n\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\turl:'/pages/login/login'\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tcomfirmev(){\r\n\t\t\t\tthis.isShowT = false\r\n\t\t\t}\r\n }\r\n }\r\n</script>\r\n\r\n<style>\r\n\t/* 方案一 */\r\n\t/* .foot-box{\r\n\t\theight: 140rpx;\r\n\t\tfont-size: 24rpx;\r\n\t\tborder-top: 1rpx solid #FFFFFF;\r\n\t\tbackground-color: #FFFFFF;\r\n position: fixed;bottom: 0;left: 0;right: 0;\r\n\t\tdisplay: flex;justify-content: space-around;align-items: center;\r\n\t}*/\r\n\t\r\n\t/* 方案二 */\r\n\t.foot-boxtwo{\r\n\t\theight: 140rpx;\r\n\t\tfont-size: 24rpx;\r\n\t\tborder-top: 1rpx solid #FFFFFF;\r\n\t\tbackground-color: #FFFFFF;\r\n\t\tposition: fixed;bottom: 0;left: 0;right: 0;z-index: 10;\r\n\t\tdisplay: flex;flex-direction: column;justify-content: center;\r\n\t}\r\n\t.item-box{display: flex;justify-content: space-around;align-items: center;}\r\n\t.item-box>view{width: 25%;text-align: center;}\r\n\t.centerBox{display: flex;justify-content: center;align-items: center;}\r\n\t/* .centerBox-item{width: 124rpx;height: 124rpx;background-color: rgba(244, 244, 244, 1);margin-top: -100rpx;border-radius: 100%;display: flex;justify-content: center;align-items: center;} */\r\n\t.centerBox-item{width: 124rpx;height: 124rpx;margin-top: -100rpx;border-radius: 100%;display: flex;justify-content: center;align-items: center;}\r\n\t.centerImg{width: 112rpx;height: 112rpx;}\r\n\t\r\n\t/* 公共 */\r\n\t.moImg{width: 64rpx;height: 64rpx;}\r\n\t.footactive{color: #000000;}\r\n\t.footmo{color: #999999;}\r\n</style>\r\n","import mod from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./foot-tab.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./foot-tab.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1672827508373\n var cssReload = require(\"D:/HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |