Commit 0c646558 authored by 罗超's avatar 罗超

2

parent 9f3fbe3f
......@@ -6,10 +6,16 @@
首页
</view>
<view class="loginBox">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/login2x.png"
mode="aspectFit" class="loginIcon" id="loadImg" ></image>
登录
<indexassembly @success='againdata'>
<view class="flex_start_center">
<image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/login2x.png"
mode="aspectFit" class="loginIcon" id="loadImg"></image>
登录
</view>
</indexassembly>
</view>
<view class="scanBox">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/scan2x.png"
mode="aspectFit" class="scanIcon"></image>
......@@ -97,10 +103,10 @@
</view>
<view class="gardenCon" v-for="(item1,index1) in item.List" :key="index1" id="img">
<image :src="item1.Img" mode="aspectFill"
style="width: 100%;height:100%;border-radius: 24rpx 24rpx 0 0;" ></image>
style="width: 100%;height:100%;border-radius: 24rpx 24rpx 0 0;"></image>
<view class="gardenTextBox" :style="{background:'linear-gradient(0deg,'+getColor(item1.Img)}">
<view class="gardenTitle one_line">
<!-- {{item1.Title}} -->
{{item1.Title}}
{{getColor(item1.Img)}}
</view>
<view class="gardenDigest one_line">
......@@ -178,8 +184,8 @@
})
},
async getColor(src) {
let res=await getImageColor('myCanvas','img',src)
const formatres=`rgba(${res.r},${res.g},${res.b})`
let res = await getImageColor('myCanvas', 'img', src)
const formatres = `rgba(${res.r},${res.g},${res.b})`
console.log(168, formatres)
return formatres
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment