Browse Source

[edit][美元&开箱图片]

zhangwei 2 years ago
parent
commit
0c1a558783

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


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


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


+ 1 - 1
src/view/iframe/treasure-hunt/components/open-box.vue

@@ -3,7 +3,7 @@
         <div class="background"></div>
         <div class="background"></div>
         <!-- 开奖页 -->
         <!-- 开奖页 -->
         <div class="content">
         <div class="content">
-            <img :src="require('@/assets/img/icon-silver-open-box.png')" alt="" class="popIn" />
+            <img :src="state.open_box.icon" alt="" class="popIn" />
             <div class="mark">
             <div class="mark">
                 <p>You Win</p>
                 <p>You Win</p>
                 <div class="money">{{ state.open_box.data.usdAmountValue }}</div>
                 <div class="money">{{ state.open_box.data.usdAmountValue }}</div>

+ 14 - 0
src/view/iframe/treasure-hunt/index.vue

@@ -91,6 +91,8 @@ const handleCommon = (res, callback) => {
     }
     }
     callback && callback()
     callback && 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')
 
 
 state.treasureOpen = () => {
 state.treasureOpen = () => {
     treasureOpen({
     treasureOpen({
@@ -100,8 +102,20 @@ state.treasureOpen = () => {
         }
         }
     }).then((res) => {
     }).then((res) => {
         if (res.code == 0) {
         if (res.code == 0) {
+            for (let i in state.open_box) {
+                if (state.boxs[i].id == state.treasureId) {
+                    if (i > 0) {
+                        state.open_box.icon = gold_open_box_big
+                    } else {
+                        state.open_box.icon = silver_open_box_big
+                    }
+                    break
+                }
+            }
             state.open_box.show = true
             state.open_box.show = true
             state.open_box.data = res.data
             state.open_box.data = res.data
+
+            // icon
             state.init(() => {
             state.init(() => {
                 state.inviteInit()
                 state.inviteInit()
             })
             })

+ 1 - 1
src/view/iframe/treasure-hunt/invite.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
     <!-- 邀请页 -->
     <!-- 邀请页 -->
     <div class="area-process">
     <div class="area-process">
-        <v-head :left-data="state.detail.postUserInfo || null" :rightData="state.detail.remainAmountValue"></v-head>
+        <v-head :left-data="state.detail.postUserInfo || null" :rightData="state.detail.remainAmountUsdValue"></v-head>
         <div class="box-process">
         <div class="box-process">
             <div class="item" v-for="item, i in state.boxs">
             <div class="item" v-for="item, i in state.boxs">
                 <hover-tip :txt="item.txt" v-show="item.show || item.openStatus" :icon="item.hover_icon"></hover-tip>
                 <hover-tip :txt="item.txt" v-show="item.show || item.openStatus" :icon="item.hover_icon"></hover-tip>