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
23 KiB
1 lines
23 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/life/temp/index.vue?cf6c","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/life/temp/index.vue?ffff","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/life/temp/index.vue?e178","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/life/temp/index.vue?6265","uni-app:///pages/life/temp/index.vue","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/life/temp/index.vue?de6b","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/life/temp/index.vue?90f1"],"names":["createPage","Page"],"mappings":"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","file":"pages/life/temp/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/life/temp/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=4b546361&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../Applications/HBuilderX.app/Contents/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 = \"pages/life/temp/index.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=4b546361&\"","var components\ntry {\n components = {\n tkiTree: function() {\n return import(\n /* webpackChunkName: \"components/tki-tree/tki-tree\" */ \"@/components/tki-tree/tki-tree.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 }","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"templates-box\">\n\t\t<view class=\"templates-name\">\n\t\t\t<input type=\"text\" v-model=\"name\"placeholder=\"请输入模板名称\" />\n\t\t</view>\n\t\t<view class=\"charge-type acea-row row-around\">\n\t\t\t<radio-group @change=\"radioChange\">\n\t\t\t\t<label> <radio :value=\"0\" :checked=\"type == 0\" /><text>件数</text> </label>\n\t\t\t\t<label> <radio :value=\"1\" :checked=\"type == 1\" /> <text>重量</text> </label>\n\t\t\t</radio-group>\n\t\t</view>\n\t\t<view class=\"default-tempalte\">\n\t\t\t<view>{{templateList[0].regionName}}</view>\n\t\t\t<view class=\"m28 acea-row row-between\">\n\t\t\t\t<view>运费</view>\n\t\t\t\t<view class=\"acea-row row-middle\">\n\t\t\t\t\t<text>¥</text>\n\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"templateList[0].price\" />\n\t\t\t\t\t<text>/{{type == 0 ? '件' : 'kg' }}</text>\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t\t<view class=\"step-freight-box\">\n\t\t\t\t<view class=\"acea-row row-between\">\n\t\t\t\t\t<view>阶梯运费</view>\n\t\t\t\t\t<switch :checked=\"setpFreight\" color=\"#FF6D31\" style=\"transform:scale(0.7)\" @change=\"switchChange\" />\n\t\t\t\t</view>\n\t\t\t\t<view class=\"step-box\" v-show=\"setpFreight\">\n\t\t\t\t\t<view class=\"acea-row row-middle row-center\">\n\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"templateList[0].first\" />\n\t\t\t\t\t\t<text>{{type == 0 ? '件' : 'kg' }}内(含)¥</text>\n\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"templateList[0].price\" />\n\t\t\t\t\t</view>\n\t\t\t\t\t<view class=\"acea-row row-middle row-center\">\n\t\t\t\t\t\t<text>每增加</text>\n\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"templateList[0]._continue\" />\n\t\t\t\t\t\t<text>{{type == 0 ? '件' : 'kg' }},</text>\n\t\t\t\t\t\t<text>运费增加</text>\n\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"templateList[0].continue_price\" />\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t</view>\n\t\t<view class=\"add-appoint-btn\" @tap=\"showTree\">添加指定地区设置</view>\n\t\t<view class=\"appoint-template-box\">\n\t\t\t<block v-for=\"(item,index) in templateList\" :key=\"index\">\n\t\t\t\t<view class=\"default-tempalte\" v-if=\"index > 0\">\n\t\t\t\t<view class=\"close-btn\" @tap=\"delTempItem(index)\">×</view>\n\t\t\t\t\t<view>{{item.regionName}}</view>\n\t\t\t\t\t<view class=\"m28 acea-row row-between\">\n\t\t\t\t\t\t<view>运费</view>\n\t\t\t\t\t\t<view class=\"acea-row row-middle\">\n\t\t\t\t\t\t\t<text>¥</text>\n\t\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"item.price\" />\n\t\t\t\t\t\t\t<text>/{{type == 0 ? '件' : 'kg' }}</text>\n\t\t\t\t\t\t</view>\n\t\t\t\t\t</view>\n\t\t\t\t\t<view class=\"step-freight-box\">\n\t\t\t\t\t\t<view class=\"acea-row row-between\">\n\t\t\t\t\t\t\t<view>阶梯运费</view>\n\t\t\t\t\t\t\t<switch :checked=\"item.setpFreight\" color=\"#FF6D31\" style=\"transform:scale(0.7)\" @change=\"appointSwitchChange(index)\" />\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t<view class=\"step-box\" v-show=\"item.setpFreight\">\n\t\t\t\t\t\t\t<view class=\"acea-row row-middle row-center\">\n\t\t\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"item.first\" />\n\t\t\t\t\t\t\t\t<text>{{type == 0 ? '件' : 'kg' }}内(含)¥</text>\n\t\t\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"item.price\" />\n\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t<view class=\"acea-row row-middle row-center\">\n\t\t\t\t\t\t\t\t<text>每增加</text>\n\t\t\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"item._continue\" />\n\t\t\t\t\t\t\t\t<text>{{type == 0 ? '件' : 'kg' }},</text>\n\t\t\t\t\t\t\t\t<text>运费增加</text>\n\t\t\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"item.continue_price\" />\n\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t</view>\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t</block>\n\t\t</view>\n\t\t<view class=\"submit-btn\" @click=\"submit\">确认提交</view>\n\t\t<tki-tree ref=\"tkitree\" :multiple=\"true\" :range=\"list\" selectParent=\"true\" :foldAll=\"true\" rangeKey=\"name\" @confirm=\"treeConfirm\"\n\t\t @cancel=\"treeCancel\"></tki-tree>\n\t</view>\n</template>\n\n<script>\nconst app = getApp();\nimport selectTree from \"@/components/select-tree/select-tree\"\nimport tkiTree from \"@/components/tki-tree/tki-tree.vue\"\nimport { getCity, citys, addTemp } from \"@/api/user\";\n\nlet testList = [\n\t{\n\t\t\tcity_id: 1,\n\t\t\tid: 1,\n\t\t\tisShow: 1,\n\t\t\tlat: \"39.904030\",\n\t\t\tlevel: 0,\n\t\t\tlng: \"116.407526\",\n\t\t\tmergerName: \"北京\",\n\t\t\tname: \"北京市\",\n\t\t\tparentId: 0,\n\t\t\tchildren: [\n\t\t\t\t{\n\t\t\t\t\tareaCode: \"110100000000\",\n\t\t\t\t\tchildren: null,\n\t\t\t\t\tcity_id: 2,\n\t\t\t\t\tid: 35,\n\t\t\t\t\tisShow: 1,\n\t\t\t\t\tlat: \"39.904030\",\n\t\t\t\t\tlevel: 1,\n\t\t\t\t\tlng: \"116.407526\",\n\t\t\t\t\tmergerName: \"北京\",\n\t\t\t\t\tname: \"北京市\",\n\t\t\t\t\tparentId: 1,\n\t\t\t\t}, \n\t\t\t]\n\t\t},\n\t\t{\n\t\t\tareaCode: \"130000000000\",\n\t\t\tchildren: [\n\t\t\t\t{\n\t\t\t\t\tareaCode: \"130100000000\",\n\t\t\t\t\tchildren: null,\n\t\t\t\t\tcity_id: 13268,\n\t\t\t\t\tid: 37,\n\t\t\t\t\tisShow: 1,\n\t\t\t\t\tlat: \"38.042306\",\n\t\t\t\t\tlevel: 1,\n\t\t\t\t\tlng: \"114.514859\",\n\t\t\t\t\tmergerName: \"河北,石家庄\",\n\t\t\t\t\tname: \"石家庄市\",\n\t\t\t\t\tparentId: 13267,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tareaCode: \"130200000000\",\n\t\t\t\t\tchildren: null,\n\t\t\t\t\tcity_id: 18128,\n\t\t\t\t\tid: 38,\n\t\t\t\t\tisShow: 1,\n\t\t\t\t\tlat: \"39.630867\",\n\t\t\t\t\tlevel: 1,\n\t\t\t\t\tlng: \"118.180193\",\n\t\t\t\t\tmergerName: \"河北,唐山\",\n\t\t\t\t\tname: \"唐山市\",\n\t\t\t\t\tparentId: 13267,\n\t\t\t\t}\n\t\t\t],\n\t\t\tcity_id: 13267,\n\t\t\tid: 3,\n\t\t\tisShow: 1,\n\t\t\tlat: \"38.037057\",\n\t\t\tlevel: 0,\n\t\t\tlng: \"114.468664\",\n\t\t\tmergerName: \"河北\",\n\t\t\tname: \"河北省\",\n\t\t\tparentId: 0,\n\t\t}\n\t]\nvar g = [\n\t{\n\t\tregion: [\n\t\t\t{\n\t\t\t\tname: '默认全国',\n\t\t\t\tcity_id: 0\n\t\t\t}\n\t\t],\n\t\tregionName: '默认全国',\n\t\tfirst: 1,\n\t\tprice: 0,\n\t\t_continue: 1,\n\t\tcontinue_price: 0\n\t}\n]\nexport default {\n\tcomponents:{ selectTree, tkiTree },\n data() {\n return {\n\t\t\tprice: '0.00',\n\t\t\tstepNum: 0,\n\t\t\tstepPrice: 0,\n\t\t\tname: \"\",\n\t\t\ttype:0,\n\t\t\tsetpFreight: false,\n\t\t\tlist: testList,\n\t\t\ttemplateList: g\n };\n },\n\tmounted(){\n\t\tcitys().then((res)=>{\n\t\t\tlet data = res.data;\n\t\t\tthis.list = data\n\t\t})\n\t},\n methods: {\n\t\tradioChange(e){\n\t\t\tthis.type = e.detail.value\n\t\t},\n\t\tswitchChange(e){\n\t\t\tthis.setpFreight = e.detail.value\n\t\t},\n\t\tappointSwitchChange(idx){\n\t\t\tthis.$set(this.templateList[idx], 'setpFreight', !this.templateList[idx].setpFreight)\n\t\t\tconsole.log(this.templateList)\n\t\t},\n\t\t// 显示树形选择器\n\t\tshowTree() {\n\t\t\tthis.$refs.tkitree._show();\n\t\t},\n\t\tdelTempItem(idx){\n\t\t\tconsole.log(idx)\n\t\t\tthis.templateList.splice(idx,1)\n\t\t},\n\t\t// 确定回调事件\n\t\ttreeConfirm(e) {\n\t\t\t// console.log(e,'确认')\n\t\t\t// console.log(this.list,'列表')\n\t\t\tlet list = this.list;\n\t\t\tlet selectCity = e;\n\t\t\tlet selectName = [];\n\t\t\tlet data = [];\n\t\t\tselectCity.forEach((item,index)=> {\n\t\t\t\tif(item.parentId == 0){ //省份\n\t\t\t\t\tselectName.push(item.name)\n\t\t\t\t\tlet j = {\n\t\t\t\t\t\tname: item.name,\n\t\t\t\t\t\tcity_id: item.city_id,\n\t\t\t\t\t\tchildren: []\n\t\t\t\t\t}\n\t\t\t\t\tdata.push(j)\n\t\t\t\t} else{ //城市\n\t\t\t\t\tdata.forEach((c,i)=> {\n\t\t\t\t\t\tif(item.parentId == c.city_id){\n\t\t\t\t\t\t\tc.children.push({\n\t\t\t\t\t\t\t\tcity_id: item.city_id\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\tlist.forEach((city,idx)=> {\n\t\t\t\t\t\tif(item.parentId == list[idx].city_id){\n\t\t\t\t\t\t\t// console.log(list[idx],'对应省份')\n\t\t\t\t\t\t\tselectName.push(list[idx].name)\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t});\n\t\t\t// console.log(data,'data')\n\t\t\tlet cityName = [...new Set(selectName)].join(';')\n\t\t\tthis.templateList.push({\n\t\t\t\tregion: data,\n\t\t\t\tregionName: cityName,\n\t\t\t\tfirst: 1,\n\t\t\t\tprice: 0,\n\t\t\t\t_continue: 1,\n\t\t\t\tcontinue_price: 0,\n\t\t\t\tsetpFreight:false\n\t\t\t});\n\t\t\t// console.log(this.templateList,'templateList')\n\t\t},\n\t\t// 取消回调事件\n\t\ttreeCancel(e) {\n\t\t\tconsole.log(e)\n\t\t\t\n\t\t},\n\t\tsubmit(){\n\t\t\tlet form = {}\n\t\t\tform.name = this.name\n\t\t\tform.type = this.type\n\t\t\tform.region_info = this.templateList\n\t\t\tif(form.name == '' ){\n\t\t\t\treturn this.alertMessage('请填写模板名字')\n\t\t\t\t\n\t\t\t} else if(form.region_info.length == 0){\n\t\t\t\t// if(form.region_info[0].)\n\t\t\t}\n\t\t\taddTemp(form).then((res)=>{\n\t\t\t\tif(res.success){\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle: '添加成功'\n\t\t\t\t\t})\n\t\t\t\t\tthis.$yrouter.back()\n\t\t\t\t}\n\t\t\t})\n\t\t\tconsole.log(form)\n\t\t},\n\t\talertMessage(msg){\n\t\t\tuni.showToast({\n\t\t\t\ttitle: msg,\n\t\t\t\ticon: 'none'\n\t\t\t})\n\t\t}\n\t}\n};\n</script>\n<style lang=\"less\">\n\tpage{\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground: #F5F6F7;\n\t}\n\t.templates-box{\n\t\twidth: 670rpx;\n\t\theight: 100vh;\n\t\tmargin: 0 auto;\n\t\tpadding: 20rpx 0;\n\t\t.templates-name{\n\t\t\twidth: 100%;\n\t\t\theight: 76rpx;\n\t\t\tline-height: 76rpx;\n\t\t\tfont-size: 28rpx;\n\t\t\tcolor: #000000;\n\t\t\tbackground: #fff;\n\t\t\tborder-radius: 8rpx;\n\t\t\tmargin: 0 auto;\n\t\t\tpadding-left: 12rpx;\n\t\t\tinput{\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\t\t.charge-type{\n\t\t\twidth: 100%;\n\t\t\tmargin: 20rpx 0;\n\t\t\tlabel{\n\t\t\t\tmargin-left: 20rpx;\n\t\t\t}\n\t\t}\n\t\t.default-tempalte{\n\t\t\tpadding: 12rpx 24rpx;\n\t\t\tbackground: #fff;\n\t\t\tborder-radius: 8rpx;\n\t\t\tmargin-bottom: 20rpx;\n\t\t\tposition: relative;\n\t\t\t.inp-price{\n\t\t\t\twidth: 80rpx;\n\t\t\t\tborder-bottom: 1px solid #000;\n\t\t\t\ttext-align: center;\n\t\t\t}\n\t\t\t.close-btn{\n\t\t\t\tcolor: #fff;\n\t\t\t\tfont-size: 38rpx;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -16rpx;\n\t\t\t\ttop: -22rpx;\n\t\t\t\tborder-radius: 50%;\n\t\t\t\tline-height: 40rpx;\n\t\t\t\twidth: 46rpx;\n\t\t\t\theight: 46rpx;\n\t\t\t\ttext-align: center;\n\t\t\t\tbackground: #FF5E16;\n\t\t\t\tborder-radius: 50%;\n\t\t\t}\n\t\t}\n\t\t.add-appoint-btn{\n\t\t\twidth: 100%;\n\t\t\theight: 76rpx;\n\t\t\tline-height: 76rpx;\n\t\t\ttext-align: center;\n\t\t\t// border: 1px solid #000000;\n\t\t\tborder-radius: 8rpx;\n\t\t\tmargin: 30rpx auto;\n\t\t\tbackground: #fff;\n\t\t}\n\t}\n\t.submit-btn{\n\t\twidth: 690rpx;\n\t\theight: 80rpx;\n\t\tline-height: 80rpx;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tfont-size: 38rpx;\n\t\tbackground: linear-gradient(134deg, #FFA782 0%, #FF6D31 100%);\n\t\tborder-radius: 40rpx;\n\t\tposition: absolute;\n\t\tbottom: 100rpx;\n\t\tleft: 50%;\n\t\ttransform: translateX(-50%);\n\t}\n\t.mask-box{\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground: rgba(0,0,0,0.7);\n\t\tposition: fixed;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\t.selectTree-box{\n\t\t\twidth: 90%;\n\t\t\theight: 90%;\n\t\t\toverflow-y: scroll;\n\t\t\tpadding: 20rpx;\n\t\t\tbackground: #fff;\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\t.select-ok-btn{\n\t\t\t\twidth: 80%;\n\t\t\t\theight: 76rpx;\n\t\t\t\tline-height: 76rpx;\n\t\t\t\ttext-align: center;\n\t\t\t\tborder: 1px solid #000000;\n\t\t\t\tborder-radius: 8rpx;\n\t\t\t\tmargin: 300rpx auto;\n\t\t\t}\n\t\t}\n\t}\n\t\n\t.m28{\n\t\tmargin: 28rpx 0;\n\t}\n</style>","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--10-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--10-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=less&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--10-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--10-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=less&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1635513134954\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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":""} |