shuishen
2022-02-21 bd43cf042d48087d2f75237c0fe27ffb56fed5f4
pages/issue/issue.vue
@@ -40,6 +40,7 @@
      <view class="but">
         <u-button class="custom-style" type="primary" @click="inits"> 我发布</u-button>
      </view>
      <u-toast ref="uToast" />
      <u-tabbar :list="tabs" :mid-button="true"></u-tabbar>
   </view>
</template>
@@ -82,13 +83,22 @@
         inits() {
            var datas = this.form;
            var that = this;
            if(this.$store.state.UserData.stype != "1"){
               this.$refs.uToast.show({
                  title: '功能暂未开放',
                  type: 'warning',
               });
               return;
            }
            var content = "";
            var videoUrl = "";
            if(datas.c == "文字类"){
               datas.c = "kxw"
               datas.c = "hyq004"
               content = datas.g;
            }else{
               datas.c = "ksp"
               datas.c = "hyq004"
               videoUrl = that.videos
            }
            
@@ -101,8 +111,10 @@
                  publish: 0,
                  url:that.fileList[0].url,
                  videoUrl:videoUrl,
                  sourceName:"群众",
                  content:content
                  sourceName:uni.getStorageSync("name"),
                  sourceId:uni.getStorageSync("ids"),
                  content:content,
                  type:"1"
               },
               success: (res) => {
                  if (res.data.code == 200) {