Browse Source

feat(deliver 交付物): 点击交付物链接webview打开链接

deliver
wally 4 years ago
parent
commit
daa59f1e47
  1. 1
      CHANGELOG.md
  2. 13
      components/DeliverLink/DeliverLink.vue
  3. 6
      pages.json
  4. 16
      pages/deliverWebview/deliverWebview.vue
  5. 4
      pages/submitLog/submitLog.vue
  6. 4
      plugins/p-deliver-check/p-deliver-check.vue

1
CHANGELOG.md

@ -84,6 +84,7 @@
- | project init 重构 | [2457a87](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/2457a87)
- | 交付物代码整理重构 未完 | [d7c6e51](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/d7c6e51)
- | 交付物插件代码审查 | [5f4d47b](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/5f4d47b)
交付物 | 调整交付物细节;完善逻辑 | [25ccd36](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/25ccd36)
- | 修改插件名的输入框和查看历史记录 | [99fb88e](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/99fb88e)
- | 修改错误单词‘confirmDeleDte’ | [ddbb04c](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/ddbb04c)
- | 原有功能提交别的分支 | [eb02b72](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/eb02b72)

13
components/DeliverLink/DeliverLink.vue

@ -0,0 +1,13 @@
<template>
<view @click="openLink" class="break-all text-blue-400 text-xs my-1"> {{ link }} </view>
</template>
<script setup>
const props = defineProps({ link: String });
function openLink() {
uni.navigateTo({
url: `/pages/deliverWebview/deliverWebview?url=${props.link}`,
});
}
</script>

6
pages.json

@ -38,6 +38,12 @@
"style": {
"navigationBarTitleText": "审核记录"
}
},
{
"path": "pages/deliverWebview/deliverWebview",
"style": {
"navigationBarTitleText": "审核记录"
}
}
],
"globalStyle": {

16
pages/deliverWebview/deliverWebview.vue

@ -0,0 +1,16 @@
<template>
<web-view :src="src"></web-view>
</template>
<script setup>
import { ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
const src = ref('');
onLoad(options => {
if (options && options.url) {
src.value = options.url;
}
});
</script>

4
pages/submitLog/submitLog.vue

@ -8,9 +8,7 @@
<view class="text-xs">{{ dayjs(+item.submitTime).format('MM-DD HH:mm') }}</view>
</view>
<!-- 提交的链接 -->
<view class="break-all text-blue-400 text-xs">
{{ item.details[0] }}
</view>
<DeliverLink v-if="item.details[0]" :link="item.details[0]" />
<!-- 该插件物的审核人 -->
<view class="mb-1 mt-3">审核人</view>
<view class="flex justify-between mb-2" v-for="checkItem in item.checkerList">

4
plugins/p-deliver-check/p-deliver-check.vue

@ -18,9 +18,7 @@
</view>
<!-- 提交的链接信息 -->
<view class="break-all text-blue-400 text-xs" v-if="deliverData.details && deliverData.details[0]">
{{ deliverData.details[0] }}
</view>
<DeliverLink :link="deliverData.details[0]" v-if="deliverData.details && deliverData.details[0]" />
<!-- 审核人 标题 -->
<view class="text-gray-400 flex justify-between mt-3">

Loading…
Cancel
Save