shop.vue 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view>
  3. <view class="top" :style="'height: '+ systems.barHeight + 'rpx;'">
  4. <image src="../../static/pages/images/topbg.png" class="topbg"></image>
  5. <view class="title" :style="'line-height: '+ systems.navigationHeight + 'rpx;top:' + systems.ktxStatusHeight + 'rpx;'">小店团</view>
  6. </view>
  7. <view :style="'height: '+ systems.barHeight + 'rpx;'"></view>
  8. <view class="tcon">
  9. <image src="../../static/pages/images/mbg.png" class="tcbg"></image>
  10. <view class="merchant ddflex">
  11. <image src="../../static/pages/images/blue/wdbg.png" mode="aspectFit" class="logo"></image>
  12. <view class="fflex">
  13. <view class="ddflex">
  14. <view class="merchant-name tover">世纪东城林雨店</view>
  15. <view class="change ddflex">切换<image src="../../static/pages/images/change.png"></image></view>
  16. </view>
  17. <view class="merchant-info ddflex"><image src="../../static/pages/images/pinzhi.png"></image>高品低价 售后无忧</view>
  18. </view>
  19. <button open-type="share" class="m-share"><image src="../../static/pages/images/share1.png"></image>分享</button>
  20. </view>
  21. <view class="con">
  22. <view class="search ddflex">
  23. <image src="../../static/pages/images/ssico.png"></image>
  24. <view class="fflex">搜索你想要的商品</view>
  25. </view>
  26. <view class="nav ddflex">
  27. <view class="li">
  28. <image src="../../static/pages/images/navico1.png" mode="aspectFill"></image>
  29. <view>团长说</view>
  30. </view>
  31. <view class="li">
  32. <image src="../../static/pages/images/navico2.png" mode="aspectFill"></image>
  33. <view>店长推荐</view>
  34. </view>
  35. <view class="li">
  36. <image src="../../static/pages/images/navico3.png" mode="aspectFill"></image>
  37. <view>热卖爆款</view>
  38. </view>
  39. <view class="li">
  40. <image src="../../static/pages/images/navico4.png" mode="aspectFill"></image>
  41. <view>联系店长</view>
  42. </view>
  43. </view>
  44. <view class="tab ddflex">
  45. <view class="li">
  46. <view>正在开团</view>
  47. <text>抢到就是赚到</text>
  48. </view>
  49. <view class="li">
  50. <view>开团预告</view>
  51. <text>提前知鲜</text>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. <view></view>
  57. </view>
  58. </template>
  59. <script>
  60. const app = getApp();
  61. const req = require('../../utils/request.js');
  62. const api = require('../../utils/api.js');
  63. const util = require('../../utils/util.js');
  64. export default {
  65. data() {
  66. return {
  67. systems: '',
  68. };
  69. },
  70. onLoad: function(options) {
  71. },
  72. onShow(){
  73. },
  74. methods: {
  75. },
  76. mounted() {
  77. const systemInfo = uni.getSystemInfoSync();
  78. // px转换到rpx的比例
  79. let pxToRpxScale = 750 / systemInfo.windowWidth;
  80. let systems = {
  81. ktxStatusHeight: systemInfo.statusBarHeight * pxToRpxScale, // 状态栏的高度
  82. navigationHeight: 44 * pxToRpxScale // 导航栏的高度
  83. };
  84. systems.barHeight = systems.ktxStatusHeight + systems.navigationHeight;
  85. this.systems = systems;
  86. }
  87. };
  88. </script>
  89. <style>
  90. @import "./shop.css";
  91. </style>