首次提交

This commit is contained in:
duan
2024-06-06 11:49:50 +08:00
parent de480ef0a3
commit c5ebf34d7e
274 changed files with 58048 additions and 1 deletions

33
my/other/about.vue Normal file
View File

@@ -0,0 +1,33 @@
<template>
<view style="font-size: 14px;line-height: 26px;padding: 32upx;" class="bg-white">
<view style="font-size: 28upx;" v-html="content" ></view>
</view>
</template>
<script>
export default {
data() {
return {
content:''
}
},
onLoad() {
this.getGuize();
},
methods: {
getGuize(){
this.$Request.getT('/app/common/type/286').then(res =>{
if(res.code === 0){
this.content = res.data.value;
}
});
}
}
}
</script>
<style>
page {
background: #FFF;
}
</style>

482
my/other/cashDetail.vue Normal file
View File

@@ -0,0 +1,482 @@
<template>
<view class="cash">
<view
style="background-image: url('../../static/images/my/qanbaobg.png');background-size: 100%;height: 400upx;">
<view style="font-size: 32upx;padding-top: 100upx;">可提现总额</view>
<view style="font-size: 40upx;padding-top: 20upx;">¥ {{money}}</view>
<view
style="width: 90%;height: max-content;margin-left: 40upx;background-color: #FFFFFF;box-shadow: rgba(183, 183, 183, 0.3) 0px 1px 10px;margin-top: 50upx;border-radius: 20upx;">
<view style="display: flex;flex-direction: row;padding: 20upx;">
<view style="font-size: 32upx;color: #333333;">提现金额 <text style="font-size: 28upx;color: #FF2638;"
v-if="shouxufei">提现手续费为{{shouxufei * 100}}%</text>
</view>
</view>
<view style="display: flex;flex-direction: row;padding: 20upx;">
<view style="font-size: 40upx;color: #333333;">¥</view>
<input type="text" v-model="moneys" placeholder="请输入金额"
style="font-size: 40upx;color: #333333;text-align: left;margin-left: 10upx;width: 100%;" />
</view>
<view style="background: #E6E6E6;width: 100%;height: 1upx;"></view>
<view style="display: flex;flex-direction: row;flex-wrap: wrap;">
<view style="display: flex;flex-direction: row;" v-for="(item, index) in moneyList" :key="index">
<view>
<view style="padding: 20upx;" @click="getOut(item.money)">
<view
style="padding-top: 40upx;width: 180upx; height: 120upx;background-color: #FFFFFF;border:1px solid #FFCC00;border-radius: 10upx;">
{{ item.money }}
</view>
</view>
</view>
</view>
</view>
</view>
<view style="margin-top:59upx" class="padding-lr margin-lr-sm">
<view class="flex justify-between margin-bottom-xl" v-for="(item,index) in openLists" :key="index">
<view class="flex align-center">
<image :src="item.image" style="width:23px;height:20px"></image>
<text class="text-lg margin-left-sm" style="color:#333333;font-weight:700;">{{item.text}}</text>
</view>
<view>
<radio-group name="openWay" style="margin-left: 20upx;" @tap='selectWay(item)'>
<label class="tui-radio">
<radio color="#FF7F00" :checked="openWay === item.id ? true : false" />
</label>
</radio-group>
</view>
</view>
</view>
<view @click="getOut()"
style="margin: 32upx;font-size: 18px;background: #FFCC00;border-radius: 10px;height: 40px;line-height: 40px">
提现
</view>
<view style="display: flex;width: 100%;justify-content: center;">
<view style="color: grey;padding-bottom: 30px;padding-top: 20upx;flex: 1;" @click="goZhifuBao">提现账号
</view>
<view style="color: grey;padding-bottom: 30px;padding-top: 20upx;flex: 1;" @click="goqianbao">钱包明细
</view>
<view style="color: grey;padding-bottom: 30px;padding-top: 20upx;flex: 1;" @click="isShow">微信收款码
</view>
<view style="color: grey;padding-bottom: 30px;padding-top: 20upx;flex: 1;" @click="gojilu">提现记录
</view>
</view>
</view>
<!-- 微信收款码弹框 -->
<u-popup v-model="show" mode="center">
<view class="padding">
<view class="text-center text-lg text-bold flex justify-between">
<view></view>
<view>添加微信收款码</view>
<view @click="show=false">X</view>
</view>
<!-- <view class="text-center padding-top-sm padding-bottom-lg" style="color: #999999;">请提交微信号和微信二维码
</view> -->
<view style="width: 80%;margin: 0 auto;">
<view class="margin-top" @click.stop="weixin"
style="border: 4rpx solid #010101;border-radius: 16rpx;overflow: hidden;">
<image v-if="!wximg" src="../../static/images/my/erweima.png"></image>
<image v-else :src="wximg" mode=""></image>
</view>
</view>
<!-- <view class="text-center margin-top-sm " @click="submit"
style="border-radius: 10rpx;background-color: #7E59FF;color: #fff;height: 80rpx;line-height: 80rpx;">保存</view> -->
</view>
</u-popup>
<!-- <view v-if="show" class="popup">
</view> -->
</view>
</template>
<script>
export default {
data() {
return {
show: false,
money: '',
moneys: '',
zhifubao: '',
mayMoney: '0',
zhifubaoName: '',
shouxufei: '',
moneyList: [{
money: '10'
},
{
money: '20'
},
{
money: '50'
},
{
money: '100'
},
{
money: '200'
},
{
money: '500'
}
],
value: 0,
min: '',
zhifubao: '',
zhifubaoName: '',
openLists: [],
openWay: 1,
values: '',
wximg: ''
};
},
onLoad() {
this.getUserInfo()
this.$Request.getT('/common/type/290').then(res => { //判断微信提现方式
if (res.code == 0) {
if (res.data && res.data.value) {
this.values = res.data.value
}
}
})
//提现手续费
this.$Request.getT('/common/type/115').then(res => {
if (res.code === 0) {
this.shouxufei = res.data.value;
}
});
this.openLists = [{
image: '../../static/images/img/icon_weixin.png',
text: '微信',
id: 1
}, {
image: '../../static/images/img/zhifubao.png',
text: '支付宝',
id: 2
}];
this.openWay = 1;
},
onShow: function(e) {
this.getwalletMoney();
this.getUserInfo()
},
onNavigationBarButtonTap() {
this.list();
},
methods: {
//用户收款码弹框
isShow() {
this.getUserInfo()
this.show = true
},
//微信 支付宝提现选择
selectWay: function(item) {
this.openWay = item.id;
},
//获取用户信息获取用户是否上传收款码
getUserInfo() {
this.$Request.getA("/sys/user/info").then(res => {
if (res.code == 0) {
this.zhifubao = res.user.userEntity.zhiFuBao
this.zhifubaoName = res.user.userEntity.zhiFuBaoName
this.wximg = res.user.userEntity.cashQrCode;
// console.log(this.zhifubao, this.zhifubaoName, '-')
}
});
},
//获取账户余额
getwalletMoney() {
this.$Request.getT('/shop/shopmoney/selectShopMoney').then(res => {
if (res.code == 0) {
this.money = res.data.money;
}
uni.hideLoading();
});
},
gojilu() {
uni.navigateTo({
url: '/my/other/moneydetail'
});
},
goqianbao() {
uni.navigateTo({
url: '/my/other/cashList'
});
},
goZhifuBao() {
uni.navigateTo({
url: '/my/other/zhifubao'
});
},
weixin() {
let that = this
uni.chooseImage({
count: 1, //默认9
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], //从相册选择
success: (res) => {
console.log('`````````````', res)
that.$queue.showLoading("上传中...");
for (let i = 0; i < 1; i++) {
uni.uploadFile({ // 上传接口
url: 'https://tcwm.xianmaxiong.com/sqx_fast/alioss/upload', //真实的接口地址
filePath: res.tempFilePaths[i],
name: 'file',
success: (uploadFileRes) => {
let img = JSON.parse(uploadFileRes.data).data
// let userId = that.$queue.getData('userId');
let data = {
cashQrCode: img
}
that.$Request.getA('/shop/shopmoney/shopBindingQrCode',
data).then(
res => {
if (res.code == 0) {
that.getUserInfo()
setTimeout(function() {
that.$queue.showToast('上传成功')
}, 1000)
}
});
uni.hideLoading();
// that.show = false
}
});
}
}
});
},
//校验用户输入金额
checkMobile(money) {
return RegExp(/^1[34578]\d{9}$/).test(money);
},
getOut(money) {
let that = this
if (money) {
that.moneys = money
}
if (!/^\d+$/.test(that.moneys)) {
uni.showToast({
icon: 'none',
title: '请输入正确金额,不能包含中文,英文,特殊字符和小数'
});
return;
}
if (that.openWay == 2) { //支付宝提现
if (that.zhifubao != null && that.zhifubaoName != null) {
uni.showModal({
title: "提现申请提示",
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n收款人账号' + that.zhifubao +
'\n\n提现金额:' + that.moneys + '元\t\t手续费:' + (that.moneys * that.shouxufei).toFixed(
1),
success: (e) => {
if (e.confirm) {
that.$queue.showLoading("提现中...");
let data = {
money: that.moneys,
classify: '1'
}
that.$Request.getT('/shop/shopmoney/shopCashMoney', data).then(
res => {
if (res.status === 0 && res.data) {
setTimeout(function() {
that.$queue.showToast("提现申请成功,预计三个工作日到账");
}, 3000)
that.getwalletMoney();
} else {
that.$queue.showToast(res.msg);
that.getwalletMoney();
}
uni.hideLoading();
});
}
}
});
} else {
uni.navigateTo({
url: '/my/other/zhifubao'
});
}
} else if (that.openWay == 1) { //微信提现
if (that.values == 2) {
that.$Request.getA('/sys/user/info').then(res => {
if (res.code === 0) {
let wxImg = res.user.userEntity.cashQrCode;
if (!wxImg) {
uni.showModal({
title: '提现提示',
content: '请上传微信收款码',
showCancel: true,
cancelText: '取消',
confirmText: '上传',
success: res => {
if (res.confirm) {
that.show = true
}
},
fail: () => {},
complete: () => {}
});
return;
}
if (!/^\d+$/.test(that.moneys)) {
uni.showToast({
icon: 'none',
title: '请输入正确金额,不能包含中文,英文,特殊字符和小数'
});
return;
}
if (that.moneys * 1 >= that.value * 1) {
uni.showModal({
title: '提现申请提示',
content: '金额:' + that.moneys + '元'+','+'手续费:' + (that.moneys *that.shouxufei).toFixed(1),
success: e => {
if (e.confirm) {
that.$queue.showLoading('提现中...');
let data = {
money: that.moneys,
classify: 2
}
that.$Request.getT('/shop/shopmoney/shopCashMoney',
data).then(
res => {
if (res.code === 0) {
setTimeout(function() {
that.$queue.showToast(
'提现申请成功,预计三个工作日到账');
}, 1000)
that.getwalletMoney();
} else {
uni.showModal({
title: '温馨提示',
content: res.msg,
showCancel: false,
cancelText: '取消',
confirmText: '确认'
});
}
uni.hideLoading();
});
}
}
});
} else {
setTimeout(function() {
that.$queue.showToast('提现金额必须大于或等于' + that.value + '元才可提现');
}, 1000)
}
} else {
that.$queue.showToast('网络状态不好,请刷新后重试!');
}
});
} else {
if (!/^\d+$/.test(that.moneys)) {
uni.showToast({
icon: 'none',
title: '请输入正确金额,不能包含中文,英文,特殊字符和小数'
});
return;
}
if (parseFloat(that.moneys).toFixed(1) >= that.value) {
uni.showModal({
title: '提现申请提示',
content: '金额:' + that.moneys + '元'+','+'手续费:' + parseFloat(that.moneys *
that.shouxufei).toFixed(1),
success: e => {
if (e.confirm) {
that.$queue.showLoading('提现中...');
let data = {
money: that.moneys,
classify: 2
}
that.$Request.getT('/shop/shopmoney/shopCashMoney', data).then(
res => {
if (res.code === 0) {
setTimeout(function() {
that.$queue.showToast('提现申请成功,预计三个工作日到账');
}, 1000)
that.getwalletMoney();
} else {
uni.showModal({
title: '温馨提示',
content: res.msg,
showCancel: false,
cancelText: '取消',
confirmText: '确认'
});
that.getwalletMoney();
}
uni.hideLoading();
});
}
}
});
} else {
that.$queue.showToast('提现金额必须大于或等于' + that.value + '元才可提现');
}
}
}
},
}
};
</script>
<style lang="less">
// @import '../../static/css/index.css';
.view2-view-text {
font-size: 14px;
color: #000000;
margin-left: 20upx;
width: 80%;
}
.view2-view-image-right {
width: 18upx;
height: 30upx;
margin-left: 50upx;
}
.cash {
text-align: center;
background: white;
height: 100%;
position: absolute;
width: 100%;
.cash-top {
padding: 32upx 32upx 50upx 32upx;
/* border-bottom: 1px solid gainsboro; */
background: #FF2638;
}
.leiji {
font-size: 14px;
color: #ffffff;
margin-bottom: 10px;
}
}
</style>

