Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
doublescreen-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pengguangpu
doublescreen-front
Commits
a5aec0d3
Commit
a5aec0d3
authored
Feb 04, 2020
by
pengguangpu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自定义环形加载条控件;编写支付结果页;ui排版自测;
parent
6a287b22
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
209 additions
and
4 deletions
+209
-4
mini-program.json
.tea/configuration/mini-program.json
+1
-1
config$.js
.tea/entryFiles-development/config$.js
+1
-1
index$.web.js
.tea/entryFiles-development/index$.web.js
+2
-0
index$.worker.js
.tea/entryFiles-development/index$.worker.js
+2
-0
layout.json
.tea/layout.json
+1
-1
app.json
app.json
+1
-0
spin.acss
custom_widgets/spin/spin.acss
+47
-0
spin.axml
custom_widgets/spin/spin.axml
+4
-0
spin.js
custom_widgets/spin/spin.js
+9
-0
spin.json
custom_widgets/spin/spin.json
+3
-0
bg_print_paper.png
images/bg_print_paper.png
+0
-0
ic_success.png
images/ic_success.png
+0
-0
login.js
pages/login/login.js
+1
-1
paysuccess.acss
pages/paysuccess/paysuccess.acss
+90
-0
paysuccess.axml
pages/paysuccess/paysuccess.axml
+38
-0
paysuccess.js
pages/paysuccess/paysuccess.js
+4
-0
paysuccess.json
pages/paysuccess/paysuccess.json
+5
-0
No files found.
.tea/configuration/mini-program.json
View file @
a5aec0d3
{
"tinyType"
:
"alipayiot"
,
"tinyCnName"
:
"支付宝 IoT"
,
"tinyProjectType"
:
"xpaas-mini"
,
"alipayiot:xpaas-mini:tinyIcon"
:
"https://gw.alipayobjects.com/mdn/rms_c763d8/afts/img/A*vNMFT7X_u3sAAAAAAAAAAABkARQnAQ"
,
"alipayiot:xpaas-mini:auditLink"
:
null
,
"alipayiot:xpaas-mini:whiteListLink"
:
null
,
"alipayiot:xpaas-mini:createLink"
:
null
,
"alipayiot:xpaas-mini:component2"
:
false
,
"alipayiot:xpaas-mini:_enableAutoPush"
:
false
,
"alipayiot:xpaas-mini:_appIdList"
:[],
"alipayiot:xpaas-mini:uploadTime"
:
""
,
"alipayiot:xpaas-mini:packageSize"
:
0
,
"alipayiot:xpaas-mini:lastDeviceName"
:
"蜻蜓F4"
,
"isSimulatorOpen"
:
true
,
"isNotFirstToggleSimulator"
:
true
,
"alipayiot:xpaas-mini:MockStore"
:{
"localLoginInfo"
:{
"name"
:
"ywxadmin"
,
"password"
:
"1234567a"
,
"sn"
:
""
},
"localAccountInfo"
:{
"accountId"
:
126
,
"actType"
:
1
,
"agreement"
:
1
,
"isShopCart"
:
0
,
"merchantId"
:
"2088222276054714"
,
"merchantName"
:
"一网鲜(杭州)信息科技有限公司"
,
"realName"
:
"力拔山兮气盖世时不利兮骓不逝"
,
"storeList"
:[{
"address"
:
"杭州市江干区科技园路2号"
,
"hasStoreManager"
:
1
,
"storeId"
:
"001"
,
"storeName"
:
"一网鲜"
}],
"token"
:
"431145114888654848"
,
"userName"
:
"ywxadmin"
,
"userPhone"
:
"13858057743"
}},
"storageVersion"
:
"1.5.7"
}
{
"tinyType"
:
"alipayiot"
,
"tinyCnName"
:
"支付宝 IoT"
,
"tinyProjectType"
:
"xpaas-mini"
,
"alipayiot:xpaas-mini:tinyIcon"
:
"https://gw.alipayobjects.com/mdn/rms_c763d8/afts/img/A*vNMFT7X_u3sAAAAAAAAAAABkARQnAQ"
,
"alipayiot:xpaas-mini:auditLink"
:
null
,
"alipayiot:xpaas-mini:whiteListLink"
:
null
,
"alipayiot:xpaas-mini:createLink"
:
null
,
"alipayiot:xpaas-mini:component2"
:
false
,
"alipayiot:xpaas-mini:_enableAutoPush"
:
false
,
"alipayiot:xpaas-mini:_appIdList"
:[],
"alipayiot:xpaas-mini:uploadTime"
:
""
,
"alipayiot:xpaas-mini:packageSize"
:
0
,
"alipayiot:xpaas-mini:lastDeviceName"
:
"蜻蜓F4"
,
"isSimulatorOpen"
:
true
,
"isNotFirstToggleSimulator"
:
true
,
"alipayiot:xpaas-mini:MockStore"
:{
"localLoginInfo"
:{
"name"
:
"ywxadmin"
,
"password"
:
"1234567a"
,
"sn"
:
""
},
"localAccountInfo"
:{
"accountId"
:
126
,
"actType"
:
1
,
"agreement"
:
1
,
"isShopCart"
:
0
,
"merchantId"
:
"2088222276054714"
,
"merchantName"
:
"一网鲜(杭州)信息科技有限公司"
,
"realName"
:
"力拔山兮气盖世时不利兮骓不逝"
,
"storeList"
:[{
"address"
:
"杭州市江干区科技园路2号"
,
"hasStoreManager"
:
1
,
"storeId"
:
"001"
,
"storeName"
:
"一网鲜"
}],
"token"
:
"431398226761175040"
,
"userName"
:
"ywxadmin"
,
"userPhone"
:
"13858057743"
}},
"storageVersion"
:
"1.5.7"
}
\ No newline at end of file
\ No newline at end of file
.tea/entryFiles-development/config$.js
View file @
a5aec0d3
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
const
g
=
typeof
global
!==
'undefined'
?
global
:
self
;
const
g
=
typeof
global
!==
'undefined'
?
global
:
self
;
g
.
appXAppJson
=
{
g
.
appXAppJson
=
{
"app"
:
{
"app"
:
{
"$homepage"
:
"pages/
login/login
"
"$homepage"
:
"pages/
paysuccess/paysuccess
"
}
}
};
};
.tea/entryFiles-development/index$.web.js
View file @
a5aec0d3
require
(
'@alipay/appx-compiler/lib/sjsEnvInit'
);
require
(
'@alipay/appx-compiler/lib/sjsEnvInit'
);
require
(
'./config$'
);
require
(
'./config$'
);
require
(
'../../custom_widgets/spin/spin?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../node_modules/mini-antui/es/input-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../node_modules/mini-antui/es/input-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../pages/paysuccess/paysuccess?hash=8a39df616008c86a406618844f053cdc5567752b'
);
require
(
'../../pages/login/login?hash=4ebd76d5932655db30c27bd67ebeb700d746609f'
);
require
(
'../../pages/login/login?hash=4ebd76d5932655db30c27bd67ebeb700d746609f'
);
require
(
'../../pages/index/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'
);
require
(
'../../pages/index/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'
);
.tea/entryFiles-development/index$.worker.js
View file @
a5aec0d3
...
@@ -29,7 +29,9 @@ if(AFAppX.registerApp) {
...
@@ -29,7 +29,9 @@ if(AFAppX.registerApp) {
function
success
()
{
function
success
()
{
require
(
'../../app'
);
require
(
'../../app'
);
require
(
'../../custom_widgets/spin/spin?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../node_modules/mini-antui/es/input-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../node_modules/mini-antui/es/input-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'
);
require
(
'../../pages/paysuccess/paysuccess?hash=8a39df616008c86a406618844f053cdc5567752b'
);
require
(
'../../pages/login/login?hash=4ebd76d5932655db30c27bd67ebeb700d746609f'
);
require
(
'../../pages/login/login?hash=4ebd76d5932655db30c27bd67ebeb700d746609f'
);
require
(
'../../pages/index/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'
);
require
(
'../../pages/index/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'
);
}
}
...
...
.tea/layout.json
View file @
a5aec0d3
{
"layout"
:{
"left"
:{
"currentId"
:
"scm_container"
,
"size"
:
310
},
"right"
:{
"currentId"
:
""
},
"bottom"
:{
"currentId"
:
""
,
"size"
:
307
}},
"storageVersion"
:
"1.5.7"
}
{
"layout"
:{
"left"
:{
"currentId"
:
""
,
"size"
:
310
},
"right"
:{
"currentId"
:
""
},
"bottom"
:{
"currentId"
:
""
}},
"storageVersion"
:
"1.5.7"
}
\ No newline at end of file
\ No newline at end of file
app.json
View file @
a5aec0d3
{
{
"pages"
:
[
"pages"
:
[
"pages/paysuccess/paysuccess"
,
"pages/login/login"
,
"pages/login/login"
,
"pages/index/index"
"pages/index/index"
],
],
...
...
custom_widgets/spin/spin.acss
0 → 100644
View file @
a5aec0d3
.cirqueBox {
position: relative;
width: 186rpx;
height: 186rpx;
border-radius: 50%;
-webkit-mask: radial-gradient(transparent, transparent 83rpx, #000 0);
mask: radial-gradient(transparent 83rpx, #000 0);
}
.cirque2 {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
background-color: #0e7afa;
z-index: 1;
}
.cirque1 {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
background-color: #aaa;
z-index: 2;
animation: mymove 1.5s linear infinite;
}
@keyframes mymove {
0% {
clip-path: polygon(93rpx 93rpx, 93rpx -207rpx, -207rpx 93rpx, 93rpx 393rpx, 393rpx 93rpx, 93rpx -207rpx);
}
25% {
clip-path: polygon(93rpx 93rpx, 93rpx -207rpx, -207rpx 93rpx, 93rpx 393rpx, 393rpx 93rpx, 393rpx 93rpx);
}
50% {
clip-path: polygon(93rpx 93rpx, 93rpx -207rpx, -207rpx 93rpx, 93rpx 393rpx, 93rpx 393rpx, 93rpx 393rpx);
}
75% {
clip-path: polygon(93rpx 93rpx, 93rpx -207rpx, -207rpx 93rpx, -207rpx 93rpx, -207rpx 93rpx, -207rpx 93rpx);
}
100% {
clip-path: polygon(93rpx 93rpx, 93rpx -207rpx, 93rpx -207rpx, 93rpx -207rpx, 93rpx -207rpx, 93rpx -207rpx);
}
}
\ No newline at end of file
custom_widgets/spin/spin.axml
0 → 100644
View file @
a5aec0d3
<view class="cirqueBox">
<view class="cirque2"></view>
<view class="cirque1"></view>
</view>
\ No newline at end of file
custom_widgets/spin/spin.js
0 → 100644
View file @
a5aec0d3
Component
({
mixins
:
[],
data
:
{},
props
:
{},
didMount
()
{},
didUpdate
()
{},
didUnmount
()
{},
methods
:
{},
});
custom_widgets/spin/spin.json
0 → 100644
View file @
a5aec0d3
{
"component"
:
true
}
\ No newline at end of file
images/bg_print_paper.png
0 → 100644
View file @
a5aec0d3
18.1 KB
images/ic_success.png
0 → 100644
View file @
a5aec0d3
1.06 KB
pages/login/login.js
View file @
a5aec0d3
...
@@ -134,7 +134,7 @@ Page({
...
@@ -134,7 +134,7 @@ Page({
});
});
//跳转广告页
//跳转广告页
my
.
reLaunch
({
my
.
reLaunch
({
url
:
"/pages/
ad/ad
"
url
:
"/pages/
paysuccess/paysuccess
"
});
});
my
.
showToast
({
my
.
showToast
({
type
:
'success'
,
type
:
'success'
,
...
...
pages/paysuccess/paysuccess.acss
0 → 100644
View file @
a5aec0d3
page {
display: flex;
flex-direction: column;
background-color: #ffffff;
width: 100%;
height: 100%;
align-items: center;
}
.topTitle {
display: flex;
width: 662rpx;
align-content: center;
align-items: center;
/* border: 2px solid red; */
font-size: 45rpx;
font-weight: bold;
margin: 0 auto;
}
.payInfo {
position: relative;
width: 624rpx;
height: 430rpx;
margin: 0 auto;
margin-top: 38rpx;
/* align-content: center;
align-items: center; */
/* border: 2px solid red; */
}
.orderPrice {
display: absolute;
width: 464rpx;
height: 34rpx;
font-size: 34rpx;
color: #7A8599;
margin: 0 auto;
margin-top: 148rpx;
align-content: center;
align-items: center;
/* border: 2px solid red; */
}
.discount {
display: absolute;
width: 464rpx;
height: 34rpx;
font-size: 34rpx;
color: #7A8599;
margin: 0 auto;
margin-top: 30rpx;
align-content: center;
align-items: center;
/* border: 2px solid red; */
}
.payPrice {
display: absolute;
width: 464rpx;
height: 34rpx;
font-size: 34rpx;
font-weight: bold;
color: #000000;
margin: 0 auto;
margin-top: 64rpx;
align-content: center;
align-items: center;
/* border: 2px solid red; */
}
.printLoading {
position: relative;
width: 186rpx;
height: 186rpx;
margin: 0 auto;
margin-top: 38rpx;
/* border: 2px solid red; */
}
.voucher{
display: flex;
position: fixed;
flex-direction: column;
width: 662rpx;
align-content: center;
height: 100%;
margin-bottom: 0rpx;
border: 2px solid red;
}
\ No newline at end of file
pages/paysuccess/paysuccess.axml
0 → 100644
View file @
a5aec0d3
<view class="page">
<view class="topTitle">
<view style="margin:0 auto;margin-top:38rpx;">
<image mode="aspectFit" style="width:53rpx;height:53rpx;margin-right:26rpx;float:left;" src="/images/ic_success.png"/>
<view style="height:53rpx;display:flex;">
<text>支付成功</text>
</view>
</view>
</view>
<view class="payInfo">
<image mode="aspectFit" style="width:624rpx;height:430rpx;" src="/images/bg_print_paper.png"/>
<view style="position:absolute;left:0rpx;top:0rpx;width:624rpx;height:430rpx;">
<view class="orderPrice">
<text style="float:left;">订单总额</text>
<text style="font-weight:bold;float:right;">¥--.--</text>
</view>
<view class="discount">
<text style="float:left;">商家优惠</text>
<text style="font-weight:bold;float:right;">-¥--.--</text>
</view>
<view class="payPrice">
<text style="float:left;" decode=true>共计 {{}} 件 实付:</text>
<text style="font-weight:bold;float:right;color:#F72911;">-¥--.--</text>
</view>
</view>
</view>
<view class="printLoading">
<i-spin></i-spin>
<view style="position:absolute;width:100%;height:100%;left:0rpx;top:0rpx;color:#000000;font-weight:bold;">
<view style="display: absolute;margin:0 auto;align-content: center;align-items: center;text-align:center;line-height:186rpx;">
<text>{{}}</text>
</view>
</view>
</view>
<view class="voucher">
</view>
</view>
\ No newline at end of file
pages/paysuccess/paysuccess.js
0 → 100644
View file @
a5aec0d3
Page
({
data
:
{},
onLoad
()
{},
});
pages/paysuccess/paysuccess.json
0 → 100644
View file @
a5aec0d3
{
"usingComponents"
:
{
"i-spin"
:
"/custom_widgets/spin/spin"
}
}
\ No newline at end of file
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