publish.vue 2.2 KB
<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>