129
my/other/cashList.vue Normal file
View File

@@ -0,0 +1,129 @@
<template>
<view>
<view style="text-align: left;padding-bottom: 10rpx;">
<view v-for="(item, index) in list" :key="index" class="item">
<view>
<!-- <view style="margin-bottom: 8upx;text-align: right;">
<text v-if="item.type == 1" style="margin-bottom: 8upx;color: #ecd4b4">充值</text>
<text v-if="item.type == 2" style="margin-bottom: 8upx;color: #ecd4b4">提现</text>
</view> -->
<view style="color: #999999;font-size: 28upx;">
<view style="margin-bottom: 8upx">{{item.title}}</view>
<!-- <view v-if="item.classify === 2" style="margin-bottom: 8upx"> 返佣类型直属返佣</view> -->
<!-- <view v-if="item.classify === 3" style="margin-bottom: 8upx"> 返佣类型非直属支付</view> -->
<view style="margin-bottom: 8upx">{{item.content}}</view>
<view style="margin-bottom: 8upx"> 创建时间{{item.createTime}}</view>
<view style="margin-bottom: 8upx;text-align: right;">
<text v-if="item.type == 1" style="color: #ecd4b4;font-size: 32upx;font-weight: 600"><text
class="text-olive">+</text>{{item.money}}</text>
<text v-if="item.type == 2" style="color: #ecd4b4;font-size: 32upx;font-weight: 600"><text
class="text-red">-</text>{{item.money}}</text>
</view>
</view>
</view>
</view>
<!-- 加载更多提示 -->
<!-- <view class="s-col is-col-24" v-if="list.length > 0">
<load-more :loadingType="loadingType" :contentText="contentText"></load-more>
</view> -->
<!-- 加载更多提示 -->
<!-- <empty v-if="list.length === 0" des="暂无明细数据" show="false"></empty> -->
<empty v-if="list.length == 0" content="暂无明细"></empty>
</view>
</view>
</template>
<script>
import empty from '@/components/empty.vue'
export default {
components: {
empty
},
data() {
return {
list: [],
page: 1,
limit: 10,
tabIndex: 1,
checkReZhiShu: '否',
checkReTuanZhang: '否',
checkReFeiZhiShu: '否',
scrollTop: false,
contentText: {
contentdown: '上拉显示更多',
contentrefresh: '正在加载...',
contentnomore: '没有更多数据了'
}
}
},
onLoad() {
this.$queue.showLoading("加载中...");
this.getList();
},
onPageScroll: function(e) {
this.scrollTop = e.scrollTop > 200;
},
methods: {
getList() {
let data = {
page: this.page,
limit: this.limit,
classify: 3,
type:''
}
this.$Request.getT('/shop/shopmoney/selectShopMoneydetails', data).then(res => {
if (res.code === 0) {
if (this.page === 1) {
this.list = res.data.records;
} else {
this.list = [...this.list, ...res.data.records];
}
}
uni.stopPullDownRefresh();
uni.hideLoading();
});
}
},
onReachBottom: function() {
this.page = this.page + 1;
this.getList();
},
onPullDownRefresh: function() {
this.page = 1;
this.getList();
}
}
</script>
<style lang="less">
page {
// background: #1c1b20;
}
.tui-tab-item-title {
// color: #ffffff;
font-size: 30rpx;
height: 80rpx;
line-height: 80rpx;
flex-wrap: nowrap;
white-space: nowrap;
}
.tui-tab-item-title-active {
border-bottom: 1px solid #5E81F9;
color: #5E81F9;
font-size: 32upx;
font-weight: bold;
border-bottom-width: 6upx;
text-align: center;
}
.item {
background: #FFFFFF;
padding: 32rpx;
margin: 32rpx;
font-size: 28rpx;
box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1);
border-radius: 16upx;
}
</style>

135
my/other/customer.vue Normal file
View File

@@ -0,0 +1,135 @@
<template>
<view style="height: 100vh;margin: 32upx;">
<view style="text-align: center;background: #FFFFFF;padding: 40upx;border-radius: 32upx;">
<view style="font-size: 38upx;">添加客服微信咨询</view>
<view style="font-size: 32upx;margin-top: 32upx;">微信号{{weixin}}</view>
<view style="font-size: 32upx;margin-top: 32upx;">手机号{{phone}}</view>
<view @click="copyHref"
style="background: #557EFD;width:200upx;margin-top: 32upx;font-size: 30upx;margin-left: 36%;color: #FFFFFF;padding: 4upx 20upx;border-radius: 24upx;">
一键复制</view>
<image @click="saveImg" mode="aspectFit" style="margin-top: 32upx" :src="images"></image>
<view style="font-size: 28upx;margin-top: 32upx" v-if="isWeiXin">{{ isWeiXin ? '长按识别上方二维码' : '' }}</view>
<!-- <button open-type="contact">在线客服</button> -->
<!-- <view @click="goChat"
style="width:260upx;margin-top: 32upx;font-size: 30upx;margin-left: 28%;color: #557EFD;padding: 4upx 20upx;border-radius: 24upx;">
联系在线客服</view>
<view v-if="isWeiXin" style="font-size: 24upx;margin-top: 80upx" @click="rests">无法识别</view> -->
</view>
</view>
</template>
<script>
export default {
data() {
return {
images: 'https://www.gomyorder.cn/custom.jpg',
isWeiXin: false,
weixin: '710070994',
phone: '',
webviewStyles: {
progress: {
color: '#1A1929 '
}
}
};
},
onLoad() {
// #ifdef H5
let ua = navigator.userAgent.toLowerCase();
if (ua.indexOf('micromessenger') !== -1) {
this.isWeiXin = true;
}
// #endif
//获取客服二维码
this.$Request.getT('/app/common/type/289').then(res => {
if (res.code == 0) {
if (res.data && res.data.value) {
console.log(res.data.value)
this.images = res.data.value;
}
}
});
this.$Request.getT('/app/common/type/288').then(res => {
if (res.code == 0) {
if (res.data && res.data.value) {
this.weixin = res.data.value;
}
}
});
//获取手机号码
this.$Request.getT('/app/common/type/287').then(res => {
if (res.code == 0) {
if (res.data && res.data.value) {
this.phone = res.data.value;
}
}
});
},
onPullDownRefresh: function() {
uni.stopPullDownRefresh(); // 停止刷新
},
methods: {
//邀请码复制
copyHref() {
uni.setClipboardData({
data: this.weixin,
success: r => {
this.$queue.showToast('复制成功');
}
});
},
saveImg() {
let that = this;
let imgArr = []
imgArr.push(that.image);
//预览图片
uni.previewImage({
urls: imgArr,
current: imgArr[0]
});
// uni.saveImageToPhotosAlbum({
// filePath: that.image,
// success(res) {
// that.$queue.showToast('保存成功');
// }
// });
},
rests() {
uni.showToast({
title: '已刷新请再次长按识别',
mask: false,
duration: 1500,
icon: 'none'
});
window.location.reload();
},
// 在线客服
goChat() {
let token = this.$queue.getData('token');
if (token) {
uni.navigateTo({
url: '/my/setting/chat'
});
} else {
this.goLoginInfo();
}
},
//统一登录跳转
goLoginInfo() {
uni.navigateTo({
url: '/pages/public/loginphone'
});
},
}
};
</script>
<style>
/* @import '../../static/css/index.css'; */
page {
background: #F5F5F5;
}
</style>

