Files
gitlab-instance-0a899031_ci…/dist/pages/activityList/components/details/index.js
2022-11-13 21:53:17 +08:00

2 lines
5.1 KiB
JavaScript

/*! For license information please see index.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/activityList/components/details/index"],{"./node_modules/@antmjs/vantui/es/button/index.js":function(e,n,t){var o=t("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),s=t("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=t("webpack/container/remote/@tarojs/taro"),a=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),r=t("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=t("./node_modules/@antmjs/vantui/es/icon/index.js"),c=t("./node_modules/@antmjs/vantui/es/loading/index.js"),d=t("./node_modules/@antmjs/vantui/es/button/wxs.js"),u=t("webpack/container/remote/react/jsx-runtime"),p=["type","size","block","round","plain","square","loading","disabled","hairline","color","loadingSize","loadingType","loadingText","icon","classPrefix","onClick","children","style","className"];function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach((function(n){(0,o.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.default=function Button(e){var n=e.type,t=void 0===n?"default":n,o=e.size,m=void 0===o?"normal":o,b=e.block,f=e.round,j=e.plain,v=e.square,x=e.loading,y=e.disabled,g=e.hairline,h=e.color,w=e.loadingSize,_=void 0===w?(0,i.pxTransform)(40):w,k=e.loadingType,O=void 0===k?"circular":k,P=e.loadingText,S=e.icon,C=e.classPrefix,T=void 0===C?"van-icon":C,N=e.onClick,L=e.children,V=e.style,z=e.className,B=(0,s.default)(e,p);return(0,u.jsx)(a.Button,_objectSpread(_objectSpread({className:" "+r.bem("button",[t,m,{block:b,round:f,plain:j,square:v,loading:x,disabled:y,hairline:g,unclickable:y||x}])+" "+(g?"van-hairline--surround":"")+" ".concat(z||""),hoverClass:"van-button--active hover-class",style:r.style([d.rootStyle({plain:j,color:h}),V]),onClick:y||x?void 0:N},B),{},{children:x?(0,u.jsxs)(a.View,{style:"display: flex",children:[(0,u.jsx)(c.Loading,{className:"loading-class",size:_,type:O,color:d.loadingColor({type:t,color:h,plain:j})}),P&&(0,u.jsx)(a.View,{className:"van-button__loading-text",children:P})]}):(0,u.jsxs)(u.Fragment,{children:[S&&(0,u.jsx)(l.Icon,{size:"1.2em",name:S,classPrefix:T,className:"van-button__icon",style:"line-height: inherit;"}),(0,u.jsx)(a.View,{className:"van-button__text",children:L})]})}))}},"./node_modules/@antmjs/vantui/es/button/wxs.js":function(e,n,t){t.d(n,{rootStyle:function(){return rootStyle},loadingColor:function(){return loadingColor}});var o=t("./node_modules/@antmjs/vantui/es/wxs/style.js");function rootStyle(e){if(!e.color)return"";var n={color:e.plain?e.color:"#fff",background:e.plain?null:e.color};return-1!==e.color.indexOf("gradient")?n.border=0:n["border-color"]=e.color,(0,o.style)([n])}function loadingColor(e){return e.plain?e.color?e.color:"#c9c9c9":"default"===e.type?"#c9c9c9":"#fff"}},"./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/activityList/components/details/index.tsx":function(e,n,t){var o=t("./node_modules/@antmjs/vantui/es/button/index.js"),s=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=t("webpack/container/remote/react"),r=t("./src/utils/index.ts"),l=t("webpack/container/remote/react/jsx-runtime");n.default=function details(){var e,n,t=(0,a.useState)([]),c=(0,s.default)(t,2),d=c[0],u=c[1];return(0,a.useEffect)((function(){}),[]),(0,a.useEffect)((function(){var e={tableName:"cityNew",id:"80516fb66370bcf300b8f43c5f4dd52b",okFun:function okFun(e){var n;console.log("res",e),u(null!==(n=null==e?void 0:e.data)&&void 0!==n?n:[])}};(0,r.getTable)(e)}),[]),(0,l.jsxs)(i.View,{className:"detailContent",children:[(0,l.jsxs)(i.View,{onClick:function onClick(){},children:[(0,l.jsx)(i.View,{children:null==d||null===(e=d[0])||void 0===e?void 0:e.actTitle}),(0,l.jsx)(i.RichText,{nodes:null==d||null===(n=d[0])||void 0===n?void 0:n.richText})]}),(0,l.jsx)(i.View,{className:"detailBtn",children:(0,l.jsx)(o.default,{type:"primary",block:!0,children:"立即参加"})})]})}},"./src/pages/activityList/components/details/index.tsx":function(e,n,t){var o=t("webpack/container/remote/@tarojs/runtime"),s=t("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/activityList/components/details/index.tsx");Page((0,o.createPageConfig)(s.default,"pages/activityList/components/details/index",{root:{cn:[]}},{navigationBarTitleText:"活动详情"}||{}))}},function(e){e.O(0,["taro","vendors","common"],(function(){return n="./src/pages/activityList/components/details/index.tsx",e(e.s=n);var n}));e.O()}]);