fix:临时商户活动的通知公告跳转链接
This commit is contained in:
1 parent
14f2702ba8
commit
cced54aaa4
1 file changed
+8
-2
@@ -23,6 +23,7 @@
|
||||
<text class="file-size">{{ formatFileSize(file.size) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<tm-button v-if="noticeId == '1969326082705055746'" class="px-2 my-4" block @click="goGetCoupon">去 领 券</tm-button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -31,8 +32,14 @@ import { computed, ref } from "vue"
|
||||
import { onLoad } from "@dcloudio/uni-app"
|
||||
import { noticeApi } from "@/sheep/api"
|
||||
|
||||
const noticeId = ref("")
|
||||
const detail = ref<any>({})
|
||||
|
||||
// 临时商户活动的通知公告跳转链接
|
||||
const goGetCoupon = () => {
|
||||
uni.navigateTo({ url: "/pages/merchant/merchant-activity" })
|
||||
}
|
||||
|
||||
const nodes = computed(() => {
|
||||
return detail.value.description?.replaceAll(`<img src="/api`, `<img src="https://stgl.pj.gov.cn/api`)
|
||||
})
|
||||
@@ -95,8 +102,7 @@ function downloadFile(file: any) {
|
||||
onLoad(async (options: any) => {
|
||||
const id = options.id
|
||||
if (!id) return
|
||||
// 临时商户活动的通知公告跳转链接
|
||||
if (id == "1969326082705055746") return uni.navigateTo({ url: "/pages/merchant/merchant-activity" })
|
||||
noticeId.value = id
|
||||
|
||||
try {
|
||||
// 增加浏览量
|
||||
|
||||
Reference in new issue
Block a user