bar.vue 14 KB

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