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
71fff9b1
Commit
71fff9b1
authored
Mar 29, 2021
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addxx
parent
2bffd0f8
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
94 additions
and
60 deletions
+94
-60
components/VerifyIdentity/VerifyIdentity.js
components/VerifyIdentity/VerifyIdentity.js
+1
-1
pages/index/index.wxml
pages/index/index.wxml
+1
-1
pages/lmping/hometwo/hometwo.wxml
pages/lmping/hometwo/hometwo.wxml
+1
-1
pages/shop/shops/weidian/ping_details/ping_details.js
pages/shop/shops/weidian/ping_details/ping_details.js
+17
-0
pages/shop/shops/weidian/ping_details/ping_details.wxml
pages/shop/shops/weidian/ping_details/ping_details.wxml
+10
-3
pages/shop/shops/weidian/ping_details/ping_details.wxss
pages/shop/shops/weidian/ping_details/ping_details.wxss
+1
-1
pages/withdraw/withdraw.js
pages/withdraw/withdraw.js
+63
-53
No files found.
components/VerifyIdentity/VerifyIdentity.js
View file @
71fff9b1
...
...
@@ -94,7 +94,7 @@ Component({
})
}
else
{
//this.hideModal();//隐藏
this
.
triggerEvent
(
"
formsubmit
"
,
{
code
:
this
.
data
.
code
,
phone
:
this
.
data
.
phone
,
type
:
this
.
data
.
type
});
//提交表单
this
.
triggerEvent
(
"
formsubmit
"
,
{
code
:
this
.
data
.
code
,
phone
:
this
.
data
.
phone
,
});
//提交表单 type:this.data.type
this
.
setData
({
code
:
''
});
...
...
pages/index/index.wxml
View file @
71fff9b1
...
...
@@ -35,7 +35,7 @@
<view class="prosrigs flex1">
<view class="protitles twoline">{{item.goods_info.title}}</view>
<view class="priceboxs flex ali-c jus-b">
<
text class="lsjs">零售价¥{{item.goods_info.price}} </text
>
<
!-- <text class="lsjs">零售价¥{{item.goods_info.price}} </text> --
>
<!-- <text class="pingprice">拼拼价¥<text class="num">{{item.spell_price}}</text></text> -->
<view class="pingprice flex ali-c"><text>拼拼价¥</text><text class="num">{{item.spell_price?item.spell_price:300}}</text></view>
</view>
...
...
pages/lmping/hometwo/hometwo.wxml
View file @
71fff9b1
...
...
@@ -75,7 +75,7 @@
<view class="prosrigs flex1">
<view class="protitles twoline">{{item.goods_info.title}}</view>
<view class="priceboxs flex ali-c jus-b">
<
text class="lsjs">零售价¥{{item.goods_info.price}} </text
>
<
!-- <text class="lsjs">零售价¥{{item.goods_info.price}} </text> --
>
<!-- <text class="pingprice">拼拼价¥<text class="num">{{item.spell_price}}</text></text> -->
<view class="pingprice flex ali-c"><text>拼拼价¥</text><text class="num">{{item.spell_price}}</text></view>
</view>
...
...
pages/shop/shops/weidian/ping_details/ping_details.js
View file @
71fff9b1
...
...
@@ -104,6 +104,8 @@ Page({
model_id_list
:[],
//授权成功的模板id
showaddressstate
:
false
,
},
//关闭拼团弹窗
onClosetwos
(){
...
...
@@ -480,6 +482,15 @@ Page({
}
},
address
:
function
(
e
)
{
if
(
this
.
data
.
showaddressstate
){
return
false
;
}
this
.
setData
({
showaddressstate
:
true
,
})
addrList
({
type
:
2
,
//外卖地址
// shop_lat:this.data.shop.lat,
...
...
@@ -505,6 +516,12 @@ Page({
}
}
setTimeout
(()
=>
{
this
.
setData
({
showaddressstate
:
false
,
})
},
2000
);
})
},
...
...
pages/shop/shops/weidian/ping_details/ping_details.wxml
View file @
71fff9b1
...
...
@@ -48,9 +48,16 @@
<view class="kapian">
<image class="kapianbg" src="{{clientImgPath}}/images/lmping/productimgs.png"></image>
<view class="kapianboxs flex ali-c jus-b">
<view class="kapian_l ">
<text class="kapian_l_1">¥</text>
<text class="kapian_l_2">{{goods.f_disprice}}</text>
<view class="kapian_l ali-c">
<text class="kapian_l_1">拼拼价¥</text>
<text class="kapian_l_2">{{pingmoney}}</text>
<!-- <view class="ml-30 ali-c" style="">
<text class="kapian_l_1">原价¥</text>
<text style="text-decoration: line-through;color: #fff;" class="kapian_l_2">{{goods.f_disprice}}</text>
</view> -->
</view>
<view class="kapian_r" >
{{rentersum}}人正在拼
...
...
pages/shop/shops/weidian/ping_details/ping_details.wxss
View file @
71fff9b1
...
...
@@ -107,7 +107,7 @@ color:white;
/* width:240rpx; */
height:50rpx;
line-height: 50rpx;
font-size:
28
rpx;
font-size:
30
rpx;
font-family:PingFang SC;
font-weight:bold;
justify-content: center;
...
...
pages/withdraw/withdraw.js
View file @
71fff9b1
...
...
@@ -18,11 +18,11 @@ Page({
currentTab
:
0
,
inputLength
:
0
,
inputLengths
:
0
,
is_cash
:
true
,
ismoneyshow
:
false
,
ismoneyshow
:
false
,
iShidden
:
false
,
//授权弹窗是否显示
iShidden
:
false
,
//授权弹窗是否显示
},
/**
...
...
@@ -37,17 +37,17 @@ Page({
currentTab
:
options
.
bank_id
?
2
:
0
,
})
if
(
options
.
type
==
2
)
{
if
(
options
.
type
==
2
)
{
wx
.
setNavigationBarTitle
({
title
:
'
商家提现
'
title
:
'
商家提现
'
})
}
if
(
!
wx
.
getStorageSync
(
'
userInfo
'
)
)
{
this
.
setData
({
hidden
:
true
});
if
(
!
wx
.
getStorageSync
(
'
userInfo
'
))
{
this
.
setData
({
hidden
:
true
});
return
;
}
this
.
setData
({
hidden
:
false
});
this
.
setData
({
hidden
:
false
});
this
.
onLoadFun
();
...
...
@@ -63,7 +63,7 @@ Page({
userInfo
:
res
.
data
.
info
,
})
if
(
res
.
data
.
info
.
mobile
==
""
||
res
.
data
.
info
.
mobile
==
null
)
{
if
(
res
.
data
.
info
.
mobile
==
""
||
res
.
data
.
info
.
mobile
==
null
)
{
//去绑定手机号~
wx
.
redirectTo
({
url
:
'
/pages/register/register
'
,
...
...
@@ -85,34 +85,48 @@ Page({
},
//验证身份时 用户在组件内点击提交按钮后 返回用户手机号码和验证码
formsubmit
(
data
){
let
postparams
=
this
.
data
.
params
||
{};
let
verify
=
data
.
detail
;
let
params
=
{};
delete
verify
.
type
;
//true
Object
.
assign
(
params
,
postparams
,
verify
);
this
.
optWithdraw
(
params
);
formsubmit
(
data
)
{
// let postparams = this.data.params || {};
// let verify = data.detail;
// let params = {};
// delete verify.type; //true
// Object.assign(params, postparams, verify);
// this.optWithdraw(params);
//提现
let
params
=
{
code
:
data
.
detail
.
code
,
//add
phone
:
data
.
detail
.
phone
,
//add
type
:
this
.
data
.
type
,
money
:
this
.
data
.
money
,
totype
:
this
.
data
.
totype
,
bank_realname
:
this
.
data
.
bank_realname
,
user_bank_id
:
this
.
data
.
user_bank_id
,
paw_val
:
this
.
data
.
paw_val
,
};
this
.
optWithdraw
(
params
);
},
/**
* 生命周期函数--监听页面显示
*/
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
if
(
!
wx
.
getStorageSync
(
'
userInfo
'
)
)
{
this
.
setData
({
hidden
:
true
});
if
(
!
wx
.
getStorageSync
(
'
userInfo
'
))
{
this
.
setData
({
hidden
:
true
});
return
;
}
this
.
setData
({
hidden
:
false
});
this
.
setData
({
hidden
:
false
});
// this.onLoadFun();
//选银行卡
let
selbankcard
=
wx
.
getStorageSync
(
'
selbankcard
'
);
if
(
selbankcard
)
{
if
(
selbankcard
)
{
wx
.
setStorageSync
(
'
selbankcard
'
,
""
);
this
.
setData
({
bank_id
:
selbankcard
.
bank_id
,
bank
:
selbankcard
,
bank
:
selbankcard
,
})
}
},
...
...
@@ -177,11 +191,11 @@ Page({
},
allMoney
:
function
(
e
)
{
var
that
=
this
;
var
type
=
e
.
currentTarget
.
dataset
.
type
;
console
.
info
(
type
,
"
type
"
);
console
.
info
(
type
,
"
type
"
);
if
(
type
==
0
)
{
that
.
setData
({
money
:
this
.
data
.
userInfo
.
commission
,
//佣金
...
...
@@ -201,15 +215,15 @@ Page({
console
.
log
(
that
.
data
.
ismoneyshow
)
},
setUserInfo
(
e
){
//点击了授权
if
(
e
.
detail
)
{
setUserInfo
(
e
)
{
//点击了授权
if
(
e
.
detail
)
{
this
.
onLoadFun
();
}
},
onLoadFun
(
e
)
{
let
params
=
{
bank_id
:
this
.
data
.
bank_id
,
hasuser
:
true
,
hasuser
:
true
,
};
//获取银行卡
...
...
@@ -224,16 +238,16 @@ Page({
}
}
let
realname
=
banklist
?
banklist
[
'
realname
'
]
:
''
;
this
.
setData
({
bank
:
banklist
,
bank_realname
:
res
.
data
.
cash
?
res
.
data
.
cash
.
bank_realname
:
realname
,
deposit
:
res
.
data
.
deposit
,
account
:
res
.
data
.
account
account
:
res
.
data
.
account
})
}).
catch
(
err
=>
{
if
(
res
.
data
.
code
==
-
10800
)
{
this
.
setData
({
hidden
:
true
});
}).
catch
(
err
=>
{
if
(
res
.
data
.
code
==
-
10800
)
{
this
.
setData
({
hidden
:
true
});
}
})
},
...
...
@@ -258,7 +272,7 @@ Page({
formId
:
formData
.
formId
})
}
},
...
...
@@ -284,7 +298,7 @@ Page({
//佣金提现到悦想余额
if
(
that
.
data
.
totype
==
0
)
{
let
params
=
{
...
...
@@ -310,17 +324,14 @@ Page({
}
})
}
else
if
(
that
.
data
.
totype
==
1
||
that
.
data
.
totype
==
2
)
{
let
params
=
{
type
:
that
.
data
.
type
,
money
:
that
.
data
.
money
,
totype
:
that
.
data
.
totype
,
bank_realname
:
that
.
data
.
bank_realname
,
user_bank_id
:
that
.
data
.
user_bank_id
,
}
else
if
(
that
.
data
.
totype
==
1
||
that
.
data
.
totype
==
2
)
{
console
.
info
(
"
1101
"
);
this
.
setData
({
paw_val
:
paw_val
,
};
this
.
optWithdraw
(
params
);
}
else
{
})
this
.
selectComponent
(
"
#VerifyIdentity
"
).
showModal
();
//弹出验证身份的弹窗~
}
else
{
app
.
showModal
({
content
:
"
非法操作!
"
})
...
...
@@ -328,9 +339,8 @@ Page({
}
},
optWithdraw
:
function
(
params
){
let
that
=
this
;
optWithdraw
:
function
(
params
)
{
let
that
=
this
;
userWithdraw
(
params
).
then
(
res
=>
{
that
.
setData
({
is_cash
:
true
...
...
@@ -341,18 +351,18 @@ Page({
url
:
"
/pages/withdrawal_success/withdrawal_success?type=
"
+
that
.
data
.
totype
+
"
&money=
"
+
that
.
data
.
money
+
"
&intro=
"
+
(
that
.
data
.
bank
?
that
.
data
.
bank
.
bank_name
:
''
)
})
}
else
{
if
(
res
.
code
==-
2
)
{
if
(
res
.
code
==
-
2
)
{
//要求手机验证码
that
.
setData
({
params
:
params
})
this
.
selectComponent
(
"
#VerifyIdentity
"
).
showModal
();
}
else
{
}
else
{
app
.
showModal
({
content
:
res
.
msg
})
}
}
})
},
...
...
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