提交 12101059 authored 作者: 何忠建's avatar 何忠建

优化调整

上级 78b56364
...@@ -38,6 +38,7 @@ export default { ...@@ -38,6 +38,7 @@ export default {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
background-color: #fff; background-color: #fff;
margin-top: 20px;
&.full { &.full {
// height: 100%; // height: 100%;
......
...@@ -29,7 +29,9 @@ ...@@ -29,7 +29,9 @@
return { return {
page: { page: {
pageSize: 20, pageSize: 20,
pageNo: 1 pageNo: 1,
column: 'createTime',
order: 'desc'
}, },
dataList: [], dataList: [],
isFinish: false isFinish: false
......
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
<view class="title"> <view class="title">
<view class="icons"> <view class="icons">
<view class="box"> <view class="box">
<image :src="userAvatar" class="icon" v-if="userAvatar"></image> <image :src="userAvatar" class="icon" v-if="isLogin && userAvatar"></image>
<uni-icons type="person" size="20px" color="#666666" v-else <uni-icons type="person" size="20px" color="#666666" v-else
@click="toLogin"></uni-icons> @click="toLogin"></uni-icons>
</view> </view>
<view class="name" v-if="userName">{{userName}}</view> <view class="name" v-if="isLogin && userName">{{userName}}</view>
<view class="name" v-else @click="toLogin">未登录</view> <view class="name" v-else @click="toLogin">未登录</view>
</view> </view>
</view> </view>
...@@ -215,10 +215,12 @@ ...@@ -215,10 +215,12 @@
computed: {}, computed: {},
methods: { methods: {
toLogin() { toLogin() {
if (!this.isLogin) {
uni.hideTabBar() uni.hideTabBar()
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.authorization.onOpenLogin() this.$refs.authorization.onOpenLogin()
}); });
}
}, },
async getPropertyAdv() { async getPropertyAdv() {
let { let {
...@@ -385,7 +387,7 @@ ...@@ -385,7 +387,7 @@
url url
}); });
}, },
initData(){ initData() {
this.getPropertyAdv() this.getPropertyAdv()
const token = uni.getStorageSync('token'); const token = uni.getStorageSync('token');
//console.log(token) //console.log(token)
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<template v-if="isLogin && userAvatar"> <template v-if="isLogin && userAvatar">
<image :src="userAvatar" class="icon"></image> <image :src="userAvatar" class="icon"></image>
</template> </template>
<view class="icon" v-else> <view class="icon" @click="toLogin" v-else>
<uni-icons type="person" size="50px" color="#6A59F2"></uni-icons> <uni-icons type="person" size="50px" color="#6A59F2"></uni-icons>
</view> </view>
<template v-if="isLogin"> <template v-if="isLogin">
...@@ -43,17 +43,19 @@ ...@@ -43,17 +43,19 @@
}, },
methods: { methods: {
toLogin() { toLogin() {
if (!this.isLogin) {
uni.hideTabBar() uni.hideTabBar()
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.authorization.onOpenLogin() this.$refs.authorization.onOpenLogin()
}); });
}
}, },
logout() { logout() {
let _this = this let _this = this
uni.showModal({ uni.showModal({
title: '警告', title: '警告',
content: '确定退出登录!', content: '确定退出登录!',
showCancel: false, showCancel: true,
success: function(res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
wx.clearStorage() wx.clearStorage()
......
...@@ -37,7 +37,9 @@ ...@@ -37,7 +37,9 @@
return { return {
page: { page: {
pageSize: 10, pageSize: 10,
pageNo: 1 pageNo: 1,
column: 'createTime',
order: 'desc'
}, },
dataList: [], dataList: [],
isFinish: false, isFinish: false,
......
...@@ -126,7 +126,8 @@ ...@@ -126,7 +126,8 @@
//platformCode: userInfo.platformCode //platformCode: userInfo.platformCode
} }
uni.setStorageSync('user_phone', userInfo.phone); uni.setStorageSync('user_phone', userInfo.phone);
uni.setStorageSync('user_name', avatar); uni.setStorageSync('user_name', userInfo.realname);
uni.setStorageSync('user_avatar', avatar)
} }
}, },
onOpenAvatar() { onOpenAvatar() {
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
<view class="name">订单编号</view> <view class="name">订单编号</view>
<view class="detail">{{details.orderNum}}</view> <view class="detail">{{details.orderNum}}</view>
</view> </view>
<view class="item" v-if="details.balanceNum">
<view class="name">结算单号</view>
<view class="detail">{{details.balanceNum}}</view>
</view>
<view class="item"> <view class="item">
<view class="name">订单状态</view> <view class="name">订单状态</view>
<view class="tag">{{details.reconciliationStatusName}}</view> <view class="tag">{{details.reconciliationStatusName}}</view>
...@@ -56,7 +60,7 @@ ...@@ -56,7 +60,7 @@
<view class="detail">{{details.partnersName}}</view> <view class="detail">{{details.partnersName}}</view>
</view> </view>
</view> </view>
<view class="form" v-if="details.reconciliationStatus === 1"> <view class="form" v-if="details.reconciliationStatus === 1 || details.reconciliationStatus === 4">
<uni-forms> <uni-forms>
<view class="form-item-text"> <view class="form-item-text">
<view class="title">备注</view> <view class="title">备注</view>
...@@ -116,13 +120,13 @@ ...@@ -116,13 +120,13 @@
} }
}, },
async toSubmit() { async toSubmit() {
if (!this.formData.remarks) { // if (!this.formData.remarks) {
uni.showToast({ // uni.showToast({
title: '请填写备注!', // title: '请填写备注!',
icon: 'none' // icon: 'none'
}); // });
return false // return false
} // }
let params = { let params = {
id: this.details.id, id: this.details.id,
remarks: this.formData.remarks remarks: this.formData.remarks
......
...@@ -39,6 +39,11 @@ ...@@ -39,6 +39,11 @@
<view class="name">分利金额</view> <view class="name">分利金额</view>
<view class="detail">{{item.shareMoney}}</view> <view class="detail">{{item.shareMoney}}</view>
</view> </view>
<view class="text" v-if="item.balanceNum">
<view class="name">结算单号</view>
<view class="detail">{{item.balanceNum}}</view>
</view>
<view class="text"> <view class="text">
<view class="name">订单时间</view> <view class="name">订单时间</view>
<view class="detail">{{item.createTime}}</view> <view class="detail">{{item.createTime}}</view>
...@@ -78,7 +83,9 @@ ...@@ -78,7 +83,9 @@
platformType: 'partner', platformType: 'partner',
reconciliationStatus: 1, reconciliationStatus: 1,
pageSize: 10, pageSize: 10,
pageNo: 1 pageNo: 1,
column: 'createTime',
order: 'desc'
}, },
dataList: [], dataList: [],
isFinish: false, isFinish: false,
...@@ -137,14 +144,15 @@ ...@@ -137,14 +144,15 @@
} }
}, },
onLoad() { onLoad() {
const token = uni.getStorageSync('token'); // const token = uni.getStorageSync('token');
if (token) { // if (token) {
this.getList() // this.getList()
} // }
}, },
onShow() { onShow() {
const token = uni.getStorageSync('token'); const token = uni.getStorageSync('token');
if (token) { if (token) {
this.dataList = [];
this.getList() this.getList()
} }
}, },
......
...@@ -166,13 +166,13 @@ ...@@ -166,13 +166,13 @@
}); });
return false return false
} }
if (!this.formData.remarks) { // if (!this.formData.remarks) {
uni.showToast({ // uni.showToast({
title: '请填写备注!', // title: '请填写备注!',
icon: 'none' // icon: 'none'
}); // });
return false // return false
} // }
let params = { let params = {
balanceWay: '微信转账', balanceWay: '微信转账',
bankCard: '工行1234567890', bankCard: '工行1234567890',
......
...@@ -73,7 +73,9 @@ ...@@ -73,7 +73,9 @@
platformType: 'partner', platformType: 'partner',
balanceStatus: 2, balanceStatus: 2,
pageSize: 10, pageSize: 10,
pageNo: 1 pageNo: 1,
column: 'createTime',
order: 'desc'
}, },
dataList: [], dataList: [],
isFinish: false, isFinish: false,
...@@ -136,14 +138,15 @@ ...@@ -136,14 +138,15 @@
} }
}, },
onLoad() { onLoad() {
const token = uni.getStorageSync('token'); // const token = uni.getStorageSync('token');
if (token) { // if (token) {
this.getList() // this.getList()
} // }
}, },
onShow() { onShow() {
const token = uni.getStorageSync('token'); const token = uni.getStorageSync('token');
if (token) { if (token) {
this.dataList = [];
this.getList() this.getList()
} }
}, },
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</view> </view>
</view> </view>
<view class="form-submit" @click="onSubmit" v-if="communityCode">确认绑定</view> <view class="form-submit" @click="onSubmit" v-if="communityCode">确认绑定</view>
<view class="form-submit" @click="toCode" v-if="!communityCode && details.auditStatus == 'auditPass'"> <view class="form-submit" @click="toCode" v-if="!communityCode">
商铺收款二维码</view> 商铺收款二维码</view>
</view> </view>
</view> </view>
...@@ -88,8 +88,10 @@ ...@@ -88,8 +88,10 @@
async onSubmit() { async onSubmit() {
if (this.details.shopCode && this.communityCode) { if (this.details.shopCode && this.communityCode) {
await partnersShopAdd({ await partnersShopAdd({
shopName: this.details.shopName,
shopCode: this.details.shopCode, shopCode: this.details.shopCode,
communityCode: this.communityCode communityCode: this.communityCode,
communityName: this.details.platformName
}) })
setTimeout(() => { setTimeout(() => {
uni.showToast({ uni.showToast({
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<image mode="aspectFill" :src="imageURL+item.shopInfo.logoUrl" class="icon"></image> <image mode="aspectFill" :src="imageURL+item.shopInfo.logoUrl" class="icon"></image>
<view class="con"> <view class="con">
<view class="name">{{item.shopName}} <view class="name">{{item.shopName}}
<view class="tag purple" v-if="item.bindPartners === 'Y'">未绑定</view> <view class="tag purple" v-if="item.bindPartners === 'Y' && item.auditStatus === 'auditPass' && item.shopStatus === 'normal'">选择</view>
<view class="tag gray" v-else>已绑定</view> <view class="tag gray" v-else>选择</view>
</view> </view>
<view class="text">{{item.shopInfo.shopContent}}</view> <view class="text">{{item.shopInfo.shopContent}}</view>
<view class="card"> <view class="card">
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
order: 'desc', order: 'desc',
pageSize: 10, pageSize: 10,
pageNo: 1, pageNo: 1,
auditStatus: 'auditPass', // auditStatus: 'auditPass',
shopStatus: 'normal' // shopStatus: 'normal'
}, },
dataList: [], dataList: [],
isFinish: false, isFinish: false,
...@@ -89,14 +89,14 @@ ...@@ -89,14 +89,14 @@
}, },
toDetails(item) { toDetails(item) {
if (item.shopInfo.id) { if (item.shopInfo.id) {
if (item.bindPartners === 'Y') { if (item.bindPartners === 'Y' && item.auditStatus === 'auditPass' && item.shopStatus === 'normal') {
uni.navigateTo({ uni.navigateTo({
url: `/pages/shopsDetails/index?id=${item.shopInfo.id}&code=${this.communityCode}` url: `/pages/shopsDetails/index?id=${item.shopInfo.id}&code=${this.communityCode}`
}); });
} else { } else {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title: '该商铺已绑定合作伙伴,请重新选择!' title: '该商铺无法绑定,请重新选择!'
}) })
} }
} }
......
...@@ -53,7 +53,9 @@ ...@@ -53,7 +53,9 @@
platformType: 'partner', platformType: 'partner',
balanceStatus: 3, balanceStatus: 3,
pageSize: 10, pageSize: 10,
pageNo: 1 pageNo: 1,
column: 'createTime',
order: 'desc'
}, },
dataList: [], dataList: [],
isFinish: false, isFinish: false,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论