subsidy.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <template>
  2. <!-- 百万补贴 -->
  3. <view style="position: relative;">
  4. <image src="static/images/back.png"
  5. style="width: 750rpx;height: 468rpx;position: absolute;top: 0;left: 0;z-index: -1;" mode=""></image>
  6. <u-navbar :safeAreaInsetTop="true" bgColor="rgba(0,0,0,0)" :placeholder='true'>
  7. <view class="u-nav-slot u-flex" slot="left">
  8. <u-icon name="arrow-left" size="19" color='rgba(253, 252, 251, 1)'></u-icon>
  9. <view class="input">
  10. <u-icon name="search" color="rgba(153, 153, 153, 1)" size="32"></u-icon>
  11. <input type="text" :placeholder="Pleaseproductname" />
  12. </view>
  13. </view>
  14. </u-navbar>
  15. <!-- 标签 -->
  16. <view class=" u-row-center" style="margin-top: 52rpx;display: flex;flex-direction: column;align-items: center;">
  17. <!-- <image src="static/images/img1.png" style="width: 484rpx;height: 52rpx;" mode=""></image> -->
  18. <!-- <image src="static/images/img2.png" style="width: 346rpx;height: 64rpx;" mode=""></image> -->
  19. <image src="static/images/goshop.png" style="width: 382rpx;height: 52rpx;" mode=""></image>
  20. <!-- <image src="static/images/img1.png" style="width: 484rpx;height: 52rpx;" mode=""></image> -->
  21. <view class="biaopqian" style="margin-top: 20rpx;">
  22. <text>{{i18n.Goodgoods}}</text>
  23. <text style='margin-left:20rpx;margin-right:20rpx'>|</text>
  24. <text>{{i18n.Saveeverything}}</text>
  25. <text style='margin-left:20rpx;margin-right:20rpx'>|</text>
  26. <text>{{i18n.willpay}}</text>
  27. </view>
  28. </view>
  29. <!-- 商品 -->
  30. <view class="box">
  31. <view class="" style="margin-left: -22rpx;">
  32. <u-tabs :activeStyle="{
  33. color: 'rgba(248, 53, 39, 1)',
  34. fontWeight: 'bold',
  35. transform: 'scale(1.05)'
  36. }" :list="list1" lineColor='rgba(248, 53, 39, 1)' @click="click"></u-tabs>
  37. </view>
  38. <view class="item u-flex" v-for="(child,index) in 6">
  39. <image src="../static/images/logo.png" style="width: 232rpx;height: 232rpx;" mode=""></image>
  40. <view class="u-row-between"
  41. style="height: 232rpx;display: flex;flex-direction: column;margin-left: 20rpx;">
  42. <view class="">
  43. <text>得宝天然无香抽取式面巾纸9…</text>
  44. <view class="u-flex" style="margin-top: 18rpx;column-gap: 18rpx;">
  45. <text class="tabs baoyou"
  46. style="background:rgba(248, 50, 36, 1) ;border: 2rpx solid rgba(248, 50, 36, 0);color:#FFFFFF ;">包邮</text>
  47. <text class="tabs" v-for="(item,idx) in 3" :key="idx">
  48. {{i18n.willpay}}
  49. </text>
  50. </view>
  51. </view>
  52. <view class="backimg" style="position: relative;">
  53. <image src="./static/images/tab.png"
  54. style="width: 100%;height: 100%;position: absolute;left: 0;top: 0;z-index: 0;" mode="">
  55. </image>
  56. <!-- <view class="u-flex u-row-between"
  57. style="position: relative;z-index: 1;padding:0 24rpx ;text-align: center;line-height: 68rpx;">
  58. <view class="">
  59. <text class="textone">补贴价</text>
  60. <text class='texttwo' style="margin-left: 12rpx;">¥</text>
  61. <text class='texttwo' style="font-size: 40rpx;">16</text>
  62. <text class='texttwo'>.13</text>
  63. </view>
  64. <view class="">
  65. <text class="textthree">已补</text>
  66. <text class='textfour' style="margin-left: 8rpx;">¥</text>
  67. <text class='textfour' style="font-size: 28rpx;">25.8</text>
  68. </view>
  69. </view> -->
  70. <view class="u-flex u-row-between"
  71. style="position: relative;z-index: 1;padding:0 24rpx ;text-align: center;line-height: 68rpx;">
  72. <view class="">
  73. <text class="textone">{{i18n.Subsidized}}</text>
  74. <text class='texttwo' style="margin-left: 12rpx;">¥</text>
  75. <text class='texttwo' style="font-size: 40rpx;">16</text>
  76. <text class='texttwo'>.13</text>
  77. </view>
  78. <!-- <view class=""> -->
  79. <image src="static/images/qiang.png" style="width: 48rpx;height: 38rpx;" mode=""></image>
  80. <!-- </view> -->
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </template>
  88. <script>
  89. export default {
  90. data() {
  91. return {
  92. list1: [{
  93. name: '关注',
  94. }, {
  95. name: '推荐',
  96. }, {
  97. name: '电影'
  98. }, {
  99. name: '科技'
  100. }, {
  101. name: '音乐'
  102. }, {
  103. name: '美食'
  104. }, {
  105. name: '文化'
  106. }, {
  107. name: '财经'
  108. }, {
  109. name: '手工'
  110. }]
  111. };
  112. },
  113. computed: {
  114. i18n() {
  115. return this.$t('index')
  116. }
  117. },
  118. }
  119. </script>
  120. <style lang="scss">
  121. .box {
  122. width: 750rpx;
  123. height: 1266rpx;
  124. background: #F4F4F4;
  125. border-radius: 24rpx 24rpx 0rpx 0rpx;
  126. margin-top: 36rpx;
  127. padding: 32rpx;
  128. box-sizing: border-box;
  129. .baoyou {
  130. font-family: PingFangSC, PingFang SC;
  131. font-weight: 400;
  132. font-size: 20rpx;
  133. color: #FFFFFF;
  134. line-height: 28rpx;
  135. text-align: left;
  136. font-style: normal;
  137. }
  138. .textone {
  139. font-family: PingFangSC, PingFang SC;
  140. font-weight: 400;
  141. font-size: 20rpx;
  142. color: #F83224;
  143. line-height: 28rpx;
  144. text-align: left;
  145. font-style: normal;
  146. }
  147. .texttwo {
  148. font-family: HarmonyOS_Sans_Medium;
  149. font-size: 24rpx;
  150. color: #F83224;
  151. line-height: 34rpx;
  152. text-align: left;
  153. font-style: normal;
  154. }
  155. .textthree {
  156. font-family: PingFangSC, PingFang SC;
  157. font-weight: 400;
  158. font-size: 20rpx;
  159. color: #FDFCFB;
  160. line-height: 28rpx;
  161. text-align: left;
  162. font-style: normal;
  163. }
  164. .textfour {
  165. font-family: PingFangSC, PingFang SC;
  166. font-weight: 400;
  167. font-size: 20rpx;
  168. color: #FDFCFB;
  169. line-height: 28rpx;
  170. text-align: left;
  171. font-style: normal;
  172. }
  173. .backimg {
  174. width: 418rpx;
  175. height: 68rpx;
  176. }
  177. .item {
  178. margin-top: 36rpx;
  179. background: #FDFCFB;
  180. border-radius: 16rpx;
  181. width: 702rpx;
  182. padding: 28rpx 16rpx;
  183. box-sizing: border-box;
  184. // height: 256rpx;
  185. }
  186. .tabs {
  187. padding: 0 8rpx;
  188. height: 32rpx;
  189. border-radius: 4rpx;
  190. border: 1rpx solid #E5BC78;
  191. font-family: PingFangSC, PingFang SC;
  192. font-weight: 400;
  193. font-size: 20rpx;
  194. color: #D48700;
  195. line-height: 28rpx;
  196. text-align: center;
  197. font-style: normal;
  198. }
  199. }
  200. .input {
  201. width: 458rpx;
  202. height: 64rpx;
  203. background: #FDFCFB;
  204. border-radius: 36rpx;
  205. padding: 0 24rpx;
  206. box-sizing: border-box;
  207. margin-left: 16rpx;
  208. display: flex;
  209. align-items: center;
  210. }
  211. .biaopqian {
  212. font-family: PingFangSC, PingFang SC;
  213. font-weight: 400;
  214. font-size: 24rpx;
  215. color: #FFFFFF;
  216. line-height: 34rpx;
  217. text-align: left;
  218. font-style: normal;
  219. }
  220. </style>