family.vue 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488
  1. <template>
  2. <view class="tui-tabs">
  3. <t-rt-popup ref="rtBubble"></t-rt-popup>
  4. <scroll-view style="width: 100%;" id="tab-bar" scroll-with-animation class="tui-scroll-h" :scroll-x="true" :show-scrollbar="false" :scroll-into-view="scrollInto">
  5. <view v-for="(tab, index) in tabBars" :key="tab.id" class="tui-tab-item" :id="tab.id" :data-current="index" @click="tabClick">
  6. <text class="tui-tab-item-title" :class="{ 'tui-tab-item-title-active': tabIndex == index }">{{ tab.name }}</text>
  7. </view>
  8. <view style="position: absolute;right: 10px;margin-top: 8px;">
  9. <tui-icon name="share" :size="20" color="#000"></tui-icon>
  10. </view>
  11. </scroll-view>
  12. <view class="tui-line-h"></view>
  13. <scroll-view v-if="tabIndex==0" style="height: 100%;padding: 10px;width: auto;" :current="tabIndex" class="tui-swiper-box" :duration="300" @change="tabChange">
  14. <view class="tui-swiper-item" >
  15. <scroll-view scroll-y="true" style="100%">
  16. <view class="tui-flex family-card">
  17. <view class="tui-center tui-col-4">
  18. <view style="width: 150rpx;height: 150rpx;border-radius:75rpx;background-color: #E6B728;text-align: center;color: #FFFFFF;">
  19. <view style="font-size: 64rpx;margin-top: 14rpx;line-height: 1.2;">余</view>
  20. <view style="font-size: 20rpx;">家族姓氏</view>
  21. </view>
  22. </view>
  23. <view class="tui-center tui-col-4">
  24. <view style="width: 100%;font-size: 24rpx;color: #FFFFFF;line-height: 2;">
  25. <view>家族ID:38689456</view>
  26. <view>族长:暂无</view>
  27. <view>创建地:广西南宁</view>
  28. </view>
  29. </view>
  30. <view class="tui-center tui-col-4" style="height: 100%;">
  31. <view style="height: 100%;">
  32. <view style="margin:40rpx 40rpx 40rpx 40rpx;" @tap="switchfamily">
  33. <tui-button type="white" plain shape="circle" width="180rpx" height="40rpx" :size="30"><tui-icon style="margin-right: 3px;" name="listview" :size="16" color="#fff"></tui-icon>切换家族</tui-button>
  34. </view>
  35. <view style="position: absolute;top: 140rpx;right: 60rpx;" @tap="postcard" hover-class="tui-opcity">
  36. <view><tui-icon color="#fff" name="qrcode" :size="32"></tui-icon></view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <tui-tabs :tabs="tabs" :currentTab="currentTab"
  42. @change="change" itemWidth="25%" style="width: 100%;top:auto;margin-top: 20px;"></tui-tabs>
  43. <!--选项卡逻辑自己实现即可,此处未做处理-->
  44. <view style="margin-bottom: 55px;">
  45. <view class="tui-order-item" v-if="currentTab==0">
  46. <view class="tui-order-tracking">
  47. <tui-time-axis>
  48. <tui-timeaxis-item backgroundColor="transparent">
  49. <template v-slot:node>
  50. <view class="tui-node" :style="{backgroundColor:backgroundColor}">
  51. </view>
  52. </template>
  53. <template v-slot:content>
  54. <view>
  55. <view class="tui-order-time tui-light-gray">1907.7</view>
  56. <view class="tui-order-desc">余姓,中国百家姓之一,主要起源于姬姓,东周春秋时期秦国上卿由余之后。</view>
  57. </view>
  58. </template>
  59. </tui-timeaxis-item>
  60. </tui-time-axis>
  61. <tui-time-axis>
  62. <tui-timeaxis-item backgroundColor="transparent">
  63. <template v-slot:node>
  64. <view class="tui-node" :style="{backgroundColor:backgroundColor}">
  65. </view>
  66. </template>
  67. <template v-slot:content>
  68. <view>
  69. <view class="tui-order-time tui-light-gray">1907.7</view>
  70. <view class="tui-order-desc">余姓,中国百家姓之一,主要起源于姬姓,东周春秋时期秦国上卿由余之后。</view>
  71. </view>
  72. </template>
  73. </tui-timeaxis-item>
  74. </tui-time-axis>
  75. <tui-time-axis>
  76. <tui-timeaxis-item backgroundColor="transparent">
  77. <template v-slot:node>
  78. <view class="tui-node" :style="{backgroundColor:backgroundColor}">
  79. </view>
  80. </template>
  81. <template v-slot:content>
  82. <view>
  83. <view class="tui-order-time tui-light-gray">1907.7</view>
  84. <view class="tui-order-desc">余姓,中国百家姓之一,主要起源于姬姓,东周春秋时期秦国上卿由余之后。</view>
  85. </view>
  86. </template>
  87. </tui-timeaxis-item>
  88. </tui-time-axis>
  89. <tui-time-axis>
  90. <tui-timeaxis-item backgroundColor="transparent">
  91. <template v-slot:node>
  92. <view class="tui-node" :style="{backgroundColor:backgroundColor}">
  93. </view>
  94. </template>
  95. <template v-slot:content>
  96. <view>
  97. <view class="tui-order-time tui-light-gray">1907.7</view>
  98. <view class="tui-order-desc">余姓,中国百家姓之一,主要起源于姬姓,东周春秋时期秦国上卿由余之后。</view>
  99. </view>
  100. </template>
  101. </tui-timeaxis-item>
  102. </tui-time-axis>
  103. <tui-time-axis>
  104. <tui-timeaxis-item backgroundColor="transparent">
  105. <template v-slot:node>
  106. <view class="tui-node" :style="{backgroundColor:backgroundColor}">
  107. </view>
  108. </template>
  109. <template v-slot:content>
  110. <view>
  111. <view class="tui-order-time tui-light-gray">1907.7</view>
  112. <view class="tui-order-desc">余姓,中国百家姓之一,主要起源于姬姓,东周春秋时期秦国上卿由余之后。</view>
  113. </view>
  114. </template>
  115. </tui-timeaxis-item>
  116. </tui-time-axis>
  117. </view>
  118. <tui-button @tap="editevent" style="position: fixed;bottom: 140rpx;right: 70rpx;width: 96rpx;height: 96rpx;border-radius: 50%;"><tui-icon name="evaluate" :size="32" color="#fff"></tui-icon></tui-button>
  119. </view>
  120. <view class="tui-order-item" v-if="currentTab==1">
  121. <view style="margin: 10rpx 0;">
  122. <view class="tui-title">
  123. <view>余姓起源<tui-icon name="edit" :size="22" style="margin-left: 6rpx;" @click="plot"></tui-icon></view>
  124. </view>
  125. <view class="tui-default" style="background: #fff;font-size: 24rpx;">
  126. <view class="contenfont">
  127. <view class="container" v-for="(item,index11) in textfont" :key="index11" :class="fold ? 'fold' : 'unfold'" v-if="item.font !==''" >
  128. <label>
  129. <span>{{item.font}}</span>
  130. </label>
  131. </view>
  132. <view style="width: 100%;">
  133. <view class="show" @click="btn" v-show="fold"><tui-icon name="arrowdown"></tui-icon></view>
  134. <view class="show" @click="btn" v-show="!fold"><tui-icon name="arrowup"></tui-icon></view>
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. <tui-button @click="plot" style="position: fixed;bottom: 140rpx;right: 70rpx;width: 96rpx;height: 96rpx;border-radius: 50%;"><tui-icon name="plus" :size="32" color="#fff"></tui-icon></tui-button>
  140. </view>
  141. <view class="tui-order-item" v-if="currentTab==2">
  142. <view style="width: 100%;text-align: center;">
  143. <view style="width: 30%;height: 250rpx;margin: 1.6%;float: left;background-color: #000000;">
  144. <view class="tui-banner-swiper">
  145. <swiper-item>
  146. <view class="tui-banner-title" style="top: 0;right: 0;width: auto;">
  147. <tui-icon color="#fff" name="edit" :size="22" style="margin-left: 6rpx;" @click="glory"></tui-icon>
  148. </view>
  149. <image src="../../static/img/shop/1.jpg" class="tui-slide-image"/>
  150. </swiper-item>
  151. </view>
  152. </view>
  153. <view style="width: 30%;height: 250rpx;margin: 1.6%;float: left;background-color: #000000;">
  154. <view class="tui-banner-swiper">
  155. <swiper-item>
  156. <view class="tui-banner-title" style="top: 0;right: 0;width: auto;">
  157. <tui-icon color="#fff" name="edit" :size="22" style="margin-left: 6rpx;" @click="glory"></tui-icon>
  158. </view>
  159. <image src="../../static/img/shop/1.jpg" class="tui-slide-image"/>
  160. </swiper-item>
  161. </view>
  162. </view>
  163. <view style="width: 30%;height: 250rpx;margin: 1.6%;float: left;background-color: #000000;">
  164. <view class="tui-banner-swiper">
  165. <swiper-item>
  166. <view class="tui-banner-title" style="top: 0;right: 0;width: auto;">
  167. <tui-icon color="#fff" name="edit" :size="22" style="margin-left: 6rpx;" @click="glory"></tui-icon>
  168. </view>
  169. <image src="../../static/img/shop/1.jpg" class="tui-slide-image"/>
  170. </swiper-item>
  171. </view>
  172. </view>
  173. </view>
  174. <tui-button @click="glory" style="position: fixed;bottom: 140rpx;right: 70rpx;width: 96rpx;height: 96rpx;border-radius: 50%;"><tui-icon name="plus" :size="32" color="#fff"></tui-icon></tui-button>
  175. </view>
  176. <view class="tui-order-item" v-if="currentTab==3">
  177. <view style="width: 100%;text-align: center;">
  178. <view style="width: 30%;height: 250rpx;margin: 1.6%;float: left;background-color: #000000;">
  179. <view class="tui-banner-swiper">
  180. <swiper-item>
  181. <view class="tui-banner-title" style="top: 5rpx;right: 5rpx;width: auto;z-index: 99999;">
  182. <tui-icon color="#fff" name="delete" :size="16" style="margin-left: 6rpx;" @click="dele"></tui-icon>
  183. </view>
  184. <view class="tui-banner-title">
  185. <view>家族合照</view>
  186. <view>123张</view>
  187. </view>
  188. <image @tap="listimage" src="../../static/img/shop/1.jpg" class="tui-slide-image"/>
  189. </swiper-item>
  190. </view>
  191. </view>
  192. <view style="width: 30%;height: 250rpx;margin: 1.6%;float: left;background-color: #000000;">
  193. <view class="tui-banner-swiper">
  194. <swiper-item>
  195. <view class="tui-banner-title" style="top: 5rpx;right: 5rpx;width: auto;z-index: 99999;">
  196. <tui-icon color="#fff" name="delete" :size="16" style="margin-left: 6rpx;" @click="dele"></tui-icon>
  197. </view>
  198. <view class="tui-banner-title">
  199. <view>家族合照</view>
  200. <view>123张</view>
  201. </view>
  202. <image @tap="listimage" src="../../static/img/shop/1.jpg" class="tui-slide-image"/>
  203. </swiper-item>
  204. </view>
  205. </view>
  206. <view style="width: 30%;height: 250rpx;margin: 1.6%;float: left;background-color: #000000;">
  207. <view class="tui-banner-swiper">
  208. <swiper-item>
  209. <view class="tui-banner-title" style="top: 5rpx;right: 5rpx;width: auto;z-index: 99999;">
  210. <tui-icon color="#fff" name="delete" :size="16" style="margin-left: 6rpx;" @click="dele"></tui-icon>
  211. </view>
  212. <view class="tui-banner-title">
  213. <view>家族合照</view>
  214. <view>123张</view>
  215. </view>
  216. <image @tap="listimage" src="../../static/img/shop/1.jpg" class="tui-slide-image"/>
  217. </swiper-item>
  218. </view>
  219. </view>
  220. </view>
  221. <tui-button @click="album" style="position: fixed;bottom: 140rpx;right: 70rpx;width: 96rpx;height: 96rpx;border-radius: 50%;"><tui-icon name="plus" :size="32" color="#fff"></tui-icon></tui-button>
  222. </view>
  223. </view>
  224. </scroll-view>
  225. </view>
  226. </scroll-view>
  227. <scroll-view v-if="tabIndex==1" style="height: 100%;" :current="tabIndex" class="tui-swiper-box" :duration="300" @change="tabChange">
  228. <view class="tui-swiper-item" >
  229. <scroll-view scroll-x="true" scroll-y="true" style="100%">
  230. <!--代-->
  231. <view style="float: left;">
  232. <view>第一代</view>
  233. <view>第二代</view>
  234. <view>第三代</view>
  235. <view>第四代</view>
  236. <view>第五代</view>
  237. <view>第六代</view>
  238. <view>第一代</view>
  239. <view>第二代</view>
  240. <view>第三代</view>
  241. <view>第四代</view>
  242. <view>第五代</view>
  243. <view>第六代</view>
  244. <view>第一代</view>
  245. <view>第二代</view>
  246. <view>第三代</view>
  247. <view>第四代</view>
  248. <view>第五代</view>
  249. <view>第六代</view>
  250. <view>第一代</view>
  251. <view>第二代</view>
  252. <view>第三代</view>
  253. <view>第四代</view>
  254. <view>第五代</view>
  255. <view>第六代</view>
  256. <view>第一代</view>
  257. <view>第二代</view>
  258. <view>第三代</view>
  259. <view>第四代</view>
  260. <view>第五代</view>
  261. <view>第六代</view>
  262. <view>第一代</view>
  263. <view>第二代</view>
  264. <view>第三代</view>
  265. <view>第四代</view>
  266. <view>第五代</view>
  267. <view>第六代</view>
  268. <view>第一代</view>
  269. <view>第二代</view>
  270. <view>第三代</view>
  271. <view>第四代</view>
  272. <view>第五代</view>
  273. <view>第六代</view>
  274. </view>
  275. <view>
  276. </view>
  277. </scroll-view>
  278. </view>
  279. </scroll-view>
  280. <scroll-view v-if="tabIndex==2" style="height: 100%;width: auto;" :current="tabIndex" class="tui-swiper-box" :duration="300" @change="tabChange">
  281. <view class="tui-swiper-item" >
  282. <txl style="width: 100%;height: 100%;" @ev="evFunc" :datas="datas" :index="true" name="employeeName" photo="IMGphoto"></txl>
  283. </view>
  284. </scroll-view>
  285. <tui-modal :show="editglory" @cancel="hide2" :custom="true" fadeIn >
  286. <view class="tui-modal-custom">
  287. <input placeholder="请输入标题" class="tui-modal-input" v-model="title" />
  288. <view class="uni-list">
  289. <view class="uni-list-cell">
  290. <view class="uni-list-cell-db">
  291. </view>
  292. </view>
  293. </view>
  294. <view class="tui-box-upload">
  295. <tui-upload :value="value" :serverUrl="serverUrl" @complete="result" @remove="remove"></tui-upload>
  296. </view>
  297. <tui-button height="72rpx" :size="28" shape="circle" @click="handleClick2">保存</tui-button>
  298. </view>
  299. </tui-modal>
  300. <tui-modal :show="addalbum" @cancel="hide3" :custom="true" fadeIn >
  301. <view class="tui-modal-custom">
  302. <input placeholder="请输入相册名称" class="tui-modal-input" v-model="title" />
  303. <view class="uni-list">
  304. <view class="uni-list-cell">
  305. <view class="uni-list-cell-db">
  306. </view>
  307. </view>
  308. </view>
  309. <view class="tui-box-upload">
  310. <tui-upload :value="value" :serverUrl="serverUrl" @complete="result" @remove="remove"></tui-upload>
  311. <view style="text-align: center;font-size: 12px;">上传相册封面</view>
  312. </view>
  313. <tui-button height="72rpx" :size="28" shape="circle" @click="handleClick3">保存</tui-button>
  314. </view>
  315. </tui-modal>
  316. <tui-modal :show="editplot" @cancel="hide9" :custom="true" fadeIn >
  317. <view class="tui-modal-custom">
  318. <input placeholder="请输入标题" class="tui-modal-input" v-model="title" />
  319. <textarea placeholder="请输入内容" class="tui-modal-input" v-model="textarea" />
  320. <view class="tui-box-upload">
  321. <tui-upload :value="value" :serverUrl="serverUrl" @complete="result" @remove="remove"></tui-upload>
  322. </view>
  323. <tui-button height="72rpx" :size="28" shape="circle" @click="handleClick9">保存</tui-button>
  324. </view>
  325. </tui-modal>
  326. </view>
  327. </template>
  328. <script>
  329. import tNewsItem from '@/components/views/t-news-item/t-news-item.nvue';
  330. import tuiIcon from "@/components/thorui/tui-icon/tui-icon"
  331. import tuiButton from "@/components/thorui/tui-button/tui-button"
  332. import tuiTabs from "@/components/thorui/tui-tabs/tui-tabs"
  333. import tuiTimeAxis from "@/components/thorui/tui-time-axis/tui-time-axis"
  334. import tuiTimeaxisItem from "@/components/thorui/tui-timeaxis-item/tui-timeaxis-item"
  335. import tuiCard from "@/components/thorui/tui-card/tui-card"
  336. import tuiModal from "@/components/thorui/tui-modal/tui-modal"
  337. import tuiUpload from "@/components/thorui/tui-upload/tui-upload"
  338. import txl from '@/components/yt-txl/index.vue';
  339. import tRtPopup from '@/components/views/t-rt-popup/t-rt-popup1';
  340. const cityData = require('@/utils/index.list.js')
  341. // 缓存最多页数
  342. const MAX_CACHE_PAGEINDEX = 3;
  343. // 缓存页签数量
  344. const MAX_CACHE_PAGE = 3;
  345. export default {
  346. components: {
  347. tNewsItem,
  348. tuiIcon,
  349. tuiButton,
  350. tuiTabs,
  351. tuiTimeAxis,
  352. tuiTimeaxisItem,
  353. tuiCard,
  354. tuiModal,
  355. tuiUpload,
  356. txl,
  357. tRtPopup
  358. },
  359. computed: {
  360. startDate() {
  361. return this.getDate('start');
  362. },
  363. endDate() {
  364. return this.getDate('end');
  365. },
  366. last() {
  367. return function(data, index) {
  368. return data.length - 1 == index ? true : false
  369. }
  370. }
  371. },
  372. data() {
  373. const currentDate = this.getDate({
  374. format: true
  375. })
  376. return {
  377. inputShowed: false, // 输入框是否显示
  378. inputVal: '', // 搜索框输入的内容
  379. searchResult: [], // 搜索结果
  380. title: 'picker',
  381. date: '请选择日期',
  382. backgroundColor:"#C74547",
  383. bottom: 100,
  384. isIos: false,
  385. newsList: [],
  386. cacheTab: [],
  387. tabIndex: 0,
  388. datas: [{
  389. "employeeId": "test1",
  390. "employeeName": "q冰冰",
  391. "companyId": "1",
  392. "companyName": "test company",
  393. "departmentId": "testdeptid",
  394. "departmentName": "test dept",
  395. "postId": "testpostid",
  396. "postName": "testpost",
  397. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  398. },{
  399. "employeeId": "test1",
  400. "employeeName": "w冰冰",
  401. "companyId": "1",
  402. "companyName": "test company",
  403. "departmentId": "testdeptid",
  404. "departmentName": "test dept",
  405. "postId": "testpostid",
  406. "postName": "testpost",
  407. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  408. },{
  409. "employeeId": "test1",
  410. "employeeName": "e冰冰",
  411. "companyId": "1",
  412. "companyName": "test company",
  413. "departmentId": "testdeptid",
  414. "departmentName": "test dept",
  415. "postId": "testpostid",
  416. "postName": "testpost",
  417. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  418. },{
  419. "employeeId": "test1",
  420. "employeeName": "r冰冰",
  421. "companyId": "1",
  422. "companyName": "test company",
  423. "departmentId": "testdeptid",
  424. "departmentName": "test dept",
  425. "postId": "testpostid",
  426. "postName": "testpost",
  427. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  428. },{
  429. "employeeId": "test1",
  430. "employeeName": "t冰冰",
  431. "companyId": "1",
  432. "companyName": "test company",
  433. "departmentId": "testdeptid",
  434. "departmentName": "test dept",
  435. "postId": "testpostid",
  436. "postName": "testpost",
  437. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  438. },{
  439. "employeeId": "test1",
  440. "employeeName": "y冰冰",
  441. "companyId": "1",
  442. "companyName": "test company",
  443. "departmentId": "testdeptid",
  444. "departmentName": "test dept",
  445. "postId": "testpostid",
  446. "postName": "testpost",
  447. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  448. },{
  449. "employeeId": "test1",
  450. "employeeName": "u冰冰",
  451. "companyId": "1",
  452. "companyName": "test company",
  453. "departmentId": "testdeptid",
  454. "departmentName": "test dept",
  455. "postId": "testpostid",
  456. "postName": "testpost",
  457. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  458. },{
  459. "employeeId": "test1",
  460. "employeeName": "i冰冰",
  461. "companyId": "1",
  462. "companyName": "test company",
  463. "departmentId": "testdeptid",
  464. "departmentName": "test dept",
  465. "postId": "testpostid",
  466. "postName": "testpost",
  467. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  468. },{
  469. "employeeId": "test1",
  470. "employeeName": "o冰冰",
  471. "companyId": "1",
  472. "companyName": "test company",
  473. "departmentId": "testdeptid",
  474. "departmentName": "test dept",
  475. "postId": "testpostid",
  476. "postName": "testpost",
  477. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  478. },{
  479. "employeeId": "test1",
  480. "employeeName": "p冰冰",
  481. "companyId": "1",
  482. "companyName": "test company",
  483. "departmentId": "testdeptid",
  484. "departmentName": "test dept",
  485. "postId": "testpostid",
  486. "postName": "testpost",
  487. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  488. },{
  489. "employeeId": "test1",
  490. "employeeName": "a冰冰",
  491. "companyId": "1",
  492. "companyName": "test company",
  493. "departmentId": "testdeptid",
  494. "departmentName": "test dept",
  495. "postId": "testpostid",
  496. "postName": "testpost",
  497. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  498. },{
  499. "employeeId": "test1",
  500. "employeeName": "s冰冰",
  501. "companyId": "1",
  502. "companyName": "test company",
  503. "departmentId": "testdeptid",
  504. "departmentName": "test dept",
  505. "postId": "testpostid",
  506. "postName": "testpost",
  507. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  508. },{
  509. "employeeId": "test1",
  510. "employeeName": "d冰冰",
  511. "companyId": "1",
  512. "companyName": "test company",
  513. "departmentId": "testdeptid",
  514. "departmentName": "test dept",
  515. "postId": "testpostid",
  516. "postName": "testpost",
  517. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  518. },{
  519. "employeeId": "test1",
  520. "employeeName": "f冰冰",
  521. "companyId": "1",
  522. "companyName": "test company",
  523. "departmentId": "testdeptid",
  524. "departmentName": "test dept",
  525. "postId": "testpostid",
  526. "postName": "testpost",
  527. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  528. },{
  529. "employeeId": "test1",
  530. "employeeName": "g冰冰",
  531. "companyId": "1",
  532. "companyName": "test company",
  533. "departmentId": "testdeptid",
  534. "departmentName": "test dept",
  535. "postId": "testpostid",
  536. "postName": "testpost",
  537. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  538. },{
  539. "employeeId": "test1",
  540. "employeeName": "h冰冰",
  541. "companyId": "1",
  542. "companyName": "test company",
  543. "departmentId": "testdeptid",
  544. "departmentName": "test dept",
  545. "postId": "testpostid",
  546. "postName": "testpost",
  547. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  548. },{
  549. "employeeId": "test1",
  550. "employeeName": "j冰冰",
  551. "companyId": "1",
  552. "companyName": "test company",
  553. "departmentId": "testdeptid",
  554. "departmentName": "test dept",
  555. "postId": "testpostid",
  556. "postName": "testpost",
  557. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  558. },{
  559. "employeeId": "test1",
  560. "employeeName": "k冰冰",
  561. "companyId": "1",
  562. "companyName": "test company",
  563. "departmentId": "testdeptid",
  564. "departmentName": "test dept",
  565. "postId": "testpostid",
  566. "postName": "testpost",
  567. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  568. },{
  569. "employeeId": "test1",
  570. "employeeName": "l冰冰",
  571. "companyId": "1",
  572. "companyName": "test company",
  573. "departmentId": "testdeptid",
  574. "departmentName": "test dept",
  575. "postId": "testpostid",
  576. "postName": "testpost",
  577. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  578. },{
  579. "employeeId": "test1",
  580. "employeeName": "z冰冰",
  581. "companyId": "1",
  582. "companyName": "test company",
  583. "departmentId": "testdeptid",
  584. "departmentName": "test dept",
  585. "postId": "testpostid",
  586. "postName": "testpost",
  587. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  588. },{
  589. "employeeId": "test1",
  590. "employeeName": "x冰冰",
  591. "companyId": "1",
  592. "companyName": "test company",
  593. "departmentId": "testdeptid",
  594. "departmentName": "test dept",
  595. "postId": "testpostid",
  596. "postName": "testpost",
  597. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  598. },{
  599. "employeeId": "test1",
  600. "employeeName": "c冰冰",
  601. "companyId": "1",
  602. "companyName": "test company",
  603. "departmentId": "testdeptid",
  604. "departmentName": "test dept",
  605. "postId": "testpostid",
  606. "postName": "testpost",
  607. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  608. },{
  609. "employeeId": "test1",
  610. "employeeName": "v冰冰",
  611. "companyId": "1",
  612. "companyName": "test company",
  613. "departmentId": "testdeptid",
  614. "departmentName": "test dept",
  615. "postId": "testpostid",
  616. "postName": "testpost",
  617. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  618. },{
  619. "employeeId": "test1",
  620. "employeeName": "b冰冰",
  621. "companyId": "1",
  622. "companyName": "test company",
  623. "departmentId": "testdeptid",
  624. "departmentName": "test dept",
  625. "postId": "testpostid",
  626. "postName": "testpost",
  627. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  628. },{
  629. "employeeId": "test1",
  630. "employeeName": "n冰冰",
  631. "companyId": "1",
  632. "companyName": "test company",
  633. "departmentId": "testdeptid",
  634. "departmentName": "test dept",
  635. "postId": "testpostid",
  636. "postName": "testpost",
  637. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  638. },{
  639. "employeeId": "test1",
  640. "employeeName": "m冰冰",
  641. "companyId": "1",
  642. "companyName": "test company",
  643. "departmentId": "testdeptid",
  644. "departmentName": "test dept",
  645. "postId": "testpostid",
  646. "postName": "testpost",
  647. "IMGphoto":"../../../../../static/img/shop/1.jpg"
  648. }],
  649. tabBars: [
  650. {
  651. name: '首页',
  652. id: 'hot'
  653. },
  654. {
  655. name: '家族树',
  656. id: 'yule'
  657. },
  658. {
  659. name: '成员',
  660. id: 'sports'
  661. }
  662. ],
  663. tabs: [{
  664. name: "大事件"
  665. }, {
  666. name: "家族园地"
  667. }, {
  668. name: "家族荣耀"
  669. }, {
  670. name: "家族影像"
  671. }],
  672. card: [{
  673. img: {
  674. url: "/static/images/news/avatar_1.jpg"
  675. },
  676. title: {
  677. text: "CSDN云计算"
  678. },
  679. tag: {
  680. text: "1小时前"
  681. },
  682. header: {
  683. bgcolor: "#F7F7F7",
  684. line: true
  685. }
  686. },
  687. {
  688. img: {
  689. url: "/static/images/news/avatar_2.jpg",
  690. width: 80,
  691. height: 80,
  692. circle: true
  693. },
  694. title: {
  695. text: "CSDN云计算",
  696. color: "#ed3f14",
  697. size: 34
  698. },
  699. tag: {
  700. text: "1小时前",
  701. color: "#ed3f14",
  702. size: 28
  703. }
  704. },
  705. {
  706. img: {
  707. url: "/static/images/news/avatar_1.jpg",
  708. circle: true
  709. },
  710. title: {
  711. text: "JavaScript"
  712. },
  713. tag: {
  714. text: "昨天"
  715. },
  716. header: {
  717. line: true,
  718. bgcolor: "#F7F7F7"
  719. }
  720. },
  721. {
  722. header: {
  723. line: true
  724. }
  725. }
  726. ],
  727. fold:true,
  728. textfont:[{
  729. font:"合抱之木,生于毫末;九层之台,起于垒土。实现中华民族伟大复兴是一个长期而艰巨的过程,需要凝聚磅礴之力,才能实现质的飞跃实现中华民族伟大复兴的中国梦汇聚了强。大的中国力量2013年3月17日"
  730. }],
  731. dataList: [{
  732. name: "../../static/img/shop/1.jpg",
  733. size: 30
  734. }, {
  735. name: "../../static/img/shop/1.jpg",
  736. size: 30
  737. }, {
  738. name: "../../static/img/shop/1.jpg",
  739. size: 30
  740. }, {
  741. name: "../../static/img/shop/1.jpg",
  742. size: 30
  743. }, {
  744. name: "../../static/img/shop/1.jpg",
  745. size: 30
  746. }, {
  747. name: "../../static/img/shop/1.jpg",
  748. size: 30
  749. }, {
  750. name: "../../static/img/shop/1.jpg",
  751. size: 30
  752. }, {
  753. name: "../../static/img/shop/1.jpg",
  754. size: 30
  755. }, {
  756. name: "../../static/img/shop/1.jpg",
  757. size: 30
  758. }, {
  759. name: "../../static/img/shop/1.jpg",
  760. size: 30
  761. }, {
  762. name: "../../static/img/shop/1.jpg",
  763. size: 30
  764. }, {
  765. name: "../../static/img/shop/1.jpg",
  766. size: 30
  767. }],
  768. scrollInto: '',
  769. imageData: [],
  770. //上传地址
  771. serverUrl: "https://api.thorui.cn/",
  772. value:[], //初始化图片
  773. modal: false,
  774. currentTab: 0,
  775. showTips: false,
  776. navigateFlag: false,
  777. pulling: false,
  778. editplot: false,
  779. editglory: false,
  780. addalbum: false,
  781. title: '',
  782. textarea:''
  783. };
  784. },
  785. onNavigationBarButtonTap(e) {
  786. if (e.index === 0) {
  787. this.$refs.rtBubble.toggle();
  788. }
  789. },
  790. onLoad() {
  791. const that = this;
  792. setTimeout(() => {
  793. this.newsList = this.randomfn();
  794. uni.getSystemInfo({
  795. success: res => {
  796. this.isIos = 'ios' == res.platform.toLocaleLowerCase();
  797. }
  798. })
  799. }, 200);
  800. setTimeout(()=>{
  801. //实际开发中图片地址应为网络地址
  802. this.value=['../../static/img/shop/1.jpg']
  803. },200)
  804. },
  805. methods: {
  806. rtBubble() {
  807. this.$refs.rtBubble.toggle();
  808. },
  809. open(){
  810. this.$refs.popup.open()
  811. },
  812. close(){
  813. this.$refs.popup.close()
  814. },
  815. evFunc(data){
  816. console.log(data)
  817. },
  818. bindPickerChange: function(e) {
  819. console.log('picker发送选择改变,携带值为', e.target.value)
  820. this.index = e.target.value
  821. },
  822. bindDateChange: function(e) {
  823. this.date = e.target.value
  824. },
  825. bindTimeChange: function(e) {
  826. this.time = e.target.value
  827. },
  828. getDate(type) {
  829. const date = new Date();
  830. let year = date.getFullYear();
  831. let month = date.getMonth() + 1;
  832. let day = date.getDate();
  833. if (type === 'start') {
  834. year = year - 60;
  835. } else if (type === 'end') {
  836. year = year + 2;
  837. }
  838. month = month > 9 ? month : '0' + month;;
  839. day = day > 9 ? day : '0' + day;
  840. return `${year}-${month}-${day}`;
  841. },
  842. touchMove(e) {
  843. let pageY = e.changedTouches[0].pageY - this.scrollTop;
  844. let index = Math.floor((pageY - this.titleHeight) / this.indexBarItemHeight)
  845. let item = this.lists[index]
  846. if (item) {
  847. this.touchmoveIndex = index
  848. }
  849. },
  850. touchEnd() {
  851. this.touchmove = false;
  852. this.touchmoveIndex = -1
  853. },
  854. touchCancel() {
  855. this.touchmove = false;
  856. this.touchmoveIndex = -1
  857. },
  858. result: function(e) {
  859. console.log(e)
  860. this.imageData = e.imgArr;
  861. },
  862. remove: function(e) {
  863. //移除图片
  864. console.log(e)
  865. let index = e.index
  866. },
  867. plot() {
  868. this.editplot = true;
  869. },
  870. glory() {
  871. this.editglory = true;
  872. },
  873. album() {
  874. this.addalbum = true;
  875. },
  876. hide2() {
  877. this.editglory = false;
  878. },
  879. hide3() {
  880. this.addalbum = false;
  881. },
  882. hide9() {
  883. this.editplot = false;
  884. },
  885. dele() {
  886. console.log('删除成功');
  887. },
  888. handleClick2() {
  889. this.hide2();
  890. },
  891. handleClick3() {
  892. this.hide3();
  893. },
  894. handleClick9() {
  895. this.hide9();
  896. },
  897. btn:function(){ // 收起 展开
  898. this.fold=!this.fold;
  899. },
  900. postcard: function() {
  901. uni.navigateTo({
  902. url: '/pages/family/postcard/postcard'
  903. });
  904. },
  905. switchfamily: function() {
  906. uni.navigateTo({
  907. url: '/pages/family/switch/switch'
  908. });
  909. },
  910. listimage: function() {
  911. uni.navigateTo({
  912. url: '/pages/family/listimage/listimage'
  913. });
  914. },
  915. editevent: function() {
  916. uni.navigateTo({
  917. url: './editevent'
  918. });
  919. },
  920. change(e) {
  921. this.currentTab = e.index
  922. },
  923. randomfn() {
  924. let ary = [];
  925. for (let i = 0, length = this.tabBars.length; i < length; i++) {
  926. let aryItem = {
  927. loadingText: '正在加载...',
  928. refreshing: false,
  929. refreshText: '',
  930. data: [],
  931. isLoading: false,
  932. pageIndex: 1
  933. };
  934. ary.push(aryItem);
  935. }
  936. return ary;
  937. },
  938. tabClick(e) {
  939. let index = e.target.dataset.current || e.currentTarget.dataset.current;
  940. this.switchTab(index);
  941. },
  942. tabChange(e) {
  943. let index = e.target.current || e.detail.current;
  944. this.switchTab(index);
  945. },
  946. switchTab(index) {
  947. if (this.tabIndex === index) return;
  948. // 缓存 tabId
  949. if (this.newsList[this.tabIndex].pageIndex > MAX_CACHE_PAGEINDEX) {
  950. let isExist = this.cacheTab.indexOf(this.tabIndex);
  951. if (isExist < 0) {
  952. this.cacheTab.push(this.tabIndex);
  953. //console.log("cache index:: " + this.tabIndex);
  954. }
  955. }
  956. this.tabIndex = index;
  957. let scrollIndex = index - 1 < 0 ? 0 : index - 1;
  958. this.scrollInto = this.tabBars[scrollIndex].id;
  959. // 释放 tabId
  960. if (this.cacheTab.length > MAX_CACHE_PAGE) {
  961. let cacheIndex = this.cacheTab[0];
  962. this.clearTabData(cacheIndex);
  963. this.cacheTab.splice(0, 1);
  964. //console.log("remove cache index:: " + cacheIndex);
  965. }
  966. }
  967. },
  968. };
  969. </script>
  970. <style>
  971. @import '../../static/style/thorui.css';
  972. /* #ifndef APP-PLUS */
  973. page {
  974. width: 100%;
  975. min-height: 100%;
  976. display: flex;
  977. }
  978. .container {
  979. padding-bottom: env(safe-area-inset-bottom);
  980. }
  981. /* #endif */
  982. page {
  983. height: 100%;
  984. overflow: hidden;
  985. }
  986. .page {
  987. height: 100%;
  988. overflow: hidden;
  989. }
  990. .img {
  991. width: 120rpx;
  992. height: 120rpx;
  993. border-radius: 50%;
  994. }
  995. .content {
  996. width: 80%;
  997. padding-left: 30rpx;
  998. background: #fff0;
  999. }
  1000. .title {
  1001. width: 80%;
  1002. font-size: 34rpx;
  1003. padding-bottom: 10rpx;
  1004. color: #333;
  1005. overflow: hidden;
  1006. white-space: nowrap;
  1007. text-overflow: ellipsis
  1008. }
  1009. /*添加图标*/
  1010. .add {
  1011. text-align: center;
  1012. width: 80rpx;
  1013. height: 80rpx;
  1014. border-radius:40rpx;
  1015. background: #c77072;
  1016. position: fixed;
  1017. right: 40rpx;
  1018. bottom: 70rpx;
  1019. line-height: 1.3;
  1020. /* #ifdef H5 */
  1021. right: 40rpx;
  1022. bottom: 140rpx;
  1023. line-height: 1.1;
  1024. /* #endif */
  1025. }
  1026. /*家族影像*/
  1027. .tui-banner-swiper {
  1028. width: 100%;
  1029. height: 100%;
  1030. position: relative;
  1031. }
  1032. .tui-banner-title {
  1033. width: 100%;
  1034. background: #0000005c;
  1035. height: 35px;
  1036. position: absolute;
  1037. z-index: 9999;
  1038. color: #fff;
  1039. bottom: 0;
  1040. font-size: 26rpx;
  1041. font-weight: bold;
  1042. box-sizing: border-box;
  1043. white-space: nowrap;
  1044. overflow: hidden;
  1045. text-overflow: ellipsis;
  1046. }
  1047. .tui-slide-image {
  1048. width: 100%;
  1049. height: 100%;
  1050. display: block;
  1051. }
  1052. /*家族荣耀*/
  1053. /*家族园地*/
  1054. .title {
  1055. font-size: 34rpx;
  1056. color: #333;
  1057. font-weight: 500;
  1058. }
  1059. .tui-box-upload {
  1060. padding-left: 25rpx;
  1061. box-sizing: border-box;
  1062. margin-bottom: 30rpx;
  1063. }
  1064. .tui-prompt-title {
  1065. padding-bottom: 20rpx;
  1066. font-size: 34rpx;
  1067. }
  1068. .tui-modal-input {
  1069. width: 80%;
  1070. border-bottom: 1rpx solid #e6e6e6;
  1071. margin: 30rpx auto 50rpx;
  1072. padding-bottom: 20rpx;
  1073. font-size: 32rpx;
  1074. }
  1075. .contenfont{position: relative;}
  1076. .fold{height:100rpx;overflow: hidden;}
  1077. .unfold{height:auto;}
  1078. .show{
  1079. width: 100%;
  1080. text-align: center;
  1081. }
  1082. .tui-title {
  1083. width: 100%;
  1084. padding: 20rpx 20rpx 20rpx 20rpx;
  1085. box-sizing: border-box;
  1086. font-size: 30rpx;
  1087. line-height: 30rpx;
  1088. color: #666;
  1089. }
  1090. .tui-default {
  1091. padding: 20rpx 30rpx;
  1092. }
  1093. .tui-article {
  1094. position: relative;
  1095. }
  1096. .tui-article-img {
  1097. width: 100%;
  1098. height: 300rpx;
  1099. display: block;
  1100. }
  1101. .tui-article-title {
  1102. position: absolute;
  1103. left: 0;
  1104. bottom: 0;
  1105. color: #fff;
  1106. font-size: 32rpx;
  1107. font-weight: 500;
  1108. box-sizing: border-box;
  1109. padding: 20rpx 30rpx;
  1110. background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
  1111. }
  1112. .tui-cell-title {
  1113. font-size: 32rpx;
  1114. font-weight: 500;
  1115. padding: 0 10rpx;
  1116. word-break: break-all;
  1117. word-wrap: break-word;
  1118. }
  1119. .tui-cell-img {
  1120. height: 160rpx;
  1121. width: 160rpx;
  1122. }
  1123. .tui-flex {
  1124. display: flex;
  1125. align-items: center;
  1126. justify-content: space-between;
  1127. }
  1128. .tui-mr {
  1129. margin-right: 20rpx;
  1130. }
  1131. .tui-flex-pic {
  1132. display: flex;
  1133. display: -webkit-flex;
  1134. justify-content: space-between;
  1135. flex-direction: row;
  1136. flex-wrap: wrap;
  1137. box-sizing: border-box;
  1138. background: #fff;
  1139. padding: 0 120rpx;
  1140. }
  1141. .tui-flex-pic image {
  1142. width: 32%;
  1143. margin-bottom: 2%;
  1144. }
  1145. .tui-content {
  1146. padding: 0rpx 30rpx 20rpx 120rpx;
  1147. box-sizing: border-box;
  1148. font-size: 34rpx;
  1149. font-weight: 400;
  1150. color: #333;
  1151. }
  1152. .tui-color-gray {
  1153. color: #ccc;
  1154. }
  1155. .tui-pleft {
  1156. padding-left: 120rpx;
  1157. }
  1158. /*大事件*/
  1159. .tui-order-header {
  1160. padding: 30rpx;
  1161. box-sizing: border-box;
  1162. background: #fff;
  1163. }
  1164. .tui-text {
  1165. font-size: 28rpx;
  1166. color: #333;
  1167. padding: 4rpx;
  1168. }
  1169. .tui-bold {
  1170. font-weight: bold;
  1171. }
  1172. .tui-node {
  1173. height: 32rpx;
  1174. width: 32rpx;
  1175. border-radius: 50%;
  1176. background-color: #C74547;
  1177. display: flex;
  1178. align-items: center;
  1179. justify-content: center;
  1180. color: #fff;
  1181. flex-shrink: 0;
  1182. }
  1183. .tui-node-dot {
  1184. height: 16rpx;
  1185. width: 16rpx;
  1186. background-color: #ddd;
  1187. border-radius: 50%;
  1188. /* transform: translateY(45%); */
  1189. margin-top: 6rpx;
  1190. }
  1191. .tui-bg-primary {
  1192. background: #EB0909 !important;
  1193. }
  1194. .tui-order-tracking {
  1195. padding: 30rpx 30rpx 30rpx 30rpx;
  1196. background: #fff;
  1197. margin-top: 20rpx;
  1198. box-sizing: border-box;
  1199. }
  1200. .tui-order-title {
  1201. padding-bottom: 12rpx;
  1202. font-size: 32rpx;
  1203. color: #333;
  1204. font-weight: bold;
  1205. }
  1206. .tui-order-desc {
  1207. padding-bottom: 12rpx;
  1208. font-size: 28rpx;
  1209. color: #333;
  1210. }
  1211. .tui-ptop {
  1212. display: flex;
  1213. justify-content: flex-start;
  1214. line-height: 28rpx;
  1215. }
  1216. .tui-order-time {
  1217. font-size: 24rpx;
  1218. font-weight: bold;
  1219. }
  1220. .tui-light-gray {
  1221. color: #888 !important;
  1222. }
  1223. .tui-primary {
  1224. color: #5677fc;
  1225. }
  1226. /*家族*/
  1227. .family-card{
  1228. background-color: #C74547;
  1229. width: 100%;
  1230. height: 250rpx;
  1231. border-radius: 20rpx;
  1232. }
  1233. .tui-tabs {
  1234. flex: 1;
  1235. flex-direction: column;
  1236. overflow: hidden;
  1237. background-color: #fafafa;
  1238. /* #ifdef MP-ALIPAY || MP-BAIDU */
  1239. height: 100vh;
  1240. /* #endif */
  1241. }
  1242. .tui-scroll-h {
  1243. width: 100%;
  1244. height: 80rpx;
  1245. background-color: #ffffff;
  1246. color: #000000;
  1247. flex-direction: row;
  1248. /* #ifndef APP-PLUS */
  1249. white-space: nowrap;
  1250. /* #endif */
  1251. /* #ifdef H5 */
  1252. position: fixed;
  1253. left: 0;
  1254. z-index:999;
  1255. /* #endif */
  1256. }
  1257. .tui-line-h {
  1258. /* #ifdef APP-PLUS */
  1259. height: 1rpx;
  1260. background-color: #cccccc;
  1261. /* #endif */
  1262. position: relative;
  1263. }
  1264. /* #ifndef APP-PLUS*/
  1265. .tui-line-h::after {
  1266. content: '';
  1267. position: absolute;
  1268. border-bottom: 1rpx solid #cccccc;
  1269. -webkit-transform: scaleY(0.5);
  1270. transform: scaleY(0.5);
  1271. bottom: 0;
  1272. right: 0;
  1273. left: 0;
  1274. }
  1275. /* #endif */
  1276. .tui-tab-item {
  1277. /* #ifndef APP-PLUS */
  1278. display: inline-block;
  1279. /* #endif */
  1280. display: inline-block;
  1281. flex-wrap: nowrap;
  1282. padding-left: 34rpx;
  1283. padding-right: 34rpx;
  1284. }
  1285. .tui-tab-item-title {
  1286. color: #555;
  1287. font-size: 30rpx;
  1288. height: 80rpx;
  1289. line-height: 80rpx;
  1290. flex-wrap: nowrap;
  1291. /* #ifndef APP-PLUS */
  1292. white-space: nowrap;
  1293. /* #endif */
  1294. }
  1295. .tui-tab-item-title-active {
  1296. color: #C74547;
  1297. font-size: 36rpx;
  1298. font-weight: bold;
  1299. border-bottom-width: 6rpx;
  1300. border-color: #C74547;
  1301. text-align: center;
  1302. }
  1303. .tui-swiper-box {
  1304. flex: 1 !important;
  1305. /* #ifdef H5 */
  1306. margin-top: 80rpx;
  1307. /* #endif */
  1308. }
  1309. .tui-swiper-item {
  1310. flex: 1 !important;
  1311. flex-direction: row;
  1312. }
  1313. .tui-scroll-v {
  1314. flex: 1;
  1315. /* #ifndef MP-ALIPAY */
  1316. flex-direction: column;
  1317. /* #endif */
  1318. width: 750rpx;
  1319. }
  1320. .tui-update-tips {
  1321. position: absolute;
  1322. left: 0;
  1323. top: 41px;
  1324. right: 0;
  1325. padding-top: 5px;
  1326. padding-bottom: 5px;
  1327. background-color: #fddd9b;
  1328. align-items: center;
  1329. justify-content: center;
  1330. text-align: center;
  1331. }
  1332. .tui-update-tips-text {
  1333. font-size: 14px;
  1334. color: #ffffff;
  1335. }
  1336. .tui-refresh {
  1337. width: 750rpx;
  1338. height: 64px;
  1339. justify-content: center;
  1340. }
  1341. .tui-refresh-view {
  1342. flex-direction: row;
  1343. flex-wrap: nowrap;
  1344. align-items: center;
  1345. justify-content: center;
  1346. }
  1347. .tui-refresh-icon {
  1348. width: 20px;
  1349. height: 20px;
  1350. transition-duration: 0.25s;
  1351. transition-property: transform;
  1352. transform: rotate(0deg);
  1353. transform-origin: 10px 10px;
  1354. }
  1355. .tui-refresh-icon-active {
  1356. transform: rotate(180deg);
  1357. }
  1358. .tui-loading-icon {
  1359. width: 20px;
  1360. height: 20px;
  1361. margin-right: 5px;
  1362. color: #999999;
  1363. }
  1364. .tui-loading-text {
  1365. margin-left: 2px;
  1366. font-size: 14px;
  1367. color: #999999;
  1368. }
  1369. .tui-loading-more {
  1370. align-items: center;
  1371. justify-content: center;
  1372. padding-top: 15px;
  1373. padding-bottom: 15px;
  1374. text-align: center;
  1375. position: relative;
  1376. }
  1377. .tui-loadmore-line {
  1378. border-bottom-width: 1rpx;
  1379. border-bottom-style: solid;
  1380. border-bottom-color: #e5e5e5;
  1381. width: 320rpx;
  1382. position: absolute;
  1383. z-index: -1;
  1384. }
  1385. .tui-loading-more-text {
  1386. padding-left: 8rpx;
  1387. padding-right: 8rpx;
  1388. font-size: 28rpx;
  1389. line-height: 28rpx;
  1390. background-color: #fafafa;
  1391. text-align: center;
  1392. color: #999;
  1393. }
  1394. </style>