|
@@ -55,29 +55,33 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import subject4Img from "@/assets/img/subject4@2x.png";
|
|
|
-import subject1Img from "@/assets/img/subject1@2x.png";
|
|
|
import backButton from "@/assets/img/backButton.png";
|
|
|
// import { getCurrentPage } from '../../../dist/build/mp-weixin/wxcomponents/vant/common/utils';
|
|
|
export default {
|
|
|
data() {
|
|
|
+ let subject1Img =
|
|
|
+ "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/%E7%A7%91%E7%9B%AE%E4%B8%80.png";
|
|
|
+ let subject4Img =
|
|
|
+ "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/%E7%A7%91%E7%9B%AE%E5%9B%9B.png";
|
|
|
return {
|
|
|
- subject4Img,
|
|
|
subject1Img,
|
|
|
- subjectImg: subject4Img,
|
|
|
+ subject4Img,
|
|
|
+ subjectImg: subject1Img,
|
|
|
backButton,
|
|
|
- query:{
|
|
|
- username:"",
|
|
|
- headimg:""
|
|
|
- }
|
|
|
+ query: {
|
|
|
+ username: "",
|
|
|
+ headimg: "",
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
- onLoad(option){
|
|
|
+ onLoad(option) {
|
|
|
//username=%E5%BC%A0%E5%AE%87%E5%86%9B&subject=1&type=liceCar&headimg=https%3A%2F%2Fthirdwx.qlogo.cn%2Fmmopen%2Fvi_32%2FQ0j4TwGTfTL42T648KSueEiaibrIt0jgEmgBUlRvbu1ES3VnKoBicK4GOnuYK8oeSLL0V0gmeGaWwONo78oPpvzUQ%2F132
|
|
|
- this.query = option
|
|
|
- this.query.username = decodeURIComponent(option.username)
|
|
|
- this.query.headimg = decodeURIComponent(option.headimg)
|
|
|
-
|
|
|
+ this.query = option;
|
|
|
+ this.query.subject == 4
|
|
|
+ ? (this.subjectImg = this.subject4Img)
|
|
|
+ : (this.subjectImg = this.subject1Img);
|
|
|
+ this.query.username = decodeURIComponent(option.username);
|
|
|
+ this.query.headimg = decodeURIComponent(option.headimg);
|
|
|
},
|
|
|
methods: {
|
|
|
goExam() {
|