CDN 使用 yudao 提供,解决不定期的 https 问题!

pull/96/MERGE
YunaiV 2024-09-07 16:15:43 +08:00
parent 07098527ff
commit 3e2749672e
2 changed files with 127 additions and 119 deletions

3
.env
View File

@ -18,7 +18,8 @@ SHOPRO_WEBSOCKET_PATH = /infra/ws
SHOPRO_DEV_PORT = 3000 SHOPRO_DEV_PORT = 3000
# 客户端静态资源地址 空=默认使用服务端指定的CDN资源地址前缀 | local=本地 | http(s)://xxx.xxx=自定义静态资源地址前缀 # 客户端静态资源地址 空=默认使用服务端指定的CDN资源地址前缀 | local=本地 | http(s)://xxx.xxx=自定义静态资源地址前缀
SHOPRO_STATIC_URL = https://file.sheepjs.com SHOPRO_STATIC_URL = http://test.yudao.iocoder.cn
### SHOPRO_STATIC_URL = https://file.sheepjs.com
# 是否开启直播 1 开启直播 | 0 关闭直播 (小程序官方后台未审核开通直播权限时请勿开启) # 是否开启直播 1 开启直播 | 0 关闭直播 (小程序官方后台未审核开通直播权限时请勿开启)
SHOPRO_MPLIVE_ON = 0 SHOPRO_MPLIVE_ON = 0

View File

@ -1,138 +1,145 @@
<!-- 分销商菜单栏 --> <!-- 分销商菜单栏 -->
<template> <template>
<view class="menu-box ss-flex-col"> <view class="menu-box ss-flex-col">
<view class="header-box"> <view class="header-box">
<image class="header-bg" :src="sheep.$url.static('/static/img/shop/commission/title1.png')" /> <image class="header-bg" :src="sheep.$url.static('/static/img/shop/commission/title1.png')" />
<view class="ss-flex header-title"> <view class="ss-flex header-title">
<view class="title">功能专区</view> <view class="title">功能专区</view>
<text class="cicon-forward"></text> <text class="cicon-forward"></text>
</view> </view>
</view> </view>
<view class="menu-list ss-flex ss-flex-wrap"> <view class="menu-list ss-flex ss-flex-wrap">
<view v-for="(item, index) in state.menuList" :key="index" class="item-box ss-flex-col ss-col-center" <view
@tap="sheep.$router.go(item.path)"> v-for="(item, index) in state.menuList"
<image class="menu-icon ss-m-b-10" :src="sheep.$url.static(item.img)" mode="aspectFill"></image> :key="index"
<view>{{ item.title }}</view> class="item-box ss-flex-col ss-col-center"
</view> @tap="sheep.$router.go(item.path)"
</view> >
</view> <image
class="menu-icon ss-m-b-10"
:src="sheep.$url.static(item.img)"
mode="aspectFill"
></image>
<view>{{ item.title }}</view>
</view>
</view>
</view>
</template> </template>
<script setup> <script setup>
import sheep from '@/sheep'; import sheep from '@/sheep';
import { reactive } from 'vue'; import { reactive } from 'vue';
const state = reactive({ const state = reactive({
menuList: [{ menuList: [
img: '/static/img/shop/commission/commission_icon1.png',
title: '我的团队',
path: '/pages/commission/team',
},
{
img: '/static/img/shop/commission/commission_icon2.png',
title: '佣金明细',
path: '/pages/commission/wallet',
},
{
img: '/static/img/shop/commission/commission_icon3.png',
title: '分销订单',
path: '/pages/commission/order',
},
{
img: '/static/img/shop/commission/commission_icon4.png',
title: '推广商品',
path: '/pages/commission/goods',
},
// {
// img: '/static/img/shop/commission/commission_icon5.png',
// title: '',
// path: '/pages/commission/apply',
// isAgentFrom: true,
// },
// todo @
{
img: '/static/img/shop/commission/commission_icon7.png',
title: '邀请海报',
path: 'action:showShareModal',
},
// TODO @ icon
{ {
// img: '/static/img/shop/commission/commission_icon7.png', img: '/static/img/shop/commission/commission_icon1.png',
title: '推广排行', title: '我的团队',
path: '/pages/commission/promoter', path: '/pages/commission/team',
}, },
{ {
// img: '/static/img/shop/commission/commission_icon7.png', img: '/static/img/shop/commission/commission_icon2.png',
title: '佣金排行', title: '佣金明细',
path: '/pages/commission/commission-ranking', path: '/pages/commission/wallet',
} },
], {
}); img: '/static/img/shop/commission/commission_icon3.png',
title: '分销订单',
path: '/pages/commission/order',
},
{
img: '/static/img/shop/commission/commission_icon4.png',
title: '推广商品',
path: '/pages/commission/goods',
},
// {
// img: '/static/img/shop/commission/commission_icon5.png',
// title: '',
// path: '/pages/commission/apply',
// isAgentFrom: true,
// },
{
img: '/static/img/shop/commission/commission_icon7.png',
title: '邀请海报',
path: 'action:showShareModal',
},
{
img: '/static/img/shop/commission/commission_icon8.png',
title: '推广排行',
path: '/pages/commission/promoter',
},
{
img: '/static/img/shop/commission/commission_icon9.png',
title: '佣金排行',
path: '/pages/commission/commission-ranking',
},
],
});
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.menu-box { .menu-box {
margin: 0 auto; margin: 0 auto;
width: 690rpx; width: 690rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
margin-top: 20rpx; margin-top: 20rpx;
border-radius: 12rpx; border-radius: 12rpx;
z-index: 3; z-index: 3;
position: relative; position: relative;
} }
.header-box { .header-box {
width: 690rpx; width: 690rpx;
height: 76rpx; height: 76rpx;
position: relative; position: relative;
.header-bg { .header-bg {
width: 690rpx; width: 690rpx;
height: 76rpx; height: 76rpx;
} }
.header-title { .header-title {
position: absolute; position: absolute;
left: 20rpx; left: 20rpx;
top: 24rpx; top: 24rpx;
} }
.title { .title {
font-size: 28rpx; font-size: 28rpx;
font-weight: 500; font-weight: 500;
color: #ffffff; color: #ffffff;
line-height: 30rpx; line-height: 30rpx;
} }
.cicon-forward { .cicon-forward {
font-size: 30rpx; font-size: 30rpx;
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
line-height: 30rpx; line-height: 30rpx;
} }
} }
.menu-list { .menu-list {
padding: 50rpx 0 10rpx 0; padding: 50rpx 0 10rpx 0;
background: #fdfae9; background: #fdfae9;
border-radius: 0 0 12rpx 12rpx; border-radius: 0 0 12rpx 12rpx;
} }
.item-box { .item-box {
width: 25%; width: 25%;
margin-bottom: 40rpx; margin-bottom: 40rpx;
} }
.menu-icon { .menu-icon {
width: 68rpx; width: 68rpx;
height: 68rpx; height: 68rpx;
background: #ffffff; background: #ffffff;
border-radius: 50%; border-radius: 50%;
} }
.menu-title { .menu-title {
font-size: 26rpx; font-size: 26rpx;
font-weight: 500; font-weight: 500;
color: #ffffff; color: #ffffff;
} }
</style> </style>