194
my/other/detail.vue Normal file
View File

@@ -0,0 +1,194 @@
<template>
<view class="content">
<view class="online_box">
<view class="online_title">{{datas.shopIllegal}}</view>
<u-line color="#E6E6E6" />
<view class="online" style="padding-top: 10rpx;">
<view class="online_tit">违规说明</view>
<view class="online_test">{{datas.wrongExplain}}</view>
</view>
<view class="online">
<view class="online_tit">关联订单</view>
<view class="online_text" v-if="datas.shipAddressDetail" >
<image src="../static/black.png"></image>
<text>{{datas.shipAddressDetail}}</text>
</view>
<view class="online_text" v-if="datas.deilveryAddressDetail">
<image src="../static/orange.png"></image>
<text>{{datas.deilveryAddressDetail}}</text>
</view>
<view class="online_text" v-if="datas.shopAddressDetail">
<image src="../static/black.png"></image>
<text>{{datas.shopAddressDetail}}</text>
</view>
<view class="online_text" v-if="datas.userAddressDetail">
<image src="../static/orange.png"></image>
<text>{{datas.userAddressDetail}}</text>
</view>
<view class="online_text" v-if="datas.indentNumber" @click="copyOrder(datas.indentNumber)">
<image src="../static/orange.png"></image>
<text>订单号{{datas.indentNumber}}</text>
</view>
</view>
<!-- <view class="online">
<view class="online_tit">违规说明</view>
<view style="font-size: 24rpx;margin-top: 10rpx;">{{datas.resultHanding}}</view>
<view class="pnline_tip">如果配送中上报异常审核成功后违规消除不扣款</view>
</view> -->
</view>
<!-- <view class="btn" v-if="datas.complaintState=='1'" @click="bindonline">在线申诉</view>
<view class="btn btn1" v-if="datas.complaintState=='2'" >申诉中</view>
<view class="btn" v-if="datas.complaintState=='3'"@click="bindonline" >申诉未通过</view>
<view class="btn" v-if="datas.complaintState=='4'" >申诉通过</view> -->
</view>
</template>
<script>
export default {
data() {
return {
list: [{
id: 1,
img: '../static/black.png',
name: '西安智能大厦'
}, {
id: 2,
img: '../static/orange.png',
name: '用户地址隐藏',
}],
indentNumber:'',
datas:{},
complaintId: ''
}
},
onLoad(options) {
console.log(options)
this.indentNumber =options.indentNumber
this.complaintId = options.complaintId
// this.bindorder()
},
onShow() {
console.log('`````````````11111111')
if(this.indentNumber!=''){
this.bindorder()
}
},
methods: {
copyOrder(value) {
uni.setClipboardData({
data: value, //要被复制的内容
success: () => { //复制成功的回调函数
uni.showToast({ //提示
title: '复制成功'
})
}
});
},
bindonline() {
uni.navigateTo({
url: '/pages/riderMy/myOnline/myOnline?indentNumber='+this.indentNumber+'&complaintType='+this.datas.complaintType+'&complaintId='+this.complaintId
})
},
// 获取数据
bindorder() {
this.$Request.getT('/app/shop/findComplaint',
{
complaintId: this.complaintId
}).then(res => {
if(res.code==0){
this.datas = res.data
}else{
console.log('失败:',res.data)
}
});
},
}
}
</script>
<style>
body {
background-color: #F5F5F5;
}
.content {
width: 100%;
}
.online_box {
width: 90%;
margin: 0 auto;
background: #FFFFFF;
border-radius: 20rpx;
margin-top: 30rpx;
}
.online_title {
font-size: 28rpx;
font-weight: bold;
letter-spacing: 2rpx;
width: 90%;
margin: 0 auto;
line-height: 80rpx;
}
.online {
width: 90%;
margin: 0 auto;
padding-bottom: 34rpx;
}
.online_tit {
font-size: 27rpx;
letter-spacing: 2rpx;
font-weight: bolder;
line-height: 40rpx;
}
.online_test {
color: #333333;
font-size: 26rpx;
letter-spacing: 2rpx;
line-height: 38rpx;
}
.online_text {}
.online_text image {
width: 15rpx;
height: 15rpx;
}
.online_text text {
font-size: 21rpx;
color: #333333;
margin-left: 15rpx;
letter-spacing: 1rpx;
}
.pnline_tip {
color: #999999;
font-size: 25rpx;
line-height: 50rpx;
}
.btn {
width: 90%;
margin: 0 auto;
background: #FF7F00;
line-height: 90rpx;
text-align: center;
color: white;
border-radius: 15rpx;
margin-top: 20rpx;
font-size: 28rpx;
}
.btn1{
background: #ccc;
}
</style>

48
my/other/help.vue Normal file
View File

@@ -0,0 +1,48 @@
<template>
<view>
<view style="margin-top: 4upx;" class="bg-white flex justify-between align-center padding" v-for="(item,index) in dataList" :key='index' @click="goDet(item)" >
<view class="text-lg">{{index+1}}.{{item.title}}</view>
<image src="../../static/images/img/go.png" style="width: 20rpx;height: 34rpx;" mode="aspectFill"></image>
</view>
</view>
</template>
<script>
export default {
data() {
return {
page: 1,
limit: 10,
dataList: []
}
},
onLoad() {
this.getDataList()
},
methods: {
getDataList() {
let data = {
page: this.page,
limit: this.limit,
type:3
}
this.$Request.getT("/app/userinfo/trainingCenterList",data).then(res => {
this.dataList = res.data.list
})
},
goDet(e) {
uni.navigateTo({
url: '/my/other/helpDet?id='+e.trainingId
})
}
},
onReachBottom: function() {
this.page = this.page + 1;
this.getDataList();
},
}
</script>
<style>
</style>

77
my/other/helpDet.vue Normal file
View File

@@ -0,0 +1,77 @@
<template>
<view style="line-height: 26px;padding: 32upx;" class="home1">
<!-- <view v-html="tit"> </view> -->
<!-- <view style="font-size: 28upx;" v-html="content"></view> -->
<u-parse :html="content"></u-parse>
</view>
</template>
<script>
export default {
data() {
return {
list: [],
content: ''
}
},
onLoad(e) {
this.taskData(e.id)
},
methods: {
// 获取任务数据
taskData(e) {
this.$Request.getT('/app/userinfo/TrainingCenter?id='+e).then(res => {
if(res.code==0){
this.content = res.data.message
}
});
},
}
}
</script>
<style>
page {
background: #FFFFFF;
}
.content {
width: 100%;
background: #FFFFFF;
margin-top: 20rpx;
padding-bottom: 50rpx;
padding-top: 20rpx;
}
.list_box {
width: 90%;
margin: 0 auto;
display: flex;
line-height: 45rpx;
padding-top: 20rpx;
}
.list_left {
flex: 2;
}
.name {
font-size: 26rpx;
color: #333333;
font-weight: bold;
letter-spacing: 2rpx;
}
.data {
color: #999999;
font-size: 24rpx;
}
/* .list_right {
flex: 1;
display: flex;
justify-content: flex-end;
align-items: center;
font-size: 31rpx;
} */
</style>

44
my/other/mimi.vue Normal file
View File

@@ -0,0 +1,44 @@
<template>
<view style="line-height: 26px;padding: 32upx;" class="bg-white">
<!-- <view v-html="tit"> </view> -->
<view style="font-size: 28upx;" v-html="content"></view>
</view>
</template>
<script>
export default {
data() {
return {
tit: '',
content: ''
}
},
onLoad() {
// this.getGuize();
// 隐私政策
this.$Request.getT('/app/common/type/237').then(res => { //用户完成成功
if (res.code == 0) {
if (res.data && res.data.value) {
this.content = res.data.value;
}
}
})
},
methods: {
getGuize() {
this.$Request.getT('/app/userinfo/privacyPolicy').then(res => {
if (res.code == 0) {
this.content = res.data.value;
// this.tit = res.data.min
}
});
}
}
}
</script>
<style>
page {
background: #FFF;
}
</style>

544
my/other/money.vue Normal file
View File

