Skip to content

Commit

Permalink
修复二维码在App示例因为cid不正确显示异常及列表图标不显示
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Apr 8, 2024
1 parent 2b57c7b commit a94e757
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/page-nav/page-nav.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<view class="nav-wrap">
<view class="nav-title">
<u--image :showLoading="true" src="./static/uview/common/logo.png" width="70px"
<u--image :showLoading="true" src="https://uview-plus.jiangruyi.com/h5/static/uview/common/logo.png" width="70px"
height="70px" />
<view class="nav-info">
<view class="nav-info__title" @tap="jumpToWx">
Expand Down
6 changes: 1 addition & 5 deletions src/pages.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"condition": { //模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项)
"list": [{
"name": "test", //模式名称
"path": "pages/componentsA/swipeAction/swipeAction", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
}]
"list": []
},
"easycom": {
// 注意一定要放在custom里,否则无效,https://ask.dcloud.net.cn/question/131175
Expand Down
6 changes: 3 additions & 3 deletions src/pages/componentsD/qrcode/qrcode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<view class="u-page__item">
<text class="u-page__item__title" style="margin-top: 0;">不带logo</text>
<view class="u-page__item__content">
<up-qrcode :cid="'up-'+ Date.now()" :size="200" val="uview-plus"></up-qrcode>
<up-qrcode :cid="'up1'" :size="200" val="uview-plus"></up-qrcode>
</view>
</view>
<view class="u-page__item">
<text class="u-page__item__title" style="margin-top: 0;">带logo</text>
<view class="u-page__item__content">
<up-qrcode :cid="'up-'+ Date.now()" :size="200" val="uview-plus" :icon="logo"></up-qrcode>
<up-qrcode :cid="'up2'" :size="200" val="uview-plus" :icon="logo"></up-qrcode>
</view>
</view>
<view class="u-page__item">
<text class="u-page__item__title" style="margin-top: 0;">二维码颜色</text>
<view class="u-page__item__content">
<up-qrcode :cid="'up-'+ Date.now()" :size="200" val="uview-plus" background="red" foreground="blue"></up-qrcode>
<up-qrcode :cid="'up3'" :size="200" val="uview-plus" background="red" foreground="blue"></up-qrcode>
</view>
</view>
</view>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/example/components.nvue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
computed: {
getIcon() {
return (path: string) => {
return './static/uview/demo/' + path + '.png';
return 'https://uview-plus.jiangruyi.com/h5/static/uview/demo/' + path + '.png';
}
},
},
Expand Down
3 changes: 1 addition & 2 deletions src/pages/example/template.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
computed: {
getIcon() {
return path => {
return './static/uview/demo/' + path + '.png';
return 'https://cdn.uviewui.com/uview/example/' + path + '.png';
return 'https://uview-plus.jiangruyi.com/h5/static/uview/demo/' + path + '.png';
}
},
desc() {
Expand Down

0 comments on commit a94e757

Please sign in to comment.