index.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. "use strict";
  2. (wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["pages/index/index"],{
  3. /***/ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/index/index.tsx":
  4. /*!********************************************************************************************************!*\
  5. !*** ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/index/index.tsx ***!
  6. \********************************************************************************************************/
  7. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  8. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  9. /* harmony export */ "default": function() { return /* binding */ IndexPage; }
  10. /* harmony export */ });
  11. /* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
  12. /* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
  13. /* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__);
  14. /* harmony import */ var _components_Rings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @components/Rings */ "./src/components/Rings.weapp.tsx");
  15. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
  16. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
  17. // import ComponentA from './component'
  18. // import TabBar from '../../components/Tabbar';
  19. function IndexPage() {
  20. var array = [];
  21. array.push('ffff');
  22. array.push( /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Text, {
  23. children: "ffff"
  24. }));
  25. // array.push(<Rings radius={50}/>)
  26. function goDetail() {
  27. _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().navigateTo({
  28. // url: '/pages/index/detail'
  29. //src/moduleA/pages/third.tsx
  30. url: '../../moduleA/pages/third'
  31. });
  32. }
  33. function login() {
  34. _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().navigateTo({
  35. url: '/pages/ChooseAuth'
  36. });
  37. }
  38. return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.View, {
  39. style: {
  40. backgroundColor: '#fff',
  41. flex: 1
  42. },
  43. children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Text, {
  44. children: "homepage12234"
  45. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Button, {
  46. onClick: function onClick() {
  47. return goDetail();
  48. },
  49. children: "go detail"
  50. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_Rings__WEBPACK_IMPORTED_MODULE_1__["default"], {
  51. radius: 50
  52. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Input, {
  53. placeholder: "\u8BF7\u8F93\u5165\u7528\u6237\u540D",
  54. style: {
  55. textAlign: 'left',
  56. backgroundColor: 'pink'
  57. }
  58. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Text, {
  59. className: "login",
  60. onClick: function onClick() {
  61. return login();
  62. },
  63. children: "sss"
  64. })]
  65. });
  66. }
  67. // export default class Index extends Component<PropsWithChildren> {
  68. // componentDidMount () { }
  69. // componentWillUnmount () { }
  70. // componentDidShow () { }
  71. // componentDidHide () { }
  72. // goDetail(){
  73. // Taro.navigateTo({
  74. // url: '/pages/index/detail'
  75. // })
  76. // }
  77. // render () {
  78. // return (
  79. // <View className='index'>
  80. // <Text>Hello world123!</Text>
  81. // <ComponentA value="A"/>
  82. // <Button onClick={()=>this.goDetail()}>detail</Button>
  83. // </View>
  84. // )
  85. // }
  86. // }
  87. /***/ }),
  88. /***/ "./src/pages/index/index.tsx":
  89. /*!***********************************!*\
  90. !*** ./src/pages/index/index.tsx ***!
  91. \***********************************/
  92. /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
  93. /* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/runtime */ "webpack/container/remote/@tarojs/runtime");
  94. /* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__);
  95. /* harmony import */ var _node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_index_tsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./index.tsx */ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/index/index.tsx");
  96. var config = {"navigationBarTitleText":"首页","usingComponents":{"demo":"../../components/demo"}};
  97. var inst = Page((0,_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__.createPageConfig)(_node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_index_tsx__WEBPACK_IMPORTED_MODULE_1__["default"], 'pages/index/index', {root:{cn:[]}}, config || {}))
  98. /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_index_tsx__WEBPACK_IMPORTED_MODULE_1__["default"]);
  99. /***/ })
  100. },
  101. /******/ function(__webpack_require__) { // webpackRuntimeModules
  102. /******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
  103. /******/ __webpack_require__.O(0, ["taro","common"], function() { return __webpack_exec__("./src/pages/index/index.tsx"); });
  104. /******/ var __webpack_exports__ = __webpack_require__.O();
  105. /******/ }
  106. ]);
  107. //# sourceMappingURL=index.js.map