Commit cf6d447f by zhangxw

修改

1 parent 446dfbef
...@@ -14,7 +14,8 @@ Component({ ...@@ -14,7 +14,8 @@ Component({
data: { data: {
title: '', title: '',
type: '', type: '',
btnText: '' btnText: '',
customContent: ''
}, },
/** /**
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<view class="modal-content"> <view class="modal-content">
<block wx:if="{{type == 'permission'}}"> <block wx:if="{{type == 'permission'}}">
<view class="content-title">优秀的技能是您接单的通行证,磨刀不误砍柴工,您的专业能力是赢得客户信任的关键。</view> <view class="content-title">优秀的技能是您接单的通行证,磨刀不误砍柴工,您的专业能力是赢得客户信任的关键。</view>
<view class="content-text">到学习中心-我的课程-待学习,完成课程学习后,即可解锁开单权限。</view> <view class="content-text">到学习中心-{{customContent}},完成课程学习后,即可解锁开单权限。</view>
<view class="content-footer">只差一步即可开启您的接单之旅!</view> <view class="content-footer">只差一步即可开启您的接单之旅!</view>
</block> </block>
<block wx:else> <block wx:else>
......
...@@ -20,7 +20,6 @@ Page({ ...@@ -20,7 +20,6 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
this.getBeisenToken()
}, },
/** /**
...@@ -34,7 +33,7 @@ Page({ ...@@ -34,7 +33,7 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
this.getBeisenToken()
}, },
async getBeisenToken() { async getBeisenToken() {
......
...@@ -216,7 +216,7 @@ const checkStudyTask = () => { ...@@ -216,7 +216,7 @@ const checkStudyTask = () => {
wx.hideLoading() wx.hideLoading()
const modal = initModal() const modal = initModal()
if (modal && res.data.lockOrder) { if (modal && res.data.lockOrder) {
modal.open({title: '未完成学习任务,暂不能开单', type: 'permission', btnText: '去往学习中心'}) modal.open({title: '未完成学习任务,暂不能开单', type: 'permission', btnText: '去往学习中心', customContent: res.data?.lockReason == '0' ? '我的课程-待学习' : '我的任务'})
} }
resolve(res.data.lockOrder) resolve(res.data.lockOrder)
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!