[去掉所有console和替换所有积分换成贡献值]
This commit is contained in:
@@ -105,7 +105,6 @@
|
||||
city_id: this.addressIdList[1],
|
||||
district_id: this.addressIdList[2]
|
||||
}
|
||||
console.log(params,'params。。。')
|
||||
if (params.name.trim() === '') {
|
||||
uni.showToast({
|
||||
title: '请重新核对姓名',
|
||||
|
||||
@@ -59,7 +59,6 @@
|
||||
},
|
||||
|
||||
onLoad(e) {
|
||||
console.log(e)
|
||||
if (e.type !== undefined) {
|
||||
this.type = e.type
|
||||
}
|
||||
@@ -140,7 +139,6 @@
|
||||
addresses().then(res => {
|
||||
this.addressLists = res
|
||||
uni.stopPullDownRefresh()
|
||||
console.log(this.type === '1', this.type)
|
||||
if (this.type == '1') {
|
||||
if (this.addressLists.length === 0) {
|
||||
let pages = getCurrentPages();
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
</swiper>
|
||||
</view>
|
||||
<view class="footer">
|
||||
<view class="hith">朋友通过你的邀请注册成功后,将与您绑定好友关系通过成为平台用户,你都可以获得积分奖励。</view>
|
||||
<view class="hith">朋友通过你的邀请注册成功后,将与您绑定好友关系通过成为平台用户,你都可以获得贡献值奖励。</view>
|
||||
<view class="number">
|
||||
<view class="title">邀请码 : {{inviteData[0].invite}}</view>
|
||||
<view class="value" @click="copyCenter(inviteData[0].invite)">复制邀请码</view>
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
<view class="assets-label-number">{{userData.account.cash || 0}}</view>
|
||||
</view>
|
||||
<view class="assets-label" @click="$Router.push({name:'Fragment'})">
|
||||
<view class="assets-label-name">积分
|
||||
<view class="assets-label-name">贡献值
|
||||
<image @click.stop="showHelp('chip')" class="assets-label-icon"
|
||||
src="/static/user/userAssets_tips.png" />
|
||||
</view>
|
||||
@@ -391,9 +391,6 @@
|
||||
userInfo() {
|
||||
// 读取配置信息
|
||||
userIndex().then(res => {
|
||||
|
||||
console.log(res)
|
||||
|
||||
res.account = {
|
||||
stone: res.stone,
|
||||
stone_value: res.stone_value,
|
||||
@@ -455,7 +452,7 @@
|
||||
showHelp(type) {
|
||||
let title = '通证',
|
||||
content = this.helpDoc.energy_ball.description
|
||||
if (type == 'chip') title = '积分'
|
||||
if (type == 'chip') title = '贡献值'
|
||||
if (type == 'chip') content = this.helpDoc.energy_shard.description
|
||||
uni.showModal({
|
||||
title: title,
|
||||
|
||||
@@ -48,7 +48,6 @@
|
||||
methods: {
|
||||
getLogistic(no) {
|
||||
mallShipmentsLogistic(no).then(res => {
|
||||
console.log(res)
|
||||
this.list = res.logistics
|
||||
this.express = res.express
|
||||
this.loaded = true
|
||||
@@ -65,8 +64,6 @@
|
||||
uni.setClipboardData({
|
||||
data: no,
|
||||
success: res=>{
|
||||
console.log('success');
|
||||
console.log(res)
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@@ -1,326 +1,330 @@
|
||||
<template>
|
||||
<view class="NumberWeight">
|
||||
<!-- 订单分类 -->
|
||||
<scroll-view class="nav" scroll-x="true" :scroll-into-view='selectCategoryId' scroll-with-animation="true">
|
||||
<view :class="['nav-item' ,selectNavId === item.id?'nav-item-selected':'']" v-for="(item,index) in navList"
|
||||
:key="index" @click="selectNav(item.id)">
|
||||
{{item.name}}
|
||||
{{item.id ==='apply' && count.apply >0 ? '('+count.apply + ')':''}}
|
||||
{{item.id ==='deliver' && count.deliver >0 ?'('+count.deliver + ')':''}}
|
||||
{{item.id ==='delivered' && count.delivered >0 ?'('+count.delivered + ')':''}}
|
||||
{{item.id ==='signed' && count.signed >0 ?'('+count.signed + ')':''}}
|
||||
{{item.id ==='process' && count.process >0 ?'('+count.process + ')':''}}
|
||||
{{item.id ==='completed' && count.completed >0 ?'('+count.completed + ')':''}}
|
||||
<view class="NumberWeight">
|
||||
<!-- 订单分类 -->
|
||||
<scroll-view class="nav" scroll-x="true" :scroll-into-view='selectCategoryId' scroll-with-animation="true">
|
||||
<view :class="['nav-item' ,selectNavId === item.id?'nav-item-selected':'']" v-for="(item,index) in navList"
|
||||
:key="index" @click="selectNav(item.id)">
|
||||
{{item.name}}
|
||||
{{item.id ==='apply' && count.apply >0 ? '('+count.apply + ')':''}}
|
||||
{{item.id ==='deliver' && count.deliver >0 ?'('+count.deliver + ')':''}}
|
||||
{{item.id ==='delivered' && count.delivered >0 ?'('+count.delivered + ')':''}}
|
||||
{{item.id ==='signed' && count.signed >0 ?'('+count.signed + ')':''}}
|
||||
{{item.id ==='process' && count.process >0 ?'('+count.process + ')':''}}
|
||||
{{item.id ==='completed' && count.completed >0 ?'('+count.completed + ')':''}}
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<!-- 有订单列表 -->
|
||||
<view class="" v-if="lists.length > 0">
|
||||
<!-- 订单列表 -->
|
||||
<view class="order-list" v-for="(item,index) in lists" :key="index">
|
||||
<MallRefundsTemplate :item="item" />
|
||||
<view class="actions">
|
||||
<view @click="goDetail(item.refund_id)" class="nowPay">查看详情</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<!-- 有订单列表 -->
|
||||
<view class="" v-if="lists.length > 0">
|
||||
<!-- 订单列表 -->
|
||||
<view class="order-list" v-for="(item,index) in lists" :key="index">
|
||||
<MallRefundsTemplate :item="item" />
|
||||
<view class="actions">
|
||||
<view @click="goDetail(item.refund_id)" class="nowPay">查看详情</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 没有订单列表 -->
|
||||
<no-list v-if="lists.length === 0" name='no-order' txt="暂无数据~" />
|
||||
|
||||
<!-- <u-toast ref="uToast" /> -->
|
||||
<u-toast ref="uToast" />
|
||||
</view>
|
||||
<!-- 没有订单列表 -->
|
||||
<no-list v-if="lists.length === 0" name='no-order' txt="暂无数据~" />
|
||||
|
||||
<!-- <u-toast ref="uToast" /> -->
|
||||
<u-toast ref="uToast" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
MallRefundsTemplate
|
||||
} from '@/components/mall-refunds-template/mall-refunds-template'
|
||||
import { mallRefunds } from '@/apis/interfaces/numberWeight'
|
||||
export default {
|
||||
components: {
|
||||
MallRefundsTemplate
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
lists: [],
|
||||
page:1,
|
||||
total:0,
|
||||
navList: [{
|
||||
name: '待审核',
|
||||
id: 'apply'
|
||||
},{
|
||||
name: '待返货',
|
||||
id: 'deliver'
|
||||
},{
|
||||
name: '待签收',
|
||||
id: 'delivered'
|
||||
},{
|
||||
name: '已签收',
|
||||
id: 'signed'
|
||||
},
|
||||
{
|
||||
name: '待退权证',
|
||||
id: 'process'
|
||||
},
|
||||
{
|
||||
name: '完成退货',
|
||||
id: 'completed'
|
||||
}
|
||||
],
|
||||
selectNavId: 'apply',
|
||||
count:{}
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.getList()
|
||||
},
|
||||
onShow(){
|
||||
console.log(uni.getStorageSync('refresh'),'getStorageSync')
|
||||
if(uni.getStorageSync('refresh')){
|
||||
this.reset()
|
||||
}
|
||||
},
|
||||
onUnload() {
|
||||
uni.setStorageSync('refresh',false)
|
||||
},
|
||||
onReachBottom() {
|
||||
if(this.total>this.lists.length){
|
||||
this.page = this.page + 1
|
||||
this.getList()
|
||||
}else{
|
||||
this.$refs.uToast.show({
|
||||
title: '吼吼吼~我是有底的~',
|
||||
type: 'error',icon:false,
|
||||
duration: 3000
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
reset(){
|
||||
this.page =1
|
||||
this.total = 0
|
||||
this.lists = []
|
||||
this.getList()
|
||||
uni.setStorageSync('refresh',false)
|
||||
import {
|
||||
MallRefundsTemplate
|
||||
} from '@/components/mall-refunds-template/mall-refunds-template'
|
||||
import {
|
||||
mallRefunds
|
||||
} from '@/apis/interfaces/numberWeight'
|
||||
export default {
|
||||
components: {
|
||||
MallRefundsTemplate
|
||||
},
|
||||
// 选择订单
|
||||
selectNav(id) {
|
||||
if (this.selectNavId !== id) {
|
||||
this.selectNavId = id
|
||||
this.reset()
|
||||
}
|
||||
data() {
|
||||
return {
|
||||
lists: [],
|
||||
page: 1,
|
||||
total: 0,
|
||||
navList: [{
|
||||
name: '待审核',
|
||||
id: 'apply'
|
||||
}, {
|
||||
name: '待返货',
|
||||
id: 'deliver'
|
||||
}, {
|
||||
name: '待签收',
|
||||
id: 'delivered'
|
||||
}, {
|
||||
name: '已签收',
|
||||
id: 'signed'
|
||||
},
|
||||
{
|
||||
name: '待退权证',
|
||||
id: 'process'
|
||||
},
|
||||
{
|
||||
name: '完成退货',
|
||||
id: 'completed'
|
||||
}
|
||||
],
|
||||
selectNavId: 'apply',
|
||||
count: {}
|
||||
};
|
||||
},
|
||||
// 获取订单列表
|
||||
getList(){
|
||||
let data = {
|
||||
pageSize:20,
|
||||
page:this.page,
|
||||
state:this.selectNavId
|
||||
onLoad() {
|
||||
this.getList()
|
||||
},
|
||||
onShow() {
|
||||
if (uni.getStorageSync('refresh')) {
|
||||
this.reset()
|
||||
}
|
||||
mallRefunds(data).then(res=>{
|
||||
console.log(res)
|
||||
this.count = res.count
|
||||
this.lists = this.lists.concat(res.lists.data)
|
||||
this.total = res.lists.page.total
|
||||
}).catch(err=>{
|
||||
},
|
||||
onUnload() {
|
||||
uni.setStorageSync('refresh', false)
|
||||
},
|
||||
onReachBottom() {
|
||||
if (this.total > this.lists.length) {
|
||||
this.page = this.page + 1
|
||||
this.getList()
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: err.message,
|
||||
type: 'error',icon:false,
|
||||
duration: 3000
|
||||
title: '吼吼吼~我是有底的~',
|
||||
type: 'error',
|
||||
icon: false,
|
||||
duration: 3000
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
// 取消提货单
|
||||
nowCancel(index,no){
|
||||
console.log(index,no)
|
||||
uni.showModal({
|
||||
title: '哎呦,提醒你',
|
||||
content: '是否确认要取消订单啊,取消后请去我的权证中查看',
|
||||
success: (res) =>{
|
||||
if (res.confirm) {
|
||||
mallShipmentsCancel(no).then(res=>{
|
||||
console.log(res)
|
||||
this.$refs.uToast.show({
|
||||
title:res,
|
||||
type: 'error',icon:false,
|
||||
duration: 3000
|
||||
methods: {
|
||||
reset() {
|
||||
this.page = 1
|
||||
this.total = 0
|
||||
this.lists = []
|
||||
this.getList()
|
||||
uni.setStorageSync('refresh', false)
|
||||
},
|
||||
// 选择订单
|
||||
selectNav(id) {
|
||||
if (this.selectNavId !== id) {
|
||||
this.selectNavId = id
|
||||
this.reset()
|
||||
}
|
||||
},
|
||||
// 获取订单列表
|
||||
getList() {
|
||||
let data = {
|
||||
pageSize: 20,
|
||||
page: this.page,
|
||||
state: this.selectNavId
|
||||
}
|
||||
mallRefunds(data).then(res => {
|
||||
this.count = res.count
|
||||
this.lists = this.lists.concat(res.lists.data)
|
||||
this.total = res.lists.page.total
|
||||
}).catch(err => {
|
||||
this.$refs.uToast.show({
|
||||
title: err.message,
|
||||
type: 'error',
|
||||
icon: false,
|
||||
duration: 3000
|
||||
})
|
||||
})
|
||||
},
|
||||
// 取消提货单
|
||||
nowCancel(index, no) {
|
||||
uni.showModal({
|
||||
title: '哎呦,提醒你',
|
||||
content: '是否确认要取消订单啊,取消后请去我的权证中查看',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
mallShipmentsCancel(no).then(res => {
|
||||
this.$refs.uToast.show({
|
||||
title: res,
|
||||
type: 'error',
|
||||
icon: false,
|
||||
duration: 3000
|
||||
})
|
||||
this.lists.splice(index, 1)
|
||||
this.total = this.total - 1
|
||||
}).catch(err => {
|
||||
this.$refs.uToast.show({
|
||||
title: err.message,
|
||||
type: 'error',
|
||||
icon: false,
|
||||
duration: 3000
|
||||
})
|
||||
})
|
||||
this.lists.splice(index,1)
|
||||
this.total = this.total - 1
|
||||
}).catch(err=>{
|
||||
this.$refs.uToast.show({
|
||||
title: err.message,
|
||||
type: 'error',icon:false,
|
||||
duration: 3000
|
||||
})
|
||||
})
|
||||
} else if (res.cancel) {
|
||||
this.$refs.uToast.show({
|
||||
title:'放弃了~',
|
||||
type: 'error',icon:false,
|
||||
duration: 3000
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
// 签收提货单
|
||||
nowSign(index,no){
|
||||
console.log(index,no)
|
||||
uni.showModal({
|
||||
title: '哎呦,提醒你',
|
||||
content: '是否确认已经收到商品了呀',
|
||||
success: (res) =>{
|
||||
if (res.confirm) {
|
||||
console.log(no)
|
||||
mallShipmentsSign(no).then(res=>{
|
||||
console.log(res)
|
||||
} else if (res.cancel) {
|
||||
this.$refs.uToast.show({
|
||||
title:res,
|
||||
type: 'error',icon:false,
|
||||
duration: 3000
|
||||
title: '放弃了~',
|
||||
type: 'error',
|
||||
icon: false,
|
||||
duration: 3000
|
||||
})
|
||||
this.lists.splice(index,1)
|
||||
this.total = this.total - 1
|
||||
}).catch(err=>{
|
||||
this.$refs.uToast.show({
|
||||
title: err.message,
|
||||
type: 'error',icon:false,
|
||||
duration: 3000
|
||||
})
|
||||
})
|
||||
|
||||
} else if (res.cancel) {
|
||||
this.$refs.uToast.show({
|
||||
title:'放弃了~',
|
||||
type: 'error',icon:false,
|
||||
duration: 3000
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 查看详情
|
||||
goDetail(no){
|
||||
this.$router.push({
|
||||
name: 'MallRefundsInfo',
|
||||
params:{
|
||||
no:no
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
// 签收提货单
|
||||
nowSign(index, no) {
|
||||
uni.showModal({
|
||||
title: '哎呦,提醒你',
|
||||
content: '是否确认已经收到商品了呀',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
mallShipmentsSign(no).then(res => {
|
||||
this.$refs.uToast.show({
|
||||
title: res,
|
||||
type: 'error',
|
||||
icon: false,
|
||||
duration: 3000
|
||||
})
|
||||
this.lists.splice(index, 1)
|
||||
this.total = this.total - 1
|
||||
}).catch(err => {
|
||||
this.$refs.uToast.show({
|
||||
title: err.message,
|
||||
type: 'error',
|
||||
icon: false,
|
||||
duration: 3000
|
||||
})
|
||||
})
|
||||
|
||||
} else if (res.cancel) {
|
||||
this.$refs.uToast.show({
|
||||
title: '放弃了~',
|
||||
type: 'error',
|
||||
icon: false,
|
||||
duration: 3000
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 查看详情
|
||||
goDetail(no) {
|
||||
this.$router.push({
|
||||
name: 'MallRefundsInfo',
|
||||
params: {
|
||||
no: no
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
page {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
page {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.NumberWeight {
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
box-sizing: border-box;
|
||||
background-color: #F7F7F7;
|
||||
.NumberWeight {
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
box-sizing: border-box;
|
||||
background-color: #F7F7F7;
|
||||
|
||||
// 订单nav
|
||||
.nav {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
box-sizing: border-box;
|
||||
white-space: nowrap;
|
||||
font-size: $title-size*0.95;
|
||||
padding: 0 30rpx;
|
||||
background-color: #fff;
|
||||
color: #666;
|
||||
border-top: solid 20rpx #f7f7f7;
|
||||
position: sticky;
|
||||
top: 0rpx;
|
||||
z-index: 1;
|
||||
// 订单nav
|
||||
.nav {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
box-sizing: border-box;
|
||||
white-space: nowrap;
|
||||
font-size: $title-size*0.95;
|
||||
padding: 0 30rpx;
|
||||
background-color: #fff;
|
||||
color: #666;
|
||||
border-top: solid 20rpx #f7f7f7;
|
||||
position: sticky;
|
||||
top: 0rpx;
|
||||
z-index: 1;
|
||||
|
||||
.nav-item {
|
||||
display: inline-block;
|
||||
border-bottom: solid 4rpx #fff;
|
||||
padding: 30rpx 10rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.nav-item {
|
||||
display: inline-block;
|
||||
border-bottom: solid 4rpx #fff;
|
||||
padding: 30rpx 10rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
.nav-item-selected {
|
||||
border-bottom: solid 4rpx $main-color;
|
||||
color: $main-color;
|
||||
}
|
||||
}
|
||||
.nav-item-selected {
|
||||
border-bottom: solid 4rpx $main-color;
|
||||
color: $main-color;
|
||||
}
|
||||
}
|
||||
|
||||
// 订单列表
|
||||
.order-list {
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
min-height: 300rpx;
|
||||
margin: 30rpx 20rpx 0 20rpx;
|
||||
padding:30rpx 30rpx 20rpx 30rpx ;
|
||||
// border-top: solid 4rpx #cacaca;
|
||||
// 订单列表
|
||||
.order-list {
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
min-height: 300rpx;
|
||||
margin: 30rpx 20rpx 0 20rpx;
|
||||
padding: 30rpx 30rpx 20rpx 30rpx;
|
||||
// border-top: solid 4rpx #cacaca;
|
||||
|
||||
// 操作信息
|
||||
.actions {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
box-sizing: border-box;
|
||||
flex-wrap: wrap;
|
||||
flex: 1;
|
||||
font-size: 28rpx;
|
||||
color: #fff;
|
||||
border-top: solid 1rpx #EFF4F2;
|
||||
.nowPay {
|
||||
padding: 4rpx 20rpx;
|
||||
border-radius: 40rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
// background-color: $main-color;
|
||||
color: #999;
|
||||
border:solid 1rpx #cacaca;
|
||||
}
|
||||
// 操作信息
|
||||
.actions {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
box-sizing: border-box;
|
||||
flex-wrap: wrap;
|
||||
flex: 1;
|
||||
font-size: 28rpx;
|
||||
color: #fff;
|
||||
border-top: solid 1rpx #EFF4F2;
|
||||
|
||||
.cancelOrder {
|
||||
padding: 10rpx 30rpx;
|
||||
border-radius: 40rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
background-color: #DD524D;
|
||||
}
|
||||
.nowPay {
|
||||
padding: 4rpx 20rpx;
|
||||
border-radius: 40rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
// background-color: $main-color;
|
||||
color: #999;
|
||||
border: solid 1rpx #cacaca;
|
||||
}
|
||||
|
||||
.logistics {
|
||||
background-color: $main-color;
|
||||
padding: 10rpx 30rpx;
|
||||
border-radius: 40rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.cancelOrder {
|
||||
padding: 10rpx 30rpx;
|
||||
border-radius: 40rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
background-color: #DD524D;
|
||||
}
|
||||
|
||||
.sign {
|
||||
background-color: #DD524D;
|
||||
padding: 10rpx 30rpx;
|
||||
border-radius: 40rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.logistics {
|
||||
background-color: $main-color;
|
||||
padding: 10rpx 30rpx;
|
||||
border-radius: 40rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.evaluate {
|
||||
background-color: $main-color;
|
||||
padding: 10rpx 30rpx;
|
||||
border-radius: 40rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.sign {
|
||||
background-color: #DD524D;
|
||||
padding: 10rpx 30rpx;
|
||||
border-radius: 40rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.evaluate {
|
||||
background-color: $main-color;
|
||||
padding: 10rpx 30rpx;
|
||||
border-radius: 40rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -128,7 +128,6 @@
|
||||
})
|
||||
},
|
||||
priveImg(index,idx){
|
||||
console.log(this.logs[index].pictures);
|
||||
uni.previewImage({
|
||||
current:idx,
|
||||
urls:this.logs[index].pictures
|
||||
@@ -163,7 +162,6 @@
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
mallRefundsDeliver(data).then(res => {
|
||||
console.log(res)
|
||||
this.$refs.uToast.show({
|
||||
title: res,
|
||||
type: 'error',icon:false,
|
||||
|
||||
@@ -158,7 +158,6 @@
|
||||
this.getList()
|
||||
},
|
||||
onShow() {
|
||||
console.log(uni.getStorageSync('refresh'), 'getStorageSync')
|
||||
if (uni.getStorageSync('refresh')) {
|
||||
this.reset()
|
||||
}
|
||||
@@ -196,7 +195,6 @@
|
||||
},
|
||||
// 快递单post 提货单 take 退货单refund
|
||||
selectType(id,index) {
|
||||
console.log('id:' + id)
|
||||
if (this.selectTypeId !== id) {
|
||||
this.state = this.typeList[index].categrery[0].id
|
||||
this.selectTypeId = id
|
||||
@@ -221,7 +219,6 @@
|
||||
apiUrl = 'mall/refunds'
|
||||
}
|
||||
mallShipmentsPostShop(apiUrl, data).then(res => {
|
||||
console.log(res.count)
|
||||
this.count = res.count
|
||||
this.lists = this.lists.concat(res.lists.data)
|
||||
this.total = res.lists.page.total
|
||||
@@ -236,14 +233,12 @@
|
||||
},
|
||||
// 取消提货单
|
||||
nowCancel(index, no) {
|
||||
console.log(index, no)
|
||||
uni.showModal({
|
||||
title: '哎呦,提醒你',
|
||||
content: '是否确认要取消订单啊,取消后请去我的权证中查看',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
mallShipmentsCancel(no).then(res => {
|
||||
console.log(res)
|
||||
this.$refs.uToast.show({
|
||||
title: res,
|
||||
type: 'error',
|
||||
@@ -274,15 +269,12 @@
|
||||
},
|
||||
// 签收提货单
|
||||
nowSign(index, no) {
|
||||
console.log(index, no)
|
||||
uni.showModal({
|
||||
title: '哎呦,提醒你',
|
||||
content: '是否确认已经收到商品了呀',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
console.log(no)
|
||||
mallShipmentsSign(no).then(res => {
|
||||
console.log(res)
|
||||
this.$refs.uToast.show({
|
||||
title: res,
|
||||
type: 'error',
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -87,7 +87,6 @@
|
||||
methods: {
|
||||
// 预览上传图片
|
||||
priviewImg(index) {
|
||||
console.log(index, this.pictures.showpath)
|
||||
uni.previewImage({
|
||||
current: index,
|
||||
urls: this.pictures.showpath
|
||||
@@ -97,7 +96,6 @@
|
||||
updImgs(type) {
|
||||
uni.chooseImage({
|
||||
success: res => {
|
||||
console.log(res)
|
||||
let path = res.tempFiles.map((val, index) => {
|
||||
return {
|
||||
name: 'uploads' + index,
|
||||
@@ -105,12 +103,10 @@
|
||||
}
|
||||
})
|
||||
uploads(path).then(pathRes => {
|
||||
// console.log(pathRes)
|
||||
this.pictures = {
|
||||
path: [...this.pictures.path, ...pathRes.path],
|
||||
showpath: [...this.pictures.showpath, ...pathRes.url]
|
||||
}
|
||||
console.log(this.pictures)
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
@@ -122,11 +118,8 @@
|
||||
},
|
||||
// 删除图片
|
||||
closeImg(index) {
|
||||
console.log(index)
|
||||
this.pictures.path.splice(index, 1)
|
||||
this.pictures.showpath.splice(index, 1)
|
||||
|
||||
console.log(this.pictures);
|
||||
},
|
||||
// 获取退货的基本信息
|
||||
getInfo(shipment_no) {
|
||||
@@ -139,7 +132,6 @@
|
||||
}
|
||||
lists.push(items)
|
||||
})
|
||||
console.log(lists)
|
||||
this.list = lists
|
||||
}).catch(err => {
|
||||
this.$refs.uToast.show({
|
||||
@@ -182,7 +174,6 @@
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
mallShipmentsRefund(data).then(res => {
|
||||
console.log(res)
|
||||
this.$refs.uToast.show({
|
||||
title: res,
|
||||
type: 'error',icon:false,
|
||||
|
||||
@@ -68,7 +68,6 @@
|
||||
page: this.page
|
||||
}
|
||||
mallWarrants(data).then(res => {
|
||||
console.log(res)
|
||||
this.lists = this.lists.concat(res.data)
|
||||
this.total = res.total
|
||||
}).catch(err => {
|
||||
|
||||
@@ -224,11 +224,9 @@
|
||||
}
|
||||
data.store_id = ''
|
||||
}
|
||||
console.log(data)
|
||||
// 快递单继续沿用之前的信息
|
||||
if (data.type === '1') {
|
||||
mallWarrantsSure(data).then(res => {
|
||||
console.log(res)
|
||||
this.$refs.uToast.show({
|
||||
title: res,
|
||||
type: 'error',icon:false,
|
||||
@@ -250,7 +248,6 @@
|
||||
// 提货或者服务单生成二维码
|
||||
else {
|
||||
mallWarrantsQrcode(data).then(res => {
|
||||
console.log(res)
|
||||
this.showCodeImg = res.code
|
||||
// uni.setStorageSync('refresh', true)
|
||||
this.showCode = true
|
||||
|
||||
@@ -63,7 +63,6 @@
|
||||
this.getList()
|
||||
},
|
||||
onShow(){
|
||||
console.log(uni.getStorageSync('refresh'),'getStorageSync')
|
||||
if(uni.getStorageSync('refresh')){
|
||||
this.reset()
|
||||
}
|
||||
@@ -108,7 +107,6 @@
|
||||
apiUrl = 'mall/shipments/service'
|
||||
data.channel = 'app'
|
||||
mallShipmentsPostShop(apiUrl,data).then(res=>{
|
||||
console.log(res.count)
|
||||
this.count = res.count
|
||||
this.lists = this.lists.concat(res.lists.data)
|
||||
this.total = res.lists.page.total
|
||||
|
||||
@@ -102,10 +102,8 @@
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
console.log(e)
|
||||
this.shipment_no = e.no
|
||||
this.getInfo(e.no)
|
||||
console.log(this.shipment_no)
|
||||
// this.getInfo('2021081817410747800300000004')
|
||||
},
|
||||
onShow() {
|
||||
@@ -134,12 +132,10 @@
|
||||
})
|
||||
},
|
||||
map(info) {
|
||||
console.log(info.latitude, info.longitude)
|
||||
uni.openLocation({
|
||||
latitude: Number(info.latitude),
|
||||
longitude: Number(info.longitude),
|
||||
success: function() {
|
||||
console.log('success');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user