当前位置:   article > 正文

证件照(兼容H5,APP,小程序)

证件照(兼容H5,APP,小程序)

证件照由uniapp+uyui开发完成,并同时兼容H5、App、微信小程序、支付宝小程序,其他端暂未测试。

先看部分效果图吧具体可以下方复制链接体验demo

首页代码

  1. <template>
  2. <view class="">
  3. <view class="uy-m-x-30 uy-m-b-20">
  4. <!-- 轮播图-广告位 -->
  5. <view class="uy-m-t-30">
  6. <uy-swiper :list="bannerList" :height="150"></uy-swiper>
  7. </view>
  8. <!-- 胶囊组一 -->
  9. <view class="uy-flex uy-m-t-30">
  10. <view class="uy-m-r-30 uy-m-l-r uy-b-r-10 uy-flex uy-flex-direction-column uy-flex-column-center uy-flex-row-center uy-flex-1 uy-p-y-20" :style="[item.bgColor]" v-for="(item,index) in indexCapsule1" :key="index" @tap="$openPage({name: item.url, query: item})">
  11. <uy-image width="33" height="33" :src="item.icon"></uy-image>
  12. <text class="uy-m-t-10 uy-font-24">{{item.name || ''}}</text>
  13. </view>
  14. </view>
  15. </view>
  16. <!-- 筛选 -->
  17. <uy-sticky bgColor="#FFFFFF" customNavHeight="0">
  18. <uy-tabs :list="$mConstDataConfig.indexMenu"></uy-tabs>
  19. </uy-sticky>
  20. <view class="uy-m-x-30">
  21. <view class="uy-b-r-10 uy-flex uy-flex-column-center uy-p-x-20 uy-p-y-25 uy-bs-000000-5 uy-m-t-20" v-for="index in 20" :key="index" @tap="chooseDetails">
  22. <uy-image width="35" height="42" src="/static/img/index1.png" radius="5"></uy-image>
  23. <view class="uy-flex-1 uy-p-x-20">
  24. <view class="uy-flex uy-flex-column-center">
  25. <text class="uy-m-r-10 uy-font-b">大一寸</text>
  26. <view class="uy-bg-F76A8B uy-color-FFFFFF uy-font-18 uy-p-x-10 uy-p-y-2 uy-b-r-t-l-20 uy-b-r-b-r-20">热门</view>
  27. </view>
  28. <view class="uy-flex uy-m-t-10">
  29. <uy-text size="12" color="#999999" v-for="index2 in 2" :key="index2">
  30. 33x48mm
  31. </uy-text>
  32. </view>
  33. </view>
  34. <uy-image width="35" height="35" src="/static/img/index2.png"></uy-image>
  35. </view>
  36. <uy-loading-more></uy-loading-more>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. bannerList: [{
  45. image: '/static/img/banner.png'
  46. }],
  47. indexCapsule1: []
  48. }
  49. },
  50. onLoad() {
  51. this.init()
  52. },
  53. methods: {
  54. chooseDetails() {
  55. this.$openPage({name: 'photoMakerDetails', query: {}})
  56. },
  57. init() {
  58. let newsArr = this.$mConstDataConfig.indexCapsule1;
  59. this.indexCapsule1 = newsArr.map(item => {
  60. return {
  61. ...item,
  62. bgColor: this.capsuleStyle()
  63. }
  64. })
  65. },
  66. // 胶囊随机背景
  67. capsuleStyle() {
  68. let style = {
  69. background: this.$mConstDataConfig.bgSetting[this.$uy.randArr(this.$mConstDataConfig.bgSetting)],
  70. };
  71. return style
  72. }
  73. }
  74. }
  75. </script>
  76. <style lang="scss">
  77. </style>

有什么问题可小程序通过客服联系技术进行修复。

多多关注,后续会开发更多模板,如有需要开发的项目可以客服联系哦。

开发不易,有需要的可以客服联系,感谢大家的支持。

体验demo链接:http://demo.qianyupan.cn/h5/photo/#/

更多内容请关注微信小程序,源码、插件、模板及时更新

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/323865
推荐阅读
相关标签
  

闽ICP备14008679号