@@ -0,0 +1,544 @@
<template>
<view>
<view style="width: 100%;height: 384upx;position: relative;">
<image src="../../static/images/img/image_bg.png" style="width: 100%;height: 100%;"></image>
<view class="box">
<view class="margin-top padding-top">保证金</view>
<view class="margin-top-lg text-bold" style="font-size: 78upx;">{{cashDeposit?cashDeposit:0}}</view>
<view class="mingxi" @click="bindmingxi()">保证金明细</view>
<view class="flex justify-center padding-lr" style="margin-top: 100upx;">
<view class="btn1" @click="Tuiprice()">退保证金</view>
<view class="btn2" @click="submit()">缴纳保证金</view>
</view>
</view>
</view>
<view class="padding" style="margin-top: 180upx;">
<view style="color: #333333;font-size: 38upx;" class="text-bold">保证金规则</view>
<view style="font-size: 32upx;margin-top: 58upx;" class="text-bold">保证金退款</view>
<view style="color: #666666;margin-top: 29upx;font-size: 28upx;">
48小时内无订单记录即可申请退保证金保证金统一退款至账户余额实时到账
</view>
<view style="font-size: 32upx;margin-top: 58upx;" class="text-bold">保证金缴纳</view>
<view style="color: #666666;margin-top: 29upx;font-size: 28upx;">
所有店铺发布商品需缴纳保证金{{money}}没有缴纳者将无法接订单建议您及时缴纳
</view>
</view>
<!-- 支付方式 -->
<!-- <u-popup v-model="showpay" mode="bottom" :closeable="closeable">
<view class="popup_pay">
<view style="background-color: #fff;">
<view style="padding: 0 20upx;margin-top: 60rpx;margin-bottom: 20rpx;">
<view
style="display: flex;height: 100upx;align-items: center;padding: 20upx 0;justify-content: center;"
v-for="(item,index) in openLists" :key='index'>
<image :src="item.image" style="width: 55upx;height: 55upx;border-radius: 50upx;">
</image>
<view style="font-size: 30upx;margin-left: 20upx;width: 70%;">
{{item.text}}
</view>
<radio-group name="openWay" style="margin-left: 45upx;" @tap='selectWay(item)'>
<label class="tui-radio">
<radio color="#1777FF" :checked="openWay === item.id ? true : false" />
</label>
</radio-group>
</view>
</view>
</view>
<view class="pay_btn" @click="pay()">确认支付</view>
</view>
</u-popup> -->
<!-- 支付方式 -->
<u-popup v-model="showpay" mode="center" width="640rpx" height="640rpx" border-radius="14" :closeable="true"
close-icon="close-circle" close-icon-size="50" close-icon-color="#CCCCCC" @close="closePopup()">
<view style="width: 100%;height: 300upx;background: #FFFFFF;">
<view class="receipt_code">
<view class="code_title">请输入支付金额</view>
<u-input v-model="earnestMoney" placeholder="请输入支付金额" :border="true" />
<view class="margin-tb padding-lr radius bg-white" style="height: 220upx;">
<view class="flex align-center justify-between padding-tb-sm" v-for="(item,index) in openLists"
:key='index'>
<image :src="item.image" style="width: 80upx;height: 80upx;border-radius: 50upx;"></image>
<view class="flex-sub text-xl text-bold margin-left">{{item.text}}</view>
<radio-group name="openWay" style="margin-left: 20upx;" @change='selectWay(item)'>
<label class="tui-radio">
<radio class="red" :checked="openWay === item.id ? true : false" />
</label>
</radio-group>
</view>
</view>
<view class="sure" @click="pay()">确定</view>
</view>
</view>
</u-popup>
</view>
</template>
<script>
export default {
data() {
return {
money: 0,
showpay: false,
openLists: [],
openWay: 1,
closeable: true,
renzheng: '',
cashDeposit: '',
earnestMoney: '',
openId: ''
}
},
onLoad() {
this.cashDeposit = uni.getStorageSync('cashDeposit')
this.openId = uni.getStorageSync('openId')
this.renzheng = uni.getStorageSync("renzheng")
// #ifdef APP
this.openLists = [{
image: '../../static/images/img/icon_weixin.png',
text: '微信',
id: 1
}, {
image: '../../static/images/img/zhifubao.png',
text: '支付宝',
id: 2
}],
this.openWay = 1;
// #endif
// #ifdef MP-WEIXIN
this.openLists = [{
image: '../../static/images/img/icon_weixin.png',
text: '微信',
id: 1
}],
this.openWay = 1;
// #endif
// #ifdef H5
this.openLists = [{
image: '../../static/images/img/zhifubao.png',
text: '支付宝',
id: 2
}]
this.openWay = 2;
// #endif
},
onShow() {
this.Getmoney()
this.getshanghuinfo()
},
methods: {
selectWay: function(item) {
this.openWay = item.id;
},
//保证金明细
bindmingxi() {
uni.navigateTo({
url: '/my/other/moneylist'
})
},
getshanghuinfo() {
let data = {
shopId: uni.getStorageSync('shopId')
}
this.$Request.get("/app/shop/selectShopMessage", data).then(res => {
if (res.code == 0) {
this.cashDeposit = res.data.cashDeposit
uni.setStorageSync('cashDeposit', res.data.cashDeposit)
}
});
},
// 保证金
Getmoney() {
this.$Request.get("/app/common/type/270").then(res => {
console.log(res)
if (res.code == 0) {
this.money = res.data.value
}
});
},
//缴纳保证金
submit() {
// if (this.isCashDeposit == 3) {
// uni.showToast({
// title: '系统审核中,请耐心等待',
// icon: 'none',
// duration: 1000
// })
// } else if (this.isCashDeposit == 1) {
// this.showpay = true
// }
this.showpay = true
// #ifdef MP-WEIXIN
this.wxlogin()
// #endif
},
//退保证金
Tuiprice() {
if (this.cashDeposit == 0) {
uni.showToast({
title: '保证金余额0',
icon: 'none',
duration: 1000
})
} else {
this.$Request.getT('/app/shop/shopRefundCashDeposit', {
shopId: uni.getStorageSync('shopId')
}).then(res => {
if (res.code == 0) {
uni.showToast({
title: '申请提交成功,保证金已退还至您的钱包账户',
icon: 'none',
duration: 1000
})
uni.switchTab({
url: '/pages/my/index'
})
}else{
this.$queue.showToast(res.msg);
}
})
}
},
// 关闭底部弹出层
closePopup() {
this.shows = false
},
wxlogin() {
let that = this
wx.login({
success(res) {
if (res.code) {
console.log(res)
//发起网络请求
let data = {
code: res.code
}
that.$Request.getA("/app/Login/wxShopLogin", data).then(res => {
if (res.code == 0) {
that.$queue.setData("openId", res.data.open_id);
}
})
} else {
console.log('登录失败!' + res.errMsg)
}
}
})
},
pay() {
let that = this;
if (!this.earnestMoney) {
that.$queue.showToast('请输入支付金额');
return;
}
uni.showLoading({
title: '支付中'
});
let userId = uni.getStorageSync('userId')
let openId = uni.getStorageSync('openId')
that.showpay = false
if (that.openWay == 1) { //微信支付
// #ifdef MP-WEIXIN
let data = {
money: that.earnestMoney,
openId: openId,
type: 3
}
that.$Request.post('/shop/shopmoney/shopCashDeposit', data).then(res => {
console.log(res)
uni.hideLoading();
if (res.code == 0) {
that.earnestMoney = ''
uni.requestPayment({
provider: 'wxpay',
timeStamp: res.data.timestamp,
nonceStr: res.data.noncestr,
package: res.data.package,
signType: res.data.signType,
paySign: res.data.sign,
success: function(res) {
console.log(res)
uni.showToast({
title: '支付成功',
icon: 'nones'
});
// this.$queue.showToast('支付成功');
that.getshanghuinfo()
// uni.switchTab({
// url: '/pages/my/index'
// })
},
fail: function(err) {
that.$queue.showToast('支付失败');
}
});
}
});
// #endif
// #ifdef H5
let data = {
money: that.money,
type: 2
}
that.$Request.post('/shop/shopmoney/shopCashDeposit', data).then(res => {
uni.hideLoading();
that.showpay = false
that.callPay(res);
});
// #endif
// #ifdef APP
let data = {
money: that.money,
type: 1
}
that.$Request.post('/shop/shopmoney/shopCashDeposit', data).then(res => {
uni.hideLoading()
console.log(res)
that.showpay = false
if (res.code == 0) {
that.isCheckPay(res.code, 'wxpay', JSON.stringify(res.data));
}
});
// #endif
} else if (that.openWay == 2) { //支付宝支付
// #ifdef H5
let data = {
money: that.money,
type: 5
}
that.$Request.post('/shop/shopmoney/shopCashDeposit', data).then(
res => {
uni.hideLoading()
that.showpay = false
const div = document.createElement('div')
div.innerHTML = res.data //此处form就是后台返回接收到的数据
document.body.appendChild(div)
document.forms[0].submit()
});
// #endif
// #ifdef APP-PLUS
let data = {
money: that.money,
type: 4
}
that.$Request.post('/shop/shopmoney/shopCashDeposit', data).then(
res => {
uni.hideLoading()
that.showpay = false
that.setPayment('alipay', res.data);
});
// #endif
}
},
callPay: function(response) {
if (typeof WeixinJSBridge === "undefined") {
if (document.addEventListener) {
document.addEventListener('WeixinJSBridgeReady', this.onBridgeReady(response), false);
} else if (document.attachEvent) {
document.attachEvent('WeixinJSBridgeReady', this.onBridgeReady(response));
document.attachEvent('onWeixinJSBridgeReady', this.onBridgeReady(response));
}
} else {
this.onBridgeReady(response);
}
},
onBridgeReady: function(response) {
let that = this;
if (!response.package) {
return;
}
WeixinJSBridge.invoke(
'getBrandWCPayRequest', {
"appId": response.appid, //公众号名称,由商户传入
"timeStamp": response.timestamp, //时间戳自1970年以来的秒数
"nonceStr": response.noncestr, //随机串
"package": response.package,
"signType": response.signType, //微信签名方式:
"paySign": response.sign //微信签名
},
function(res) {
if (res.err_msg === "get_brand_wcpay_request:ok") {
// 使用以上方式判断前端返回,微信团队郑重提示:
//res.err_msg将在用户支付成功后返回ok但并不保证它绝对可靠。
uni.showLoading({
title: '支付成功'
});
uni.hideLoading();
uni.navigateTo({
url: '/pages/my/index'
})
} else {
uni.hideLoading();
}
WeixinJSBridge.log(response.err_msg);
}
);
},
isCheckPay(code, name, order) {
if (code == 0) {
console.log('999999999999')
this.setPayment(name, order);
} else {
uni.hideLoading();
uni.showToast({
title: '支付信息有误'
});
}
},
setPayment(name, order) {
console.log(777777777, name, order)
uni.requestPayment({
provider: name,
orderInfo: order, //微信、支付宝订单数据
success: function(res) {
uni.hideLoading();
uni.showLoading({
title: '支付成功'
});
uni.switchTab({
url: '/pages/my/index'
})
},
fail: function(err) {
uni.hideLoading();
},
complete() {
uni.hideLoading();
}
});
}
}
}
</script>
<style>
page {
background: #FFFfff;
}
.box {
width: 690upx;
height: 430upx;
background: #FFFDFC;
box-shadow: 0upx 15upx 43upx 0upx rgba(232, 215, 199, 0.29);
border-radius: 24upx;
margin: 0 auto;
position: absolute;
top: 80upx;
left: 0;
right: 0;
text-align: center;
}
.btn1 {
/* width: 305upx; */
width: 100%;
height: 88upx;
background: #ffffff;
border: 2upx solid #CCCCCC;
border-radius: 8upx;
line-height: 88upx;
/* color: #FFFFFF; */
font-size: 28upx;
margin-right: 20upx;
}
.btn2 {
/* width: 305upx; */
width: 100%;
height: 88upx;
background: #FCD202;
border-radius: 8upx;
line-height: 88upx;
/* color: #FFFFFF; */
font-size: 28upx;
}
.popup_pay {
width: 100%;
position: relative;
padding-bottom: 45rpx;
/* height: 160px; */
/* #ifndef MP-WEIXIN */
/* height: 130px; */
/* #endif */
}
.pay_btn {
width: 90%;
margin: 0 auto;
text-align: center;
background: #2FB57A;
height: 80rpx;
border-radius: 16rpx;
color: #ffffff;
line-height: 80rpx;
}
/* 支付金额弹框 */
.receipt_code {
width: 90%;
margin: 0 auto;
}
.code_title {
width: 100%;
line-height: 100rpx;
font-size: 31rpx;
font-weight: bold;
text-align: center;
letter-spacing: 2rpx;
margin-top: 21rpx;
margin-bottom: 25rpx;
}
.u-input--border {
border: 1px solid #F2F2F2 !important;
background: #F2F2F2 !important;
color: #999999 !important;
font-weight: 500 !important;
letter-spacing: 2rpx !important;
}
.u-input__input {
font-size: 30rpx;
font-weight: bold;
flex: 1;
color: #999999 !important;
min-height: 85rpx !important;
margin-top: 7rpx;
}
.sure {
width: 100%;
height: 80rpx;
background: #2FB57A;
color: white;
border-radius: 46rpx;
text-align: center;
line-height: 80rpx;
margin-top: 30rpx;
letter-spacing: 2rpx;
}
.mingxi {
position: relative;
top: 10px;
}
</style>

