Commit d6082216 authored by Facius's avatar Facius

chore: UI变更

parent dca46123
......@@ -25,7 +25,7 @@
type="primary"
@click="handleClick"
>
立即练习
立即体验
</u-button>
</view>
<view class="colse-view">
......
......@@ -94,7 +94,7 @@ export default {
return process.uniEnv.qn_base_url + 'lianxianniu.png'
},
buttonText() {
return this.info.experience ? '免费体验答题' : '每日一练'
return this.info.experience ? '立即体验答题' : '每日一练'
},
},
created() {},
......
......@@ -26,6 +26,16 @@
<view v-if="noExam" class="tip-view">
<text>您还未选择题库,请先选择题库</text>
</view>
<view
v-else-if="!this.info.cardId"
class="card-tip-view"
@click="$u.throttle(handleSelectTip, 500)"
>
题库未激活,请通过<text class="blue-text">“绑卡”</text>或<text
class="blue-text"
>“购买”</text
>激活
</view>
<view v-else class="detail-view">
<view
v-for="(item, index) in detailItems"
......@@ -506,6 +516,15 @@ export default {
)
: 0
},
handleSelectTip() {
this.$u.route({
url: 'pages/learn/detail',
params: {
relationId: this.relationId,
id: this.info.id,
},
})
},
},
}
</script>
......@@ -574,6 +593,15 @@ export default {
margin-top: 22rpx;
margin-bottom: 40rpx;
}
.card-tip-view {
font-size: 28rpx;
color: #9ea5bb;
margin-top: 22rpx;
margin-bottom: 40rpx;
.blue-text {
color: #2953ff;
}
}
.detail-view {
display: flex;
align-items: flex-start;
......
......@@ -34,11 +34,7 @@
><view class="line-view"></view>
</view>
</view>
<u-button
:customStyle="buyButtonStyle"
@click="handleClickBuy"
type="primary"
>
<u-button :customStyle="buyButtonStyle" @click="handleClickBuy">
立即购买
</u-button>
</view>
......@@ -83,7 +79,7 @@
type="primary"
shape="circle"
>
持卡用户绑定
绑定学习卡
</u-button>
</view>
</view>
......@@ -142,12 +138,12 @@ export default {
},
buyButtonStyle() {
return {
width: '160rpx',
height: '64rpx',
backgroundColor: '#2953FF',
color: '#FFFFFF',
marginRight: '12rpx',
width: '144rpx',
height: '56rpx',
background: '#FFFFFF',
color: '#2953FF',
fontSize: '26rpx',
borderRadius: '12rpx',
}
},
subItems() {
......@@ -176,7 +172,7 @@ export default {
}
if ((e && e.id) || this.questionWarehouseId) {
this.queryQuestionWarehouseById(e.id || this.questionWarehouseId)
this.queryQuestionWarehouseById((e && e.id) || this.questionWarehouseId)
}
},
methods: {
......
......@@ -47,7 +47,7 @@
type="primary"
shape="circle"
>
绑定
确定
</u-button>
<view class="change-button"
><u-icon class="icon-view" name="error-circle"></u-icon
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment