Commit da168ea8 authored by xieyishang's avatar xieyishang

~~优化代码~~

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