@@ -48,9 +48,9 @@
"
>
<view class="exam">
- <view class="eTag">{{
- itemM.doType == 1 ? "练习" : "考试"
- }}</view>
+ <view class="eTag">
+ {{ itemM.doType == 1 ? "练习" : "考试" }}
+ </view>
<view style="margin-left: 15rpx; flex: 1">{{ itemM.name }}</view>
</view>
<view v-if="isRebuild || itemM.rebuild > 0" class="tagRe"
@@ -33,9 +33,9 @@
@@ -350,6 +350,9 @@ export default {
"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"
)
return
+ } else {
+ this.$set(this.optObj, 'code', uni.getStorageSync('h5_code'))
+ this.OfficialLogin()
}
// #endif
@@ -444,11 +447,12 @@ export default {
// 公众号登录
OfficialLogin() {
this.$http({
- url: '/gzh_login',
+ url: '/app/common/gzh_login',
method: 'post',
data: {
code: this.optObj.code
},
+ noToken: true
}).then((res) => {
if (res.data.code == 200) {}
})
@@ -10,7 +10,6 @@
class="swiper"
:current="current"
@change="swiperChange"
- :interval="interval"
<swiper-item v-for="(bank, bankIndex) in questionList" :key="bankIndex">
<view class="pageContent">
@@ -1061,6 +1060,7 @@ export default {
* @param {Object} e单选点击
*/
radioSelect(optionsId, bindex) {
+ console.log('单选');
if (this.questionList[bindex].ques) return;
this.$set(this.questionList[bindex], "ques", optionsId);
this.isDoOver();
@@ -173,7 +173,7 @@ export default {
this.id = option.id;
- onShow() {
+ onReady() {
uni.getSystemInfo({
success: res => {
var winW = res.screenWidth;
@@ -204,7 +204,7 @@ export default {
context2.arc(this.caculateX * 90, this.caculateX * 90, this.caculateX * 80, 0, 2 * Math.PI, false);
context2.stroke();
context2.draw();
-
+
this.goodsBankQuestionNum();
this.goodsBankDolist();
});