Commit da168ea8 authored by xieyishang's avatar xieyishang

~~优化代码~~

parent fe41afac
......@@ -366,7 +366,7 @@
<yomol-upgrade ref="yomolUpgrade"></yomol-upgrade>
<view class="submitbtn OutTourist" @tap="OutTourist">退出游客模式</view>
<view v-if="tourist==1" class="submitbtn OutTourist" @tap="OutTourist">退出游客模式</view>
</view>
</template>
......@@ -400,6 +400,8 @@
amount_piao:0,
isshowpiao:false,
tourist:0,
}
},
components: {
......@@ -432,6 +434,7 @@
// uni.stopPullDownRefresh();//结束下拉刷新
},
onShow() {
this.tourist = uni.getStorageSync("tourist");//是否是游客模式 0 否 1 是
//检测更新
setTimeout(() => {
// #ifdef APP-PLUS
......
......@@ -115,7 +115,7 @@
//删除 解绑 银行卡
async deleteBankfun(index,item){
let res = await deleteBank({
bankid:item.bank_id,//会员银行卡记录id
bankid:item.id,//会员银行卡记录id
});
if(res.code==0){
this.$api.msg(res.msg);
......
......@@ -95,7 +95,7 @@
</eModal>
<!-- 绑定手机号 -->
<view class="submitbtn OutTourist" @tap="OutTourist">退出游客模式</view>
<view v-if="tourist==1" class="submitbtn OutTourist" @tap="OutTourist">退出游客模式</view>
</view>
</template>
......@@ -113,6 +113,7 @@
visible: false,
mobile: '',
counts: {}, //统计的数据
tourist:0,
}
},
components: {
......@@ -128,6 +129,8 @@
// uni.stopPullDownRefresh();//结束下拉刷新
},
onShow() {
this.tourist = uni.getStorageSync("tourist");//是否是游客模式 0 否 1 是
this.getstoreIndex();
//检测更新
setTimeout(() => {
......
......@@ -170,8 +170,8 @@
<!-- 密码输入弹窗 -->
<best-payment-password :show="payFlag" :money="showmoney" :msg="msg" :forget="true" :value="paymentPwd" digits="6" @submit="checkPwd" @cancel="togglePayment"></best-payment-password>
<VerifyIdentity ref="VerifyIdentity" v-model="userInfo.mobile" type="sms_withdraw" @fromSubmitfun="fromSubmitfun" ></VerifyIdentity>
<!-- userInfo.mobile -->
<VerifyIdentity ref="VerifyIdentity" v-model="mobile" type="sms_withdraw" @fromSubmitfun="fromSubmitfun" ></VerifyIdentity>
<!-- userinfo.mobile -->
<!-- 验证身份组件 -->
......@@ -394,7 +394,7 @@
let res = await storeIndex({
})
console.info(res,"res");
if (res.code== 0) {
// //
// //this.userCount = res.data;
......@@ -599,21 +599,21 @@
this.togglePayment();//关闭
if(parseFloat(this.txsum)>500||this.withdrawcount!=0){
this.visible= true
}else{
}else{
if(this.tabactive==1){
//提现到微信
// this.cashUserFundFun();
this.$refs.VerifyIdentity.show();
}else if(this.tabactive==2){
//提现到余额
//this.userTransferMoneyFun();
if(this.tabactive==1){
//提现到微信
// this.cashUserFundFun();
this.$refs.VerifyIdentity.show();
}else if(this.tabactive==2){
//提现到余额
//this.userTransferMoneyFun();
}else if(this.tabactive==3){
//提现到银行卡
// this.cashUserFundFun();
this.$refs.VerifyIdentity.show();
}
}else if(this.tabactive==3){
//提现到银行卡
// this.cashUserFundFun();
this.$refs.VerifyIdentity.show();
}
}
// uni.navigateTo({
// url: '/pages/withdrawSucc/withdrawSucc'
......@@ -667,7 +667,7 @@
},
code(){
this.VerificationFun()
},
},
},
}
......
......@@ -111,8 +111,8 @@ export default function request(api, method, data, {noAuth = false, noVerify = f
// data.token = store.state.token;//有token 需要把token 带上
}
console.info("Url + api",Url + api);
console.info("data",data);
// console.info("Url + api",Url + api);
// console.info("data",data);
return new Promise((reslove, reject) => {
uni.request({
url: Url + api,
......@@ -120,7 +120,7 @@ export default function request(api, method, data, {noAuth = false, noVerify = f
header: header,
data: data || {},
success: (res) => {
console.info(res,"res");
// console.info(res,"res");
// uni.hideLoading();
if (noVerify)
reslove(res.data, res);
......
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