Commit e427027d by 李伟康

替换图片路径

1 parent df410953
...@@ -16,7 +16,7 @@ page { ...@@ -16,7 +16,7 @@ page {
content: ''; content: '';
width: 100%; width: 100%;
height: 486rpx; 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; background-size: 100% 486rpx;
position: absolute; position: absolute;
left: 0; left: 0;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
{{item.merchantName}}{{item.isSuper?'(超管)':item.userType==1?'(商户号)':'(员工号)'}} {{item.merchantName}}{{item.isSuper?'(超管)':item.userType==1?'(商户号)':'(员工号)'}}
</view> </view>
<view class="icon"> <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>
<view class='radio' /> <view class='radio' />
</view> </view>
......
// login/index/components/Agree/Agree.js // login/index/components/Agree/Agree.js
import { imgUrlMixin } from '~/mixins/index'
Component({ Component({
behaviors: [imgUrlMixin],
options: { options: {
styleIsolation: 'shared' styleIsolation: 'shared'
}, },
......
<block wx:if="{{show}}"> <block wx:if="{{show}}">
<view class="agree text-center"> <view class="agree text-center">
<view class="icon {{agree}}" bindtap="agree"> <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> </view>
<block wx:if="{{text}}">{{text}}</block> <block wx:if="{{text}}">{{text}}</block>
<block wx:else> <block wx:else>
......
...@@ -7,8 +7,10 @@ import { ...@@ -7,8 +7,10 @@ import {
} from '~/login/lib/index' } from '~/login/lib/index'
import md5 from '~/utils/lib/md5' import md5 from '~/utils/lib/md5'
import network from '~/utils/network' import network from '~/utils/network'
import { imgUrlMixin } from '~/mixins/index'
let thisPage let thisPage
Component({ Component({
behaviors: [imgUrlMixin],
options: { options: {
styleIsolation: 'shared' styleIsolation: 'shared'
}, },
......
<view class="box"> <view class="box">
<block wx:if="{{loginType == 0}}"> <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>
<block wx:else> <block wx:else>
<view class="input-box opacity-view"> <view class="input-box opacity-view">
......
// login/index/components/TypeList.js // login/index/components/TypeList.js
import { imgUrlMixin } from '~/mixins/index'
Component({ Component({
behaviors: [imgUrlMixin],
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<block wx:for="{{loginList}}" wx:key="index"> <block wx:for="{{loginList}}" wx:key="index">
<block wx:if="{{loginType != index}}"> <block wx:if="{{loginType != index}}">
<view class="item" bindtap="changLoginType" data-index="{{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}} {{item}}
</view> </view>
</block> </block>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
content: ''; content: '';
width: 100%; width: 100%;
height: 486rpx; 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; background-size: 100% 486rpx;
position: absolute; position: absolute;
left: 0; left: 0;
......
.layout { .layout {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
display: grid; display: flex;
place-items: center; align-items: center;
justify-content: center;
flex-direction: column;
background-color: #fff;
.loading { .loading {
height: 48rpx; height: 48rpx;
......
<view class="layout"> <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"> <block wx:for="{{4}}" wx:key="index">
<view></view> <view></view>
</block> </block>
</view> </view> -->
</view> </view>
\ No newline at end of file \ 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!