Commit 0dc5db95 authored by hanfeng zhang's avatar hanfeng zhang

321

parent d88596f9
...@@ -170,7 +170,7 @@ export default Vue.extend({ ...@@ -170,7 +170,7 @@ export default Vue.extend({
}, },
methods: { methods: {
handleInput(e: any) { handleInput(e: any) {
const temp = this.inputValue; // const temp = this.inputValue;
const value = e.target.value as string; const value = e.target.value as string;
this.inputValue = value; this.inputValue = value;
this.$emit("cellOnChange", Number(this.inputValue)); this.$emit("cellOnChange", Number(this.inputValue));
......
...@@ -9,9 +9,10 @@ ...@@ -9,9 +9,10 @@
<script> <script>
import Vue from "vue"; import Vue from "vue";
import notCheckedIcon from '@/assets/icons/not_checked_2.png'
const notCheckedIcon = require("@/assets/icons/not_checked_2.png"); import checkedIcon from '@/assets/icons/checked.png'
const checkedIcon = require("@/assets/icons/checked.png"); // const notCheckedIcon = require("@/assets/icons/not_checked_2.png");
// const checkedIcon = require("@/assets/icons/checked.png");
export default Vue.extend({ export default Vue.extend({
props: ["checked"], props: ["checked"],
......
...@@ -32,16 +32,17 @@ ...@@ -32,16 +32,17 @@
<script lang="ts"> <script lang="ts">
import Vue, { PropType } from "vue"; import Vue, { PropType } from "vue";
import { Field, Icon } from "vant"; import { Field } from "vant";
import { tType } from "./types"; import { tType } from "./types";
import eyeOpenIcon from '@/assets/icons/eye_open.png'
const eyeOpenIcon = require("@/assets/icons/eye_open.png"); import eyeCloseIcon from '@/assets/icons/eye_close.png'
const eyeCloseIcon = require("@/assets/icons/eye_close.png"); // const eyeOpenIcon = require("@/assets/icons/eye_open.png");
// const eyeCloseIcon = require("@/assets/icons/eye_close.png");
export default Vue.extend({ export default Vue.extend({
components: { components: {
Field, Field,
Icon, // Icon,
}, },
props: { props: {
type: { type: {
......
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
<script lang="ts"> <script lang="ts">
import Vue from "vue"; import Vue from "vue";
const closeIcon = require("@/assets/icons/close_large.png"); import closeIcon from '@/assets/icons/close_large.png'
// const closeIcon = require("@/assets/icons/close_large.png");
export default Vue.extend({ export default Vue.extend({
props: ["setOverlayShow"], props: ["setOverlayShow"],
......
...@@ -52,14 +52,21 @@ export default Vue.extend({ ...@@ -52,14 +52,21 @@ export default Vue.extend({
async loginByCodeFunc(phone: string, code: string) { async loginByCodeFunc(phone: string, code: string) {
return this.registerFunc(phone, code); return this.registerFunc(phone, code);
}, },
async loginByPwdFunc(phone: string, pwd: string) {}, async loginByPwdFunc(phone: string, pwd: string) {
console.log(phone,pwd);
},
async setPwdFunc(phone: string, code: string, pwd: string) { async setPwdFunc(phone: string, code: string, pwd: string) {
console.log(phone,code,pwd);
this.$router.push({ this.$router.push({
name: "Home", name: "Home",
}); });
return 1; return 1;
}, },
async modifyPwdFunc(phone: string, originalPwd: string, newPwd: string) {}, async modifyPwdFunc(phone: string, originalPwd: string, newPwd: string) {
console.log(phone,originalPwd,newPwd);
},
}, },
}); });
</script> </script>
......
...@@ -312,7 +312,7 @@ export default Vue.extend({ ...@@ -312,7 +312,7 @@ export default Vue.extend({
} }
if (mistake) return; if (mistake) return;
} else if (this.currentStep === 3 && val === 1) { } else if (this.currentStep === 3 && val === 1) {
const ret = await this.$service.nftService.publish({ await this.$service.nftService.publish({
fileHash: this.fileHash, fileHash: this.fileHash,
id: this.publish.id, id: this.publish.id,
wallet: this.publish.wallet, wallet: this.publish.wallet,
......
...@@ -56,7 +56,7 @@ export default Vue.extend({ ...@@ -56,7 +56,7 @@ export default Vue.extend({
}, },
methods: { methods: {
tagOnclick(item: any) { tagOnclick(item: any) {
if (!!this.picked.find((i) => i.id === item.id)) { if (this.picked.find((i) => i.id === item.id)) {
this.picked = this.picked.filter((i) => i.id !== item.id); this.picked = this.picked.filter((i) => i.id !== item.id);
return; return;
} }
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { Uploader } from "vant";
import Vue from "vue"; import Vue from "vue";
import { mapMutations, mapState } from "vuex"; import { mapMutations, mapState } from "vuex";
export default Vue.extend({ export default Vue.extend({
...@@ -69,7 +69,7 @@ export default Vue.extend({ ...@@ -69,7 +69,7 @@ export default Vue.extend({
components: { components: {
"Layout-Child": () => import("@/layout/Child.vue"), "Layout-Child": () => import("@/layout/Child.vue"),
"app-btn": () => import("@/components/common/Btn.vue"), "app-btn": () => import("@/components/common/Btn.vue"),
Uploader,
}, },
computed: { computed: {
...mapState("create", ["fileName"]), ...mapState("create", ["fileName"]),
...@@ -96,7 +96,10 @@ export default Vue.extend({ ...@@ -96,7 +96,10 @@ export default Vue.extend({
fileHash: ret, fileHash: ret,
file: file file: file
}); });
} catch (err) {} } catch (err) {
console.log(err);
}
}, },
}, },
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment