Commit 3c9a8010 authored by ziyu's avatar ziyu

improvement: 优化

parent 43e1d87e
...@@ -32,7 +32,7 @@ module.exports = { ...@@ -32,7 +32,7 @@ module.exports = {
return http.post('/api/user/join/list'); return http.post('/api/user/join/list');
}, },
getOneRaffle(params) { getOneRaffle(params) {
return http.post('/api/user/join/list',params); return http.post('/api/user/join/info',params);
}, },
getUserPhone() { getUserPhone() {
return http.post('/api/user/get/phone'); return http.post('/api/user/get/phone');
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
.help-title{ .help-title{
font-size: 30rpx; font-size: 30rpx;
color:#333; color:#333;
font-weight:bold;
padding-top:30rpx; padding-top:30rpx;
} }
.help-info { .help-info {
......
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
</swiper-item> </swiper-item>
</swiper> </swiper>
</view> --> </view> -->
<view class="authmodal" v-show="authmodal"> <view class="authmodal" v-if="authmodal">
<view class="wrap"> <view class="wrap">
<view class="text">来到lukii,再平凡的人,<br>也有幸运的权利!</view> <view class="text">来到lukii,再平凡的人,<br>也有幸运的权利!</view>
<button open-type="getUserInfo" bindgetuserinfo="getUserInfo">授权并进入</button> <button open-type="getUserInfo" bindgetuserinfo="getUserInfo">授权并进入</button>
......
...@@ -12,10 +12,7 @@ ...@@ -12,10 +12,7 @@
padding:30rpx 0 0 30rpx; padding:30rpx 0 0 30rpx;
overflow: hidden; overflow: hidden;
.item-img{ .item-img{
width:150rpx;
height:150rpx;
float: left; float: left;
border-radius: 10rpx;
} }
.item-right{ .item-right{
margin-left:170rpx; margin-left:170rpx;
...@@ -86,7 +83,10 @@ ...@@ -86,7 +83,10 @@
<template> <template>
<view class="raffles-list"> <view class="raffles-list">
<view class="raffle-item" wx:for="{{list}}" wx:key="index"> <view class="raffle-item" wx:for="{{list}}" wx:key="index">
<image src="{{item.prize.photoUrl}}" class="item-img"></image> <van-image use-loading-slot src="{{item.prize.photoUrl}}" class="item-img" width="150rpx" height="150rpx" radius="10rpx" fit="cover">
<van-loading slot="loading" type="spinner" size="20" vertical />
</van-image>
<!--<image src="{{item.prize.photoUrl}}" class="item-img"></image>-->
<view class="item-right"> <view class="item-right">
<view class="item-title">{{item.prize.name}}</view> <view class="item-title">{{item.prize.name}}</view>
<view class="item-corn">花费: {{item.quantity}}克币</view> <view class="item-corn">花费: {{item.quantity}}克币</view>
...@@ -124,5 +124,9 @@ ...@@ -124,5 +124,9 @@
<config> <config>
{ {
navigationBarTitleText: '我的抽奖', navigationBarTitleText: '我的抽奖',
"usingComponents": {
"van-image": "../components/vant/image/index",
"van-loading": "../components/vant/loading/index",
}
} }
</config> </config>
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<import src="../components/vant/picker/toolbar.wxml" /> <import src="../components/vant/picker/toolbar.wxml" />
<view class="prize-wrapper"> <view class="prize-wrapper">
<view class="prize-top"> <view class="prize-top">
<van-image use-loading-slot src="{{prize.photoUrl}}" class="img" width="400rpx" height="400rpx" radius="10rpx"> <van-image use-loading-slot src="{{prize.photoUrl}}" class="img" width="400rpx" height="400rpx" radius="10rpx" fit="cover">
<van-loading slot="loading" type="spinner" size="20" vertical /> <van-loading slot="loading" type="spinner" size="20" vertical />
</van-image> </van-image>
<view class="goodsname">{{prize.name}}</view> <view class="goodsname">{{prize.name}}</view>
......
...@@ -226,7 +226,7 @@ ...@@ -226,7 +226,7 @@
this.progressStyle = 'width:' + progress; this.progressStyle = 'width:' + progress;
} }
this.batchId = batchId; this.batchId = batchId;
this.quantity = quantity; this.quantity = quantity||'';
this.name = name; this.name = name;
this.chance = chance; this.chance = chance;
this.photoUrl = photoUrl; this.photoUrl = photoUrl;
......
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