add
This commit is contained in:
parent
038e56a26d
commit
8c1858b2c2
|
@ -81,7 +81,8 @@
|
||||||
ref,
|
ref,
|
||||||
reactive
|
reactive
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
import useUserStore from '@/store/user';
|
||||||
|
const userStore = useUserStore();
|
||||||
|
|
||||||
const showPop = ref(false)
|
const showPop = ref(false)
|
||||||
const showPop1 = ref(false)
|
const showPop1 = ref(false)
|
||||||
|
@ -93,7 +94,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const choseBank = (item) => {
|
const choseBank = (item) => {
|
||||||
console.log(item)
|
|
||||||
form.bank_name = item.name
|
form.bank_name = item.name
|
||||||
form.bank_id = item.id
|
form.bank_id = item.id
|
||||||
showPop.value = false
|
showPop.value = false
|
||||||
|
@ -108,20 +108,21 @@
|
||||||
|
|
||||||
|
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
"name": "张伟",
|
"name": "赵明军",
|
||||||
"bank_id": 1,
|
"bank_id": 1,
|
||||||
"bank_name": '中国邮政',
|
"bank_name": '中国邮政',
|
||||||
"bank_code": "62179967580064578451",
|
"bank_code": "62179967580064578451",
|
||||||
"bank_branch": "",
|
"bank_branch": "迎晖路支行",
|
||||||
"financial_img": "",
|
"financial_img": "",
|
||||||
"is_own": 0,
|
"is_own": 0,
|
||||||
phone: '1913055023',
|
phone: '19130550023',
|
||||||
"id_card": "513701200012105613",
|
"id_card": "513701200012105613",
|
||||||
"mer_id": 500,
|
"mer_id": userStore?.userInfo?.merchant?.mer_id,
|
||||||
user_type: 1
|
supplier_id: userStore?.userInfo?.supplier?.id,
|
||||||
|
user_type: userStore?.userInfo?.merchant?.mer_id ? '1' : '2'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
console.log(userStore?.userInfo)
|
||||||
|
|
||||||
const submit = () => {
|
const submit = () => {
|
||||||
bindCradApi({
|
bindCradApi({
|
||||||
|
@ -208,9 +209,6 @@
|
||||||
border-bottom: 1px solid #F8F9FA;
|
border-bottom: 1px solid #F8F9FA;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.action {
|
.action {
|
||||||
|
|
|
@ -24,21 +24,16 @@
|
||||||
<up-form labelPosition="left" borderBottom :label-style="{fontSize:'30rpx'}" :model="model1" :rules="rules"
|
<up-form labelPosition="left" borderBottom :label-style="{fontSize:'30rpx'}" :model="model1" :rules="rules"
|
||||||
ref="form1" labelWidth='70'>
|
ref="form1" labelWidth='70'>
|
||||||
<up-form-item label="银行卡" prop="userInfo.name" borderBottom ref="item1">
|
<up-form-item label="银行卡" prop="userInfo.name" borderBottom ref="item1">
|
||||||
<template #right>
|
<up-input style="border: none;" v-model="form.name" />
|
||||||
<view style="display: flex;align-items: center;">
|
|
||||||
<text @click="showPop=true" style="color: #20B128;">选择银行</text> <up-icon color="#20B128"
|
|
||||||
name="arrow-right"></up-icon>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
</up-form-item>
|
</up-form-item>
|
||||||
<up-form-item label="持卡人" prop="userInfo.name" borderBottom ref="item1">
|
<up-form-item label="持卡人" prop="userInfo.name" borderBottom ref="item1">
|
||||||
<up-input style="border: none;" v-model="form.name" placeholder="请输入持卡人姓名" />
|
<up-input style="border: none;" v-model="form.name" />
|
||||||
</up-form-item>
|
</up-form-item>
|
||||||
<up-form-item label="银行账户" prop="userInfo.name" borderBottom ref="item1">
|
<up-form-item label="银行账户" prop="userInfo.name" borderBottom ref="item1">
|
||||||
<up-input style="border: none;" v-model="form.name" placeholder="请输入银行账户" />
|
<up-input style="border: none;" v-model="form.name" />
|
||||||
</up-form-item>
|
</up-form-item>
|
||||||
<up-form-item label="开户网点" prop="userInfo.name" borderBottom ref="item1">
|
<up-form-item label="开户网点" prop="userInfo.name" borderBottom ref="item1">
|
||||||
<up-input style="border: none;" v-model="form.name" placeholder="请输入开户网点" />
|
<up-input style="border: none;" v-model="form.name" />
|
||||||
</up-form-item>
|
</up-form-item>
|
||||||
<up-form-item label="提现金额" prop="userInfo.name" borderBottom ref="item1">
|
<up-form-item label="提现金额" prop="userInfo.name" borderBottom ref="item1">
|
||||||
<up-input style="border: none;" v-model="form.name" placeholder="请输入提现金额" />
|
<up-input style="border: none;" v-model="form.name" placeholder="请输入提现金额" />
|
||||||
|
@ -52,7 +47,7 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<up-empty mode="data" :text='emptyText'
|
<up-empty mode="data" v-else :text='emptyText'
|
||||||
icon="https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/89e93202405131146497294.png" />
|
icon="https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/89e93202405131146497294.png" />
|
||||||
<view class="detail" @click="navgo('/pageQuota/Balance/detail')">
|
<view class="detail" @click="navgo('/pageQuota/Balance/detail')">
|
||||||
明细
|
明细
|
||||||
|
@ -60,25 +55,13 @@
|
||||||
<view class="submit-btn">
|
<view class="submit-btn">
|
||||||
<up-button text="提现" shape="circle" color="#50C758"></up-button>
|
<up-button text="提现" shape="circle" color="#50C758"></up-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<up-popup :show="showPop" :round="10" mode="bottom" @close="showPop=false" @open="showPop=true">
|
|
||||||
<view class="popContent">
|
|
||||||
<view style="text-align: center;font-weight: bold;">请选择银行</view>
|
|
||||||
<up-icon name="close" color="#303133" size="24" @click="showPop=false"
|
|
||||||
style="position: absolute;top: 20rpx;right: 20rpx;"></up-icon>
|
|
||||||
<view class="bank-list">
|
|
||||||
<view class="bank-li" v-for="item in 10">
|
|
||||||
<up-image :show-loading="true" src="https://cdn.uviewui.com/uview/album/1.jpg" width="60rpx"
|
|
||||||
height="60rpx"></up-image>
|
|
||||||
<text style="margin-left: 20rpx;">中国农业银行</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</up-popup>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import {
|
||||||
|
bankListApi,
|
||||||
|
} from "@/api/balance.js"
|
||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
reactive
|
reactive
|
||||||
|
@ -91,11 +74,31 @@
|
||||||
url
|
url
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const bankList = ref([])
|
||||||
|
|
||||||
|
const getBankList = async () => {
|
||||||
|
let res = await bankListApi()
|
||||||
|
bankList.value = res.data.lists
|
||||||
|
}
|
||||||
|
|
||||||
|
const choseBank = (item) => {
|
||||||
|
form.bank_name = item.name
|
||||||
|
form.bank_id = item.id
|
||||||
|
showPop.value = false
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
name: ""
|
name: ""
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 使用 reactive 创建响应式状态
|
// 使用 reactive 创建响应式状态
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
showSex: false,
|
showSex: false,
|
||||||
|
@ -144,6 +147,8 @@
|
||||||
formRef.value.validateField('userInfo.sex');
|
formRef.value.validateField('userInfo.sex');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getBankList()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
@ -184,7 +189,7 @@
|
||||||
.bank-list {
|
.bank-list {
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 40vh;
|
max-height: 40vh;
|
||||||
|
|
||||||
.bank-li {
|
.bank-li {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -194,9 +199,6 @@
|
||||||
border-bottom: 1px solid #F8F9FA;
|
border-bottom: 1px solid #F8F9FA;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,32 +1,25 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="card">
|
<view class="card">
|
||||||
<!-- <view class="card-li">
|
|
||||||
<text>反馈类型</text>
|
|
||||||
<text style="color: #737373 ;">注册</text>
|
|
||||||
</view>
|
|
||||||
<view class="card-li">
|
|
||||||
<text>问题分类</text>
|
|
||||||
<text style="color: #737373 ;">注册</text>
|
|
||||||
</view> -->
|
|
||||||
<view class="card-li">
|
<view class="card-li">
|
||||||
<text>姓名</text>
|
<text>姓名</text>
|
||||||
<text style="color: #737373 ;">注册</text>
|
<text style="color: #737373 ;">{{datas.name}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="card-li">
|
<view class="card-li">
|
||||||
<text>电话邮箱</text>
|
<text>电话邮箱</text>
|
||||||
<text style="color: #737373 ;">注册</text>
|
<text style="color: #737373 ;">{{datas.contact}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view class="card">
|
<view class="card">
|
||||||
<view class="">
|
<view class="">
|
||||||
反馈的具体内容,可能很长
|
<!-- 反馈的具体内容,可能很长 -->
|
||||||
|
{{datas.content}}
|
||||||
</view>
|
</view>
|
||||||
<view style="margin-top: 20rpx;">
|
<view style="margin-top: 20rpx;display: flex;">
|
||||||
<up-image :show-loading="true" src="https://cdn.uviewui.com/uview/album/1.jpg" width="160rpx"
|
<up-image v-for="item in datas.images" :show-loading="true" :src="item" @click="previewImg(item)"
|
||||||
height="160rpx" @click="previewImg('https://cdn.uviewui.com/uview/album/1.jpg')"></up-image>
|
width="100rpx" height="100rpx" style="margin-right: 20rpx;"></up-image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
@ -36,20 +29,28 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import {
|
||||||
|
ref
|
||||||
|
} from 'vue';
|
||||||
|
import {
|
||||||
|
onLoad
|
||||||
|
} from "@dcloudio/uni-app"
|
||||||
|
|
||||||
const previewImg = (url) => {
|
const previewImg = (url) => {
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
urls: [url],
|
urls: [url],
|
||||||
longPressActions: {
|
longPressActions: {}
|
||||||
// itemList: ['发送给朋友', '保存图片', '收藏'],
|
|
||||||
// success: function(data) {
|
|
||||||
// console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
|
|
||||||
// },
|
|
||||||
// fail: function(err) {
|
|
||||||
// console.log(err.errMsg);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const datas = ref({})
|
||||||
|
|
||||||
|
onLoad((option) => {
|
||||||
|
console.log(option.item)
|
||||||
|
datas.value = JSON.parse(option.item)
|
||||||
|
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
|
@ -64,13 +64,10 @@
|
||||||
import {
|
import {
|
||||||
config
|
config
|
||||||
} from "@/config/app.js"
|
} from "@/config/app.js"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
addFeedBackApi,
|
addFeedBackApi,
|
||||||
userfeedbackListApi
|
userfeedbackListApi
|
||||||
} from "@/api/feedBack.js"
|
} from "@/api/feedBack.js"
|
||||||
|
|
||||||
|
|
||||||
import useUserStore from '@/store/user';
|
import useUserStore from '@/store/user';
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
|
|
||||||
|
@ -91,6 +88,7 @@
|
||||||
name: "",
|
name: "",
|
||||||
contact: "",
|
contact: "",
|
||||||
uid: userStore.userInfo.id
|
uid: userStore.userInfo.id
|
||||||
|
// uid: 2
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -106,7 +104,7 @@
|
||||||
|
|
||||||
// 删除图片
|
// 删除图片
|
||||||
const deletePic = (event) => {
|
const deletePic = (event) => {
|
||||||
formData.images.value.splice(event.index, 1);
|
formData.images.splice(event.index, 1);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 新增图片
|
// 新增图片
|
||||||
|
@ -124,7 +122,7 @@
|
||||||
for (let i = 0; i < lists.length; i++) {
|
for (let i = 0; i < lists.length; i++) {
|
||||||
const result = await uploadFilePromise(lists[i].url);
|
const result = await uploadFilePromise(lists[i].url);
|
||||||
console.log(result)
|
console.log(result)
|
||||||
let item = formData.images[fileListLen];
|
// let item = formData.images[fileListLen];
|
||||||
formData.images.splice(fileListLen, 1, {
|
formData.images.splice(fileListLen, 1, {
|
||||||
url: result,
|
url: result,
|
||||||
});
|
});
|
||||||
|
@ -150,7 +148,6 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log()
|
|
||||||
const submit = async () => {
|
const submit = async () => {
|
||||||
formData.images = formData.images.map(item => {
|
formData.images = formData.images.map(item => {
|
||||||
return item.url
|
return item.url
|
||||||
|
@ -162,13 +159,14 @@
|
||||||
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '提交成功',
|
title: '提交成功',
|
||||||
duration: 2000
|
duration: 1500
|
||||||
});
|
})
|
||||||
setTimeout(function() {
|
uni.$u.sleep(1500).then(res => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pageQuota/feedBack/list'
|
url: '/pageQuota/feedBack/list'
|
||||||
})
|
})
|
||||||
}, 2000);
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="li" v-for="itme in 10" @click="goDetail">
|
<view class="li" v-for="item in lists" :key="item.id" @click="goDetail(item)">
|
||||||
<view class="lias">
|
<view class="lias">
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="">
|
<view class="">
|
||||||
<text style="color: #20B128;">未收到短信</text> 反馈内容
|
<text style="color: #20B128;">{{item.content}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view style="font-size: 24rpx;margin-top: 10rpx;">
|
<view style="font-size: 24rpx;margin-top: 10rpx;">
|
||||||
2024-05-10 09:24:25
|
<!-- 2024-05-10 09:24:25 -->
|
||||||
|
{{item.create_time}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<up-icon name="arrow-right"></up-icon>
|
<up-icon name="arrow-right"></up-icon>
|
||||||
|
@ -22,15 +23,20 @@
|
||||||
import {
|
import {
|
||||||
userfeedbackListApi
|
userfeedbackListApi
|
||||||
} from "@/api/feedBack.js"
|
} from "@/api/feedBack.js"
|
||||||
|
import {
|
||||||
|
ref
|
||||||
|
} from "vue"
|
||||||
|
|
||||||
|
const lists = ref([])
|
||||||
userfeedbackListApi().then(res => {
|
userfeedbackListApi().then(res => {
|
||||||
console.log(res)
|
console.log(res.data.lists)
|
||||||
|
lists.value = res.data.lists
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
const goDetail = () => {
|
const goDetail = (item) => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pageQuota/feedBack/detail'
|
url: '/pageQuota/feedBack/detail?item=' + JSON.stringify(item)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -145,8 +145,8 @@
|
||||||
</up-empty>
|
</up-empty>
|
||||||
</up-transition>
|
</up-transition>
|
||||||
</view>
|
</view>
|
||||||
<view class="detail" @click="navgo('/pageQuota/Balance/detail')">
|
<view class="detail" @click="navgo('/pageQuota/Balance/index')">
|
||||||
明细
|
提现
|
||||||
</view>
|
</view>
|
||||||
<view class="submit-btn" v-if="tabIndex==1">
|
<view class="submit-btn" v-if="tabIndex==1">
|
||||||
<up-button shape='circle' color='#20B128' @click="submit" text="提交"></up-button>
|
<up-button shape='circle' color='#20B128' @click="submit" text="提交"></up-button>
|
||||||
|
|
Loading…
Reference in New Issue