Commit 0b6c31f5 by sunchao

热更新&提现bug修复

parent 695fa365
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
// }); // });
// #endif // #endif
// #ifdef APP-PLUS // #ifdef APP-PLUS
plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
uni.getSystemInfo({ uni.getSystemInfo({
success:(systemInfo)=> { success:(systemInfo)=> {
uni.request({ uni.request({
...@@ -29,12 +30,13 @@ ...@@ -29,12 +30,13 @@
method:'POST', method:'POST',
data: { data: {
appType: 1, appType: 1,
version: systemInfo.appVersion, version: wgtinfo.version,
systemType:systemInfo.osName.toLowerCase() === 'ios' ? 2 : 1 systemType:systemInfo.osName.toLowerCase() === 'ios' ? 2 : 1
}, },
success: (result) => { success: (result) => {
console.log(wgtinfo)
const data = result.data.data['appVersionInfo']; const data = result.data.data['appVersionInfo'];
if (data.isForceUpdate && data.wgtUrl) { if (data.status==1 && data.isForceUpdate && data.wgtUrl) {
uni.downloadFile({ uni.downloadFile({
url: `${baseURL}${data.wgtUrl}`, url: `${baseURL}${data.wgtUrl}`,
success: (downloadResult) => { success: (downloadResult) => {
...@@ -55,6 +57,8 @@ ...@@ -55,6 +57,8 @@
}); });
} }
}) })
})
// #endif // #endif
initApp() initApp()
// this.checkArguments(); // this.checkArguments();
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
</view> </view>
<view class="logo"> <view class="logo">
<image :src="imgSrc" alt="logo" srcset="" class="iconBox" mode="widthFix"></image> <image :src="imgSrc" alt="logo" srcset="" class="iconBox" mode="widthFix"></image>
<view>欢迎登录使用CFFP</view> <view>欢迎登录使用CFFP测测---</view>
</view> </view>
<view class="content"> <view class="content">
<view class="login_title"> <view class="login_title">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name" : "CFFP财富中心", "name" : "CFFP财富中心",
"appid" : "__UNI__ED34740", "appid" : "__UNI__ED34740",
"description" : "", "description" : "",
"versionCode" : 104, "versionCode" : 109,
"transformPx" : false, "transformPx" : false,
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus" : { "app-plus" : {
...@@ -202,5 +202,5 @@ ...@@ -202,5 +202,5 @@
} }
}, },
"_spaceID" : "mp-68e17e23-e517-4839-8210-27480303cc51", "_spaceID" : "mp-68e17e23-e517-4839-8210-27480303cc51",
"versionName" : "1.1.12" "versionName" : "1.1.17"
} }
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<navigator class="rule" url="/pages/taxRules/taxRules">《劳务报酬税缴纳规则》;</navigator> <navigator class="rule" url="/pages/taxRules/taxRules">《劳务报酬税缴纳规则》;</navigator>
</view> </view>
<view class=""> <view class="">
3、如需帮助,请联系CFFP财富中心客服电话:12345678; 3、如需帮助,请联系CFFP财富中心客服电话400:921-9290;
</view> </view>
</view> </view>
<view class="btn" @click="confirmWithdrawal()" :class="{'gray':readonlyFlag}" style="bottom: 30rpx;"> <view class="btn" @click="confirmWithdrawal()" :class="{'gray':readonlyFlag}" style="bottom: 30rpx;">
...@@ -70,7 +70,6 @@ ...@@ -70,7 +70,6 @@
<script> <script>
import api from '../../api/api'; import api from '../../api/api';
import common from '../../common/common';
export default{ export default{
data(){ data(){
return { return {
...@@ -82,14 +81,12 @@ ...@@ -82,14 +81,12 @@
aliWithdrawalResVO:null, aliWithdrawalResVO:null,
wxWithdrawalResVO:null, wxWithdrawalResVO:null,
readonlyFlag:false, readonlyFlag:false,
deviceType:null
} }
}, },
components:{},
onLoad(options){ onLoad(options){
this.deviceType = common.checkDeviceType();
this.exchangeAmount = options.exchangeAmount; this.exchangeAmount = options.exchangeAmount;
this.partnerTradeNo = options.partnerTradeNo; this.partnerTradeNo = options.partnerTradeNo;
console.log(options)
this.goFortuneWithdrawal() this.goFortuneWithdrawal()
}, },
methods:{ methods:{
...@@ -99,6 +96,7 @@ ...@@ -99,6 +96,7 @@
}); });
}, },
goFortuneWithdrawal(){ goFortuneWithdrawal(){
console.log(1)
const param = { const param = {
userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
// userId:1, // userId:1,
......
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