|
@@ -95,6 +95,7 @@ export default {
|
|
|
this.form.score = this.form.score==null?0:this.form.score;
|
|
|
this.form1.scoreNum = this.form.score;
|
|
|
this.form1.userId = getApp().globalData.userId;
|
|
|
+ //验证积分
|
|
|
verifyScore(this.form1).then(res => {
|
|
|
if(!res.data){
|
|
|
uni.showToast({
|
|
@@ -102,9 +103,10 @@ export default {
|
|
|
})
|
|
|
}else{
|
|
|
this.$refs[e].validate().then(res => {
|
|
|
- this.form.type = this.typeList.filter((item) => {
|
|
|
- return this.form.typeId == item.value;
|
|
|
- })[0].text;
|
|
|
+ this.form.type = this.typeList.filter((item) => {
|
|
|
+ return this.form.typeId == item.value;
|
|
|
+ })[0].text;
|
|
|
+ //增加问题
|
|
|
addQuestion(this.form).then(res => {
|
|
|
uni.navigateBack();
|
|
|
});
|