|
@@ -14,7 +14,7 @@
|
|
<!-- 初始份额 stockNum -->
|
|
<!-- 初始份额 stockNum -->
|
|
<div class="userId">
|
|
<div class="userId">
|
|
<!-- <p class="userText">{{ accountDetail.stockNum }}</p> -->
|
|
<!-- <p class="userText">{{ accountDetail.stockNum }}</p> -->
|
|
- <p class="userText">5000</p>
|
|
|
|
|
|
+ <p class="userText">{{ stockShares }}</p>
|
|
<p class="userText">剩余份额</p>
|
|
<p class="userText">剩余份额</p>
|
|
</div>
|
|
</div>
|
|
<!-- 竖线 -->
|
|
<!-- 竖线 -->
|
|
@@ -43,7 +43,7 @@
|
|
<div>
|
|
<div>
|
|
<van-field class="relationClass" v-model="cofficentForm.phone" :placeholder="$t('user.phoneNumberPlace')">
|
|
<van-field class="relationClass" v-model="cofficentForm.phone" :placeholder="$t('user.phoneNumberPlace')">
|
|
<template #button>
|
|
<template #button>
|
|
- <van-button type="primary" @click="mailboxChg(cofficentForm.phone, 1)" size="small" >确定
|
|
|
|
|
|
+ <van-button type="primary" @click="mailboxChg(cofficentForm.phone, 1)" size="small">确定
|
|
</van-button>
|
|
</van-button>
|
|
</template>
|
|
</template>
|
|
</van-field>
|
|
</van-field>
|
|
@@ -62,7 +62,8 @@
|
|
<van-field class="relationClass" v-model="cofficentForm.mailBox" :placeholder="$t('user.mailboxPlace')">
|
|
<van-field class="relationClass" v-model="cofficentForm.mailBox" :placeholder="$t('user.mailboxPlace')">
|
|
<!-- 邮箱修改按钮 -->
|
|
<!-- 邮箱修改按钮 -->
|
|
<template #button>
|
|
<template #button>
|
|
- <van-button type="primary" @click="mailboxChg(cofficentForm.mailBox, 2)" size="small">{{ $t("user.confirmLog") }}
|
|
|
|
|
|
+ <van-button type="primary" @click="mailboxChg(cofficentForm.mailBox, 2)" size="small">{{
|
|
|
|
+ $t("user.confirmLog") }}
|
|
</van-button>
|
|
</van-button>
|
|
</template>
|
|
</template>
|
|
</van-field>
|
|
</van-field>
|
|
@@ -197,6 +198,7 @@ import { useRouter } from "vue-router";
|
|
import { showToast } from 'vant';
|
|
import { showToast } from 'vant';
|
|
import { useI18n } from "vue-i18n";
|
|
import { useI18n } from "vue-i18n";
|
|
import { styleUrl } from "@/common/js/utils";
|
|
import { styleUrl } from "@/common/js/utils";
|
|
|
|
+import { queryAllowNum } from "@/service/user.js";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: { sHeader, kDialog },
|
|
components: { sHeader, kDialog },
|
|
@@ -236,9 +238,6 @@ export default {
|
|
const cardNo = ref('');
|
|
const cardNo = ref('');
|
|
cardNo.value = user.cardNo;
|
|
cardNo.value = user.cardNo;
|
|
|
|
|
|
- // TODO: userInfo
|
|
|
|
- console.log("user >>>", user.value);
|
|
|
|
-
|
|
|
|
const starsCount = ref(Math.floor(level.value % 5));
|
|
const starsCount = ref(Math.floor(level.value % 5));
|
|
const moonsCount = ref(Math.floor(level.value / 5));
|
|
const moonsCount = ref(Math.floor(level.value / 5));
|
|
|
|
|
|
@@ -373,6 +372,16 @@ export default {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ // 剩余份额-allowSellNum 允许售卖的数量
|
|
|
|
+ const stockShares = ref(0)
|
|
|
|
+
|
|
|
|
+ async function getStockShares() {
|
|
|
|
+ const { data } = await queryAllowNum()
|
|
|
|
+ if (data.code === '00000') {
|
|
|
|
+ stockShares.value = data.data.allowSellNum;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
// 初始化页面获取列表
|
|
// 初始化页面获取列表
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
// 加载样式
|
|
// 加载样式
|
|
@@ -383,8 +392,9 @@ export default {
|
|
// }
|
|
// }
|
|
|
|
|
|
// 获取账户
|
|
// 获取账户
|
|
- getAcccountDetail();
|
|
|
|
|
|
+ getAcccountDetail()
|
|
checkIsAdmin()
|
|
checkIsAdmin()
|
|
|
|
+ getStockShares()
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -457,7 +467,8 @@ export default {
|
|
clickEye,
|
|
clickEye,
|
|
eyeOpen,
|
|
eyeOpen,
|
|
cardNo,
|
|
cardNo,
|
|
- isAdmin
|
|
|
|
|
|
+ isAdmin,
|
|
|
|
+ stockShares
|
|
};
|
|
};
|
|
}
|
|
}
|
|
};
|
|
};
|