Browse Source

[edit][图片]

zhangwei 2 năm trước cách đây
mục cha
commit
682a9bb31c

BIN
src/assets/img/icon-gold-close-box.png


BIN
src/assets/img/icon-gold-open-box-big.png


BIN
src/assets/img/icon-gold-open-box.png


BIN
src/assets/img/icon-purple-close-box.png


BIN
src/assets/img/icon-purple-open-big.png


BIN
src/assets/img/icon-purple-open-box.png


BIN
src/assets/img/icon-silver-close-box.png


BIN
src/assets/img/icon-silver-open-box-big.png


BIN
src/assets/img/icon-silver-open-box.png


+ 4 - 4
src/view/iframe/treasure-hunt/components/boxs.vue

@@ -117,8 +117,8 @@ state.boxs = [{
     flash_width: '90px',
     icon_margin_left: '31px',
     flash_margin_top: `-${90 / 2}px`,
-    line_width: '55px',
-    line_left: `-${55 - 15}px`,
+    line_width: '60px',
+    line_left: `-${60 - 15}px`,
     money_color: '#FCB936', money_top: '-15px'
 
 }, {
@@ -130,8 +130,8 @@ state.boxs = [{
     flash_width: '108px',
     icon_margin_left: '23px',
     flash_margin_top: `-${108 / 2}px`,
-    line_width: '58px',
-    line_left: `-${58 - 20}px`,
+    line_width: '60px',
+    line_left: `-${60 - 20}px`,
     money_color: '#FCB936', money_top: '-10px'
 }]
 

+ 2 - 2
src/view/iframe/treasure-hunt/components/carousel.vue

@@ -25,7 +25,7 @@
 </template>
 <script setup>
 import { inject, ref, onMounted, watch } from 'vue'
-import { receiveList } from '@/http/treasure.js'
+import { receiveListV2 } from '@/http/treasure.js'
 let content_success_message = ref(null)
 let state = inject('state')
 let global_refresh = inject('global_refresh')
@@ -43,7 +43,7 @@ onMounted(() => {
 })
 
 const init = () => {
-    receiveList({
+    receiveListV2({
         params: {
             postId: state.postId,
             pageNum: 1,

+ 8 - 5
src/view/iframe/treasure-hunt/index.vue

@@ -190,6 +190,7 @@ const handleCommon = (res, callback) => {
 }
 let silver_open_box_big = require('@/assets/img/icon-silver-open-box-big.png')
 let gold_open_box_big = require('@/assets/img/icon-gold-open-box-big.png')
+let purple_open_box_big = require('@/assets/img/icon-purple-open-big.png')
 
 state.refreshInit = () => {
     state.init(() => {
@@ -212,10 +213,12 @@ state.treasureOpen = () => {
             // icon
             for (let i in state.boxs) {
                 if (state.boxs[i].id == state.treasureId) {
-                    if (i > 0) {
-                        state.open_box.icon = gold_open_box_big
-                    } else {
+                    if (i == 0) {
                         state.open_box.icon = silver_open_box_big
+                    } else if (i == 1 || i == 2) {
+                        state.open_box.icon = gold_open_box_big
+                    } else if (i == 3) {
+                        state.open_box.icon = purple_open_box_big
                     }
                     break
                 }
@@ -314,8 +317,8 @@ function onRuntimeMsg() {
                 }
                 break
             case 'CONTENT_API_GET_TWEET_USER_INFO_RES':
-                if(state.iframeId != req.iframeId) {
-                  return;
+                if (state.iframeId != req.iframeId) {
+                    return;
                 }
                 let twitterFans = 0;
                 let { user } = req.data || {};