138
my/other/moneydetail.vue Normal file
View File

@@ -0,0 +1,138 @@
<template>
<view>
<view style="text-align: left;padding-bottom: 10rpx;">
<view v-for="(item, index) in list" :key="index" class="item">
<view>
<view style="margin-bottom: 8upx;display: flex;justify-content: space-between;">
<view class="flex" style="color: #2FB57A">
<view v-if="item.classify == 2"> 微信 </view>
<view v-if="item.classify == 1"> 支付宝 </view>
<text style="margin-bottom: 8upx;color: #2FB57A" v-if="item.state==1">提现成功</text>
<text style="margin-bottom: 8upx;color: #2FB57A" v-if="item.state==0">提现中 </text>
<text style="margin-bottom: 8upx;color: #e10a07" v-if="item.state==-1">提现失败提现金额已退回钱包</text>
</view>
<text style="color: #ecd4b4;font-size: 32upx;font-weight: 600"> {{item.money}}</text>
</view>
<view style="color: #999999;font-size: 28upx;">
<!-- <view style="margin-bottom: 8upx" v-if="item.classify ==1">支付宝提现</view> -->
<view style="margin-bottom: 8upx" v-if="item.classify == 1"> 支付宝账号{{item.zhifubao}}</view>
<view style="margin-bottom: 8upx" v-if="item.classify == 1"> 支付宝姓名{{item.zhifubaoName}}</view>
<view style="margin-bottom: 8upx"> 创建时间{{item.createAt}}</view>
<view style="margin-bottom: 8upx;text-align: right;">
<text v-if="item.type == -1" class="text-olive"
style="font-size: 32upx;font-weight: 600"><text
class="text-olive">+</text>{{item.money}}</text>
<text v-if="item.state == 1||item.state == 0" class="text-red" style="font-size: 32upx;font-weight: 600"><text
class="text-red">-</text>{{item.money}}</text>
</view>
</view>
</view>
</view>
<!-- 加载更多提示 -->
<!-- <view class="s-col is-col-24" v-if="list.length > 0">
<load-more :loadingType="loadingType" :contentText="contentText"></load-more>
</view> -->
<!-- 加载更多提示 -->
<!-- <empty v-if="list.length === 0" des="暂无明细数据" show="false"></empty> -->
<empty v-if="list.length == 0" content="暂无明细"></empty>
</view>
</view>
</template>
<script>
import empty from '@/components/empty.vue'
export default {
components: {
empty
},
data() {
return {
list: [],
page: 1,
limit: 10,
tabIndex: 1,
checkReZhiShu: '否',
checkReTuanZhang: '否',
checkReFeiZhiShu: '否',
scrollTop: false,
contentText: {
contentdown: '上拉显示更多',
contentrefresh: '正在加载...',
contentnomore: '没有更多数据了'
}
}
},
onLoad() {
this.$queue.showLoading("加载中...");
this.getList();
},
onPageScroll: function(e) {
this.scrollTop = e.scrollTop > 200;
},
methods: {
getList() {
let userId = this.$queue.getData('userId');
let data = {
page: this.page,
limit: this.limit,
shopId:uni.getStorageSync('shopId')
}
this.$Request.getT('/shop/shopmoney/selectCashOutList', data).then(res => {
if (res.code === 0) {
if (this.page === 1) {
this.list = res.data.list;
} else {
this.list = [...this.list, ...res.data.list];
}
}
uni.stopPullDownRefresh();
uni.hideLoading();
});
}
},
onReachBottom: function() {
this.page = this.page + 1;
this.getList();
},
onPullDownRefresh: function() {
this.page = 1;
this.getList();
}
}
</script>
<style lang="less">
page {
background: #FFFFFF;
}
.tui-tab-item-title {
// color: #ffffff;
font-size: 30rpx;
height: 80rpx;
line-height: 80rpx;
flex-wrap: nowrap;
white-space: nowrap;
}
.tui-tab-item-title-active {
border-bottom: 1px solid #557EFD;
color: #557EFD;
font-size: 32upx;
font-weight: bold;
border-bottom-width: 6upx;
text-align: center;
}
.item {
background: #FFFFFF;
padding: 32rpx;
margin: 32rpx;
font-size: 28rpx;
box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1);
border-radius: 16upx;
}
</style>

127
my/other/moneylist.vue Normal file
View File

@@ -0,0 +1,127 @@
<template>
<view>
<view style="text-align: left;padding-bottom: 10rpx;">
<view v-for="(item, index) in list" :key="index" class="item">
<view>
<!-- <view style="margin-bottom: 8upx;text-align: right;">
<text v-if="item.type == 1" style="margin-bottom: 8upx;color: #ecd4b4">充值</text>
<text v-if="item.type == 2" style="margin-bottom: 8upx;color: #ecd4b4">提现</text>
</view> -->
<view style="color: #999999;font-size: 28upx;">
<view style="margin-bottom: 8upx">{{item.title}}</view>
<!-- <view v-if="item.classify === 2" style="margin-bottom: 8upx"> 返佣类型直属返佣</view> -->
<!-- <view v-if="item.classify === 3" style="margin-bottom: 8upx"> 返佣类型非直属支付</view> -->
<view style="margin-bottom: 8upx">{{item.content}}</view>
<view style="margin-bottom: 8upx"> 创建时间{{item.createTime}}</view>
<view style="margin-bottom: 8upx;text-align: right;">
<text v-if="item.type == 1" class="text-olive" style="font-size: 32upx;font-weight: 600"><text class="text-olive">+</text>{{item.money}}</text>
<text v-if="item.type == 2" class="text-red" style="font-size: 32upx;font-weight: 600"><text class="text-red">-</text>{{item.money}}</text>
</view>
</view>
</view>
</view>
<!-- 加载更多提示 -->
<!-- <view class="s-col is-col-24" v-if="list.length > 0">
<load-more :loadingType="loadingType" :contentText="contentText"></load-more>
</view> -->
<!-- 加载更多提示 -->
<!-- <empty v-if="list.length === 0" des="暂无明细数据" show="false"></empty> -->
<empty v-if="list.length == 0" content="暂无明细" ></empty>
</view>
</view>
</template>
<script>
import empty from '@/components/empty.vue'
export default {
components: {
empty
},
data() {
return {
list: [],
page: 1,
limit: 10,
tabIndex: 1,
checkReZhiShu: '否',
checkReTuanZhang: '否',
checkReFeiZhiShu: '否',
scrollTop: false,
contentText: {
contentdown: '上拉显示更多',
contentrefresh: '正在加载...',
contentnomore: '没有更多数据了'
}
}
},
onLoad() {
this.$queue.showLoading("加载中...");
this.getList();
},
onPageScroll: function(e) {
this.scrollTop = e.scrollTop > 200;
},
methods: {
getList() {
let userId = this.$queue.getData('userId');
let data = {
page: this.page,
limit: this.limit,
classify:2
}
this.$Request.getT('/shop/shopmoney/selectShopCashDeposit',data ).then(res => {
if (res.code === 0) {
if (this.page === 1) {
this.list = res.data.list;
} else {
this.list = [...this.list, ...res.data.list];
}
}
uni.stopPullDownRefresh();
uni.hideLoading();
});
}
},
onReachBottom: function() {
this.page = this.page + 1;
this.getList();
},
onPullDownRefresh: function() {
this.page = 1;
this.getList();
}
}
</script>
<style lang="less">
page {
background: #FFFFFF;
}
.tui-tab-item-title {
// color: #ffffff;
font-size: 30rpx;
height: 80rpx;
line-height: 80rpx;
flex-wrap: nowrap;
white-space: nowrap;
}
.tui-tab-item-title-active {
border-bottom: 1px solid #557EFD;
color: #557EFD;
font-size: 32upx;
font-weight: bold;
border-bottom-width: 6upx;
text-align: center;
}
.item {
background: #FFFFFF;
padding: 32rpx;
margin: 32rpx;
font-size: 28rpx;
box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1);
border-radius: 16upx;
}
</style>

345
my/other/myComplain.vue Normal file
View File

