|
|
@@ -3,14 +3,10 @@
|
|
|
<foot-tabs></foot-tabs>
|
|
|
<div class="self-inf">
|
|
|
<div class="img-name-box">
|
|
|
- <img src="/static/logo.png" alt="" class="heade-img" />
|
|
|
+ <image src="/static/logo.png" alt="" class="heade-img" mode="aspectFill"></image>
|
|
|
<p src="" alt="" class="nickname">微信昵称2233</p>
|
|
|
</div>
|
|
|
- <img
|
|
|
- class="bg-img"
|
|
|
- src="https://kiq.xazhima.com//upload/main_page/202109/202109231407288075.jpeg"
|
|
|
- alt=""
|
|
|
- />
|
|
|
+ <image class="bg-img" :src="swiperBackground" mode="aspectFill"></image>
|
|
|
<image src="../../static/Intersect.svg" class="groove-img"></image>
|
|
|
</div>
|
|
|
<div class="options">
|
|
|
@@ -30,20 +26,48 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import md5 from '@/common/md5.js';
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
message: "我的",
|
|
|
list: [
|
|
|
- { icoin: "/static/selfCenter/sign.png", name: "我的建议" },
|
|
|
+ { icoin: "/static/selfCenter/suggest.png", name: "我的建议" },
|
|
|
{ icoin: "/static/selfCenter/sign.png", name: "我的报名" },
|
|
|
{ icoin: "/static/selfCenter/collection.png", name: "我的收藏" },
|
|
|
{ icoin: "/static/selfCenter/back.png", name: "退出登录" },
|
|
|
],
|
|
|
+ swiperBackground:'',
|
|
|
};
|
|
|
},
|
|
|
- onLoad() {},
|
|
|
- methods: {},
|
|
|
+ onLoad() {
|
|
|
+ this.getSwiperList();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ getSwiperList(){
|
|
|
+ let md5Sign = md5("method="+'common'+"×tamp="+getApp().globalData.globalTimestamp+"&secret="+getApp().globalData.secret)
|
|
|
+ let url = getApp().globalData.shareUrl+'api/api.php'+'?method=common&source=main_pics&action=list×tamp='+getApp().globalData.globalTimestamp +'&sign='+md5Sign
|
|
|
+ uni.request({
|
|
|
+ url:url,
|
|
|
+ method: 'POST',
|
|
|
+ header: {
|
|
|
+ 'content-type': 'application/x-www-form-urlencoded'
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ order_by:"weight desc",
|
|
|
+ s_status:1,
|
|
|
+ },
|
|
|
+ success: (res) => {
|
|
|
+ if(res.data.code === 200){
|
|
|
+ this.swiperBackground = getApp().globalData.shareUrl + res.data.data.list[0].pic_path
|
|
|
+ }
|
|
|
+ },
|
|
|
+ fail: () => {
|
|
|
+ console.log("连接失败");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|