bazaar.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. <template>
  2. <view class="container">
  3. <view class="top">
  4. <!-- <image class="top-bg" src="../../static/img/top-bg.png" mode=""></image> -->
  5. <view class="top-main flex">
  6. <view class="search-box flex" @click="clickSearch()">
  7. <image class="search" src="../../static/icon/search-h.png" mode=""></image>
  8. <view class="search-font">输入关键词搜索</view>
  9. </view>
  10. </view>
  11. <!-- <swiper class="carousel" autoplay="true" duration="400" interval="5000" @change="swiperChange">
  12. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item"
  13. @click="bannerNavToUrl(item)">
  14. <image :src="item.pic" />
  15. </swiper-item>
  16. </swiper> -->
  17. </view>
  18. <view class="box">
  19. <view class="box-title">
  20. <view class="left">
  21. 数字藏品
  22. </view>
  23. <view class="right">
  24. 查看更多 >
  25. </view>
  26. </view>
  27. <view class="box-content">
  28. <view class="img">
  29. <image src="../../static/index/nvwang.png" mode=""></image>
  30. </view>
  31. <view class="content-title">
  32. <view class="title">
  33. 黑道女王
  34. </view>
  35. <view class="text">
  36. 黑道研究会 发行
  37. </view>
  38. <view class="text ">
  39. 价格: <text >¥99.99</text>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. <!-- 客服 -->
  45. <uni-popup ref="popupkf" type="center">
  46. <view class="popup-box">
  47. <view class="img"><image src="../../static/img/img009.png" mode=""></image></view>
  48. <view class="mian">
  49. <view class="delivery">
  50. <view class="title">已经为您定制专属客服</view>
  51. <image src="../../static/img/img010.png" mode=""></image>
  52. </view>
  53. <view class="nocancel">客服VX:{{ text }}</view>
  54. <view class="comfirm-box">
  55. <view class="cancel" @click="kfClose()">取消</view>
  56. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  57. </view>
  58. </view>
  59. </view>
  60. </uni-popup>
  61. </view>
  62. </template>
  63. <script>
  64. import { mapState, mapMutations } from 'vuex';
  65. // #ifdef H5
  66. import { weixindata, shareLoad } from '@/utils/wxAuthorized';
  67. // #endif
  68. export default {
  69. data() {
  70. return {
  71. text: '',
  72. checkid: 0,
  73. titleNViewBackground: '',
  74. longitude: 0, //经度
  75. latitude: 0, //纬度
  76. swiperCurrent: 0,
  77. swiperLength: 0,
  78. carouselList: [], //轮播列表
  79. bastList: [], //会员礼包
  80. integralList: [], //兑换专区
  81. page: 1,
  82. limit: 10,
  83. loadType: 'more',
  84. text: [],
  85. article: []
  86. };
  87. },
  88. computed: {
  89. ...mapState(['loginInterceptor', 'baseURL']),
  90. ...mapState('user', ['hasLogin', 'userInfo'])
  91. },
  92. onLoad: function(option) {
  93. },
  94. onShow: function() {
  95. },
  96. onReachBottom() {
  97. this.getproducts();
  98. },
  99. methods: {
  100. ...mapMutations(['setLat', 'setLon']),
  101. // 點擊搜索框
  102. clickSearch() {
  103. uni.navigateTo({
  104. // url: '/pages/product/search'
  105. });
  106. },
  107. }
  108. };
  109. </script>
  110. <style lang="scss">
  111. page{
  112. width: 750rpx;
  113. height: 100%;
  114. background: #111111;
  115. }
  116. .top {
  117. position: relative;
  118. width: 100%;
  119. height: 360rpx;
  120. .top-bg {
  121. position: absolute;
  122. top: 0;
  123. left: 0;
  124. right: 0;
  125. width: 100%;
  126. height: 100%;
  127. }
  128. .top-main {
  129. position: relative;
  130. z-index: 2;
  131. padding: 30rpx;
  132. .search-box {
  133. justify-content: center;
  134. width: 698rpx;
  135. height: 60rpx;
  136. background: #191919;
  137. // box-shadow: 0px 10rpx 20rpx 0px rgba(4, 114, 69, 0.22);
  138. border-radius: 30rpx;
  139. .search {
  140. width: 34rpx;
  141. height: 34rpx;
  142. }
  143. .search-font {
  144. margin-left: 14rpx;
  145. font-size: 28rpx;
  146. font-family: PingFang SC;
  147. font-weight: 500;
  148. color: #a4a4a4;
  149. }
  150. }
  151. }
  152. }
  153. .box{
  154. margin: 0 30rpx;
  155. .box-title{
  156. display: flex;
  157. justify-content: space-between;
  158. .left{
  159. font-size: 38rpx;
  160. font-family: PingFang SC;
  161. font-weight: bold;
  162. color: #FFFFFF;
  163. line-height: 120rpx;
  164. }
  165. .right{
  166. font-size: 24rpx;
  167. font-family: PingFang SC;
  168. font-weight: 500;
  169. color: #FFFFFF;
  170. line-height: 120rpx;
  171. }
  172. }
  173. .box-content{
  174. width: 690rpx;
  175. height: 915rpx;
  176. margin: 50rpx 0;
  177. .img{
  178. width: 690rpx;
  179. height: 690rpx;
  180. image{
  181. width: 100%;
  182. height: 100%;
  183. }
  184. }
  185. .content-title{
  186. margin-top: -10rpx;
  187. padding: 30rpx 20rpx ;
  188. border-bottom-left-radius: 10rpx;
  189. border-bottom-right-radius: 10rpx;
  190. border: 2rpx solid #533A6A;
  191. // box-shadow: 0px 0px 20rpx 0px rgba(79,59,103,0.0600);
  192. .title{
  193. font-size: 39rpx;
  194. font-weight: bold;
  195. color: #FFFFFF;
  196. margin-bottom: 20rpx;
  197. }
  198. .text{
  199. color: #FFFFFF;
  200. font-size: 28rpx;
  201. }
  202. .text>text{
  203. font-size: 32rpx;
  204. font-weight: 500;
  205. color: #A581FF;
  206. line-height: 39px;
  207. }
  208. }
  209. }
  210. }
  211. .popup-box {
  212. width: 522rpx;
  213. height: 605rpx;
  214. background-color: #ffffff;
  215. border-radius: 20rpx;
  216. position: relative;
  217. .img {
  218. position: relative;
  219. top: -56rpx;
  220. left: 0;
  221. width: 522rpx;
  222. height: 132rpx;
  223. display: flex;
  224. justify-content: center;
  225. image {
  226. border-radius: 20rpx 20rpx 0 0;
  227. width: 450rpx;
  228. height: 132rpx;
  229. }
  230. }
  231. .mian {
  232. margin-top: -44rpx;
  233. display: flex;
  234. flex-direction: column;
  235. align-items: center;
  236. // padding: 32rpx 32rpx;
  237. background-color: #ffffff;
  238. border-radius: 0 0 20rpx 20rpx;
  239. text-align: center;
  240. .delivery {
  241. font-size: 40rpx;
  242. color: #333333;
  243. display: flex;
  244. align-items: center;
  245. flex-direction: column;
  246. .title {
  247. }
  248. image {
  249. margin-top: 48rpx;
  250. width: 172rpx;
  251. height: 160rpx;
  252. }
  253. }
  254. .nocancel {
  255. font-size: 32rpx;
  256. color: #333333;
  257. margin-top: 14rpx;
  258. }
  259. .comfirm-box {
  260. margin-top: 52rpx;
  261. display: flex;
  262. // margin-bottom: 32rpx;
  263. // justify-content: space-around;
  264. .cancel {
  265. display: flex;
  266. align-items: center;
  267. justify-content: center;
  268. width: 197rpx;
  269. height: 74rpx;
  270. border: 1px solid #dcc786;
  271. border-radius: 38rpx;
  272. font-size: 32rpx;
  273. color: #605128;
  274. }
  275. .comfirm {
  276. margin-left: 32rpx;
  277. display: flex;
  278. align-items: center;
  279. justify-content: center;
  280. width: 197rpx;
  281. height: 74rpx;
  282. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  283. border-radius: 38px;
  284. font-size: 32rpx;
  285. color: #605128;
  286. }
  287. }
  288. }
  289. }
  290. .tongz {
  291. width: 690rpx;
  292. height: 70rpx;
  293. margin: 32rpx auto 0;
  294. padding: 18rpx 30rpx 18rpx 24rpx;
  295. align-items: center;
  296. position: relative;
  297. .tongz-bg {
  298. position: absolute;
  299. top: 0;
  300. right: 0;
  301. left: 0;
  302. width: 690rpx;
  303. height: 70rpx;
  304. image {
  305. width: 100%;
  306. height: 100%;
  307. }
  308. }
  309. .tongz-left {
  310. width: 640rpx;
  311. .image-left {
  312. width: 28rpx;
  313. height: 34rpx;
  314. }
  315. .tongz-font {
  316. margin-left: 22rpx;
  317. font-size: 28rpx;
  318. font-family: Source Han Sans CN;
  319. font-weight: 400;
  320. color: #0f253a;
  321. }
  322. }
  323. .tongz-right {
  324. position: relative;
  325. z-index: 11;
  326. width: 12rpx;
  327. height: 26rpx;
  328. image {
  329. width: 100%;
  330. height: 100%;
  331. }
  332. }
  333. }
  334. </style>