Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
cbe8fb2e
Commit
cbe8fb2e
authored
Sep 03, 2019
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f85d70c0
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
94 additions
and
166 deletions
+94
-166
app.json
app.json
+9
-43
index.wxml
business/pages/pointsexchangerecord/index.wxml
+2
-2
index.js
components/scoregetfeedback/index.js
+1
-1
exchangerecord.js
src/pages/integralfile/exchangerecord.js
+36
-47
exchangerecord.json
src/pages/integralfile/exchangerecord.json
+2
-1
exchangerecord.wxml
src/pages/integralfile/exchangerecord.wxml
+27
-0
exchangerecord.wxss
src/pages/integralfile/exchangerecord.wxss
+9
-31
index.js
src/pages/integralfile/index.js
+2
-2
index.json
src/pages/integralfile/index.json
+0
-0
index.wxml
src/pages/integralfile/index.wxml
+0
-0
index.wxss
src/pages/integralfile/index.wxss
+0
-0
inout.js
src/pages/integralfile/inout.js
+1
-1
inout.json
src/pages/integralfile/inout.json
+0
-0
inout.wxml
src/pages/integralfile/inout.wxml
+0
-0
inout.wxss
src/pages/integralfile/inout.wxss
+0
-0
rule.js
src/pages/integralfile/rule.js
+0
-0
rule.json
src/pages/integralfile/rule.json
+0
-0
rule.wxml
src/pages/integralfile/rule.wxml
+0
-0
rule.wxss
src/pages/integralfile/rule.wxss
+0
-0
goodsdetail.js
src/pages/mall/goodsdetail.js
+0
-0
goodsdetail.json
src/pages/mall/goodsdetail.json
+0
-0
goodsdetail.wxml
src/pages/mall/goodsdetail.wxml
+1
-4
goodsdetail.wxss
src/pages/mall/goodsdetail.wxss
+0
-0
index.js
src/pages/mall/index.js
+3
-3
index.wxml
src/pages/pointsexchangerecord/index.wxml
+0
-30
index.js
ucenter/index.js
+1
-1
No files found.
app.json
View file @
cbe8fb2e
...
...
@@ -425,21 +425,18 @@
"root"
:
"src/pages/mall"
,
"name"
:
"mall"
,
"pages"
:
[
"index"
]
},
{
"root"
:
"src/pages/myscoreindex"
,
"name"
:
"myscoreindex"
,
"pages"
:
[
"index"
"index"
,
"goodsdetail"
]
},
{
"root"
:
"src/pages/
scoreprodetail
"
,
"name"
:
"
scoreprodetail
"
,
"root"
:
"src/pages/
integralfile
"
,
"name"
:
"
integralfile
"
,
"pages"
:
[
"index"
"index"
,
"inout"
,
"rule"
,
"exchangerecord"
]
},
{
...
...
@@ -630,27 +627,6 @@
"index"
]
},
{
"root"
:
"src/pages/pointsrule"
,
"name"
:
"pointsrule"
,
"pages"
:
[
"index"
]
},
{
"root"
:
"src/pages/pointsexchangerecord"
,
"name"
:
"pointsexchangerecord"
,
"pages"
:
[
"index"
]
},
{
"root"
:
"src/pages/pointsInOut"
,
"name"
:
"pointsInOut"
,
"pages"
:
[
"index"
]
},
{
"root"
:
"business/pages/scoreproedit"
,
"name"
:
"businessscoreproedit"
,
...
...
@@ -711,7 +687,7 @@
"mylikes"
,
"growthrecord"
,
"mall"
,
"
myscoreindex
"
,
"
integralfile
"
,
"rankingList"
,
"exchangebusiness"
,
"papersquare"
,
...
...
@@ -747,16 +723,6 @@
"clockdetail"
]
},
"src/pages/myscoreindex/index"
:
{
"network"
:
"all"
,
"packages"
:
[
"pointsInOut"
,
"pointsrule"
,
"mall"
,
"scoretasklist"
,
"rankingList"
]
},
"src/pages/papersquare/index"
:
{
"network"
:
"all"
,
"packages"
:
[
...
...
business/pages/pointsexchangerecord/index.wxml
View file @
cbe8fb2e
<wxs src="./../../../filter/index.wxs" module="filter" />
<view class="container points-exchange-record">
<view class="record-list" wx:if="{{
recordList.length!=0
}}">
<view class="record-list" wx:if="{{
!emptyPage
}}">
<block wx:for="{{recordList}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex">
<view class="record-item" wx:for="{{bigitem}}" wx:key="" data-info="{{item}}" bindtap="toCheckRecord">
<image class="item-points-pic" src="{{filter.imagify(item.good.cover)}}" mode="aspectFit|aspectFill|widthFix"></image>
...
...
@@ -18,6 +18,6 @@
</view>
</block>
</view>
<empty-content text="暂无兑换记录~" emptyimg="" wx:if="{{
recordList.length==0
}}"></empty-content>
<empty-content text="暂无兑换记录~" emptyimg="" wx:if="{{
emptyPage
}}"></empty-content>
<view class="has-nomore" wx:if="{{!emptyPage && !hasmore}}">没有更多了</view>
</view>
components/scoregetfeedback/index.js
View file @
cbe8fb2e
...
...
@@ -35,7 +35,7 @@ Component({
},
goscorecenter
()
{
wx
.
navigateTo
({
url
:
`/src/pages/
myscoreindex
/index?sid=
${
this
.
data
.
sid
}
`
url
:
`/src/pages/
integralfile
/index?sid=
${
this
.
data
.
sid
}
`
});
}
}
...
...
src/pages/
pointsexchangerecord/index
.js
→
src/pages/
integralfile/exchangerecord
.js
View file @
cbe8fb2e
...
...
@@ -41,20 +41,19 @@ Page({
school_id
:
this
.
data
.
sid
,
remark
:
''
})
wx
.
hideShareMenu
();
},
onShow
()
{
this
.
setData
({
page
:
1
,
hasmore
:
true
,
})
this
.
data
.
page
=
1
this
.
pointsExchangeRecordGet
(
'init'
)
},
onPullDownRefresh
:
function
()
{
this
.
setData
({
hasmore
:
true
,
page
:
1
,
})
this
.
data
.
page
=
1
this
.
pointsExchangeRecordGet
(
'down'
)
},
onReachBottom
:
function
()
{
...
...
@@ -83,66 +82,50 @@ Page({
}
else
{
if
(
data
.
total
)
{
this
.
setData
({
recordTotal
:
data
.
total
})
this
.
data
.
recordTotal
=
data
.
total
}
switch
(
type
)
{
case
'init'
:
//页面进来第一次加载
this
.
setData
({
recordList
:
data
.
list
||
[]
},
()
=>
{
if
(
this
.
data
.
recordTotal
>
this
.
data
.
recordList
.
length
)
{
let
page
=
this
.
data
.
page
+
1
;
this
.
setData
({
page
,
})
}
else
{
// 没有更多了
this
.
setData
({
hasmore
:
false
})
}
recordList
:
[
data
.
list
]
})
if
(
this
.
data
.
recordTotal
>
this
.
caculateArrLength
(
this
.
data
.
recordList
))
{
this
.
data
.
page
+=
1
;
}
else
{
// 没有更多了
this
.
setData
({
hasmore
:
false
})
}
break
;
case
'down'
:
// 页面下拉刷新
this
.
setData
({
recordList
:
data
.
list
||
[]
},
()
=>
{
if
(
this
.
data
.
recordTotal
>
this
.
data
.
recordList
.
length
)
{
let
page
=
this
.
data
.
page
+
1
;
this
.
setData
({
page
,
})
}
else
{
// 没有更多了
this
.
setData
({
hasmore
:
false
})
}
recordList
:
[
data
.
list
]
})
if
(
this
.
data
.
recordTotal
>
this
.
caculateArrLength
(
this
.
data
.
recordList
))
{
this
.
data
.
page
+=
1
;
}
else
{
// 没有更多了
this
.
setData
({
hasmore
:
false
})
}
wx
.
stopPullDownRefresh
();
break
;
case
'up'
:
// 页面上拉刷新
let
list
=
this
.
data
.
recordList
;
let
_list
=
list
.
concat
(
data
.
list
);
this
.
setData
({
recordList
:
_list
},
()
=>
{
if
(
this
.
data
.
recordTotal
>
this
.
data
.
recordList
.
length
)
{
let
page
=
this
.
data
.
page
+
1
;
this
.
setData
({
page
,
})
}
else
{
// 没有更多了
this
.
setData
({
hasmore
:
false
})
}
[
`recordList[
${
this
.
data
.
page
-
1
}
]`
]:
data
.
list
,
})
if
(
this
.
data
.
recordTotal
>
this
.
caculateArrLength
(
this
.
data
.
recordList
))
{
this
.
data
.
page
+=
1
;
}
else
{
// 没有更多了
this
.
setData
({
hasmore
:
false
})
}
break
;
default
:
break
;
}
if
(
this
.
data
.
recordList
.
length
==
0
)
{
if
(
this
.
caculateArrLength
(
this
.
data
.
recordList
)
==
0
)
{
this
.
setData
({
emptyPage
:
true
})
...
...
@@ -162,9 +145,8 @@ Page({
toCheckRecord
(
e
)
{
let
that
=
this
;
const
{
dataset
}
=
e
.
currentTarget
;
console
.
log
(
dataset
)
wx
.
navigateTo
({
url
:
`/src/pages/
scoreprodetail/index
?sid=
${
this
.
data
.
sid
}
&gid=
${
dataset
.
info
.
id
}
&pagefrom=exchange`
,
url
:
`/src/pages/
mall/goodsdetail
?sid=
${
this
.
data
.
sid
}
&gid=
${
dataset
.
info
.
id
}
&pagefrom=exchange`
,
})
},
formIdCreate
(
e
)
{
...
...
@@ -175,4 +157,11 @@ Page({
formId
})
},
caculateArrLength
(
array
)
{
let
_length
=
0
;
array
.
forEach
(
ele
=>
{
_length
=
_length
+
ele
.
length
;
})
return
_length
;
},
})
\ No newline at end of file
src/pages/
pointsexchangerecord/index
.json
→
src/pages/
integralfile/exchangerecord
.json
View file @
cbe8fb2e
...
...
@@ -3,6 +3,7 @@
"enablePullDownRefresh"
:
true
,
"usingComponents"
:
{
"list-loading"
:
"../../../components/listloading"
,
"sjdbottombar"
:
"../../../components/sjdbottombar"
"sjdbottombar"
:
"../../../components/sjdbottombar"
,
"empty-content"
:
"../../../components/emptycontent"
}
}
\ No newline at end of file
src/pages/integralfile/exchangerecord.wxml
0 → 100644
View file @
cbe8fb2e
<wxs src="../../../filter/index.wxs" module="filter" />
<view class="container">
<view class="record-list" wx:if="{{!emptyPage}}">
<block wx:for="{{recordList}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex">
<view class="record-item" wx:for="{{bigitem}}" wx:key="" data-info="{{item}}" bindtap="toCheckRecord">
<image class="item-points-pic" src="{{filter.imagify(item.good.cover)}}" mode="aspectFit|aspectFill|widthFix"></image>
<view class="item-content-box">
<view class="item-top">
<view class="item-title">{{item.good.title}}</view>
<view class="item-points">-{{item.good.price}}积分</view>
</view>
<view class="item-checkperson">
<view class="checkpeople"></view>
<view wx:if="{{item.verify_status==1}}" class="checkstatus">待核销</view>
</view>
<image class="checkstatus-icon" wx:if="{{item.verify_status==2}}" src="{{imageRoot}}2c/mall/hasexchange.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix"></image>
</view>
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
</view>
</block>
<list-loading loading="{{listLoading}}"></list-loading>
</view>
<empty-content text="您还没有已经兑换的奖品哦~" emptyimg="common/empty/empty_c_sraech.png" width="263" height="219" wx:if="{{emptyPage}}"></empty-content>
<view class="has-nomore" wx:if="{{!emptyPage && !hasmore}}">没有更多了</view>
</view>
src/pages/
pointsexchangerecord/index
.wxss
→
src/pages/
integralfile/exchangerecord
.wxss
View file @
cbe8fb2e
page{
min-height:100%;
background:#F7F7F9;
}
.
points-exchange-record
{
.
container
{
width: 100%;
padding: 25rpx 24rpx;
padding: 25rpx 24rpx
0
;
}
.record-list{
}
.record-item{
.record-list{}
.record-list .record-item{
width: 100%;
height: 170rpx;
background:
rgba(255,255,255,1)
;
background:
#fff
;
border-radius: 20rpx;
box-sizing: border-box;
display: flex;
...
...
@@ -22,6 +19,9 @@ page{
padding: 17rpx 30rpx 17rpx 17rpx;
position: relative;
}
.record-list .record-item:last-of-type{
margin-bottom: 0;
}
.record-item .item-points-pic{
width: 157rpx;
min-width: 157rpx;
...
...
@@ -69,26 +69,4 @@ page{
bottom: 8rpx;
width: 99rpx;
height: 90rpx;
}
.empty-content {
padding-top: 152rpx;
}
.empty-content .empty-img-box {
width: 263rpx;
height: 219rpx;
margin: 0 auto;
}
.empty-content .empty-img-box .empty-icon {
width: 263rpx;
height: 219rpx;
}
.empty-content .empty-text {
padding-top: 47rpx;
text-align: center;
font-size: 26rpx;
color: rgba(0, 0, 0, 0.5);
padding-bottom: 217rpx;
}
}
\ No newline at end of file
src/pages/
myscoreindex
/index.js
→
src/pages/
integralfile
/index.js
View file @
cbe8fb2e
...
...
@@ -202,13 +202,13 @@ Page({
// 积分规则
toRulePage
()
{
wx
.
navigateTo
({
url
:
`/src/pages/
pointsrule/index
?sid=
${
this
.
data
.
sid
}
`
url
:
`/src/pages/
integralfile/rule
?sid=
${
this
.
data
.
sid
}
`
})
},
// 积分明细
toPointsInOutPage
()
{
wx
.
navigateTo
({
url
:
`/src/pages/
pointsInOut/index
?sid=
${
this
.
data
.
sid
}
`
url
:
`/src/pages/
integralfile/inout
?sid=
${
this
.
data
.
sid
}
`
})
},
// 积分商城
...
...
src/pages/
myscoreindex
/index.json
→
src/pages/
integralfile
/index.json
View file @
cbe8fb2e
File moved
src/pages/
myscoreindex
/index.wxml
→
src/pages/
integralfile
/index.wxml
View file @
cbe8fb2e
File moved
src/pages/
myscoreindex
/index.wxss
→
src/pages/
integralfile
/index.wxss
View file @
cbe8fb2e
File moved
src/pages/
pointsInOut/index
.js
→
src/pages/
integralfile/inout
.js
View file @
cbe8fb2e
...
...
@@ -219,7 +219,7 @@ Page({
// 赚积分
goEarnPoints
()
{
wx
.
navigateTo
({
url
:
`/src/pages/
myscoreindex
/index?sid=
${
this
.
data
.
sid
}
`
url
:
`/src/pages/
integralfile
/index?sid=
${
this
.
data
.
sid
}
`
})
}
})
\ No newline at end of file
src/pages/
pointsInOut/index
.json
→
src/pages/
integralfile/inout
.json
View file @
cbe8fb2e
File moved
src/pages/
pointsInOut/index
.wxml
→
src/pages/
integralfile/inout
.wxml
View file @
cbe8fb2e
File moved
src/pages/
pointsInOut/index
.wxss
→
src/pages/
integralfile/inout
.wxss
View file @
cbe8fb2e
File moved
src/pages/
pointsrule/index
.js
→
src/pages/
integralfile/rule
.js
View file @
cbe8fb2e
File moved
src/pages/
pointsrule/index
.json
→
src/pages/
integralfile/rule
.json
View file @
cbe8fb2e
File moved
src/pages/
pointsrule/index
.wxml
→
src/pages/
integralfile/rule
.wxml
View file @
cbe8fb2e
File moved
src/pages/
pointsrule/index
.wxss
→
src/pages/
integralfile/rule
.wxss
View file @
cbe8fb2e
File moved
src/pages/
scoreprodetail/index
.js
→
src/pages/
mall/goodsdetail
.js
View file @
cbe8fb2e
File moved
src/pages/
scoreprodetail/index
.json
→
src/pages/
mall/goodsdetail
.json
View file @
cbe8fb2e
File moved
src/pages/
scoreprodetail/index
.wxml
→
src/pages/
mall/goodsdetail
.wxml
View file @
cbe8fb2e
...
...
@@ -9,7 +9,7 @@
</view>
</view>
<view class="swiperbox" wx:if="{{params.type == 1}}">
<swiper style="height: 310rpx" bindchange="swiperChange">
<swiper style="height: 310rpx" bindchange="swiperChange"
circular="true"
>
<swiper-item class="" item-id="" wx:for="{{params.banner}}" wx:key="{{index}}">
<image class="swiperimg" src="{{filter.imagify(item)}}" ></image>
</swiper-item>
...
...
@@ -18,9 +18,6 @@
<view class="proswiper" wx:if="{{params.type == 1}}">
<view class="swiperpagination">
<view class="dot {{swiperIndex == index ? 'active' : ''}}" wx:for="{{params.banner}}" wx:key="{{index}}"></view>
<!-- <view class="dot"></view>
<view class="dot active"></view>
<view class="dot"></view> -->
</view>
</view>
<view class="prodetail" >
...
...
src/pages/
scoreprodetail/index
.wxss
→
src/pages/
mall/goodsdetail
.wxss
View file @
cbe8fb2e
File moved
src/pages/mall/index.js
View file @
cbe8fb2e
...
...
@@ -143,18 +143,18 @@ Page({
},
goEarnPoints
()
{
wx
.
navigateTo
({
url
:
`/src/pages/
myscoreindex
/index?sid=
${
this
.
data
.
sid
}
`
url
:
`/src/pages/
integralfile
/index?sid=
${
this
.
data
.
sid
}
`
})
},
goExchangeList
()
{
wx
.
navigateTo
({
url
:
`/src/pages/
pointsexchangerecord/index
?sid=
${
this
.
data
.
sid
}
`
,
url
:
`/src/pages/
integralfile/exchangerecord
?sid=
${
this
.
data
.
sid
}
`
,
})
},
goGoodDetail
(
e
)
{
const
{
id
}
=
e
.
currentTarget
.
dataset
;
wx
.
navigateTo
({
url
:
`/src/pages/
scoreprodetail/index
?sid=
${
this
.
data
.
sid
}
&gid=
${
id
}
`
,
url
:
`/src/pages/
mall/goodsdetail
?sid=
${
this
.
data
.
sid
}
&gid=
${
id
}
`
,
})
},
formIdCreate
(
e
)
{
...
...
src/pages/pointsexchangerecord/index.wxml
deleted
100644 → 0
View file @
f85d70c0
<wxs src="../../../filter/index.wxs" module="filter" />
<view class="container points-exchange-record">
<view class="record-list">
<view class="record-item" wx:for="{{recordList}}" wx:key="" data-info="{{item}}" bindtap="toCheckRecord">
<image class="item-points-pic" src="{{filter.imagify(item.good.cover)}}" mode="aspectFit|aspectFill|widthFix"></image>
<view class="item-content-box">
<view class="item-top">
<view class="item-title">{{item.good.title}}</view>
<view class="item-points">-{{item.good.price}}积分</view>
</view>
<view class="item-checkperson">
<view class="checkpeople"></view>
<view wx:if="{{item.verify_status==1}}" class="checkstatus">待核销</view>
</view>
<image class="checkstatus-icon" wx:if="{{item.verify_status==2}}" src="{{imageRoot}}2c/mall/hasexchange.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix"></image>
</view>
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
</view>
<list-loading loading="{{listLoading}}"></list-loading>
</view>
<view class="empty-content" wx:if="{{emptyPage}}">
<view class="empty-img-box" >
<image class="empty-icon" src='{{imageRoot}}2c/rankinglist/empty.png?{{imageVersion}}'></image>
</view>
<view class="empty-text" >您还没有已经兑换的奖品哦~</view>
</view>
<sjdbottombar></sjdbottombar>
</view>
ucenter/index.js
View file @
cbe8fb2e
...
...
@@ -366,7 +366,7 @@ Page({
return
}
wx
.
navigateTo
({
url
:
`/src/pages/
myscoreindex
/index?sid=
${
this
.
data
.
sid
}
`
,
url
:
`/src/pages/
integralfile
/index?sid=
${
this
.
data
.
sid
}
`
,
})
},
toSetting
()
{
...
...
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