fourPayProject/51pay-uni/homePages/addMerchant/addMerchant.vue
2025-03-31 10:14:11 +08:00

144 lines
2.7 KiB
Vue

<template>
<view class="content">
<view class="container">
<headers :titles="titles"><uni-icons type="arrow-left" color="#fff" size="22px"></uni-icons></headers>
<view class="box_one_out">
<view class="box_one" @click="goMerchant('enterprise')">
<view class="right-img">
<image src="/static/imgs/qyimg.png" mode=""></image>
</view>
</view>
<view class="box_one" @click="goMerchant('merchants')">
<view class="right-img">
<image src="/static/imgs/xwimg.png" mode=""></image>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import headers from '../../components/header/headers.vue'
import tabbar from '../../components/tabbar/tabbar.vue'
import request from '../../utils/request.js'
export default {
data() {
return {
titles: "新增商户",
msg: "1",
dataList: [],
show: false,
status: 'loading',
}
},
onShow() {
// this.actList = ["1", "1", "1", "1", "1", ]
// this.status = "nomore" 底部刷新结束
},
onPullDownRefresh() {
console.log("刷新");
uni.stopPullDownRefresh()
},
onReachBottom() {
// this.show = true
setTimeout(() => {
console.log("加载执行");
}, 2000)
},
components: {
headers,
tabbar
},
methods: {
goMerchant(t) {
if (t == 'enterprise') {
uni.navigateTo({
url: '/homePages/enterpriseMerchant/enterpriseMerchant'
})
}
if (t == 'merchants') {
uni.navigateTo({
url: '/homePages/merchantsMerchant/merchantsMerchant'
})
}
},
goback() {
uni.navigateBack()
}
}
}
</script>
<style scoped lang="scss">
.content {
background: #f4f5f6;
// background: linear-gradient(180deg, #B2D2FC 0%, #B2D2FC 14%, rgba(255, 255, 255, 0.84) 24%, rgba(255, 255, 255, 0.84) 100%);
height: 100vh;
}
.container {
width: 100%;
background: #f4f5f6;
box-sizing: border-box;
padding-top: 88px;
}
.box_one_out{
display: flex;
padding-top: 70rpx;
}
.box_one {
box-sizing: border-box;
padding: 10px;
width: 95%;
height: 120px;
border-radius: 8px;
margin: 15px auto;
display: flex;
align-items: center;
justify-content: space-between;
}
.box_two {
background: #f1fcf6;
box-sizing: border-box;
padding: 10px;
width: 95%;
height: 120px;
border-radius: 8px;
margin: 15px auto;
display: flex;
align-items: center;
justify-content: space-between;
}
.title_ {
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
}
.size_ {
font-size: 16px;
}
.right-img {
width: 100%;
height: 250rpx;
image {
width: 100%;
height: 100%;
}
}
</style>