|
|
@ -17,7 +17,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- 引导语 --> |
|
|
<!-- 引导语 --> |
|
|
<!-- <GuidePage class="w-full h-full" v-if="showGuide" @quitGuide="quitGuide" /> --> |
|
|
<GuidePage class="w-full h-full" v-if="showGuide" @quitGuide="quitGuide" /> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -27,12 +27,12 @@ import { setPlaceholderTasks, computeFillPlaceholderTaskCount } from '@/utils/ta |
|
|
import Title from './components/Title/Title'; |
|
|
import Title from './components/Title/Title'; |
|
|
import Roles from './components/Roles/Roles'; |
|
|
import Roles from './components/Roles/Roles'; |
|
|
import TimeLine from './components/TimeLine/TimeLine'; |
|
|
import TimeLine from './components/TimeLine/TimeLine'; |
|
|
// import GuidePage from './components/GuidePage/GuidePage'; |
|
|
import GuidePage from './components/GuidePage/GuidePage'; |
|
|
import ConfigInfo from './components/ConfigInfo/ConfigInfo'; |
|
|
import ConfigInfo from './components/ConfigInfo/ConfigInfo'; |
|
|
// import { flatten } from 'lodash'; |
|
|
// import { flatten } from 'lodash'; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: { Title, Roles, TimeLine, ConfigInfo }, |
|
|
components: { Title, Roles, TimeLine, ConfigInfo, GuidePage }, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
height: '', |
|
|
height: '', |
|
|
@ -116,13 +116,12 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
mounted() { |
|
|
mounted() { |
|
|
|
|
|
this.$nextTick(async () => { |
|
|
const system = uni.getSystemInfoSync(); |
|
|
const system = uni.getSystemInfoSync(); |
|
|
this.height = system.windowHeight + 'px'; |
|
|
this.height = system.windowHeight + 'px'; |
|
|
|
|
|
// TODO: 判断用户第一次进来才会显示引导页 |
|
|
// TODO: 判断用户第一次进来才会显示 |
|
|
await this.queryGuide(); |
|
|
setTimeout(() => { |
|
|
}); |
|
|
this.showGuide = true; |
|
|
|
|
|
}, 1000); |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onUnload() { |
|
|
onUnload() { |
|
|
@ -466,9 +465,34 @@ export default { |
|
|
this.clearEndFlag(); |
|
|
this.clearEndFlag(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 退出引导页 |
|
|
/** |
|
|
quitGuide() { |
|
|
* 查询是否显示引导页 |
|
|
|
|
|
* @param {object} templateCode 模板code |
|
|
|
|
|
*/ |
|
|
|
|
|
async queryGuide() { |
|
|
|
|
|
try { |
|
|
|
|
|
const params = { templateCode: this.project.templateCode }; |
|
|
|
|
|
const data = await this.$u.api.queryGuide(params); |
|
|
|
|
|
if (data.status === 0) { |
|
|
|
|
|
this.showGuide = true; |
|
|
|
|
|
} |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.error('error: ', error); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 退出引导页 修改引导页状态 |
|
|
|
|
|
* @param {object} templateCode 模板code |
|
|
|
|
|
*/ |
|
|
|
|
|
async quitGuide() { |
|
|
|
|
|
try { |
|
|
|
|
|
const params = { templateCode: this.project.templateCode }; |
|
|
|
|
|
await this.$u.api.updateGuide(params); |
|
|
this.showGuide = false; |
|
|
this.showGuide = false; |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.log('error: ', error); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
|