|  | @@ -162,15 +162,9 @@
 | 
	
		
			
				|  |  |              <span
 | 
	
		
			
				|  |  |                v-show="placeActivity.subjectContent != ''"
 | 
	
		
			
				|  |  |                style="color: #36a7f3"
 | 
	
		
			
				|  |  | -              @click="showReport = true"
 | 
	
		
			
				|  |  | +              @click="open"
 | 
	
		
			
				|  |  |                >查看内容</span
 | 
	
		
			
				|  |  |              >
 | 
	
		
			
				|  |  | -            <van-popup v-model:show="showReport" 
 | 
	
		
			
				|  |  | -              ><wang-editor
 | 
	
		
			
				|  |  | -                ref="subjectContentEditor"
 | 
	
		
			
				|  |  | -                v-model="placeActivity.subjectContent"
 | 
	
		
			
				|  |  | -              />
 | 
	
		
			
				|  |  | -            </van-popup>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </van-field>
 | 
	
		
			
				|  |  |        </van-cell-group>
 | 
	
	
		
			
				|  | @@ -183,16 +177,24 @@
 | 
	
		
			
				|  |  |        >审核</van-button
 | 
	
		
			
				|  |  |      >
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  | +  <van-popup v-model:show="showReport"
 | 
	
		
			
				|  |  | +    ><wang-editor
 | 
	
		
			
				|  |  | +      ref="subjectContentEditor"
 | 
	
		
			
				|  |  | +      v-model="placeActivity.subjectContent"
 | 
	
		
			
				|  |  | +    />
 | 
	
		
			
				|  |  | +  </van-popup>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |    
 | 
	
		
			
				|  |  |    <script>
 | 
	
		
			
				|  |  | -import { ref, onMounted } from "vue";
 | 
	
		
			
				|  |  | +import "vant/es/toast/style";
 | 
	
		
			
				|  |  | +import { ref, onMounted, nextTick } from "vue";
 | 
	
		
			
				|  |  |  import placeActivityServer from "@/api/placeActivity/placeActivityServer";
 | 
	
		
			
				|  |  |  import UserManage from "@/api/user/UserManage";
 | 
	
		
			
				|  |  |  import { useRoute } from "vue-router";
 | 
	
		
			
				|  |  |  import $base from "@/utils/config";
 | 
	
		
			
				|  |  |  // 富文本编辑器
 | 
	
		
			
				|  |  |  import WangEditor from "@/components/editor/WangEditor";
 | 
	
		
			
				|  |  | +import vant from "vant";
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    components: { WangEditor },
 | 
	
		
			
				|  |  |    setup() {
 | 
	
	
		
			
				|  | @@ -259,26 +261,30 @@ export default {
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  | -        if (subjectContentEditor.value != null) {
 | 
	
		
			
				|  |  | -          subjectContentEditor.value.init(placeActivity.value.subjectContent);
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  |          isLoading.value = false;
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |      // 打开富文本
 | 
	
		
			
				|  |  | -    // const open = () => {
 | 
	
		
			
				|  |  | -    //   subjectContentEditor.value.init(placeActivity.value.subjectContent);
 | 
	
		
			
				|  |  | -    // };
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    const open = () => {
 | 
	
		
			
				|  |  | +      showReport.value = true;
 | 
	
		
			
				|  |  | +      nextTick(() => {
 | 
	
		
			
				|  |  | +        if (subjectContentEditor.value != null) {
 | 
	
		
			
				|  |  | +          subjectContentEditor.value.init(placeActivity.value.subjectContent);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  | +    };
 | 
	
		
			
				|  |  |      // 审核通过
 | 
	
		
			
				|  |  |      const update = () => {
 | 
	
		
			
				|  |  |        isLoading.value = true;
 | 
	
		
			
				|  |  |        placeActivity.value.assessment = 1;
 | 
	
		
			
				|  |  | -      new placeActivityServer().save(placeActivity.value).then((res) => {
 | 
	
		
			
				|  |  | -        console.log(res);
 | 
	
		
			
				|  |  | -        onClickLeft();
 | 
	
		
			
				|  |  | -        isLoading.value = false;
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  | +      console.log("数据", showSuccessToast);
 | 
	
		
			
				|  |  | +      showSuccessToast("res");
 | 
	
		
			
				|  |  | +      // new placeActivityServer().save(placeActivity.value).then((res) => {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      //   Toast.success(res);
 | 
	
		
			
				|  |  | +      //   // onClickLeft();
 | 
	
		
			
				|  |  | +      //   isLoading.value = false;
 | 
	
		
			
				|  |  | +      // });
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  |        onClickLeft,
 | 
	
	
		
			
				|  | @@ -288,16 +294,13 @@ export default {
 | 
	
		
			
				|  |  |        update,
 | 
	
		
			
				|  |  |        subjectContentEditor,
 | 
	
		
			
				|  |  |        showReport,
 | 
	
		
			
				|  |  | -      // open,
 | 
	
		
			
				|  |  | +      open,
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |    
 | 
	
		
			
				|  |  |  <style lang="less">
 | 
	
		
			
				|  |  | -.van-cell__value .van-field__right-icon .van-icon-location {
 | 
	
		
			
				|  |  | -  color: #36a7f3 !important;
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  |  .btn-sub {
 | 
	
		
			
				|  |  |    width: 90%;
 | 
	
		
			
				|  |  |    border-radius: 20px;
 | 
	
	
		
			
				|  | @@ -305,10 +308,6 @@ export default {
 | 
	
		
			
				|  |  |    margin-bottom: 40px;
 | 
	
		
			
				|  |  |    margin-top: -100px;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | -.van-loading {
 | 
	
		
			
				|  |  | -  text-align: center;
 | 
	
		
			
				|  |  | -  margin-top: 80px;
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  |  .van-popup--center {
 | 
	
		
			
				|  |  |    width: 98% !important;
 | 
	
		
			
				|  |  |  }
 |