|
@@ -14,14 +14,19 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="btn_bar flex_r flex_jse">
|
|
<div class="btn_bar flex_r flex_jse">
|
|
|
- <div class="btn_item" @click="getToCash('local')">
|
|
|
|
|
|
|
+ <div class="btn_item" @click="getToCash('local')" :style="{'width':isMerchant?'210rpx':'280rpx'}">
|
|
|
<span class="ico iconfont"></span>
|
|
<span class="ico iconfont"></span>
|
|
|
<span class="btn_txt">提现</span>
|
|
<span class="btn_txt">提现</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="btn_item corc" @click="goto('/pagesB/topUp/Local')">
|
|
|
|
|
|
|
+ <div class="btn_item corc" @click="goto('/pagesB/topUp/Local')" :style="{'width':isMerchant?'210rpx':'280rpx'}">
|
|
|
<span class="ico iconfont"></span>
|
|
<span class="ico iconfont"></span>
|
|
|
<span class="btn_txt">充值</span>
|
|
<span class="btn_txt">充值</span>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="btn_item conv" v-if="isMerchant" @click="goto('/pagesC/convert/index')">
|
|
|
|
|
+ <!-- <span class="ico iconfont"></span> -->
|
|
|
|
|
+ <image class="ico" src="@/static/icon/convert.png" mode="widthFix" />
|
|
|
|
|
+ <span class="btn_txt">转化</span>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="detailList" v-if="List.length">
|
|
<div class="detailList" v-if="List.length">
|
|
|
<div class="tit"><span>收支明细</span></div>
|
|
<div class="tit"><span>收支明细</span></div>
|
|
@@ -57,6 +62,7 @@ import { post } from "@/request/api.js";
|
|
|
page: 1,
|
|
page: 1,
|
|
|
rows: 20
|
|
rows: 20
|
|
|
},
|
|
},
|
|
|
|
|
+ isMerchant: false, // 是否是商户
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -70,6 +76,14 @@ import { post } from "@/request/api.js";
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ // 商家中心权限
|
|
|
|
|
+ merchantSet(){
|
|
|
|
|
+ post("v1/merchant/settled").then((res) => {
|
|
|
|
|
+ if (res.code === 0) {
|
|
|
|
|
+ this.isMerchant = res.data.shop
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
async getLU() {
|
|
async getLU() {
|
|
|
this.localInfo = await uni.Luserfun();
|
|
this.localInfo = await uni.Luserfun();
|
|
|
},
|
|
},
|
|
@@ -88,12 +102,21 @@ import { post } from "@/request/api.js";
|
|
|
onLoad(da) {
|
|
onLoad(da) {
|
|
|
this.getList();
|
|
this.getList();
|
|
|
this.getLU();
|
|
this.getLU();
|
|
|
|
|
+ this.merchantSet()
|
|
|
},
|
|
},
|
|
|
onShow() {},
|
|
onShow() {},
|
|
|
mounted() {},
|
|
mounted() {},
|
|
|
onReachBottom() {
|
|
onReachBottom() {
|
|
|
if (this.Query.page < this.last_page) this.getList();
|
|
if (this.Query.page < this.last_page) this.getList();
|
|
|
},
|
|
},
|
|
|
|
|
+ // 监听卸载页面 同等于 返回拦截
|
|
|
|
|
+ onUnload() {
|
|
|
|
|
+ let pages = getCurrentPages();
|
|
|
|
|
+ let prevPage = pages[pages.length - 2]?.route
|
|
|
|
|
+ if (prevPage == "pagesC/convert/index") {
|
|
|
|
|
+ uni.switchTab({ url: "/pages/my/index" });
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
@@ -123,7 +146,7 @@ import { post } from "@/request/api.js";
|
|
|
.btn_bar{
|
|
.btn_bar{
|
|
|
padding: 30rpx 0;
|
|
padding: 30rpx 0;
|
|
|
.btn_item{
|
|
.btn_item{
|
|
|
- width: 280rpx;
|
|
|
|
|
|
|
+ width: 210rpx;
|
|
|
height: 70rpx;
|
|
height: 70rpx;
|
|
|
line-height: 70rpx;
|
|
line-height: 70rpx;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
@@ -137,6 +160,16 @@ import { post } from "@/request/api.js";
|
|
|
background-color: #d3aa79;
|
|
background-color: #d3aa79;
|
|
|
color: #fff;
|
|
color: #fff;
|
|
|
}
|
|
}
|
|
|
|
|
+ &.conv{
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ background-color: #18bb88;
|
|
|
|
|
+ }
|
|
|
|
|
+ image{
|
|
|
|
|
+ width: 50rpx;
|
|
|
|
|
+ height: 50rpx;
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ border-radius: 50%;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.ico{
|
|
.ico{
|
|
|
color: #d3aa79;
|
|
color: #d3aa79;
|