diff --git a/api/api.js b/api/api.js index 3b040b8..4363efc 100644 --- a/api/api.js +++ b/api/api.js @@ -341,4 +341,11 @@ export function getCateData(data) { return request.get("diy/category", data, { noAuth: true }); +} +/** + * 用户实名认证 + * @param {Object} data + */ +export function userReal(data) { + return request.post("user/real", data, { noAuth: true }); } \ No newline at end of file diff --git a/components/blindBox/blindBox.vue b/components/blindBox/blindBox.vue index 7c8fb5b..0137f87 100644 --- a/components/blindBox/blindBox.vue +++ b/components/blindBox/blindBox.vue @@ -9,7 +9,7 @@ 恭喜你获得 {{wheel}} 次盲盒抽奖机会 - + @@ -245,12 +245,16 @@ background-position: center; } .blind-box{ - width: 80%; - height: 500rpx; - background: #D753FC; + width: 100%; + height: 480rpx; + // background: #D753FC; + background-image: url('@/static/images/mh-bg.png'); + background-repeat: no-repeat; + background-size: 100%; display: flex; flex-wrap: wrap; padding: 40rpx; + padding-bottom: 80rpx; grid-gap: 20rpx; .box-item{ flex: 30%; diff --git a/components/treasureBox/index.vue b/components/treasureBox/index.vue index b947ef8..b2f125e 100644 --- a/components/treasureBox/index.vue +++ b/components/treasureBox/index.vue @@ -2,13 +2,17 @@ - - - - - + + + + + + + + 立刻开启 + @@ -39,6 +43,7 @@ return { wheel:0, popShow:false, + gifShow:false, blindShow:false, list:[], drawInfo:{ @@ -56,8 +61,15 @@ this.blindShow=true; }, openBox(){ - this.popShow=true; + this.gifShow=true; + setTimeout(()=>{ + this.gifShow=false; + this.popShow=true; + },1500) }, + close(){ + this.$emit('closeTreasureBox') + } } } @@ -69,6 +81,8 @@ position: fixed; top: 0; z-index: 1000; + padding-top: 200rpx; + background-color: rgba(0,0,0,1); .coupon_popups{ z-index: 999; position: fixed; @@ -83,7 +97,7 @@ top: 0; width: 100%; height: 100%; - background-color: rgba(0,0,0,.5); + background-color: rgba(0,0,0,.8); } .con{ @@ -151,9 +165,8 @@ } .bg { width: 100%; - height: 100vh; - background-image: url('https://plus.hwms.shop/uploads/def/20240402/de991ebf4c190afcc5de692a910949f4.png'); - background-size: 100% 100%; + // height: 100vh; + position: relative; padding-bottom: 40rpx; .rule { @@ -180,13 +193,22 @@ } } .top{ - height: 330rpx; + width: 488rpx; + height: 140rpx; + background-image: url('@/static/images/box-title.png'); + background-size: 100% 100%; + margin: 0 auto; } .lucky-draw{ display: flex; flex-direction: column; align-items: center; justify-content: center; + width: 670rpx; + height: 670rpx; + margin: 0 auto; + // background-image: url('@/static/images/box.png'); + background-size: 100% 100%; .title{ position: relative; bottom: 20rpx; @@ -203,6 +225,21 @@ background-position: center; } } + .btn{ + width: 460rpx; + height: 100rpx; + background: linear-gradient(180deg, #FEFD65 0%, #F3C936 100%); + border-radius: 60rpx; + border: 4rpx solid #FFFFFF; + font-weight: 600; + font-size: 36rpx; + color: #530115; + line-height: 100rpx; + text-align: center; + margin: 0 auto; + position: relative; + top: 160rpx; + } .lucky-draw-info{ margin: 80rpx auto; width: 680rpx; diff --git a/pages/users/real_name_authentication/index.vue b/pages/users/real_name_authentication/index.vue index 9073d9c..2e52524 100644 --- a/pages/users/real_name_authentication/index.vue +++ b/pages/users/real_name_authentication/index.vue @@ -1,16 +1,16 @@ - \ No newline at end of file diff --git a/pages/users/user_sgin/index.vue b/pages/users/user_sgin/index.vue index 3b62b82..ac4403c 100644 --- a/pages/users/user_sgin/index.vue +++ b/pages/users/user_sgin/index.vue @@ -51,7 +51,7 @@ 点击加载更多 - + @@ -101,6 +101,9 @@ } }, methods: { + closeBox(){ + this.treasureShow=false; + }, go(){ this.treasureShow=true; }, diff --git a/static/images/box-title.png b/static/images/box-title.png new file mode 100644 index 0000000..e52573f Binary files /dev/null and b/static/images/box-title.png differ diff --git a/static/images/box.gif b/static/images/box.gif new file mode 100644 index 0000000..a210f9c Binary files /dev/null and b/static/images/box.gif differ diff --git a/static/images/box.png b/static/images/box.png new file mode 100644 index 0000000..9741170 Binary files /dev/null and b/static/images/box.png differ diff --git a/static/images/box2.png b/static/images/box2.png new file mode 100644 index 0000000..3e828a6 Binary files /dev/null and b/static/images/box2.png differ diff --git a/static/images/close2.png b/static/images/close2.png new file mode 100644 index 0000000..f2fc14b Binary files /dev/null and b/static/images/close2.png differ diff --git a/static/images/mh-bg.png b/static/images/mh-bg.png new file mode 100644 index 0000000..6fe9a9c Binary files /dev/null and b/static/images/mh-bg.png differ diff --git a/static/images/mh-btn.png b/static/images/mh-btn.png new file mode 100644 index 0000000..70c00cf Binary files /dev/null and b/static/images/mh-btn.png differ diff --git a/static/images/mh-item-bg.png b/static/images/mh-item-bg.png new file mode 100644 index 0000000..be6bfa8 Binary files /dev/null and b/static/images/mh-item-bg.png differ diff --git a/static/images/mh-item.png b/static/images/mh-item.png new file mode 100644 index 0000000..f0e66d6 Binary files /dev/null and b/static/images/mh-item.png differ diff --git a/static/images/mh-title.png b/static/images/mh-title.png new file mode 100644 index 0000000..3c57c73 Binary files /dev/null and b/static/images/mh-title.png differ