|
@@ -78,10 +78,25 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
startPractice() {
|
|
|
- uni.navigateTo({
|
|
|
- url:'/pages2/bank/questionBank?orderGoodsId='+ this.orderGoodsId + '&id=""' + '&goodsid=' + this.goodsId
|
|
|
- +'&moduleId=0' + '&chapterId=0' + '&entryType=random' + '&bankNum=' + this.number
|
|
|
+ this.$http({
|
|
|
+ url: '/bank/exam/temp',
|
|
|
+ method: 'post',
|
|
|
+ data: {
|
|
|
+ goodsId: this.goodsId,
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
|
+ number: this.number
|
|
|
+ }
|
|
|
+ }).then((res) => {
|
|
|
+ if(res.data.code == 200) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'/pages2/bank/questionBank?orderGoodsId='+ this.orderGoodsId + '&id=""' + '&goodsid=' + this.goodsId
|
|
|
+ +'&moduleId=0' + '&chapterId=0' + '&entryType=random' + '&bankNum=' + this.number
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$u.toast(res.data.msg)
|
|
|
+ }
|
|
|
})
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
}
|
|
@@ -143,6 +158,7 @@ export default {
|
|
|
text-align: center;
|
|
|
background-color: #fff;
|
|
|
margin-bottom: 178rpx;
|
|
|
+ border-radius: 24rpx;
|
|
|
.title {
|
|
|
font-size: 36rpx;
|
|
|
font-family: PingFang SC-Medium, PingFang SC;
|