Skip to content

Commit

Permalink
feat: 图片资源替换为自己的Laf
Browse files Browse the repository at this point in the history
  • Loading branch information
feige996 committed May 28, 2024
1 parent d586897 commit e1dea98
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions src/pages/demo/base/mp-weixin-share.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
<view class="text-green-500">请在微信小程序中体验,或者开发者工具</view>
<view>1) 默认是不激活”发送给朋友“和”分享到朋友圈“的,如下图</view>
<image
src="https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/wx-share/wx-share-before.png"
src="https://oss.laf.run/ukw0y1-site/hello-unibest-images/wx-share-before.png"
mode="widthFix"
/>
<view>2) 增加了onShareAppMessage和onShareTimeline后,就可以微信分享了,如下图</view>
<image
src="https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/wx-share/wx-share-after.png"
src="https://oss.laf.run/ukw0y1-site/hello-unibest-images/wx-share-after.png"
mode="widthFix"
/>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/demo/base/throughout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const onRefresherRefresh = async () => {
padding: 40rpx 0;
line-height: 2;
color: #fff;
background-image: url('https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/top-bg.png');
background-image: url('https://oss.laf.run/ukw0y1-site/hello-unibest-images/top-bg.png');
background-size: cover;
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/demo/base/vconsole.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
<view class="text-red-500">在非正式版小程序里面已经集成了VConsole</view>
<view class="text-blue-500 mb-2">开启方式如下面</view>
<image
src="https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/vconsole/1.png"
src="https://oss.laf.run/ukw0y1-site/hello-unibest-images/vconsole-1.png"
mode="widthFix"
/>
<view class="text-blue-500 m-2">然后页面上会出现一个 `vConsole` 的调试按钮,如下图</view>
<image
src="https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/vconsole/2.png"
src="https://oss.laf.run/ukw0y1-site/hello-unibest-images/vconsole-2.png"
mode="widthFix"
/>
</view>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/demo/page/img-min/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import testBgImg from './test-bg.png'
</view>
<!-- #ifdef MP -->
<image
src="https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/img-min/bg-1.png"
src="https://oss.laf.run/ukw0y1-site/hello-unibest-images/imgmin-bg.png"
mode="scaleToFill"
/>
<!-- #endif -->
Expand All @@ -28,12 +28,12 @@ import testBgImg from './test-bg.png'
<!-- #endif -->
<view class="mb-4">对比图如下2图,如果看不清请看代码原图</view>
<image
src="https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/img-min/before.png"
src="https://oss.laf.run/ukw0y1-site/hello-unibest-images/imgmin-before.png"
mode="widthFix"
class="w-full"
/>
<image
src="https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/img-min/after.png"
src="https://oss.laf.run/ukw0y1-site/hello-unibest-images/imgmin-after.png"
mode="widthFix"
class="w-full"
/>
Expand Down
20 changes: 10 additions & 10 deletions src/pages/demo/page/lottery/big-wheel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<script lang="ts" setup>
import { ref, computed } from 'vue'
// TODO: fix 微信小程序里面会报错
// import targetImg from 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery/target.png'
// import targetImg from 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/ui.png'
let isLeaved = false
// onBackPress(({ from }: { from: 'backbutton' | 'navigateBack' }) => {
Expand All @@ -45,42 +45,42 @@ const prizeList = [
{
id: 0,
name: '双肩包',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/backpack.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/backpack.jpeg',
},
{
id: 1,
name: '积木',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/jimu.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/jimu.jpg',
},
{
id: 2,
name: '红包',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/red-envelope.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/red-envelope.jpg',
},
{
id: 3,
name: '茶具',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/tea-set.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/tea-set.jpg',
},
{
id: 4,
name: '可爱脸',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/tushetou.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/tushetou.jpg',
},
{
id: 5,
name: '挖掘机',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/wajueji.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/wajueji.jpg',
},
{
id: 6,
name: '无辜脸',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/xiaolian.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/xiaolian.jpg',
},
{
id: 7,
name: '烟灰缸',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/yanhuigang.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/yanhuigang.jpg',
},
]
let isRunning = false // 是否正在抽奖
Expand Down Expand Up @@ -217,7 +217,7 @@ const start = () => {
height: 96px;
margin: auto;
cursor: pointer;
background: url('https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/btn-enable.png')
background: url('https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/btn-enable.png')
no-repeat center / 100% 100%;
transform: translate(-50%, -50%);
}
Expand Down
16 changes: 8 additions & 8 deletions src/pages/demo/page/lottery/nine-grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,42 +43,42 @@ const prizeList = [
{
id: 0,
name: '双肩包',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/backpack.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/backpack.jpeg',
},
{
id: 1,
name: '积木',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/jimu.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/jimu.jpg',
},
{
id: 2,
name: '红包',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/red-envelope.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/red-envelope.jpg',
},
{
id: 3,
name: '茶具',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/tea-set.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/tea-set.jpg',
},
{
id: 5,
name: '可爱脸',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/tushetou.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/tushetou.jpg',
},
{
id: 6,
name: '挖掘机',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/wajueji.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/wajueji.jpg',
},
{
id: 7,
name: '无辜脸',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/xiaolian.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/xiaolian.jpg',
},
{
id: 8,
name: '烟灰缸',
pic: 'https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/lottery-prize/yanhuigang.jpg',
pic: 'https://oss.laf.run/ukw0y1-site/hello-unibest-images/lottery/prizes/yanhuigang.jpg',
},
]
const startBtn = {
Expand Down

0 comments on commit e1dea98

Please sign in to comment.