Commit 0b6c31f5 by sunchao

热更新&提现bug修复

parent 695fa365
...@@ -22,40 +22,44 @@ ...@@ -22,40 +22,44 @@
// }); // });
// #endif // #endif
// #ifdef APP-PLUS // #ifdef APP-PLUS
uni.getSystemInfo({ plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
success:(systemInfo)=> { uni.getSystemInfo({
uni.request({ success:(systemInfo)=> {
url: `${baseURL}/api/appVersion/checkIsUpdate`, uni.request({
method:'POST', url: `${baseURL}/api/appVersion/checkIsUpdate`,
data: { method:'POST',
appType: 1, data: {
version: systemInfo.appVersion, appType: 1,
systemType:systemInfo.osName.toLowerCase() === 'ios' ? 2 : 1 version: wgtinfo.version,
}, systemType:systemInfo.osName.toLowerCase() === 'ios' ? 2 : 1
success: (result) => { },
const data = result.data.data['appVersionInfo']; success: (result) => {
if (data.isForceUpdate && data.wgtUrl) { console.log(wgtinfo)
uni.downloadFile({ const data = result.data.data['appVersionInfo'];
url: `${baseURL}${data.wgtUrl}`, if (data.status==1 && data.isForceUpdate && data.wgtUrl) {
success: (downloadResult) => { uni.downloadFile({
if (downloadResult.statusCode === 200) { url: `${baseURL}${data.wgtUrl}`,
plus.runtime.install(downloadResult.tempFilePath, { success: (downloadResult) => {
force: true if (downloadResult.statusCode === 200) {
}, function() { plus.runtime.install(downloadResult.tempFilePath, {
console.log('install success...'); force: true
plus.runtime.restart(); }, function() {
}, function(e) { console.log('install success...');
console.error('install fail...'); plus.runtime.restart();
}); }, function(e) {
} console.error('install fail...');
} });
}); }
} }
} });
}); }
} }
});
}
})
}) })
// #endif
// #endif
initApp() initApp()
// this.checkArguments(); // this.checkArguments();
// plus.globalEvent.addEventListener('newintent', e => { // plus.globalEvent.addEventListener('newintent', e => {
......
...@@ -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