公司小程序
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.

1 lines
12 KiB

{"version":3,"sources":["webpack:///D:/Uni-App/HBuilderProjects/Test/components/CommonQuestion/CommonQuestion.vue?8b63","uni-app:///components/CommonQuestion/CommonQuestion.vue","webpack:///D:/Uni-App/HBuilderProjects/Test/components/CommonQuestion/CommonQuestion.vue?7713","webpack:///D:/Uni-App/HBuilderProjects/Test/components/CommonQuestion/CommonQuestion.vue?7bd1","webpack:///D:/Uni-App/HBuilderProjects/Test/components/CommonQuestion/CommonQuestion.vue?837f"],"names":["renderjs","component","options","__file","components","uSkeleton","uIcon","e","message","indexOf","console","error","render","_vm","this","_h","$createElement","_self","_c","staticRenderFns","_withStripped"],"mappings":"yIAAA,8GAA0oB,eAAG,G,gHCuC7oB,uCACA,KACA,yBACA,cAEA,oBACA,kBAGA,I,MAEA,CACA,sBACA,KAFA,WAGA,OACA,eACA,cAGA,QARA,WASA,2BAEA,SAIA,mBAJA,WAKA,kBACA,SACA,yCACA,QACA,WACA,OACA,sBAGA,WAEA,GADA,WACA,KACA,MAEA,8BACA,0BACA,cACA,OAKA,gBA3BA,SA2BA,GACA,wBACA,wBACA,sCACA,cACA,oC,iGC7FA,yHACIA,EADJ,OASIC,EAAY,eACd,aACA,OACA,QACA,EACA,KACA,WACA,MACA,EACA,OACAD,GAGFC,EAAUC,QAAQC,OAAS,+CACZ,aAAAF,E,0CCvBf,sBAAytC,EAAG,G,iCCA5tC,IAAIG,E,sGACJ,IACEA,EAAa,CACXC,UAAW,WACT,OAAO,yHAITC,MAAO,WACL,OAAO,kHAKX,MAAOC,GACP,IAC+C,IAA7CA,EAAEC,QAAQC,QAAQ,wBACa,IAA/BF,EAAEC,QAAQC,QAAQ,QAWlB,MAAMF,EATNG,QAAQC,MAAMJ,EAAEC,SAChBE,QAAQC,MAAM,mBACdD,QAAQC,MACN,uFAEFD,QAAQC,MACN,mDAMN,IAAIC,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eACJH,EAAII,MAAMC,IAGjBC,EAAkB,GACtBP,EAAOQ,eAAgB","file":"components/CommonQuestion/CommonQuestion.js","sourcesContent":["import mod from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./CommonQuestion.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./CommonQuestion.vue?vue&type=script&lang=js&\"","<!--常见疑问-->\r\n<template name=\"CommonQuestion\">\n\t<view class=\"main\">\n\t\t<view class=\"top\">\r\n\t\t\t<text class=\"top_title\">常见疑问</text>\r\n\t\t\t<image class=\"imageOfWenti\" src=\"@/static/images/mainview/wenti.png\" mode=\"aspectFit\"/>\r\n\t\t\t<view class=\"top_change_area\" @click=\"getRandomShowItems\">\r\n\t\t\t\t<image src=\"@/static/images/mainview/huan.png\" class=\"imageOfHuan\" mode=\"aspectFit\">\r\n\t\t\t\t<text class=\"text_huan\">换一换</text>\t\r\n\t\t\t</view>\r\n\t\t\t<view style=\"width: 662rpx;height: 0.5rpx;position: relative;left: 20rpx;background-color: #E2E2E2;margin-top: 40rpx;\" />\r\n\t\t</view>\r\n\t\t<view class=\"cell_group\">\r\n\t\t\t<u-skeleton v-if=\"mainPageData.question.length == 0\"\r\n\t\t\t\trows=\"4\"\r\n\t\t\t\t:loading=\"true\"\r\n\t\t\t\t:title=\"false\"\r\n\t\t\t\trowsHeight=\"80rpx\"\r\n\t\t\t\trowsWidth=\"702rpx\"\r\n\t\t\t></u-skeleton>\r\n\t\t\t<view class=\"cell_item\" v-for=\"(item,index) in questions\" :key=\"index\" v-else>\r\n\t\t\t\t<view style=\"width: 100%;height: 100rpx;\r\n\t\t\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\t\t\tflex-direction: row;\r\n\t\t\t\t\t\t\talign-items: center;\r\n\t\t\t\t\t\t\tjustify-content: space-between;\"\r\n\t\t\t\t\t\t\t@click=\"onTouchThisItem(index)\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t<text class=\"content_title\">{{item.title}}</text>\r\n\t\t\t\t\t<u-icon name=\"arrow-right\" customStyle=\"margin-right: 20rpx;\"/>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view v-if=\"index<3\" style=\"width: 662rpx;height: 0.5rpx;position: relative;left: 20rpx;background-color: #E2E2E2;\" />\r\n\t\t\t</view>\r\n\t\t\t\r\n\t\t</view>\n\t</view>\n</template>\n\n<script>\r\n\tvar mainPageData\t= getApp().globalData.mainPageData;\r\n\tvar questions \t\t= [];\r\n\tvar arr\t\t\t\t= Array.from(mainPageData.question);\r\n\tif(arr.length > 4){\r\n\t\t//取前面三个\r\n\t\tfor(let i = 0;i<4;i++){\r\n\t\t\tquestions.push(arr[i]);\r\n\t\t}\r\n\t}else{\r\n\t\tquestions\t\t= arr;\r\n\t}\n\texport default {\n\t\tname:\"CommonQuestion\",\n\t\tdata() {\n\t\t\treturn {\r\n\t\t\t\tmainPageData,\r\n\t\t\t\tquestions,\n\t\t\t};\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tthis.getRandomShowItems();\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\t/**\r\n\t\t\t * 获取随机显示的内容\r\n\t\t\t */\r\n\t\t\tgetRandomShowItems(){\r\n\t\t\t\tthis.questions \t= [];\r\n\t\t\t\tvar arr\t\t\t= [];\r\n\t\t\t\tarr\t\t\t\t= Array.from(this.mainPageData.question);\r\n\t\t\t\tvar last\t\t= 4;\r\n\t\t\t\tvar len\t\t\t= arr.length;\r\n\t\t\t\tif(len < last){\r\n\t\t\t\t\tthis.questions\t= arr;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\twhile(last > 0){\r\n\t\t\t\t\tlen\t\t\t= arr.length;\r\n\t\t\t\t\tif(len == 0){\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar index\t= this.$utils.random(0,len);\r\n\t\t\t\t\tthis.questions.push(arr[index]);\r\n\t\t\t\t\tarr.splice(index,1);\r\n\t\t\t\t\tlast \t\t-= 1;\r\n\t\t\t\t\t//console.log(last);\r\n\t\t\t\t}\r\n\t\t\t},\t\t\r\n\r\n\t\t\tonTouchThisItem(index){\r\n\t\t\t\tvar data = this.questions[index];\r\n\t\t\t\tconsole.log(\"点击了问题:\",data);\r\n\t\t\t\tgetApp().globalData.showingSkipData = data;\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pages/SkipView/SkipView'\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t.main{\r\n\t\twidth: 702rpx;\r\n\t\theight: auto;\r\n\t\tposition: relative;\r\n\t\tbackground: #FFFFFF;\r\n\t\topacity: 1;\r\n\t\tborder-radius: 20rpx;\r\n\t}\r\n\t.top{\r\n\t\twidth: 702rpx;\r\n\t\theight: 99rpx;\r\n\t\tborder-radius: 20rpx;\r\n\t\tposition: relative;\r\n\t\t//background-color: #8DC63F;\r\n\t}\r\n\t.top_title{\r\n\t\twidth: 144rpx;\r\n\t\theight: 50rpx;\r\n\t\tfont-size: 36rpx;\r\n\t\tfont-weight: bold;\r\n\t\tcolor: #333333;\r\n\t\topacity: 1;\r\n\t\tposition: relative;\r\n\t\tleft: 16rpx;\r\n\t\ttop: 24rpx;\r\n\t}\r\n\t.imageOfWenti{\r\n\t\twidth: 37rpx;\r\n\t\theight: 37rpx;\r\n\t\tposition: absolute;\r\n\t\ttop: 32rpx;\r\n\t\tleft: 174rpx;\r\n\t}\r\n\t///顶部点击换一换的区域\r\n\t.top_change_area{\r\n\t\twidth: 132rpx;\r\n\t\theight: 99rpx;\r\n\t\tborder-radius: 20rpx;\r\n\t\t//background-color: #A5673F;\r\n\t\tposition: absolute;\r\n\t\ttop: 0;\r\n\t\tright: 0;\r\n\t}\r\n\t.imageOfHuan{\r\n\t\twidth: 32rpx;\r\n\t\theight: 27rpx;\r\n\t\tposition: absolute;\r\n\t\tright: 99rpx;\r\n\t\ttop: 36rpx;\r\n\t}\r\n\t///换一换\r\n\t.text_huan{\r\n\t\twidth: 66rpx;\r\n\t\theight: 30rpx;\r\n\t\tfont-size: 22rpx;\r\n\t\tfont-weight: 400;\r\n\t\tcolor: #999999;\r\n\t\topacity: 1;\r\n\t\tposition: absolute;\r\n\t\ttop: 34rpx;\r\n\t\tright: 22rpx;\r\n\t}\r\n\t.cell_group{\r\n\t\twidth: 702rpx;\r\n\t\theight: auto;\r\n\t\t//background-color: #39B54A;\r\n\t\tposition: relative;\r\n\t\tborder-radius: 20rpx;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t}\r\n\t.cell_item{\r\n\t\twidth: 702rpx;\r\n\t\theight: 100rpx;\r\n\t\t//background-color: #0081FF;\r\n\t\tborder-radius: 20rpx;\r\n\t\tposition: relative;\r\n\t}\r\n\t.content_title{\r\n\t\theight: 33rpx;\r\n\t\tfont-size: 28rpx;\r\n\t\tfont-family: PingFang SC;\r\n\t\tfont-weight: 400;\r\n\t\tcolor: #333333;\r\n\t\topacity: 1;\r\n\t\tmargin-left: 20rpx;\r\n\t}\n</style>\n","import { render, staticRenderFns, recyclableRender, components } from \"./CommonQuestion.vue?vue&type=template&id=5b9e4324&scoped=true&name=CommonQuestion&\"\nvar renderjs\nimport script from \"./CommonQuestion.vue?vue&type=script&lang=js&\"\nexport * from \"./CommonQuestion.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CommonQuestion.vue?vue&type=style&index=0&id=5b9e4324&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../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 \"5b9e4324\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/CommonQuestion/CommonQuestion.vue\"\nexport default component.exports","import mod from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./CommonQuestion.vue?vue&type=style&index=0&id=5b9e4324&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./CommonQuestion.vue?vue&type=style&index=0&id=5b9e4324&lang=scss&scoped=true&\"","var components\ntry {\n components = {\n uSkeleton: function() {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-skeleton/u-skeleton\" */ \"@/uni_modules/uview-ui/components/u-skeleton/u-skeleton.vue\"\n )\n },\n uIcon: function() {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-icon/u-icon\" */ \"@/uni_modules/uview-ui/components/u-icon/u-icon.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\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 }"],"sourceRoot":""}