|
@@ -12,7 +12,7 @@
|
|
|
<view class="home-code">
|
|
|
<view class="home-url">
|
|
|
<view class="url">http://www.wgt.cool</view>
|
|
|
- <view class="btn" @click="awardFun">分享链接</view>
|
|
|
+ <view class="btn">分享链接</view>
|
|
|
</view>
|
|
|
<view class="code-img">
|
|
|
<image src="@/static/image/test/code-img.png" mode="scaleToFill" />
|
|
@@ -80,8 +80,6 @@
|
|
|
<script setup>
|
|
|
import { ref, onMounted, reactive } from "vue";
|
|
|
import Header from "@/components/Header";
|
|
|
-import { getCoinList } from "@/api/currency";
|
|
|
-import { matchList } from "@/api/game";
|
|
|
import { useCounterStore } from "@/stores/counter";
|
|
|
const counter = useCounterStore();
|
|
|
counter.count++;
|
|
@@ -92,34 +90,6 @@ counter.increment();
|
|
|
const star = ref(3);
|
|
|
const count = ref(0);
|
|
|
const list5 = reactive([1, 2, 3]);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-import { WGTForToken,STTForToken,getBalance } from "@/utils/web.js";
|
|
|
-
|
|
|
-// 例子 存WGT或者STT
|
|
|
-const awardFun = async () => {
|
|
|
- // const privateKey = window.android.getPrivateKey();//app
|
|
|
- const privateKey = "0x4553077da5d773773dad0511c6e5d33142ae2c1bd05a3a8a4a7becbc0d23d9b5"; //h5
|
|
|
- try {
|
|
|
- const result = await WGTForToken(privateKey, 0.0012);
|
|
|
- if (result.status === "success") {
|
|
|
- console.log(result);
|
|
|
- }else{
|
|
|
- console.log(result);
|
|
|
- }
|
|
|
- } catch (error) {}
|
|
|
-
|
|
|
- // try {
|
|
|
- // const balance = await getBalance(privateKey,'stt');
|
|
|
- // console.log(balance)
|
|
|
- // }catch(error){
|
|
|
-
|
|
|
- // }
|
|
|
-};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|