|
@@ -8,7 +8,7 @@
|
|
|
src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="username">Wallet</div>
|
|
|
+ <div class="username">{{ systemStore.getUserInfo?.name || "Angel Toke"}}</div>
|
|
|
<div class="useraddress">
|
|
|
<span>0xF3fefE…EcaB</span>
|
|
|
<svg-icon style="width: 18px; height: 18px;" name="copy" />
|
|
@@ -35,7 +35,7 @@
|
|
|
<van-field v-model="nickname" class="pop-input"/>
|
|
|
<div class="pop-btn">
|
|
|
<van-button type="default" class="btn cancel" @click="show = false">取消</van-button>
|
|
|
- <van-button type="default" class="btn confirm" @click="show = false">確定</van-button>
|
|
|
+ <van-button type="default" class="btn confirm" @click="updateUserName">確定</van-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</van-popup>
|
|
@@ -43,12 +43,23 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
+import { userInfoEdit } from "@/api/path/user.api"
|
|
|
import QrcodeVue from 'qrcode.vue'
|
|
|
+import { useSystemStore } from "@/stores/modules/systemStore";
|
|
|
+
|
|
|
+const systemStore = useSystemStore();
|
|
|
+
|
|
|
const show = ref(false);
|
|
|
const nickname = ref('');
|
|
|
const qrtext = ref('');
|
|
|
const afterRead = () => {
|
|
|
-
|
|
|
+ console.log("afterRead")
|
|
|
+}
|
|
|
+
|
|
|
+const updateUserName = async () => {
|
|
|
+ const res = await userInfoEdit({
|
|
|
+ name: nickname.value
|
|
|
+ })
|
|
|
}
|
|
|
</script>
|
|
|
|