u-open-pic.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. <template>
  2. <view class="u-attr">
  3. <u-popup v-model="newValue" mode="center" :safeAreaInsetBottom="true" @close="close">
  4. <view class="u-content" >
  5. <view class='u-header main-between'>
  6. <view>开箱展示</view>
  7. <view @click="close"><image class="bd-icon" src="../../../static/image/icon/clear.png"></image></view>
  8. </view>
  9. <view class="u-body dir-top-nowrap cross-center">
  10. <!-- <image class="u-img" :src="img"></image>
  11. <text class="u-text">申请获取您绑定的手机号</text> -->
  12. <swiper
  13. class="swiper"
  14. v-bind:indicator-dots="picList.length>1"
  15. circular
  16. @change='bannerChange'
  17. indicator-color="rgba(255,255,255,.3)"
  18. indicator-active-color="#30353c"
  19. >
  20. <swiper-item v-for="(item, index) in picList" v-bind:key="index">
  21. <view class="swiper-img"
  22. @click="clickImage(index)" v-bind:style="{backgroundImage: 'url(' + item.pic_url + ')'}">
  23. </view>
  24. </swiper-item>
  25. </swiper>
  26. <view class="bd-subtitle">左右滑动查看开箱展示</view>
  27. </view>
  28. </view>
  29. </u-popup>
  30. </view>
  31. </template>
  32. <script>
  33. import uPopup from '../../basic-component/u-popup/u-popup.vue';
  34. import appPrice from "../goods/app-price.vue";
  35. import appMemberMark from "../app-member-mark/app-member-mark.vue";
  36. export default {
  37. name: "u-open-pic",
  38. props: {
  39. newValue:{
  40. type:Boolean,
  41. default:true
  42. },
  43. picList:{
  44. type:Array,
  45. default(){
  46. return []
  47. }
  48. }
  49. },
  50. data() {
  51. return {
  52. }
  53. },
  54. methods: {
  55. close: function() {
  56. this.$emit('closeOpenPic', false);
  57. },
  58. },
  59. components: {
  60. uPopup,
  61. appPrice,
  62. appMemberMark
  63. },
  64. computed: {
  65. },
  66. watch: {
  67. }
  68. }
  69. </script>
  70. <style scoped lang="scss">
  71. .u-model {
  72. width: 750upx;
  73. }
  74. .u-top {
  75. margin: 0 24upx;
  76. border-bottom: 1upx solid #e2e2e2;
  77. height: 140upx;
  78. }
  79. .u-close-image {
  80. width: 54upx;
  81. height: 78upx;
  82. padding: 24upx 0 24rpx 24rpx;
  83. margin-left: 24rpx;
  84. }
  85. .bd-close-image {
  86. width: 30upx;
  87. height: 30upx;
  88. }
  89. .u-pic {
  90. width: 200rpx;
  91. height: 200rpx;
  92. padding: 4upx;
  93. border-radius: 8rpx;
  94. position: relative;
  95. top: -64upx;
  96. background-color: #ffffff;
  97. }
  98. .u-img {
  99. width: 192rpx;
  100. height: 192rpx;
  101. background-color: #ffffff;
  102. }
  103. .u-info {
  104. width: 424upx;
  105. height: 136upx;
  106. padding: 45upx 0 0 24upx;
  107. }
  108. .u-scroll-view {
  109. width: 100%;
  110. max-height: calc(80vh - 154upx);
  111. }
  112. .u-attr-group {
  113. margin:24upx 32upx 0 32upx;
  114. border-bottom: 1upx solid #e2e2e2;
  115. }
  116. .u-number {
  117. height: 124upx;
  118. margin: 0 32upx;
  119. }
  120. .u-group-name {
  121. margin-bottom: 20upx;
  122. }
  123. .u-group-item {
  124. padding: 15upx 24upx;
  125. border-radius: 8upx;
  126. margin:0 20upx 20upx 0;
  127. font-size: 26upx;
  128. }
  129. .u-checked {
  130. color: #ffffff;
  131. }
  132. .u-unchecked {
  133. background-color: #f2f2f2;
  134. color: #353535;
  135. }
  136. .u-attr_num_0 {
  137. background-color: #f7f7f7;
  138. color: #cdcdcd;
  139. }
  140. .u-stock {
  141. font-size: 24upx;
  142. color: #999999;
  143. }
  144. .u-price {
  145. margin-right: 12upx;
  146. }
  147. .u-input {
  148. width: 88upx;
  149. height: 60upx;
  150. background-color: #f7f7f7;
  151. font-size: 20upx;
  152. color: #353535;
  153. text-align: center;
  154. }
  155. .u-input-box {
  156. width: 218upx;
  157. }
  158. .u-number-btn {
  159. height: 60upx;
  160. width: 60upx;
  161. background-repeat: no-repeat;
  162. background-size: 100% 100%;
  163. background-position: center;
  164. }
  165. .u-number-btn:first-child {
  166. margin-right: 5upx;
  167. }
  168. .u-number-btn:last-child {
  169. margin-left: 5upx;
  170. }
  171. .u-reduced-1 {
  172. background-image: url("../../../static/image/icon/can-be-reduced.png");
  173. }
  174. .u-reduced-0 {
  175. background-image: url("../../../static/image/cart/can-be-reduced.png");
  176. }
  177. .u-added-1 {
  178. background-image: url("../../../static/image/cart/can-be-added.png");
  179. }
  180. .u-text {
  181. font-size: 26upx;
  182. color: #666666;
  183. }
  184. .u-bottom {
  185. height: 110upx;
  186. }
  187. .u-btn {
  188. text-align: center;
  189. line-height: 110upx;
  190. }
  191. .u-btn-color {
  192. color: #ffffff;
  193. }
  194. .service_title{
  195. padding-top: 10px;
  196. margin:14px 10px 10px;
  197. font-weight: 700;
  198. font-size: 13px;
  199. }
  200. .service_item{
  201. margin:14px 10px 0px;
  202. font-size:26rpx;
  203. color:#666;
  204. display:flex;
  205. justify-content: space-between;
  206. }
  207. .service_value{
  208. display:flex;
  209. flex-wrap: wrap;
  210. padding:0px 10px;
  211. }
  212. .service_block{
  213. min-width:46%;
  214. height: 28px;
  215. line-height:26px;
  216. border: 1px solid #f5f5f5;
  217. border-radius: 16px;
  218. text-align:center;
  219. margin-right: 10px;
  220. margin-top: 10px;
  221. font-size: 12px;
  222. background-color: #f5f5f5;
  223. position: relative;
  224. }
  225. .service_block_active{
  226. color:#f21c1c;
  227. border:1px solid #f21c1c;
  228. }
  229. .swiper {
  230. height: #{500rpx};
  231. width: #{500rpx};
  232. .swiper-img {
  233. width: 100%;
  234. height: #{500rpx};
  235. background-size: cover;
  236. background-repeat: no-repeat;
  237. background-position: center;
  238. position: relative;
  239. }
  240. }
  241. .u-content {
  242. background-color: #ffffff;
  243. }
  244. .u-header {
  245. padding: 5upx;
  246. border-bottom: 1upx solid #eeeeee;
  247. color: #353535;
  248. font-size: 28upx;
  249. }
  250. .u-img {
  251. width: 88upx;
  252. height: 88upx;
  253. text-align: center;
  254. margin: 32upx 0 40upx;
  255. }
  256. .u-body {
  257. padding: 0 24upx;
  258. }
  259. .u-text {
  260. margin-bottom: 40upx;
  261. font-size: 26upx;
  262. color: #666666;
  263. }
  264. .bd-icon {
  265. width: 40upx;
  266. height: 40upx;
  267. }
  268. .bd-subtitle{
  269. padding: 5upx;
  270. font-size: 24upx;
  271. line-height: 44upx;
  272. color: #999999;
  273. }
  274. </style>