ssfg 4 年之前
父節點
當前提交
c4529f60d6

+ 3 - 3
app.wxss

@@ -1,5 +1,5 @@
 /**app.wxss**/
-@import "./fonts/SourceHanSansCN-Medium.wxss";
+/* @import "./fonts/SourceHanSansCN-Medium.wxss"; */
 .container {
   width: 100%;
   margin-top: 20rpx;
@@ -10,6 +10,6 @@
   position: relative;
   /* font-family: "宋体" */
 } 
-page{
+/* page{
   font-family: "SourceHanSansCN-Medium"
-}
+} */

+ 1 - 2
pages/answerAfterclass/answerAfterclass.js

@@ -318,12 +318,11 @@ Page({
         })
       }
     } else {
-      console.log("撒大声地所");
+      wx.hideLoading();
       wx.showModal({
         showCancel: false,
         content: '当前第' + Number(indexs+1) + '没答,请答题',
       })
     }
-
   }
 })

+ 2 - 2
pages/answerAfterclasses/answerAfterclasses.js

@@ -336,12 +336,12 @@ Page({
         })
       }
     }else {
-      console.log("撒大声地所");
+      wx.hideLoading();
       wx.showModal({
         showCancel: false,
         content: '当前第' + Number(indexs+1) + '没答,请答题',
       })
-    }
+    }   
     // wx.request({
     //   url: app.globalData.publicUrl + '/wx/paper/commit',
     //   method: "post",

+ 11 - 0
pages/myClass/myClass.js

@@ -861,6 +861,17 @@ Page({
     let str = this.data.studentName + "同志:"
     let str1 = "于" + this.data.classInfo.beginDate + "至" + this.data.classInfo.endDate + "参加学习" + this.data.classInfo.clasName + "完成规定培训内容。准予结业,特发此证。"
     let strArr1 = [];
+    // let a = str1.slice(0, 22);
+    // let b = str1.slice(22, 36);
+    // let c = str1.slice(36, 50);
+    // let d = str1.slice(50, 67);
+    // strArr1.push(a, b, c, d);
+    // const ctx = wx.createCanvasContext(this.data.myCanvasId);
+    // ctx.drawImage(this.data.byzsbj, 0, 0, 300, 415); //里面的参数无非就是图片放置的位置即图片的横纵坐标,图片的宽高
+    // ctx.setFillStyle("#000");
+    // ctx.setFontSize(15); //字大小
+    // ctx.font = 'normal bold 15px sans-serif'
+    // ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
     let a = str1.slice(0, 22);
     let b = str1.slice(22, 37);
     let c = str1.slice(37, 52);

+ 1 - 1
project.config.json

@@ -24,7 +24,7 @@
 			"disablePlugins": [],
 			"outputPath": ""
 		},
-		"useCompilerModule": true,
+		"useCompilerModule": false,
 		"userConfirmedUseCompilerModuleSwitch": false
 	},
 	"compileType": "miniprogram",