Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mini-program-wepy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mini-program-wepy
Commits
3c9a8010
Commit
3c9a8010
authored
May 28, 2020
by
ziyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement: 优化
parent
43e1d87e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
8 deletions
+13
-8
api.js
src/common/api.js
+1
-1
help.wpy
src/pages/help.wpy
+1
-0
index.wpy
src/pages/index.wpy
+1
-1
myraffles.wpy
src/pages/myraffles.wpy
+8
-4
prize.wpy
src/pages/prize.wpy
+1
-1
raffle.wpy
src/pages/raffle.wpy
+1
-1
No files found.
src/common/api.js
View file @
3c9a8010
...
@@ -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
'
);
...
...
src/pages/help.wpy
View file @
3c9a8010
...
@@ -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 {
...
...
src/pages/index.wpy
View file @
3c9a8010
...
@@ -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>
...
...
src/pages/myraffles.wpy
View file @
3c9a8010
...
@@ -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>
src/pages/prize.wpy
View file @
3c9a8010
...
@@ -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>
...
...
src/pages/raffle.wpy
View file @
3c9a8010
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment