Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
拼
拼时代
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xieyishang
拼时代
Commits
2bffd0f8
Commit
2bffd0f8
authored
Mar 27, 2021
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addxx
parent
caa203db
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
305 additions
and
158 deletions
+305
-158
components/Calendartwo/Calendartwo.js
components/Calendartwo/Calendartwo.js
+75
-64
pages/index/index.wxml
pages/index/index.wxml
+1
-1
pages/lmping/hometwo/hometwo.js
pages/lmping/hometwo/hometwo.js
+1
-1
pages/lmping/hometwo/hometwo.wxml
pages/lmping/hometwo/hometwo.wxml
+2
-1
pages/lmping/hometwo/hometwo.wxss
pages/lmping/hometwo/hometwo.wxss
+3
-1
pages/lmping/order/order.js
pages/lmping/order/order.js
+73
-38
pages/lmping/order/order.wxml
pages/lmping/order/order.wxml
+9
-1
pages/lmping/order/order.wxss
pages/lmping/order/order.wxss
+1
-1
pages/lmping/pushcard/pushcard.wxss
pages/lmping/pushcard/pushcard.wxss
+1
-1
pages/lmping/signin/signin.js
pages/lmping/signin/signin.js
+47
-2
pages/lmping/signin/signin.wxml
pages/lmping/signin/signin.wxml
+4
-2
pages/lmping/user/user.js
pages/lmping/user/user.js
+4
-1
pages/lmping/user/user.wxml
pages/lmping/user/user.wxml
+15
-15
pages/lmping/user/user.wxss
pages/lmping/user/user.wxss
+23
-23
pages/shop/shops/weidian/ping_details/ping_details.js
pages/shop/shops/weidian/ping_details/ping_details.js
+40
-3
pages/shop/shops/weidian/ping_details/ping_details.wxml
pages/shop/shops/weidian/ping_details/ping_details.wxml
+2
-2
pages/withdraw/withdraw.wxml
pages/withdraw/withdraw.wxml
+4
-1
No files found.
components/Calendartwo/Calendartwo.js
View file @
2bffd0f8
...
...
@@ -2,19 +2,19 @@
const
app
=
getApp
();
var
clientImgPath
=
app
.
globalData
.
clientImgPath
;
var
img_host
=
app
.
globalData
.
ImgPath
;
var
staticUrl
=
app
.
globalData
.
staticUrl
;
import
{
formatZero
}
from
"
../../utils/util
"
;
var
staticUrl
=
app
.
globalData
.
staticUrl
;
import
{
formatZero
}
from
"
../../utils/util
"
;
import
{
Spellsign
,
getSignInfo
}
from
"
../../api/lmping.js
"
;
import
{
Spellsign
,
getSignInfo
}
from
"
../../api/lmping.js
"
;
Component
({
/**
* 组件的属性列表
*/
properties
:
{
signdates
:{
type
:
Array
,
value
:[],
signdates
:
{
type
:
Array
,
value
:
[],
},
sendYear
:
{
...
...
@@ -35,19 +35,19 @@ Component({
},
},
observers
:
{
'
signdates
'
:
function
(
field
)
{
'
signdates
'
:
function
(
field
)
{
this
.
properties
.
signdates
=
field
},
},
attached
()
{
// this.data.cur_year = this.properties.sendYear;
// this.data.cur_month = this.properties.sendMonth;
// this.data.SignUp = this.properties.dataSource;
console
.
log
(
this
.
data
.
days
)
console
.
log
(
this
.
properties
.
signdates
)
this
.
setData
({
cur_year
:
this
.
properties
.
sendYear
,
cur_month
:
this
.
properties
.
sendMonth
,
...
...
@@ -77,16 +77,16 @@ Component({
toYear
:
parseInt
(
new
Date
().
getFullYear
()),
//本年
weeks_ch
:
[
'
日
'
,
'
一
'
,
'
二
'
,
'
三
'
,
'
四
'
,
'
五
'
,
'
六
'
],
weeks_en
:
[
'
Sun
'
,
'
Mon
'
,
'
Tues
'
,
'
Wed
'
,
'
Thur
'
,
'
Fri
'
,
'
Sat
'
],
total_count
:
''
,
showeggs
:
true
,
total_count
:
''
,
showeggs
:
true
,
clientImgPath
,
img_host
,
staticUrl
,
showpuptwos
:
false
,
datesindex
:
0
,
huodecup
:
5
,
showpuptwos
:
false
,
datesindex
:
0
,
huodecup
:
5
,
},
/**
...
...
@@ -94,32 +94,32 @@ Component({
*/
methods
:
{
//快速签到事件 父组件调用
tosigs
(){
tosigs
()
{
// console.info("触发进来了~");
this
.
clickSignUp
({
currentTarget
:{
dataset
:{
type
:
1
,
date
:
1
,
index
:
1
}}
});
this
.
clickSignUp
({
currentTarget
:
{
dataset
:
{
type
:
1
,
date
:
1
,
index
:
1
}
}
});
},
showpupfun
(){
showpupfun
()
{
this
.
setData
({
showpuptwos
:
true
showpuptwos
:
true
})
},
onClosetwos
(){
onClosetwos
()
{
this
.
setData
({
showpuptwos
:
false
,
showpuptwos
:
false
,
})
},
alreadySign
(){
alreadySign
()
{
wx
.
showToast
({
title
:
'
不能重复签到
'
,
icon
:
'
none
'
icon
:
'
none
'
})
},
beforesign
(){
beforesign
()
{
wx
.
showToast
({
title
:
'
不能提前签到
'
,
icon
:
'
none
'
icon
:
'
none
'
})
},
// 获取当月共多少天
...
...
@@ -153,7 +153,7 @@ Component({
// 绘制当月天数占的格子,并把它放到days数组中
calculateDays
(
year
,
month
)
{
this
.
triggerEvent
(
'
counts
'
,
this
.
data
.
total_count
)
this
.
triggerEvent
(
'
counts
'
,
this
.
data
.
total_count
)
let
that
=
this
console
.
log
(
year
,
month
)
const
thisMonthDays
=
this
.
getThisMonthDays
(
year
,
month
);
...
...
@@ -171,39 +171,48 @@ Component({
}
console
.
log
(
this
.
properties
.
dataSource
)
this
.
getSignInfofun
();
},
getSignInfofun
(){
console
.
info
(
`
${
this
.
data
.
cur_year
}
-
${
formatZero
(
this
.
data
.
cur_month
,
2
)}
`
,
"
666
"
);
getSignInfofun
()
{
console
.
info
(
`
${
this
.
data
.
cur_year
}
-
${
formatZero
(
this
.
data
.
cur_month
,
2
)}
`
,
"
666
"
);
getSignInfo
({
month
:
`
${
this
.
data
.
cur_year
}
-
${
formatZero
(
this
.
data
.
cur_month
,
2
)}
`
}).
then
(
res
=>
{
if
(
res
.
code
==
0
){
let
daysdata
=
res
.
data
.
list
let
days
=
this
.
data
.
days
.
map
((
item
,
index
)
=>
{
// console.log(item)
daysdata
.
map
((
itm
)
=>
{
if
(
item
.
date
==
itm
.
day
){
item
.
isSign
=
true
}
})
//
if
(
item
.
date
==
this
.
data
.
today
&&
this
.
data
.
cur_month
==
this
.
data
.
toMonth
&&
this
.
data
.
cur_year
==
this
.
data
.
toYear
){
this
.
setData
({
datesindex
:
index
,
})
}
return
item
;
})
month
:
`
${
this
.
data
.
cur_year
}
-
${
formatZero
(
this
.
data
.
cur_month
,
2
)}
`
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
let
daysdata
=
res
.
data
.
list
let
days
=
this
.
data
.
days
.
map
((
item
,
index
)
=>
{
// console.log(item)
daysdata
.
map
((
itm
)
=>
{
if
(
item
.
date
==
itm
.
day
)
{
item
.
isSign
=
true
}
if
(
item
.
date
==
this
.
data
.
today
&&
this
.
data
.
cur_month
==
this
.
data
.
toMonth
&&
this
.
data
.
cur_year
==
this
.
data
.
toYear
&&
item
.
date
==
itm
.
day
)
{
// this.setData({
// datesindex:index,
// })
console
.
info
(
"
开发测试
"
,
"
今日已签到
"
);
this
.
triggerEvent
(
'
changestate
'
,
1
);
//修改状态
}
})
//
if
(
item
.
date
==
this
.
data
.
today
&&
this
.
data
.
cur_month
==
this
.
data
.
toMonth
&&
this
.
data
.
cur_year
==
this
.
data
.
toYear
)
{
this
.
setData
({
da
ys
da
tesindex
:
index
,
})
let
obj
=
{
signCount
:
res
.
data
.
signCount
,
continuity_day
:
res
.
data
.
continuity_day
,
couponNum
:
res
.
data
.
couponNum
};
this
.
triggerEvent
(
'
setcounts
'
,
obj
)
}
}
return
item
;
})
this
.
setData
({
days
})
let
obj
=
{
signCount
:
res
.
data
.
signCount
,
continuity_day
:
res
.
data
.
continuity_day
,
couponNum
:
res
.
data
.
couponNum
};
this
.
triggerEvent
(
'
setcounts
'
,
obj
)
}
})
},
...
...
@@ -226,6 +235,8 @@ Component({
if
(
year
==
this
.
cur_year
&&
month
==
this
.
cur_month
&&
daysArr
[
j
].
date
==
day
)
{
//&& signs[i].isSign == "今日已打卡"
// console.log(daysArr[j].date, day);
daysArr
[
j
].
isSign
=
true
;
console
.
info
(
"
开发测试123
"
);
}
}
}
...
...
@@ -237,12 +248,12 @@ Component({
// 切换控制年月,上一个月,下一个月
handleCalendar
(
event
)
{
var
type
=
event
.
currentTarget
.
dataset
.
type
;
const
cur_year
=
parseInt
(
this
.
data
.
cur_year
);
const
cur_month
=
parseInt
(
this
.
data
.
cur_month
);
var
newMonth
;
var
newYear
=
cur_year
;
...
...
@@ -269,8 +280,8 @@ Component({
newYear
,
newMonth
,
cur_month
:
newMonth
,
//addxx
cur_year
:
newYear
,
cur_month
:
newMonth
,
//addxx
cur_year
:
newYear
,
})
...
...
@@ -295,7 +306,7 @@ Component({
let
type
=
value
.
currentTarget
.
dataset
.
type
let
date
=
value
.
currentTarget
.
dataset
.
date
let
index
=
value
.
currentTarget
.
dataset
.
index
console
.
info
(
"
index
"
,
this
.
data
.
datesindex
);
console
.
info
(
"
index
"
,
this
.
data
.
datesindex
);
// return false
var
str
=
"
签到
"
;
if
(
type
==
0
)
{
//如果不需要补签功能直接在这阻止不执行后面的代码就行。
...
...
@@ -319,14 +330,14 @@ Component({
// })
this
.
setData
({
showpuptwos
:
true
,
showpuptwos
:
true
,
})
this
.
getSignInfofun
();
this
.
onJudgeSign
();
}
else
{
//测试
wx
.
showToast
({
title
:
res
.
msg
,
...
...
pages/index/index.wxml
View file @
2bffd0f8
...
...
@@ -23,7 +23,7 @@
<view class="prosheadbox">
<view class="titboxsd">
<image class="proshead" src="{{clientImgPath}}/images/lmping/groupbgs.png" mode=""></image>
<view class="pingttexts">
悦想拼{{lundata[item.type-1]}}轮
</view>
<view class="pingttexts">
{{lundata[item.type-1]}}礼包
</view>
</view>
</view>
<view class="promains">
...
...
pages/lmping/hometwo/hometwo.js
View file @
2bffd0f8
...
...
@@ -61,7 +61,7 @@ Page({
return
;
}
wx
.
navigateTo
({
url
:
`/pages/shop/shops/weidian/ping_details/ping_details?goods_id=
${
item
.
goods_id
}
&group_id=
${
item
.
group_id
}
&rentersum=
${
item
.
is_join
}
&ppj=
${
item
.
spell_price
}
`
,
url
:
`/pages/shop/shops/weidian/ping_details/ping_details?goods_id=
${
item
.
goods_id
}
&group_id=
${
item
.
group_id
}
&rentersum=
${
item
.
join_num
}
&ppj=
${
item
.
spell_price
}
`
,
})
},
//通过字符串小时 获取当前时间戳
...
...
pages/lmping/hometwo/hometwo.wxml
View file @
2bffd0f8
...
...
@@ -80,7 +80,8 @@
<view class="pingprice flex ali-c"><text>拼拼价¥</text><text class="num">{{item.spell_price}}</text></view>
</view>
<view class="pings flex ali-c jus-b">
<text class="count">{{item.is_join}}人正在拼</text>
<text wx:if="{{item.timestate==2}}" class="count">{{item.join_num}}人已拼过</text>
<text wx:if="{{item.timestate!=2}}" class="count">{{item.join_num}}人正在拼</text>
<view wx:if="{{item.timestate==2}}" class="pingbtns pingbtns1">已结束</view>
<view wx:if="{{item.timestate!=2}}" class="pingbtns">马上拼</view>
...
...
pages/lmping/hometwo/hometwo.wxss
View file @
2bffd0f8
...
...
@@ -128,7 +128,9 @@
}
.pings .pingbtns1{
background: linear-gradient(247deg, #bfa0a2, #000000);
/* background: linear-gradient(247deg, #ff7241, #ff7241); */
background: #f79956;
}
...
...
pages/lmping/order/order.js
View file @
2bffd0f8
// pages/lmping/order/order.js
const
app
=
getApp
();
var
clientImgPath
=
app
.
globalData
.
clientImgPath
;
import
{
getSpellWinList
}
from
"
../../../api/lmping.js
"
;
import
{
getSpellWinList
}
from
"
../../../api/lmping.js
"
;
var
staticUrl
=
app
.
globalData
.
staticUrl
;
Page
({
// 0 正在拼团
// 1 拼团失败
// 2 拼团成功
// 0 正在拼团
// 1 拼团失败
// 2 拼团成功
/**
* 页面的初始数据
*/
data
:
{
scrleft
:
0
,
classid
:
0
,
showtis
:
false
,
scrleft
:
0
,
classid
:
0
,
showtis
:
false
,
clientImgPath
,
staticUrl
,
page
:
0
,
isshowall
:
false
,
page
:
0
,
isshowall
:
false
,
datalist
:
[],
datalist
:[],
thisYMD
:
""
,
//当天时间
hidden
:
false
,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
if
(
options
.
tab
==
0
)
{
if
(
options
.
tab
==
0
)
{
this
.
setData
({
classid
:
0
,
classid
:
0
,
})
//...
}
else
if
(
options
.
tab
==
2
)
{
}
else
if
(
options
.
tab
==
2
)
{
this
.
setData
({
classid
:
2
,
classid
:
2
,
})
//...
}
else
if
(
options
.
tab
==
1
)
{
this
.
setData
({
classid
:
1
,
})
//...
}
this
.
getSpellWinListFun
();
//获取当前年月日
var
date
=
new
Date
();
var
year
=
date
.
getFullYear
();
//获取当前年份(2位)
var
MM
=
date
.
getMonth
()
+
1
;
if
(
MM
<
10
)
{
MM
=
"
0
"
+
MM
;
}
var
DD
=
date
.
getDate
();
this
.
setData
({
thisYMD
:
`
${
year
}
-
${
MM
}
-
${
DD
}
`
,
})
},
setUserInfo
(){
this
.
setData
({
page
:
0
,
isshowall
:
false
,
datalist
:
[],
})
this
.
getSpellWinListFun
();
},
//点击中奖的产品
clickitems
(){
if
(
this
.
data
.
classid
==
2
)
{
clickitems
()
{
if
(
this
.
data
.
classid
==
2
)
{
this
.
onClosetis1
();
//去查看订单详情~
}
},
changeClass
(
e
){
changeClass
(
e
)
{
this
.
setData
({
classid
:
e
.
currentTarget
.
dataset
.
id
,
isshowall
:
false
,
page
:
0
,
datalist
:[],
classid
:
e
.
currentTarget
.
dataset
.
id
,
isshowall
:
false
,
page
:
0
,
datalist
:
[],
})
this
.
getSpellWinListFun
();
//重新请求数据
},
//显示提示
showtis
(){
showtis
()
{
this
.
setData
({
showtis
:
true
,
showtis
:
true
,
})
},
onClosetis
(){
onClosetis
()
{
this
.
setData
({
showtis
:
false
,
showtis
:
false
,
})
},
//查看订单
onClosetis1
(){
onClosetis1
()
{
this
.
setData
({
showtis
:
false
,
showtis
:
false
,
})
wx
.
navigateTo
({
url
:
'
/pages/order/order?currentTab=1&status=1,2
'
,
})
},
//参团列表
getSpellWinListFun
(){
getSpellWinListFun
()
{
this
.
data
.
page
++
;
getSpellWinList
({
is_win
:
this
.
data
.
classid
,
//? 0 参与中 1是已中奖 1未中奖
page
:
this
.
data
.
page
,
}).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
data
.
length
==
0
)
{
is_win
:
this
.
data
.
classid
,
//? 0 参与中 1是已中奖 1未中奖
page
:
this
.
data
.
page
,
}).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
data
.
length
==
0
)
{
this
.
setData
({
isshowall
:
true
,
isshowall
:
true
,
})
wx
.
showToast
({
title
:
'
没有更多了~
'
,
icon
:
"
none
"
icon
:
"
none
"
})
}
this
.
setData
({
datalist
:
[...
this
.
data
.
datalist
,
...
res
.
data
]
datalist
:
[...
this
.
data
.
datalist
,
...
res
.
data
]
})
}
})
...
...
@@ -112,7 +142,12 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
if
(
!
wx
.
getStorageSync
(
'
userInfo
'
)){
this
.
setData
({
hidden
:
true
,
});
return
;
}
},
/**
...
...
@@ -140,7 +175,7 @@ Page({
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
if
(
this
.
data
.
isshowall
==
false
)
{
if
(
this
.
data
.
isshowall
==
false
)
{
this
.
getSpellWinListFun
();
}
},
...
...
pages/lmping/order/order.wxml
View file @
2bffd0f8
...
...
@@ -22,6 +22,10 @@
<!-- 拼团记录列表 -->
<view class="ptorderbody">
<view class="ptorderitem" wx:for="{{datalist}}" wx:key="index">
<view class="ordertisline flex ali-c jus-b" wx:if="{{classid == 0}}" >
<view class="tistitle tistitle11">开团时间: {{thisYMD}} {{item.end_time}}</view>
</view>
<view wx:if="{{classid == 2}}" bindtap="showtis" class="ordertisline flex ali-c jus-b">
<view class="tistitle">恭喜您拼团成功,请等待发货</view>
<image class="titsicons" src="{{clientImgPath}}/images/lmping/ordertis.png" mode=""></image>
...
...
@@ -47,6 +51,7 @@
</view>
</view>
</view>
<empty wx:if="{{datalist.length==0}}"></empty>
...
...
@@ -64,4 +69,7 @@
</van-popup>
</view>
\ No newline at end of file
</view>
<!-- 登陆授权弹窗 -->
<login hidden="{{hidden}}" bind:setUserInfo="setUserInfo" />
\ No newline at end of file
pages/lmping/order/order.wxss
View file @
2bffd0f8
...
...
@@ -58,7 +58,7 @@ page {
}
.ptorderbody {
padding:
20
rpx 24rpx;
padding:
35
rpx 24rpx;
}
.ptorderitem {
...
...
pages/lmping/pushcard/pushcard.wxss
View file @
2bffd0f8
...
...
@@ -44,7 +44,7 @@ page {
}
.yaoqingma{
padding-top: 2
2
0rpx;
padding-top: 2
1
0rpx;
padding-bottom: 20rpx;
text-align: center;
font-size: 30rpx;
...
...
pages/lmping/signin/signin.js
View file @
2bffd0f8
...
...
@@ -13,10 +13,55 @@ Page({
continuity_day
:
0
,
//连续签到天数
couponNum
:
0
,
//优惠券数量
signCount
:
0
,
//共签到天数
issignin
:
0
,
// 是否已签到 1是 0否
},
//点击签到按钮 签到
tosigs
(){
this
.
selectComponent
(
"
#Calendartwo
"
).
tosigs
();
//去签到
if
(
this
.
data
.
issignin
==
1
){
return
false
;
}
wx
.
requestSubscribeMessage
({
tmplIds
:
[
'
9xeKmbrizAedCEgCdAjD7_Qt0GdYHs1dTEvL9ZEY_NI
'
,
//中奖结果通知
'
8TkrhjwrRTw1gGd7xwQoGlfR7CNshUrVM6f2HuRh6hk
'
,
//活动开始提醒模板ID
'
t5ktB2Cg_dxPHnHLmMoRJ2aIErp3Uv6yzsTjctgYCGY
'
,
////积分变动通知
],
success
:(
res1
)
=>
{
console
.
info
(
res1
,
"
res1
"
);
var
model_id_list
=
[];
for
(
var
i
in
res1
){
if
(
res1
[
i
]
==
'
accept
'
){
model_id_list
.
push
(
i
)
}
};
console
.
info
(
"
model_id_list
"
,
model_id_list
);
this
.
setData
({
model_id_list
:
model_id_list
,
//授权的模板id
})
//model_id_list
//继续执行
this
.
selectComponent
(
"
#Calendartwo
"
).
tosigs
();
//去签到
//允许的 accept "reject" 是拒绝
},
fail
:(
res
)
=>
{
//继续执行
this
.
selectComponent
(
"
#Calendartwo
"
).
tosigs
();
//去签到
console
.
log
(
res
);
}
})
//完事后调用下面的方法就行
},
//组件修改页面是否签到状态
changestate
(
e
){
console
.
info
(
e
,
"
eee
"
);
this
.
setData
({
issignin
:
e
.
detail
,
})
},
showguize
(){
this
.
setData
({
...
...
@@ -36,7 +81,7 @@ Page({
},
//签到子组件调用
setcounts
(
e
){
console
.
info
(
e
);
//
console.info(e);
this
.
setData
({
continuity_day
:
e
.
detail
.
continuity_day
,
//连续签到天数
couponNum
:
e
.
detail
.
couponNum
,
//悦想券数量
...
...
pages/lmping/signin/signin.wxml
View file @
2bffd0f8
...
...
@@ -8,7 +8,9 @@
<view bindtap="tosigs" class="Partakeboxmain ali-c" >
<view class="Partake ali-c jus-c">
<view class="texts texts1">签到</view>
<view wx:if="{{issignin==1}}">已签到</view>
<view wx:else class="texts texts1">签到</view>
</view>
<view class="Partakebox ali-c"></view>
</view>
...
...
@@ -39,7 +41,7 @@
<!-- 签到日历 -->
<view class="signinmain">
<!-- <Calendartwo @counts="counts"></Calendartwo> -->
<Calendartwo id="Calendartwo" bind:setcounts="setcounts" bind:popshows="popshows"></Calendartwo>
<Calendartwo id="Calendartwo" bind:
changestate="changestate" bind:
setcounts="setcounts" bind:popshows="popshows"></Calendartwo>
</view>
<!-- 签到日历end -->
...
...
pages/lmping/user/user.js
View file @
2bffd0f8
...
...
@@ -26,13 +26,16 @@ Page({
is_shop
:
2
,
//1 商家 2不是商家
timedatas
:
0
,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
this
.
setData
({
timedatas
:
Math
.
round
(
new
Date
()
/
1000
),
})
},
setUserInfo
(
e
)
{
//点击了授权
if
(
e
.
detail
)
{
...
...
pages/lmping/user/user.wxml
View file @
2bffd0f8
...
...
@@ -91,22 +91,22 @@
</view>
<view class="servehall_body flex ali-c flex-wrap">
<navigator url="/pages/lmping/myfans/myfans" class="navitem" hover-class="none">
<image class="imgiocn imgiocn1" src="{{clientImgPath}}/images/lmping/fensi.png" mode=""></image>
<image class="imgiocn imgiocn1" src="{{clientImgPath}}/images/lmping/fensi.png
?a={{timedatas}}
" mode=""></image>
<view class="navnames">我的粉丝</view>
</navigator>
<navigator url="/pages/withdraw_record/withdraw_record" class="navitem" hover-class="none">
<image class="imgiocn imgiocn2" src="{{clientImgPath}}/images/lmping/witlog.png" mode=""></image>
<image class="imgiocn imgiocn2" src="{{clientImgPath}}/images/lmping/witlog.png
?a={{timedatas}}
" mode=""></image>
<view class="navnames">提现记录</view>
</navigator>
<navigator url="/pages/withdraw/withdraw" class="navitem" hover-class="none">
<image class="imgiocn imgiocn11" src="{{clientImgPath}}/images/lmping/withdraw.png" mode=""></image>
<image class="imgiocn imgiocn11" src="{{clientImgPath}}/images/lmping/withdraw.png
?a={{timedatas}}
" mode=""></image>
<view class="navnames">前往提现</view>
</navigator>
<navigator url="/pages/lmping/lmvallog/lmvallog" class="navitem" style="margin-top: 57rpx;" hover-class="none">
<image class="imgiocn imgiocn3" src="{{clientImgPath}}/images/lmping/toplog.png" mode=""></image>
<image class="imgiocn imgiocn3" src="{{clientImgPath}}/images/lmping/toplog.png
?a={{timedatas}}
" mode=""></image>
<view class="navnames">悦想值记录</view>
</navigator>
<!-- <view class="navitem" style="margin-top: 57rpx;">
...
...
@@ -115,43 +115,43 @@
</view> -->
<navigator url="/pages/lmping/pushcard/pushcard?secret_key={{secret_key}}" class="navitem" style="margin-top: 57rpx;" hover-class="none">
<image class="imgiocn imgiocn5" src="{{clientImgPath}}/images/lmping/tmingp.png" mode=""></image>
<image class="imgiocn imgiocn5" src="{{clientImgPath}}/images/lmping/tmingp.png
?a={{timedatas}}
" mode=""></image>
<view class="navnames">推广名片</view>
</navigator>
<navigator url="/pages/lmping/order/order" class="navitem" style="margin-top: 57rpx;" hover-class="none">
<image class="imgiocn imgiocn6" src="{{clientImgPath}}/images/lmping/tuan
img.png
" mode=""></image>
<image class="imgiocn imgiocn6" src="{{clientImgPath}}/images/lmping/tuan
twoicon.png?a={{timedatas}}
" mode=""></image>
<view class="navnames">拼团订单</view>
</navigator>
<navigator url="/pages/lmping/rechargelog/rechargelog" class="navitem" style="margin-top: 57rpx;" hover-class="none">
<image class="imgiocn imgiocn7" src="{{clientImgPath}}/images/lmping/gmlogs.png" mode=""></image>
<image class="imgiocn imgiocn7" src="{{clientImgPath}}/images/lmping/gmlogs.png
?a={{timedatas}}
" mode=""></image>
<view class="navnames">购买记录</view>
</navigator>
<navigator url="/pages/address_list/address_list?type=0" class="navitem" style="margin-top: 57rpx;" hover-class="none">
<image class="imgiocn imgiocn8" src="{{clientImgPath}}/images/lmping/addressicon.png" mode=""></image>
<image class="imgiocn imgiocn8" src="{{clientImgPath}}/images/lmping/addressicon.png
?a={{timedatas}}
" mode=""></image>
<view class="navnames">收货地址</view>
</navigator>
<!-- <navigator url="/pages/lmping/activitydescri/activitydescri" class="navitem" style="margin-top: 57rpx;" hover-class="none">
<image class="imgiocn imgiocn9" src="{{clientImgPath}}/images/lmping/ruleicon.png" mode=""></image>
<image class="imgiocn imgiocn9" src="{{clientImgPath}}/images/lmping/ruleicon.png
?a={{timedatas}}
" mode=""></image>
<view class="navnames">规则说明</view>
</navigator> -->
<!-- <navigator open-type="switchTab" url="/pages/index/index" class="navitem" style="margin-top: 57rpx;" hover-class="none">
<image class="imgiocn imgiocn10" src="{{clientImgPath}}/images/lmping/proto.png" mode=""></image>
<image class="imgiocn imgiocn10" src="{{clientImgPath}}/images/lmping/proto.png
?a={{timedatas}}
" mode=""></image>
<view class="navnames">前往产品区</view>
</navigator> -->
<navigator url="/pages/set/set" class="navitem" style="margin-top: 57rpx;" hover-class="none">
<image class="imgiocn imgiocn14" src="{{clientImgPath}}/images/lmping/seticon.png" mode=""></image>
<image class="imgiocn imgiocn14" src="{{clientImgPath}}/images/lmping/seticon.png
?a={{timedatas}}
" mode=""></image>
<view class="navnames">设置中心</view>
</navigator>
<navigator url="/pages/lmping/profitlog/profitlog" class="navitem" style="margin-top: 57rpx;" hover-class="none">
<image class="imgiocn imgiocn13" src="{{clientImgPath}}/images/lmping/profitlog.png" mode=""></image>
<image class="imgiocn imgiocn13" src="{{clientImgPath}}/images/lmping/profitlog.png
?a={{timedatas}}
" mode=""></image>
<view class="navnames">收益明细</view>
</navigator>
...
...
@@ -160,19 +160,19 @@
<!-- /pages/Ishop/Ishop -->
<navigator wx:if="{{is_shop==1}}" url="/pages/Ishop/Ishop" class="navitem" style="margin-top: 57rpx;" hover-class="none">
<image class="imgiocn imgiocn16" src="{{clientImgPath}}/images/lmping/mystoreicon.png" mode=""></image>
<image class="imgiocn imgiocn16" src="{{clientImgPath}}/images/lmping/mystoreicon.png
?a={{timedatas}}
" mode=""></image>
<view class="navnames">我的店铺</view>
</navigator>
<navigator url="/pages/order/order" class="navitem" style="margin-top: 57rpx;" hover-class="none">
<image class="imgiocn imgiocn15" src="{{clientImgPath}}/images/lmping/snedorder.png" mode=""></image>
<image class="imgiocn imgiocn15" src="{{clientImgPath}}/images/lmping/snedorder.png
?a={{timedatas}}
" mode=""></image>
<view class="navnames">物流订单</view>
</navigator>
<navigator url="/pages/aboutus/aboutusnav/aboutusnav" class="navitem" style="margin-top: 57rpx;" hover-class="none">
<image class="imgiocn imgiocn12" src="{{clientImgPath}}/images/lmping/aboutus.png" mode=""></image>
<image class="imgiocn imgiocn12" src="{{clientImgPath}}/images/lmping/aboutus.png
?a={{timedatas}}
" mode=""></image>
<view class="navnames">关于我们</view>
</navigator>
...
...
pages/lmping/user/user.wxss
View file @
2bffd0f8
...
...
@@ -167,18 +167,18 @@ page {
margin: 0 auto;
}
.servehall .servehall_body .imgiocn1 {
width:
62
rpx;
height: 5
6
rpx;
width:
58
rpx;
height: 5
3
rpx;
}
.servehall .servehall_body .imgiocn2 {
width: 5
8
rpx;
width: 5
9
rpx;
height: 58rpx;
}
.servehall .servehall_body .imgiocn3 {
width: 5
7
rpx;
height: 5
7
rpx;
width: 5
4
rpx;
height: 5
4
rpx;
}
.servehall .servehall_body .imgiocn4 {
...
...
@@ -187,22 +187,22 @@ page {
}
.servehall .servehall_body .imgiocn5 {
width:
62
rpx;
height: 5
6
rpx;
width:
59
rpx;
height: 5
3
rpx;
}
.servehall .servehall_body .imgiocn6 {
width: 5
0
rpx;
height: 56
rpx;
width: 5
2
rpx;
height: 57
rpx;
}
.servehall .servehall_body .imgiocn7{
width: 5
6
rpx;
height: 5
5
rpx;
width: 5
9
rpx;
height: 5
8
rpx;
}
.servehall .servehall_body .imgiocn8{
width: 5
7
rpx;
height: 5
6
rpx;
width: 5
9
rpx;
height: 5
8
rpx;
}
.servehall .servehall_body .imgiocn9{
width: 53rpx;
...
...
@@ -214,17 +214,17 @@ page {
}
.servehall .servehall_body .imgiocn11{
width: 6
0
rpx;
height: 4
5
rpx;
width: 6
3
rpx;
height: 4
8
rpx;
}
.servehall .servehall_body .imgiocn12{
width: 5
5
rpx;
height:
49
rpx;
width: 5
8
rpx;
height:
52
rpx;
}
.servehall .servehall_body .imgiocn13{
width: 5
0
rpx;
height: 5
5
rpx;
width: 5
2
rpx;
height: 5
7
rpx;
}
.servehall .servehall_body .imgiocn14{
...
...
@@ -233,12 +233,12 @@ page {
}
.servehall .servehall_body .imgiocn15{
width: 5
0
rpx;
height: 5
4
rpx;
width: 5
5
rpx;
height: 5
9
rpx;
}
.servehall .servehall_body .imgiocn16{
width: 5
3
rpx;
height: 5
3
rpx;
width: 5
5
rpx;
height: 5
5
rpx;
}
.servehall .servehall_body .navnames {
...
...
pages/shop/shops/weidian/ping_details/ping_details.js
View file @
2bffd0f8
...
...
@@ -102,6 +102,8 @@ Page({
showpuptwos
:
false
,
model_id_list
:[],
//授权成功的模板id
},
//关闭拼团弹窗
onClosetwos
(){
...
...
@@ -112,12 +114,46 @@ Page({
url
:
'
/pages/lmping/user/user
'
,
})
},
//显示模板id 涂上
topingfunone
(
e
){
//授权
//消息提示
wx
.
requestSubscribeMessage
({
tmplIds
:
[
'
9xeKmbrizAedCEgCdAjD7_Qt0GdYHs1dTEvL9ZEY_NI
'
,
//中奖结果通知
'
8TkrhjwrRTw1gGd7xwQoGlfR7CNshUrVM6f2HuRh6hk
'
,
//活动开始提醒模板ID
'
t5ktB2Cg_dxPHnHLmMoRJ2aIErp3Uv6yzsTjctgYCGY
'
,
////积分变动通知
],
success
:(
res1
)
=>
{
console
.
info
(
res1
,
"
res1
"
);
var
model_id_list
=
[];
for
(
var
i
in
res1
){
if
(
res1
[
i
]
==
'
accept
'
){
model_id_list
.
push
(
i
)
}
};
console
.
info
(
"
model_id_list
"
,
model_id_list
);
this
.
setData
({
model_id_list
:
model_id_list
,
//授权的模板id
})
//model_id_list
this
.
topingfun
(
e
.
currentTarget
.
dataset
.
type
);
//继续执行
//允许的 accept "reject" 是拒绝
},
fail
:(
res
)
=>
{
this
.
topingfun
(
e
.
currentTarget
.
dataset
.
type
);
//继续执行
console
.
log
(
res
);
}
})
//完事后调用下面的方法就行
},
//点击拼都到这里面
topingfun
(
e
)
{
topingfun
(
types
)
{
//自动 1 马上2
console
.
info
(
e
);
this
.
setData
({
pingtype
:
e
.
currentTarget
.
dataset
.
type
,
pingtype
:
types
,
//
e.currentTarget.dataset.type,
})
//去选地址
...
...
@@ -130,6 +166,7 @@ Page({
group_id
:
this
.
data
.
group_id
,
addr_id
:
this
.
data
.
submitaddrid
,
is_auto
:
is_auto
,
model_id_list
:
this
.
data
.
model_id_list
,
}).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
{
// wx.showToast({
...
...
pages/shop/shops/weidian/ping_details/ping_details.wxml
View file @
2bffd0f8
...
...
@@ -165,9 +165,9 @@
</view>
<view class="db_box_right flex ali-c">
<button bindtap="topingfun" data-type="1" class="ping1" type="primary">自动拼团</button>
<button bindtap="topingfun
one
" data-type="1" class="ping1" type="primary">自动拼团</button>
<!-- <button class="ping1" type="primary">自动拼团</button> -->
<button bindtap="topingfun" data-type="2" class="ping2" type="primary">马上拼团</button>
<button bindtap="topingfun
one
" data-type="2" class="ping2" type="primary">马上拼团</button>
</view>
</view>
...
...
pages/withdraw/withdraw.wxml
View file @
2bffd0f8
...
...
@@ -69,7 +69,10 @@
</view>
<view class="sz_24 inp_hui mt-30" style="color:#f64f15">
提现规则:500元以下预计秒到;500元以上T+1到账;节假日顺延;提现时间为:8:00—21:00;提现最低额度为:50元;每日最多提现三次,提现间隔最少15分钟一次。
提现规则:到账时间为T+1;节假日顺延;
<view>
提现时间为:8:00—21:00;提现最低额度为:50元;每日最多提现三次,提现间隔最少15分钟一次。
</view>
<view>
提现手续费:个人提现5%。
</view>
...
...
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