@@ -0,0 +1,345 @@
<template>
<view class="content">
<view class="complain_cont">
<view class="complain_tabs" v-show="!isShow">
<u-tabs :list="list" :is-scroll="true" name="illegal" :current="current" active-color="#FF7F00"
@change="change"></u-tabs>
</view>
</view>
<u-tabs :list="listTab" :is-scroll="false" inactive-color="#333333" active-color="#FF7F00" :current="currentIndex" @change="changeTab">
</u-tabs>
<view class="tabs_box dis">
<!-- 全部 -->
<view class="complain_box" v-for="(item,index) in orderlist" :key="index" @click="bindonline(item)">
<view class="complain_part1">
<view class="part1_left">{{item.illegal}}</view>
<!-- <view class="part1_left" v-if="item.complaintType=='2'">拒绝系统推单</view> -->
<!-- <view class="part1_left" v-if="item.complaintType=='3'">残损违规</view> -->
<view class="part1_right">扣款{{item.deductMoney}}</view>
</view>
<view class="complain_part2" v-if="item.shipAddressDetail">
<image src="../../../static/image/black.png"></image>
<text>{{item.shipAddressDetail}}</text>
</view>
<view class="complain_part2" v-if="item.deilveryAddressDetail">
<image src="../../../static/image/orange.png"></image>
<text>{{item.deilveryAddressDetail}}</text>
</view>
<u-line color="#E6E6E6" />
<view class="complain_title">
<span v-if="item.complaintState=='1'">可申诉</span>
<span v-if="item.complaintState=='2'">申诉中</span>
<span v-if="item.complaintState=='3'">申诉未通过</span>
<span v-if="item.complaintState=='4'">申诉通过</span>
</view>
</view>
<view class="empty" v-if="orderlist.length == 0">
<view
style="display: block; width: 90%; margin: 0 auto; position: fixed;top: 35%;left: 0rpx;right: 0rpx;text-align: center;">
<image src="../../../static/image/empty.png" style="width: 300rpx;height: 300rpx;"></image>
<view style="color: #CCCCCC;">暂无内容</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
isShow: false,
page: 1,
limit: 10,
complaintType: null,
complaintState: '',
listTab: [{
name: '全部'
}, {
name: '可申诉'
}, {
name: '申诉中'
}, {
name: '申诉未通过'
}, {
name: '申诉通过'
}],
currentIndex: 0,
list: [{
id: '',
illegal: '全部'
}],
current: 0,
orderlist: [],
totalCount: 0,
illegalId: ''
}
},
mounted() {
},
onLoad() {
this.getTypeList()
this.bindorder()
},
methods: {
getTypeList() {
this.$Request.getT('/app/illegalType/selectIllegalTypeList').then(res => {
if (res.code == 0) {
this.list = [...this.list, ...res.data]
}
});
},
bindlist(index) {
console.log(index)
this.current = index;
this.isShow = !this.isShow
},
// 获取全部数据
bindorder() {
this.$Request.getT('/app/indent/findAllComplaint', {
page: this.page,
limit: this.limit,
complaintState: this.complaintState,
illegalId: this.illegalId
}).then(res => {
if (res.code == 0) {
this.totalCount = res.data.totalCount
if (this.page == 1) {
this.orderlist = res.data.list
} else {
this.orderlist = this.list_box.concat(res.data.list)
}
} else {
console.log('失败:', res.data)
}
});
},
change(index) {
console.log(index)
this.illegalId = this.list[index].id
this.orderlist = []
this.current = index;
this.currentIndex = 0
this.page = 1
this.complaintState = ''
this.bindorder()
},
changeTab(index) {
this.orderlist = []
this.currentIndex = index
this.page = 1
if (index == 0) {
this.complaintState = ''
} else {
this.complaintState = index
}
this.bindorder()
},
bindonline(item) {
// if(item.complaintState == 1 || item.complaintState == 4) {
uni.navigateTo({
url: '/pages/riderMy/myComplain/online_complain/online_complain?indentNumber=' + item
.indentNumber + '&complaintId=' + item.complaintId
})
// }
},
bindshow() {
this.isShow = !this.isShow
},
},
// 上拉加载
onReachBottom: function() {
if (this.page < this.totalCount) {
this.page = this.page + 1;
} else {
uni.showToast({
title: '已经最后一页啦',
icon: 'none'
})
}
this.bindorder();
}
}
</script>
<style>
body {
background-color: #F5F5F5;
}
.empty {
width: 100%;
background: #ffffff;
/* #ifdef MP-WEIXIN */
height: 93vh;
/* #endif */
/* #ifndef MP-WEIXIN */
height: 80vh;
/* #endif */
}
.u-tab-item {
font-weight: 400 !important;
color: #000000 !important;
font-size: 24rpx !important;
}
.tabs_box {
/* display: none; */
/* position: absolute; */
/* top: 144rpx; */
}
.dis {
/* display: block; */
/* width: 100%; */
/* position: absolute; */
/* top: 100rpx; */
}
.content {
width: 100%;
position: relative;
}
.complain_cont {
width: 100%;
position: relative;
/* display: flex; */
}
.complain_tabs {
width: 100%;
}
.complain_btn {
width: 15%;
background: #FFFFFF;
box-shadow: -2rpx 1rpx 3rpx 0rpx rgba(39, 39, 39, 0.11);
height: 88rpx;
position: absolute;
top: 0rpx;
right: 0rpx;
z-index: 10075;
}
.btn {
color: #999999;
font-size: 25rpx;
letter-spacing: 2rpx;
text-align: center;
line-height: 88rpx;
}
.complain_none {
width: 15%;
background: #FFFFFF;
box-shadow: -2rpx 1rpx 3rpx 0rpx rgba(39, 39, 39, 0.11);
height: 88rpx;
position: absolute;
top: 88rpx;
right: 0rpx;
}
.popup_list {
width: 97%;
margin: 0 auto;
position: relative;
top: 90rpx;
}
.list_tabs {
width: 90%;
height: auto;
display: flex;
justify-content: start;
flex-wrap: wrap;
}
.tabs {
border: 1rpx solid #cccccc;
padding: 0rpx 25rpx;
line-height: 50rpx;
margin: 10rpx 10rpx;
}
/* 全部 */
.complain_box {
width: 90%;
margin: 0 auto;
/* height: 300rpx; */
background: #ffffff;
margin-top: 30rpx;
border-radius: 17rpx;
}
.complain_part1 {
width: 90%;
margin: 0 auto;
display: flex;
/* padding-top: 20rpx; */
}
.part1_left {
flex: 1;
font-size: 26rpx;
font-weight: bold;
letter-spacing: 2rpx;
height: 80rpx;
justify-content: left;
align-items: center;
display: flex;
}
.part1_right {
flex: 1;
color: #FF1B1B;
display: flex;
justify-content: flex-end;
align-items: center;
}
.complain_part2 {
width: 90%;
margin: 0 auto;
height: 50rpx;
display: flex;
justify-content: left;
align-items: center;
}
.complain_part2 image {
width: 15rpx;
height: 15rpx;
margin-right: 20rpx;
}
.complain_part2 text {
color: #999999;
font-size: 24rpx;
}
.u-line {
border-bottom-width: 3px !important;
margin-top: 20rpx !important;
}
.complain_title {
width: 90%;
margin: 0 auto;
height: 80rpx;
display: flex;
justify-content: flex-end;
align-items: center;
color: #FF2727;
font-size: 27rpx;
font-weight: bold;
letter-spacing: 2rpx;
}
</style>

129
my/other/set.vue Normal file
View File

@@ -0,0 +1,129 @@
<template>
<view class=" padding-lr">
<view class="flex padding-tb" v-if="userId" @click="goNav('/pages/my/pwd')">
<view class="flex-sub text-df" style="line-height: 50upx;">修改密码</view>
<image src="../../static/images/my/right.png" style="line-height: 50upx;width: 18rpx;height: 30rpx;">
</image>
</view>
<view class="flex padding-tb" @click="goNav('/my/other/help')">
<view class="flex-sub text-df" style="line-height: 50upx;">帮助中心</view>
<image src="../../static/images/my/right.png" style="line-height: 50upx;width: 18rpx;height: 30rpx;">
</image>
</view>
<view class="flex padding-tb" @click="goNav('/my/other/xieyi')">
<view class="flex-sub text-df" style="line-height: 50upx;">用户协议</view>
<image src="../../static/images/my/right.png" style="line-height: 50upx;width: 18rpx;height: 30rpx;">
</image>
</view>
<view class="flex padding-tb" @click="goNav('/my/other/mimi')">
<view class="flex-sub text-df" style="line-height: 50upx;">隐私政策</view>
<image src="../../static/images/my/right.png" style="line-height: 50upx;width: 18rpx;height: 30rpx;">
</image>
</view>
<view class="flex padding-tb" @click="goNav('/my/other/about')">
<view class="flex-sub text-df" style="line-height: 50upx;">关于我们</view>
<image src="../../static/images/my/right.png" style="line-height: 50upx;width: 18rpx;height: 30rpx;">
</image>
</view>
<view class="btn" v-if="userId" @click="TuiLogin">退出登录</view>
</view>
</template>
<script>
export default {
data() {
return {
userId: ""
}
},
onLoad() {
this.userId = uni.getStorageSync('userId')
},
methods: {
goNav(e) {
uni.navigateTo({
url: e
})
},
//退出登录
TuiLogin() {
let that = this
if (that.userId) {
uni.showModal({
title: '提示',
content: '确定退出登录吗?',
success: function(res) {
if (res.confirm) {
console.log('用户点击确定');
uni.removeStorageSync('shopUserName')
uni.removeStorageSync('shopCover')
uni.removeStorageSync('userId')
uni.removeStorageSync('token')
uni.removeStorageSync('mobile')
uni.removeStorageSync('zhiFuBaoName')
uni.removeStorageSync('zhiFuBao')
uni.removeStorageSync('invitationCode')
uni.removeStorageSync('unionId')
uni.removeStorageSync('openId')
uni.removeStorageSync('shopToken')
uni.removeStorageSync('shopId')
uni.showToast({
title: '退出成功!',
icon: 'none'
})
uni.navigateBack()
// that.isLogin = true
// that.shopName = '匿名'
// this.sumMoney = 0 //累计余额
// this.dayMoney = 0 //今日收益
// this.monthMoney = 0 //本月收益
// this.cashMoney = 0 //本月提现
// that.shopCover = '../../static/logo.png'
// that.userId = uni.getStorageSync('userId')
} else if (res.cancel) {
console.log('用户点击取消');
}
}
})
} else {
uni.showModal({
title: '提示',
content: '您还未登录,请先登录',
success: function(res) {
if (res.confirm) {
console.log('用户点击确定');
uni.navigateTo({
url: '/pages/my/loginphone'
})
} else if (res.cancel) {
console.log('用户点击取消');
}
}
})
}
},
}
}
</script>
<style>
page {
background: #FFFFFF;
}
.btn {
width: 100%;
height: 80upx;
background: #FCD202;
border-radius: 6upx;
text-align: center;
line-height: 80upx;
margin-top: 40upx;
font-size: 34upx;
/* color: #fff; */
}
</style>

