Commit e427027d by 李伟康

替换图片路径

1 parent df410953
......@@ -16,7 +16,7 @@ page {
content: '';
width: 100%;
height: 486rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/bg.png') no-repeat;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/bg.webp') no-repeat;
background-size: 100% 486rpx;
position: absolute;
left: 0;
......
......@@ -10,7 +10,7 @@
{{item.merchantName}}{{item.isSuper?'(超管)':item.userType==1?'(商户号)':'(员工号)'}}
</view>
<view class="icon">
<image src="https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/radio.png" />
<image src="{{IMGURL}}login/radio.png" />
</view>
<view class='radio' />
</view>
......
// login/index/components/Agree/Agree.js
import { imgUrlMixin } from '~/mixins/index'
Component({
behaviors: [imgUrlMixin],
options: {
styleIsolation: 'shared'
},
......
<block wx:if="{{show}}">
<view class="agree text-center">
<view class="icon {{agree}}" bindtap="agree">
<image src="https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/radio.png"></image>
<image webp src="{{IMGURL}}login/radio.png"></image>
</view>
<block wx:if="{{text}}">{{text}}</block>
<block wx:else>
......
......@@ -7,8 +7,10 @@ import {
} from '~/login/lib/index'
import md5 from '~/utils/lib/md5'
import network from '~/utils/network'
import { imgUrlMixin } from '~/mixins/index'
let thisPage
Component({
behaviors: [imgUrlMixin],
options: {
styleIsolation: 'shared'
},
......
<view class="box">
<block wx:if="{{loginType == 0}}">
<image webp class="img opacity-view" src="https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/login.png" />
<image webp class="img opacity-view" src="{{IMGURL}}login/login.webp" />
</block>
<block wx:else>
<view class="input-box opacity-view">
......
// login/index/components/TypeList.js
import { imgUrlMixin } from '~/mixins/index'
Component({
behaviors: [imgUrlMixin],
/**
* 组件的属性列表
*/
......
......@@ -3,7 +3,7 @@
<block wx:for="{{loginList}}" wx:key="index">
<block wx:if="{{loginType != index}}">
<view class="item" bindtap="changLoginType" data-index="{{index}}">
<image class="icon" src="https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/icon-{{index}}.png"></image>
<image class="icon" webp src="{{IMGURL}}login/icon-{{index}}.png"></image>
{{item}}
</view>
</block>
......
......@@ -8,7 +8,7 @@
content: '';
width: 100%;
height: 486rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/bg.png') no-repeat;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/bg.webp') no-repeat;
background-size: 100% 486rpx;
position: absolute;
left: 0;
......
.layout {
width: 100vw;
height: 100vh;
display: grid;
place-items: center;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background-color: #fff;
.loading {
height: 48rpx;
......
<view class="layout">
<view class="loading">
<image webp src="https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/index-loading.webp" mode="widthFix" ></image>
<!-- <view class="loading">
<block wx:for="{{4}}" wx:key="index">
<view></view>
</block>
</view>
</view> -->
</view>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!