Commit d6082216 authored by Facius's avatar Facius

chore: UI变更

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