363
my/other/tousu.vue Normal file
View File

@@ -0,0 +1,363 @@
<template>
<view class="content">
<!-- <view class="complain_cont">
<view class="complain_tabs" v-show="!isShow">
<u-tabs :list="list" :is-scroll="true" name="illegal" :current="current" active-color="#FF7F00"
@change="change"></u-tabs>
</view>
</view> -->
<!-- <u-tabs :list="listTab" :is-scroll="false" inactive-color="#333333" active-color="#FF7F00" :current="currentIndex" @change="changeTab">
</u-tabs> -->
<view class="tabs_box dis">
<!-- 全部 -->
<view class="complain_box padding-bottom-xs" v-for="(item,index) in orderlist" :key="index" @click="bindonline(item)">
<view class="complain_part1 ">
<view class="part1_left">{{item.shopIllegal}}</view>
<!-- <view class="part1_left" v-if="item.complaintType=='2'">拒绝系统推单</view> -->
<!-- <view class="part1_left" v-if="item.complaintType=='3'">残损违规</view> -->
<!-- <view class="part1_right">扣款{{item.deductMoney}}</view> -->
<view class="complain_title">
<span v-if="item.complaintState=='1'">投诉成功</span>
<!-- <span v-if="item.complaintState=='2'">申诉中</span> -->
<!-- <span v-if="item.complaintState=='3'">申诉未通过</span> -->
<!-- <span v-if="item.complaintState=='4'">申诉通过</span> -->
<span v-if="item.complaintState=='5'">投诉审核中</span>
<span v-if="item.complaintState=='6'">投诉未通过</span>
</view>
</view>
<view class="complain_part2" v-if="item.shopAddressDetail">
<image src="../static/black.png"></image>
<text>{{item.shopAddressDetail}}</text>
</view>
<view class="complain_part2" v-if="item.userAddressDetail">
<image src="../static/orange.png"></image>
<text>{{item.userAddressDetail}}</text>
</view>
<view class="complain_part2" v-if="item.complaintTime">
<image src="../static/black.png"></image>
<text>投诉时间{{item.complaintTime}}</text>
</view>
<view class="complain_part2" v-if="item.indentNumber">
<image src="../static/orange.png"></image>
<text>订单号{{item.indentNumber}}</text>
</view>
<!-- <u-line color="#E6E6E6" /> -->
</view>
<!-- <view class="empty" v-if="orderlist.length == 0">
<view
style="display: block; width: 90%; margin: 0 auto; position: fixed;top: 35%;left: 0rpx;right: 0rpx;text-align: center;">
<image src="../../../static/image/empty.png" style="width: 300rpx;height: 300rpx;"></image>
<view style="color: #CCCCCC;">暂无内容</view>
</view>
</view> -->
<empty v-if="!orderlist.length" style="z-index:0;position: relative;top: -20px;"></empty>
</view>
</view>
</template>
<script>
import empty from '@/components/empty.vue'
export default {
components: {
empty
},
data() {
return {
isShow: false,
page: 1,
limit: 10,
complaintType: null,
complaintState: '',
listTab: [{
name: '全部'
}, {
name: '可申诉'
}, {
name: '申诉中'
}, {
name: '申诉未通过'
}, {
name: '申诉通过'
}],
currentIndex: 0,
list: [{
id: '',
illegal: '全部'
}],
current: 0,
orderlist: [],
totalCount: 0,
illegalId: ''
}
},
mounted() {
},
onLoad() {
this.getTypeList()
this.bindorder()
},
methods: {
getTypeList() {
this.$Request.getT('/app/illegalType/selectIllegalTypeList').then(res => {
if (res.code == 0) {
this.list = [...this.list, ...res.data]
}
});
},
bindlist(index) {
console.log(index)
this.current = index;
this.isShow = !this.isShow
},
// 获取全部数据
bindorder() {
this.$Request.getT('/app/shop/selectComplaint', {
page: this.page,
limit: this.limit,
shopId:uni.getStorageSync('shopId')
// complaintState: this.complaintState,
// illegalId: this.illegalId
}).then(res => {
if (res.code == 0) {
this.totalCount = res.data.totalCount
if (this.page == 1) {
this.orderlist = res.data.list
} else {
this.orderlist = this.list_box.concat(res.data.list)
}
} else {
console.log('失败:', res.data)
}
});
},
change(index) {
console.log(index)
this.illegalId = this.list[index].id
this.orderlist = []
this.current = index;
this.currentIndex = 0
this.page = 1
this.complaintState = ''
this.bindorder()
},
changeTab(index) {
this.orderlist = []
this.currentIndex = index
this.page = 1
if (index == 0) {
this.complaintState = ''
} else {
this.complaintState = index
}
this.bindorder()
},
bindonline(item) {
// if(item.complaintState == 1 || item.complaintState == 4) {
uni.navigateTo({
url: '/my/other/detail?indentNumber=' + item
.indentNumber + '&complaintId=' + item.complaintId
})
// }
},
bindshow() {
this.isShow = !this.isShow
},
},
// 上拉加载
onReachBottom: function() {
if (this.page < this.totalCount) {
this.page = this.page + 1;
} else {
uni.showToast({
title: '已经最后一页啦',
icon: 'none'
})
}
this.bindorder();
}
}
</script>
<style>
body {
background-color: #F5F5F5;
}
.empty {
width: 100%;
background: #ffffff;
/* #ifdef MP-WEIXIN */
height: 93vh;
/* #endif */
/* #ifndef MP-WEIXIN */
height: 80vh;
/* #endif */
}
.u-tab-item {
font-weight: 400 !important;
color: #000000 !important;
font-size: 24rpx !important;
}
.tabs_box {
/* display: none; */
/* position: absolute; */
/* top: 144rpx; */
}
.dis {
/* display: block; */
/* width: 100%; */
/* position: absolute; */
/* top: 100rpx; */
}
.content {
width: 100%;
position: relative;
}
.complain_cont {
width: 100%;
position: relative;
/* display: flex; */
}
.complain_tabs {
width: 100%;
}
.complain_btn {
width: 15%;
background: #FFFFFF;
box-shadow: -2rpx 1rpx 3rpx 0rpx rgba(39, 39, 39, 0.11);
height: 88rpx;
position: absolute;
top: 0rpx;
right: 0rpx;
z-index: 10075;
}
.btn {
color: #999999;
font-size: 25rpx;
letter-spacing: 2rpx;
text-align: center;
line-height: 88rpx;
}
.complain_none {
width: 15%;
background: #FFFFFF;
box-shadow: -2rpx 1rpx 3rpx 0rpx rgba(39, 39, 39, 0.11);
height: 88rpx;
position: absolute;
top: 88rpx;
right: 0rpx;
}
.popup_list {
width: 97%;
margin: 0 auto;
position: relative;
top: 90rpx;
}
.list_tabs {
width: 90%;
height: auto;
display: flex;
justify-content: start;
flex-wrap: wrap;
}
.tabs {
border: 1rpx solid #cccccc;
padding: 0rpx 25rpx;
line-height: 50rpx;
margin: 10rpx 10rpx;
}
/* 全部 */
.complain_box {
width: 90%;
margin: 0 auto;
/* height: 300rpx; */
background: #ffffff;
margin-top: 30rpx;
border-radius: 17rpx;
}
.complain_part1 {
width: 90%;
margin: 0 auto;
display: flex;
/* padding-top: 20rpx; */
}
.part1_left {
flex: 1;
font-size: 26rpx;
font-weight: bold;
letter-spacing: 2rpx;
height: 80rpx;
justify-content: left;
align-items: center;
display: flex;
}
.part1_right {
flex: 1;
color: #FF1B1B;
display: flex;
justify-content: flex-end;
align-items: center;
}
.complain_part2 {
width: 90%;
margin: 0 auto;
height: 50rpx;
display: flex;
justify-content: left;
align-items: center;
}
.complain_part2 image {
width: 15rpx;
height: 15rpx;
margin-right: 20rpx;
}
.complain_part2 text {
color: #999999;
font-size: 24rpx;
}
.u-line {
border-bottom-width: 3px !important;
margin-top: 20rpx !important;
}
.complain_title {
/* width: 90%; */
margin: 0 auto;
height: 80rpx;
display: flex;
justify-content: flex-end;
align-items: center;
color: #FF2727;
font-size: 27rpx;
font-weight: bold;
letter-spacing: 2rpx;
}
</style>

253
my/other/wallet.vue Normal file
View File

