Commit 5e6b8a2a by kyle

个人中心对接

parent 8fda25ff
...@@ -164,6 +164,10 @@ export default { ...@@ -164,6 +164,10 @@ export default {
//去提现接口 //去提现接口
goFortuneWithdrawal(params){ goFortuneWithdrawal(params){
return request(`${apiURL}/fortune/goFortuneWithdrawal`, "POST", params) return request(`${apiURL}/fortune/goFortuneWithdrawal`, "POST", params)
},
// 支付宝支付
aliAppPay(params){
return request(`${apiURL}/aliPay/aliAppPay`, "POST", params)
} }
} }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name" : "CFFP财富中心", "name" : "CFFP财富中心",
"appid" : "__UNI__65C4CDC", "appid" : "__UNI__65C4CDC",
"description" : "", "description" : "",
"versionName" : "1.0.6", "versionName" : "1.1.0",
"versionCode" : "100", "versionCode" : "100",
"transformPx" : false, "transformPx" : false,
/* 5+App特有相关 */ /* 5+App特有相关 */
......
...@@ -19,22 +19,22 @@ ...@@ -19,22 +19,22 @@
<!-- 支付方式 --> <!-- 支付方式 -->
<view class="paymentMethodContent"> <view class="paymentMethodContent">
<h4>选择支付方式</h4> <h4>选择支付方式</h4>
<view class="paymentItem" @click="selectPaymentMethod(1)"> <view class="paymentItem" @click="selectPaymentMethod(2)">
<view> <view>
<i class="iconfont icon-zhifubao"></i> <i class="iconfont icon-zhifubao"></i>
<text>支付宝支付</text> <text>支付宝支付</text>
</view> </view>
<view class="selectRadio" :class="{'actived':paymentMethod===1}"> <view class="selectRadio" :class="{'actived':paymentMethod===2}">
<i class="iconfont icon-duihao"></i> <i class="iconfont icon-duihao"></i>
</view> </view>
</view> </view>
<view class="paymentItem" @click="selectPaymentMethod(2)"> <view class="paymentItem" @click="selectPaymentMethod(1)">
<view> <view>
<i class="iconfont icon-py_weixinzhifu"></i> <i class="iconfont icon-py_weixinzhifu"></i>
<text>微信支付</text> <text>微信支付</text>
</view> </view>
<view class="selectRadio" :class="{'actived':paymentMethod===2}"> <view class="selectRadio" :class="{'actived':paymentMethod===1}">
<i class="iconfont icon-duihao"></i> <i class="iconfont icon-duihao"></i>
</view> </view>
</view> </view>
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
return { return {
courseInfoItem:{}, courseInfoItem:{},
fileId:null, fileId:null,
paymentMethod:1, paymentMethod:2,
popupTitle:'积分抵扣规则', popupTitle:'积分抵扣规则',
popupType:1, popupType:1,
isDeduction:true, isDeduction:true,
...@@ -153,39 +153,35 @@ ...@@ -153,39 +153,35 @@
methods: { methods: {
// 支付 // 支付
pay(){ pay(){
// if(this.paymentMethod===1){ const param = {
// const param = { orderId:this.orderId,
// orderId:this.orderId, amount:this.totalPrice,
// amount:this.totalPrice, paymentMethod:this.paymentMethod,
// paymentMethod:this.paymentMethod, userId:this.userId
// userId:this.userId }
// } if(this.paymentMethod==1){
// api.wxAppPay(param).then(res=>{ api.wxAppPay(param).then(res=>{
// console.log(res) console.log(res)
// }) })
// } }else if(this.paymentMethod==2){
api.aliAppPay(param).then(res=>{
if(res['success']){
const aliOrderString = res['data']['aliOrderString'];
uni.requestPayment({ uni.requestPayment({
<<<<<<< HEAD
provider: 'alipay', provider: 'alipay',
orderInfo: 'alipay_root_cert_sn=687b59193f3f462dd5336e5abf83c5d8_02941eef3187dddf3d3b83462e1dfcf6&alipay_sdk=alipay-sdk-java-dynamicVersionNo&app_cert_sn=f974d178cb6bd0cd2c4e3dca07825e92&app_id=2021003161624312&biz_content=%7B%22out_trade_no%22%3A%22YD2022101000001%22%2C%22product_code%22%3A%22FACE_TO_FACE_PAYMENT%22%2C%22subject%22%3A%22%E6%88%91%E6%98%AF%E6%B5%8B%E8%AF%95%E6%95%B0%E6%8D%AE%22%2C%22total_amount%22%3A%220.00%22%7D&charset=UTF-8&format=json&method=alipay.trade.app.pay&notify_url=https%3A%2F%2Fmdev.zuihuibi.cn%2Fapi%2Fpay%2FwxPayNotify&sign=RyxnIM9pBC4V4sfFXZc2ksb0nwRWtbJjQQ%2BzNOJ083AA0rl%2BP206AWerCJatS2D%2BWUjarSc8nZXfqbJ9CX0xZwWoDv6QelM5SOZmzcnPUyh4i3H8K6tj6fo2eFbv%2Bn%2F7Mep%2BfXmepAfArzzxedoSLnwIN%2Bp%2Fsiw6c%2Fkg4asBIoT4g%2FRHjdgMuycm%2B5zOGOGvzzGA2DOuD%2F8mnsnGSgu0gRGMXY9PfPNPULRKPosHw4%2Bc%2BkWzcKvy2j7izUGcGscixNdtbwjQVrfS2jrsVoVc6OCmKGGJEklIRG%2F3SWnyoIPCwO42KAbJOtb6vxZ0C8a7wvo%2B%2BBtRjZ2%2Fqv7SGZexWA%3D%3D&sign_type=RSA2&timestamp=2022-11-18+09%3A32%3A58&version=1.0', //支付宝订单数据 orderInfo: aliOrderString,
success: function (res) { success: function (resp) {
alert('success:' + JSON.stringify(res)); alert('success:' + JSON.stringify(resp));
}, },
fail: function (err) { fail: function (err) {
alert('fail:' + JSON.stringify(err)); alert('fail:' + JSON.stringify(err));
} }
}); });
=======
provider: 'alipay',
orderInfo: 'alipay_root_cert_sn=687b59193f3f462dd5336e5abf83c5d8_02941eef3187dddf3d3b83462e1dfcf6&alipay_sdk=alipay-sdk-java-dynamicVersionNo&app_cert_sn=f974d178cb6bd0cd2c4e3dca07825e92&app_id=2021003161624312&biz_content=%7B%22out_trade_no%22%3A%22YD2022101000001%22%2C%22product_code%22%3A%22FACE_TO_FACE_PAYMENT%22%2C%22subject%22%3A%22%E6%88%91%E6%98%AF%E6%B5%8B%E8%AF%95%E6%95%B0%E6%8D%AE%22%2C%22total_amount%22%3A%220.00%22%7D&charset=UTF-8&format=json&method=alipay.trade.app.pay&notify_url=https%3A%2F%2Fmdev.zuihuibi.cn%2Fapi%2Fpay%2FwxPayNotify&sign=RyxnIM9pBC4V4sfFXZc2ksb0nwRWtbJjQQ%2BzNOJ083AA0rl%2BP206AWerCJatS2D%2BWUjarSc8nZXfqbJ9CX0xZwWoDv6QelM5SOZmzcnPUyh4i3H8K6tj6fo2eFbv%2Bn%2F7Mep%2BfXmepAfArzzxedoSLnwIN%2Bp%2Fsiw6c%2Fkg4asBIoT4g%2FRHjdgMuycm%2B5zOGOGvzzGA2DOuD%2F8mnsnGSgu0gRGMXY9PfPNPULRKPosHw4%2Bc%2BkWzcKvy2j7izUGcGscixNdtbwjQVrfS2jrsVoVc6OCmKGGJEklIRG%2F3SWnyoIPCwO42KAbJOtb6vxZ0C8a7wvo%2B%2BBtRjZ2%2Fqv7SGZexWA%3D%3D&sign_type=RSA2&timestamp=2022-11-18+09%3A32%3A58&version=1.0', //支付宝订单数据
success: function (res) {
console.log('success:' + JSON.stringify(res));
},
fail: function (err) {
console.log('fail:' + JSON.stringify(err));
} }
}); })
>>>>>>> 36c1cfa72e8ba79a7dd87f1cc10c0daf10dbc49d
}
}, },
// 积分查询 // 积分查询
queryByUserIdFortuneStatistic(){ queryByUserIdFortuneStatistic(){
...@@ -262,7 +258,7 @@ ...@@ -262,7 +258,7 @@
<style lang="scss"> <style lang="scss">
.container{ .container{
position: relative; position: relative;
height: 100%; height: 95vh;
.courseItemBox{ .courseItemBox{
padding: 20rpx 30rpx; padding: 20rpx 30rpx;
background-color: #fff; background-color: #fff;
...@@ -312,7 +308,7 @@ ...@@ -312,7 +308,7 @@
} }
} }
.selectRadio{ .selectRadio{
color: transparent; color: #D8D8D8;
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
border: 1px solid #D8D8D8; border: 1px solid #D8D8D8;
......
...@@ -3,21 +3,21 @@ ...@@ -3,21 +3,21 @@
<!-- 头部信息 --> <!-- 头部信息 -->
<view class="basicInfoBox"> <view class="basicInfoBox">
<view class="avatar"> <view class="avatar">
<image src="/static/cffp_logo.jpg" alt="" srcset="" mode="widthFix"></image> <image :src="customerBasicInfo.headPicture" alt="" srcset="" mode="widthFix"></image>
</view> </view>
<view class="infoBox"> <view class="infoBox">
<view class="firstLineBox"> <view class="firstLineBox">
<view> <view>
<strong>XXX</strong> <strong>{{customerBasicInfo.realName}}</strong>
<text class="csTag">推广人</text> <text class="csTag">{{customerBasicInfo.partnerType}}</text>
</view> </view>
<view class="personalInfoBtn"> <view class="personalInfoBtn">
<text>个人资料</text> <text>个人资料</text>
<i class="iconfont icon-bianji"></i> <i class="iconfont icon-bianji"></i>
</view> </view>
</view> </view>
<view>昵称:XXXX</view> <view>昵称:{{customerBasicInfo.nickName}}</view>
<view>CFFPxxxxx</view> <view>{{customerBasicInfo.nickName}}</view>
</view> </view>
</view> </view>
<!-- 主要菜单 --> <!-- 主要菜单 -->
...@@ -165,6 +165,7 @@ ...@@ -165,6 +165,7 @@
queryInfo(){ queryInfo(){
api.queryInfo({userId:this.userId}).then(res=>{ api.queryInfo({userId:this.userId}).then(res=>{
if(res['success']){ if(res['success']){
this.customerBasicInfo = res['data'];
console.log(res) console.log(res)
} }
}) })
...@@ -185,11 +186,13 @@ ...@@ -185,11 +186,13 @@
padding: 67rpx 20rpx 60rpx 28rpx; padding: 67rpx 20rpx 60rpx 28rpx;
background:linear-gradient(26deg, #D8E2E5 0%, #F0E6DD 31%, #E7DBDF 100%); background:linear-gradient(26deg, #D8E2E5 0%, #F0E6DD 31%, #E7DBDF 100%);
.avatar{ .avatar{
width: 80rpx; width: 0;
height: 80rpx; height: 80rpx;
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
margin-right: 17rpx; margin-right: 17rpx;
background-color: #fff;
flex: 0 0 80rpx;
} }
.infoBox{ .infoBox{
width:100%; width:100%;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment