publish.vue
2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<template>
<div class="containerbox">
<div class="topcontainer">
<div class="publishitem flextwo" @click="selectkind">
<div class="publeft flexone">
<div class="kindname">{{kindname}}</div>
<div class="pubpicker" v-if="false">
<van-picker
show-toolbar
:columns="columns"
@confirm="onConfirm"
@cancel="onCancel"
@change="onChange"
/>
</div>
</div>
<img src="../../../assets/grayrow.png" alt class="yourow" />
</div>
<div class="enterkind">
<textarea name id cols="30" rows="10" placeholder="请输入您的想法"></textarea>
</div>
<div class="pubimg">
<img src="../../../assets/addpub.png" alt />
</div>
</div>
<div class="kaishilu">发布</div>
<!-- 发布成功 -->
<div class="register" v-if="success">
<div class="pubsuccess">
<div class="pubsuccessname">发布成功</div>
<div class="pubsure" @click="sure">确认</div>
</div>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { Picker } from 'vant';
Vue.use(Picker);
export default {
data() {
return {
columns: ['杭州', '宁波', '温州', '嘉兴', '湖州'],
showkind: false,
kindname: '分类一',
success: false
}
},
methods: {
selectkind() {
this.showkind = true
},
onCancel() {
console.log(347344)
this.showkind = false
},
onConfirm(value, index) {
console.log(78343784)
this.showkind = false
console.log(this.showkind)
},
onChange(picker, value, index) {
},
sure() {
this.success = false
},
publish() {
let that = this;
var url = "/api/user/authorize";
let param = {
redirect_uri: urlk
};
that.$axios
.post(url, param)
.then(function (res) {
console.log(res);
})
.catch(function (err) {
console.log(err);
});
}
}
}
</script>
<style scoped>
@import "../../../style/society.css";
.topcontainer {
padding: 0 0.32rem;
box-sizing: border-box;
background: #fff;
padding-bottom: 0.32rem;
box-sizing: border-box;
}
</style>