@@ -0,0 +1,253 @@
<template>
<view class="content">
<view style="background: #FFFFFF;">
<view class="view1" style="text-align: center;">
<view class="view_top">
<view class="view_name">总资产()</view>
<view style="font-size: 29px;">{{ money }}<text
style="font-size: 31rpx;margin-left: 15rpx;"></text></view>
<!-- <view class="margin-top padding-top">累计提现金额{{ totalMoney }}</view> -->
</view>
</view>
<view class="view2-views">
<view class="view2_box">
<view class="name">账户余额()</view>
<view class="money">{{money}}</view>
</view>
<view class="btn" @tap="getOut">提现</view>
</view>
</view>
<view class="view2">
<view class="view2-view" @tap="moneyList">
<image src="https://api.shengqianxiong.com.cn/img/20201118/22f17a68dc7446d6bef8e0a7a6cbac55.png"
class="view2-view-image"></image>
<view class="view2-view1">
<view class="view2-view-text">钱包明细</view>
<image
src="https://api.shengqianxiong.com.cn/file/uploadPath/2021/10/08/9a7ea5f18fae76c2f9c9d5b3e8323f4e.png"
class="view2-view-image-right"></image>
</view>
</view>
<view class="view2-view" @click="goZhifuBao">
<image src="https://api.shengqianxiong.com.cn/img/20201118/86efb280c3d2416e86e7b1900bbe17ff.png"
class="view2-view-image"></image>
<view class="view2-view1">
<view class="view2-view-text">提现账号</view>
<image
src="https://api.shengqianxiong.com.cn/file/uploadPath/2021/10/08/9a7ea5f18fae76c2f9c9d5b3e8323f4e.png"
class="view2-view-image-right"></image>
</view>
</view>
<view class="view2-view" @tap="list">
<image src="https://api.shengqianxiong.com.cn/img/20201118/5ce91ac860334fc9ac09c977467607cd.png"
class="view2-view-image"></image>
<view class="view2-view1">
<view class="view2-view-text">提现记录</view>
<image
src="https://api.shengqianxiong.com.cn/file/uploadPath/2021/10/08/9a7ea5f18fae76c2f9c9d5b3e8323f4e.png"
class="view2-view-image-right"></image>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
money: '0.00',
zhifubao: '',
walletmoney: '0.00',
totalMoney: '0.00',
zhifubaoName: '',
}
},
onLoad() {
this.getwalletMoney();
},
onShow: function(e) {
// this.getMoney();
this.getwalletMoney();
},
methods: {
ketixian() {
uni.showModal({
showCancel: false,
confirmColor: '#e10a07',
title: '可提现金额说明',
content: '可提现金额是我们通过在商城中购买商品后返利的佣金,这个金额是可提现的'
});
},
leijitixian() {
uni.showModal({
showCancel: false,
confirmColor: '#e10a07',
title: '累计提现金额说明',
content: '累计提现金额是我们过往提现成功金额的总计'
});
},
moneyList() {
uni.navigateTo({
url: '/my/other/cashList'
})
},
list() {
uni.navigateTo({
url: '/my/other/moneydetail'
})
},
goZhifuBao() {
uni.navigateTo({
url: "/my/other/zhifubao"
})
},
//获取账户余额
getwalletMoney() {
this.$Request.getT('/shop/shopmoney/selectShopMoney').then(res => {
if (res.code == 0) {
this.money = res.data.money;
}
uni.hideLoading();
});
},
// getMoney() {
// let that = this;
// let token = this.$queue.getData("token");
// let userId = this.$queue.getData("userId");
// if (token) {
// //this.$queue.showLoading("加载中...");
// //可以提现金额查询预估收入查询
// this.$Request.getT("/cash/money/" + userId).then(res => {
// if (res.status === 0 && res.data) {
// // that.money = parseFloat(res.data).toFixed(2);
// } else if (res.status === -102) {
// this.$queue.showToast(res.msg);
// this.$queue.logout();
// uni.navigateTo({
// url: '/pages/member/register'
// });
// } else {
// // that.money = '0.00';
// //this.$queue.showToast(res.msg);
// }
// });
// this.$Request.getT("/cash/userinfo/" + userId).then(res => {
// if (res.status === 0 && res.data) {
// that.zhifubao = res.data.zhifubao;
// that.zhifubaoName = res.data.zhifubaoName;
// }
// uni.hideLoading();
// });
// //总的提现记录
// this.$Request.getT("/cash/countByRelationId/" + this.$queue.getData("relation_id")).then(res => {
// if (res.status === 0 && res.data) {
// that.totalMoney = parseFloat(res.data).toFixed(2);
// } else {
// that.totalMoney = '0.00';
// }
// });
// }
// },
getOut() {
uni.navigateTo({
url: '/my/other/cashDetail'
});
},
},
}
</script>
<style lang='less'>
/* @import "../../static/css/index.css"; */
.view_top {
padding: 35rpx 55rpx;
}
.view_name {
font-size: 32rpx;
letter-spacing: 2rpx;
font-family: serif;
margin-bottom: 10rpx;
}
.view1 {
width: 90%;
margin: 0 auto;
height: 320rpx;
border-radius: 16upx;
/* color: #FFFFFF; */
background: linear-gradient(to right, #FCB202 0, #FCD202 100%);
}
.view2 {
background-color: #ffffff;
margin-top: 15rpx;
}
.name {
font-size: 28rpx;
}
.money {
margin-top: 12rpx;
font-size: 48rpx;
}
.btn {
background: #FCD202;
/* color: white; */
text-align: center;
width: 24%;
padding: 16rpx 0rpx;
border-radius: 6rpx;
}
.view2-view {
display: flex;
width: 100%;
height: 110rpx;
align-items: center;
}
.view2-views {
display: flex;
width: 90%;
margin: 0 auto;
height: 140rpx;
align-items: center;
justify-content: space-between;
margin-top: 30rpx;
}
.view2-view1 {
display: flex;
flex-direction: row;
width: 90%;
align-items: center;
}
.view2-view-image {
margin-left: 40upx;
width: 50upx;
height: 50upx;
}
.view2-view-text {
font-size: 14px;
color: #000000;
margin-left: 40upx;
width: 80%;
}
.view2-view-image-right {
width: 19rpx;
height: 31rpx;
margin-left: 30rpx;
}
</style>

44
my/other/xieyi.vue Normal file
View File

@@ -0,0 +1,44 @@
<template>
<view style="line-height: 26px;padding: 32upx;" class="bg-white">
<!-- <view v-html="tit"> </view> -->
<view style="font-size: 28upx;" v-html="content"></view>
</view>
</template>
<script>
export default {
data() {
return {
tit: '',
content: ''
}
},
onLoad() {
// this.getGuize();
// 用户协议
this.$Request.getT('/app/common/type/236').then(res => { //用户完成成功
if (res.code == 0) {
if (res.data && res.data.value) {
this.content = res.data.value;
}
}
})
},
methods: {
getGuize() {
this.$Request.getT('/app/userinfo/userAgreement').then(res => {
if (res.code == 0) {
this.content = res.data.value;
// this.tit = res.data.min
}
});
}
}
}
</script>
<style>
page {
background: #FFFFFF;
}
</style>

151
my/other/zhifubao.vue Normal file
View File

@@ -0,0 +1,151 @@
<template>
<view class="container" v-if="XCXIsSelect=='是'">
<list-cell title="收款人姓名" type="text" placeholder="请输入支付宝收款人姓名" v-model="zhiFuBaoName"></list-cell>
<list-cell title="支付宝账号" type="text" placeholder="请输入要绑定的支付宝账号" v-model="zhiFuBao"></list-cell>
<wButton text="绑定账户" :rotate="logining" @click.native="toLogin()"></wButton>
<view style="padding: 32upx 64upx;font-size: 24upx;color: #999999;">提示请正确填写收款人的支付宝账户和真实的收款人姓名否则将无法正常收款</view>
</view>
</view>
</template>
<script>
import listCell from '../components/com-input';
import wButton from '../components/watch-login/watch-button.vue'; //button
export default {
components: {
listCell,
wButton
},
data() {
return {
zhiFuBao: '',
zhiFuBaoName: '',
logining: false,
XCXIsSelect: '否'
}
},
onLoad() {
// #ifdef MP-WEIXIN
this.XCXIsSelect = this.$queue.getData('XCXIsSelect');
// #endif
// #ifndef MP-WEIXIN
this.XCXIsSelect = '是'
// #endif
if (this.XCXIsSelect == '否') {
uni.setNavigationBarTitle({
title: '隐私政策'
});
} else {
uni.setNavigationBarTitle({
title: '提现账号'
});
}
this.getUserInfo()
let userId = this.$queue.getData("userId");
if (userId) {
this.$Request.get("/sys/user/info").then(res => {
if (res.code == 0) {
if (res.user.userEntity.zhiFuBao) {
this.zhiFuBao = res.user.userEntity.zhiFuBao;
}
if (res.user.userEntity.zhiFuBaoName) {
this.zhiFuBaoName = res.user.userEntity.zhiFuBaoName;
}
}
});
}
},
methods: {
inputChange(e) {
const key = e.currentTarget.dataset.key;
this[key] = e.detail.value;
},
navBack() {
uni.navigateBack();
},
toLogin() {
let userId = this.$queue.getData("userId");
let token = uni.getStorageSync("token");
const {
zhiFuBao,
zhiFuBaoName
} = this;
if (!zhiFuBao) {
this.$queue.showToast("请设置收款人支付宝账号");
} else if (!zhiFuBaoName) {
this.$queue.showToast("请设置收款人姓名");
} else {
this.$queue.showLoading("修改中...");
let data = {
zhiFuBao: this.zhiFuBao,
zhiFuBaoName: this.zhiFuBaoName
}
this.$Request.postJson('/shop/shopmoney/updateUser', data).then(res => {
if (res.code === 0) {
// uni.setStorageSync('zhiFuBao',zhiFuBao)
// uni.setStorageSync('zhiFuBaoName',zhiFuBaoName)
uni.showToast({
title: '修改成功',
icon: 'none',
complete() {
setTimeout(function() {
uni.navigateBack();
}, 1000)
}
})
} else {
this.$queue.showToast(res.msg)
}
uni.hideLoading();
});
}
},
getUserInfo() {
this.$Request.getA("/sys/user/info").then(res => {
if (res.code == 0) {
this.$queue.setData("zhiFuBao", res.user.userEntity.zhiFuBao);
this.$queue.setData("zhiFuBaoName", res.user.userEntity.zhiFuBaoName);
}
});
},
},
}
</script>
<style lang='scss'>
page {
background-color: #FFFFFF;
}
.container {
padding-top: 32upx;
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
background: #FFFFFF;
}
.confirm-btn {
width: 300px;
height: 42px;
line-height: 42px;
border-radius: 30px;
margin-top: 70upx;
background: #e10a07;
color: #fff;
font-size: 32rpx;
&:after {
border-radius: 60px;
}
}
</style>