添加衣服纹理功能
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
></div>
|
||||
|
||||
</div>
|
||||
|
||||
<div @click="openTask">abc</div>
|
||||
<!-- <div class="header_user_content marLeft2">
|
||||
<span class="username">{{$t('Header.language')}}</span>
|
||||
<div
|
||||
@@ -187,6 +187,7 @@
|
||||
</a-modal>
|
||||
<payOrder ref="payOrder"></payOrder>
|
||||
<UpgradePlan ref="UpgradePlan"></UpgradePlan>
|
||||
<TaskPage ref="TaskPage"></TaskPage>
|
||||
</div>
|
||||
</template>
|
||||
<script >
|
||||
@@ -196,6 +197,7 @@ import { setCookie, getCookie, WriteCookie } from "@/tool/cookie";
|
||||
import payOrder from "@/component/Pay/payOrder.vue";
|
||||
import VerificationCodeInput from "@/component/LoginPage/verificationCodeInput.vue";
|
||||
import Habit from "@/component/Detail/habit.vue";
|
||||
import TaskPage from "@/component/HomePage/TaskPage.vue";
|
||||
import UpgradePlan from "@/component/HomePage/UpgradePlan.vue";
|
||||
import { Https } from "@/tool/https";
|
||||
import { Modal, message } from "ant-design-vue";
|
||||
@@ -209,6 +211,7 @@ export default defineComponent({
|
||||
Habit,
|
||||
UpgradePlan,
|
||||
payOrder,
|
||||
TaskPage,
|
||||
},
|
||||
setup(){
|
||||
const store = useStore();
|
||||
@@ -504,9 +507,7 @@ export default defineComponent({
|
||||
);
|
||||
},
|
||||
setLang(v){
|
||||
// let data = {
|
||||
// language:v
|
||||
// }
|
||||
|
||||
Https.axiosGet(Https.httpUrls.changeUserLanguage,{params:{language:v}}).then((rv) => {
|
||||
if (rv) {
|
||||
if (rv) {
|
||||
@@ -523,26 +524,15 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
})
|
||||
// Https.axiosPost(Https.httpUrls.changeUserLanguage, data).then(
|
||||
// (rv) => {
|
||||
// if (rv) {
|
||||
// let token = rv;
|
||||
// setCookie("token", token);
|
||||
// this.getLang(v)
|
||||
// }
|
||||
// }
|
||||
// );
|
||||
},
|
||||
|
||||
setLocale(v){
|
||||
// window.location.reload();
|
||||
// let name = 'home'
|
||||
// let noRefresh = true;
|
||||
// this.$router.push({ name: name, params: { noRefresh: noRefresh } });
|
||||
// this.locale = v
|
||||
this.setLang(v)
|
||||
// this.locale == 'zh-cn'?this.locale = 'en':this.locale = 'zh-cn'
|
||||
}
|
||||
},
|
||||
openTask(){
|
||||
let taskPage = this.$refs.TaskPage
|
||||
taskPage.init()
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user