Browse Source

feat: 修改一些东西

test2
xuesinan 3 years ago
parent
commit
5b577b02b0
  1. 3
      CHANGELOG.md
  2. 1
      hooks/project/useGetTasks.js
  3. 18
      manifest.json
  4. 12
      pages/project/project.vue

3
CHANGELOG.md

@ -1,4 +1,4 @@
# 1.0.0 (2022-07-29)
# 1.0.0 (2022-09-09)
### 🌟 新功能
范围|描述|commitId
@ -139,6 +139,7 @@
- | 工作台图片app端不显示 | [f267c72](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/f267c72)
- | 广告页、引导页 | [b63ade5](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/b63ade5)
- | 广告页不显示 | [d749dfb](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/d749dfb)
- | 获取任务接口参数 | [bfc9684](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/bfc9684)
- | 获取c插件信息 | [7b02efc](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/7b02efc)
- | 交付物未上传显示小红点 | [b07621e](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/b07621e)
- | 交付物消息提示 | [880023a](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/880023a)

1
hooks/project/useGetTasks.js

@ -90,6 +90,7 @@ export default function useGetTasks() {
// 存储当前查询的真实任务
params.queryType === 0 ? store.commit('task/setUpRealTasks', data.list) : store.commit('task/setDownRealTasks', data.list);
params.queryType === 0 ? store.commit('socket/setCurrLocationTaskId', data.list[0].id) : store.commit('socket/setCurrLocationTaskId', data.list[data.list.length - 1].id);
// 下一页
if (data.list.length < params.pageSize) {

18
manifest.json

@ -1,8 +1,8 @@
{
"name" : "时物链条2",
"appid" : "__UNI__3CBCFFF",
"name" : "时物链条",
"appid" : "__UNI__6207504",
"description" : "",
"versionName" : "1.0.13",
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,
/* 5+App */
@ -43,17 +43,13 @@
]
},
/* ios */
"ios" : {},
"ios" : {
"dSYMs" : false
},
/* SDK */
"sdkConfigs" : {
"ad" : {},
"oauth" : {
"weixin" : {
"appid" : "",
"appsecret" : "",
"UniversalLinks" : ""
}
}
"oauth" : {}
},
"icons" : {
"android" : {

12
pages/project/project.vue

@ -23,9 +23,6 @@
<TimeLine :tasks="task.task" @getTasks="getTasksHook.getTasks" class="flex-1 overflow-hidden" />
</swiper-item>
</swiper>
<!-- TODO: DEBUG: -->
<!-- <u-button @click="$store.commit('setTheme', 'theme-test')">测试切换主题</u-button> -->
</view>
<!-- 点击切换时间轴样式 -->
@ -47,13 +44,13 @@ const getTasksHook = useGetTasks();
const store = useStore();
const projectId = computed(() => store.getters['project/projectId']);
const userInfo = computed(() => store.state.user.user);
const userId = computed(() => store.getters['user/userId']);
// const userId = computed(() => store.getters['user/userId']);
const roleId = computed(() => store.state.role.roleId); // id
const roleIndex = computed(() => store.state.role.roleIndex); //
const visibleRoles = computed(() => store.state.role.visibleRoles); //
const timeNode = computed(() => store.state.task.timeNode); //
const timeUnit = computed(() => store.state.task.timeUnit); //
const newProjectInfo = computed(() => store.state.task.newProjectInfo);
// const newProjectInfo = computed(() => store.state.task.newProjectInfo);
const showScrollTo = computed(() => store.state.task.showScrollTo); //
const allTasks = computed(() => store.state.task.allTasks); //
const globals = computed(() => store.getters['task/globals']); // +
@ -70,12 +67,11 @@ if (!userInfo.value) {
store.commit('user/setUser', JSON.parse(res));
}
}
console.log('项目详情页打开了么');
onMounted(() => {
const system = uni.getSystemInfoSync();
height.value = `${system.screenHeight}px`;
console.log('项目详情onMounted')
// initHook.init();
console.log('项目详情onMounted');
});
onUnmounted(() => {

Loading…
Cancel
Save