geer-builder 1.2.847 → 1.2.849

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/GSlotChange.vue +14 -2
  2. package/package.json +1 -1
package/GSlotChange.vue CHANGED
@@ -4,7 +4,7 @@
4
4
  <div class="slot-list" v-if="!loading_slot">
5
5
  <div class="slot-list__card" v-for="slot in _slot_list" @click="chooseSlot(slot)" :key="slot.code">
6
6
  <g-card class="card">
7
- <div class="code" v-if="slot.hasOwnProperty('temp_ctr')">{{ slot.temp_ctr }}</div>
7
+ <div class="code counter" v-if="slot.hasOwnProperty('temp_ctr')">{{ slot.temp_ctr }}</div>
8
8
  <div class="code">{{ slot.slot_code }}</div>
9
9
  <div class="membership">{{ slot.membership.membership_name }}</div>
10
10
  <div class="rank">{{ slot.rank.rank_name }}</div>
@@ -64,6 +64,7 @@ export default
64
64
  this.slot_display_counter = this.main_currency.data().value.hasOwnProperty("slot_display_counter") ? this.main_currency.data().value.slot_display_counter : false;
65
65
  this.loadSlotOwned();
66
66
  this.main_currency = this.main_currency.data().value.main_currency;
67
+
67
68
  }
68
69
  },
69
70
  methods:
@@ -104,6 +105,8 @@ export default
104
105
  },
105
106
  async loadSlotOwned()
106
107
  {
108
+ let temp_total = 0;
109
+
107
110
  if(this.user_info)
108
111
  {
109
112
  if(this.slot_display_counter)
@@ -146,7 +149,11 @@ export default
146
149
  this._slot_list[i].temp_ctr = ctr;
147
150
  ctr++;
148
151
  }
152
+
153
+ temp_total = temp_total +this._slot_list[i].wallet
154
+
149
155
  });
156
+ this.$emit('totalWallet', temp_total);
150
157
  }
151
158
  }
152
159
  }
@@ -156,17 +163,22 @@ export default
156
163
  }
157
164
  }
158
165
 
166
+
167
+
159
168
  if(this._slot_list.length == 1 && !this.user_info.active_slot)
160
169
  {
161
170
  this.chooseSlot(this._slot_list[0]);
171
+ temp_total = this._slot_list[0].wallet
162
172
  }
163
173
 
174
+ this.$emit('totalWallet', temp_total);
175
+ console.log(temp_total)
164
176
  setTimeout(async () =>
165
177
  {
166
178
  this.loading_slot = false;
167
179
  }, 1000);
168
180
 
169
- }
181
+ },
170
182
  }
171
183
  }
172
184
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geer-builder",
3
- "version": "1.2.847",
3
+ "version": "1.2.849",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {