bar.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. <template>
  2. <view>
  3. <cu-custom bgColor="bg-luohu" :isBack="true">
  4. <block slot="backText">返回</block>
  5. <block slot="content">操作条</block>
  6. </cu-custom>
  7. <view class="cu-bar bg-white margin-top">
  8. <view class="action">
  9. <text class="cuIcon-title text-green"></text>
  10. <text>底部操作条</text>
  11. </view>
  12. </view>
  13. <view class="box">
  14. <view class="cu-bar tabbar bg-white">
  15. <view class="action">
  16. <view class="cuIcon-cu-image">
  17. <image src="/static/tabbar/basics_cur.png"></image>
  18. </view>
  19. <view class="text-green">元素</view>
  20. </view>
  21. <view class="action">
  22. <view class="cuIcon-cu-image">
  23. <image src="/static/tabbar/component.png"></image>
  24. </view>
  25. <view class="text-gray">组件</view>
  26. </view>
  27. <view class="action">
  28. <view class="cuIcon-cu-image">
  29. <image src="/static/tabbar/plugin.png"></image>
  30. <view class="cu-tag badge">99</view>
  31. </view>
  32. <view class="text-gray">扩展</view>
  33. </view>
  34. <view class="action">
  35. <view class="cuIcon-cu-image">
  36. <image src="/static/tabbar/about.png"></image>
  37. <view class="cu-tag badge"></view>
  38. </view>
  39. <view class="text-gray">关于</view>
  40. </view>
  41. </view>
  42. <view class="cu-bar tabbar margin-bottom-xl bg-black">
  43. <view class="action text-orange">
  44. <view class="cuIcon-homefill"></view> 首页
  45. </view>
  46. <view class="action text-gray">
  47. <view class="cuIcon-similar"></view> 分类
  48. </view>
  49. <view class="action text-gray">
  50. <view class="cuIcon-recharge"></view>
  51. 积分
  52. </view>
  53. <view class="action text-gray">
  54. <view class="cuIcon-cart">
  55. <view class="cu-tag badge">99</view>
  56. </view>
  57. 购物车
  58. </view>
  59. <view class="action text-gray">
  60. <view class="cuIcon-my">
  61. <view class="cu-tag badge"></view>
  62. </view>
  63. 我的
  64. </view>
  65. </view>
  66. <view class="cu-bar tabbar margin-bottom-xl bg-white">
  67. <view class="action text-green">
  68. <view class="cuIcon-homefill"></view> 首页
  69. </view>
  70. <view class="action text-gray">
  71. <view class="cuIcon-similar"></view> 分类
  72. </view>
  73. <view class="action text-gray add-action">
  74. <button class="cu-btn cuIcon-add bg-green shadow"></button>
  75. 发布
  76. </view>
  77. <view class="action text-gray">
  78. <view class="cuIcon-cart">
  79. <view class="cu-tag badge">99</view>
  80. </view>
  81. 购物车
  82. </view>
  83. <view class="action text-gray">
  84. <view class="cuIcon-my">
  85. <view class="cu-tag badge"></view>
  86. </view>
  87. 我的
  88. </view>
  89. </view>
  90. <view class="cu-bar tabbar bg-black">
  91. <view class="action text-green">
  92. <view class="cuIcon-homefill"></view> 首页
  93. </view>
  94. <view class="action text-gray">
  95. <view class="cuIcon-similar"></view> 分类
  96. </view>
  97. <view class="action text-gray add-action">
  98. <button class="cu-btn cuIcon-add bg-green shadow"></button>
  99. 发布
  100. </view>
  101. <view class="action text-gray">
  102. <view class="cuIcon-cart">
  103. <view class="cu-tag badge">99</view>
  104. </view>
  105. 购物车
  106. </view>
  107. <view class="action text-gray">
  108. <view class="cuIcon-my">
  109. <view class="cu-tag badge"></view>
  110. </view>
  111. 我的
  112. </view>
  113. </view>
  114. <view class="cu-bar bg-white tabbar border shop">
  115. <button class="action" open-type="contact">
  116. <view class="cuIcon-service text-green">
  117. <view class="cu-tag badge"></view>
  118. </view>
  119. 客服
  120. </button>
  121. <view class="action text-orange">
  122. <view class="cuIcon-favorfill"></view> 已收藏
  123. </view>
  124. <view class="action">
  125. <view class="cuIcon-cart">
  126. <view class="cu-tag badge">99</view>
  127. </view>
  128. 购物车
  129. </view>
  130. <view class="bg-red submit">立即订购</view>
  131. </view>
  132. <view class="cu-bar bg-white tabbar border shop">
  133. <button class="action" open-type="contact">
  134. <view class="cuIcon-service text-green">
  135. <view class="cu-tag badge"></view>
  136. </view>
  137. 客服
  138. </button>
  139. <view class="action">
  140. <view class="cuIcon-cart">
  141. <view class="cu-tag badge">99</view>
  142. </view>
  143. 购物车
  144. </view>
  145. <view class="bg-orange submit">加入购物车</view>
  146. <view class="bg-red submit">立即订购</view>
  147. </view>
  148. <view class="cu-bar bg-white tabbar border shop">
  149. <button class="action" open-type="contact">
  150. <view class="cuIcon-service text-green">
  151. <view class="cu-tag badge"></view>
  152. </view>
  153. 客服
  154. </button>
  155. <view class="action">
  156. <view class=" cuIcon-shop"></view> 店铺
  157. </view>
  158. <view class="action">
  159. <view class="cuIcon-cart">
  160. <view class="cu-tag badge">99</view>
  161. </view>
  162. 购物车
  163. </view>
  164. <view class="btn-group">
  165. <button class="cu-btn bg-red round shadow-blur">立即订购</button>
  166. </view>
  167. </view>
  168. <view class="cu-bar bg-white tabbar border shop">
  169. <button class="action" open-type="contact">
  170. <view class="cuIcon-service text-green">
  171. <view class="cu-tag badge"></view>
  172. </view> 客服
  173. </button>
  174. <view class="action">
  175. <view class="cuIcon-cart">
  176. <view class="cu-tag badge">99</view>
  177. </view>
  178. 购物车
  179. </view>
  180. <view class="btn-group">
  181. <button class="cu-btn bg-orange round shadow-blur">加入购物车</button>
  182. <button class="cu-btn bg-red round shadow-blur">立即订购</button>
  183. </view>
  184. </view>
  185. </view>
  186. <view class="cu-bar bg-white">
  187. <view class="action">
  188. <text class="cuIcon-title text-green"></text>
  189. <text>标题操作条</text>
  190. </view>
  191. </view>
  192. <view class="box" v-if="false">
  193. <view class="cu-bar justify-center bg-white">
  194. <view class="action border-title">
  195. <text class="text-xl text-bold">关于我们</text>
  196. <text class="bg-grey" style="width:2rem"></text>
  197. <!-- 底部样式 last-child选择器-->
  198. </view>
  199. </view>
  200. <view class="cu-bar justify-center bg-white">
  201. <view class="action border-title">
  202. <text class="text-xl text-bold text-blue">关于我们</text>
  203. <text class="bg-gradual-blue" style="width:3rem"></text>
  204. </view>
  205. </view>
  206. <view class="cu-bar justify-center bg-white">
  207. <view class="action sub-title">
  208. <text class="text-xl text-bold text-green">关于我们</text>
  209. <text class="bg-green" style="width:2rem"></text>
  210. <!-- last-child选择器-->
  211. </view>
  212. </view>
  213. <view class="cu-bar justify-center bg-white">
  214. <view class="action sub-title">
  215. <text class="text-xl text-bold text-blue">关于我们</text>
  216. <text class="text-ABC text-blue">about</text>
  217. <!-- last-child选择器-->
  218. </view>
  219. </view>
  220. </view>
  221. <view class="box">
  222. <view class="cu-bar bg-white">
  223. <view class="action border-title">
  224. <text class="text-xl text-bold">关于我们</text>
  225. <text class="bg-grey" style="width:2rem"></text>
  226. <!-- 底部样式 last-child选择器-->
  227. </view>
  228. </view>
  229. <view class="cu-bar bg-white">
  230. <view class="action border-title">
  231. <text class="text-xl text-bold text-blue">关于我们</text>
  232. <text class="bg-gradual-blue" style="width:3rem"></text>
  233. </view>
  234. </view>
  235. <view class="cu-bar bg-white">
  236. <view class="action sub-title">
  237. <text class="text-xl text-bold text-green">关于我们</text>
  238. <text class="bg-green"></text>
  239. <!-- last-child选择器-->
  240. </view>
  241. </view>
  242. <view class="cu-bar bg-white">
  243. <view class="action sub-title">
  244. <text class="text-xl text-bold text-blue">关于我们</text>
  245. <text class="text-ABC text-blue">about</text>
  246. <!-- last-child选择器-->
  247. </view>
  248. </view>
  249. <view class="cu-bar bg-white">
  250. <view class="action title-style-3">
  251. <text class="text-xl text-bold">关于我们</text>
  252. <text class="text-Abc text-gray self-end margin-left-sm">about</text>
  253. </view>
  254. </view>
  255. <view class="cu-bar bg-white">
  256. <view class="action">
  257. <text class="cuIcon-title text-green"></text>
  258. <text class="text-xl text-bold">关于我们</text>
  259. </view>
  260. </view>
  261. <view class="cu-bar bg-white">
  262. <view class="action">
  263. <text class="cuIcon-titles text-green"></text>
  264. <text class="text-xl text-bold">关于我们</text>
  265. </view>
  266. </view>
  267. </view>
  268. <view class="cu-bar bg-white">
  269. <view class="action">
  270. <text class="cuIcon-title text-green"></text>
  271. <text>顶部操作条</text>
  272. </view>
  273. </view>
  274. <view class="box">
  275. <view class="cu-bar bg-white">
  276. <view class="action">
  277. <text class="cuIcon-back text-gray"></text> 返回
  278. </view>
  279. <view class="content text-bold">
  280. 操作条
  281. </view>
  282. </view>
  283. <view class="cu-bar bg-white">
  284. <view class="action">
  285. <text class="cuIcon-homefill text-gray"></text> 首页
  286. </view>
  287. <view class="content text-bold">
  288. 鲜亮的高饱和色彩,专注视觉的小程序组件库
  289. </view>
  290. <view class="action">
  291. <text class="cuIcon-cardboardfill text-grey"></text>
  292. <text class="cuIcon-recordfill text-red"></text>
  293. </view>
  294. </view>
  295. <view class="cu-bar bg-blue">
  296. <view class="action">
  297. <text class="cuIcon-close"></text> 关闭
  298. </view>
  299. <view class="content text-bold">
  300. 海蓝
  301. </view>
  302. </view>
  303. <view class="cu-bar bg-black search">
  304. <view class="cu-avatar round"
  305. style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg);">
  306. </view>
  307. <view class="content">
  308. ColorUI
  309. </view>
  310. <view class="action">
  311. <text class="cuIcon-more"></text>
  312. </view>
  313. </view>
  314. </view>
  315. <view class="cu-bar bg-white">
  316. <view class="action">
  317. <text class="cuIcon-title text-green"></text>
  318. <text>搜索操作条</text>
  319. </view>
  320. </view>
  321. <view class="box">
  322. <view class="cu-bar search bg-white">
  323. <view class="search-form round">
  324. <text class="cuIcon-search"></text>
  325. <input @focus="InputFocus" @blur="InputBlur" :adjust-position="false" type="text"
  326. placeholder="搜索图片、文章、视频" confirm-type="search"></input>
  327. </view>
  328. <view class="action">
  329. <button class="cu-btn bg-green shadow-blur round">搜索</button>
  330. </view>
  331. </view>
  332. <view class="cu-bar search bg-white">
  333. <view class="cu-avatar round"
  334. style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big11010.jpg">
  335. </view>
  336. <view class="search-form round">
  337. <text class="cuIcon-search"></text>
  338. <input @focus="InputFocus" @blur="InputBlur" :adjust-position="false" type="text"
  339. placeholder="搜索图片、文章、视频" confirm-type="search"></input>
  340. </view>
  341. <view class="action">
  342. <text>广州</text>
  343. <text class="cuIcon-triangledownfill"></text>
  344. </view>
  345. </view>
  346. <view class="cu-bar bg-red search">
  347. <view class="cu-avatar round"
  348. style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big114004.jpg);">
  349. </view>
  350. <view class="search-form radius">
  351. <text class="cuIcon-search"></text>
  352. <input @focus="InputFocus" @blur="InputBlur" :adjust-position="false" type="text"
  353. placeholder="搜索图片、文章、视频" confirm-type="search"></input>
  354. </view>
  355. <view class="action">
  356. <text>广州</text>
  357. <text class="cuIcon-triangledownfill"></text>
  358. </view>
  359. </view>
  360. <view class="cu-bar bg-cyan search">
  361. <view class="search-form radius">
  362. <text class="cuIcon-search"></text>
  363. <input @focus="InputFocus" @blur="InputBlur" :adjust-position="false" type="text"
  364. placeholder="搜索图片、文章、视频" confirm-type="search"></input>
  365. </view>
  366. <view class="action">
  367. <text class="cuIcon-close"></text>
  368. <text>取消</text>
  369. </view>
  370. </view>
  371. </view>
  372. <view class="cu-bar bg-white">
  373. <view class="action">
  374. <text class="cuIcon-title text-green"></text>
  375. <text>操作条按钮组</text>
  376. </view>
  377. </view>
  378. <view class="box">
  379. <view class="cu-bar btn-group">
  380. <button class="cu-btn bg-green shadow-blur round lg">保存</button>
  381. </view>
  382. <view class="cu-bar btn-group">
  383. <button class="cu-btn bg-green shadow-blur">保存</button>
  384. <button class="cu-btn text-green line-green shadow">上传</button>
  385. </view>
  386. <view class="cu-bar btn-group">
  387. <button class="cu-btn bg-green shadow-blur round">保存</button>
  388. <button class="cu-btn bg-blue shadow-blur round">提交</button>
  389. </view>
  390. </view>
  391. <view class="cu-bar bg-white">
  392. <view class="action">
  393. <text class="cuIcon-title text-green"></text>
  394. <text>输入操作条</text>
  395. </view>
  396. </view>
  397. <view class="box">
  398. <view class="cu-bar input">
  399. <view class="action">
  400. <text class="cuIcon-sound text-grey"></text>
  401. </view>
  402. <input @focus="InputFocus" @blur="InputBlur" :adjust-position="false" class="solid-bottom"
  403. :focus="false" maxlength="300" cursor-spacing="10"></input>
  404. <view class="action">
  405. <text class="cuIcon-emojifill text-grey"></text>
  406. </view>
  407. <button class="cu-btn bg-green shadow-blur">发送</button>
  408. </view>
  409. <view class="cu-bar input">
  410. <view class="cu-avatar round"
  411. style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg);">
  412. </view>
  413. <view class="action">
  414. <text class="cuIcon-roundaddfill text-grey"></text>
  415. </view>
  416. <input @focus="InputFocus" @blur="InputBlur" :adjust-position="false" class="solid-bottom"
  417. maxlength="300" cursor-spacing="10"></input>
  418. <view class="action">
  419. <text class="cuIcon-emojifill text-grey"></text>
  420. </view>
  421. <button class="cu-btn bg-green shadow-blur">发送</button>
  422. </view>
  423. </view>
  424. </view>
  425. </template>
  426. <script>
  427. export default {
  428. data() {
  429. return {
  430. InputBottom: 0
  431. };
  432. },
  433. methods: {
  434. InputFocus(e) {
  435. this.InputBottom = e.detail.height
  436. },
  437. InputBlur(e) {
  438. this.InputBottom = 0
  439. }
  440. }
  441. }
  442. </script>
  443. <style>
  444. .box {
  445. margin: 20upx 0;
  446. }
  447. .box view.cu-bar {
  448. margin-top: 20upx;
  449. }
  450. </style>