[去掉所有console和替换所有积分换成贡献值]
This commit is contained in:
1
App.vue
1
App.vue
@@ -7,7 +7,6 @@
|
|||||||
} else {
|
} else {
|
||||||
document.addEventListener('WeixinJSBridgeReady', handleFontSize, false);
|
document.addEventListener('WeixinJSBridgeReady', handleFontSize, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleFontSize() {
|
function handleFontSize() {
|
||||||
// 设置网页字体为默认大小
|
// 设置网页字体为默认大小
|
||||||
WeixinJSBridge.invoke('setFontSizeCallback', {
|
WeixinJSBridge.invoke('setFontSizeCallback', {
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ const withdrawsIndexLists = (data) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 积分记录
|
// 贡献值记录
|
||||||
const userAccoutScores = (data) => {
|
const userAccoutScores = (data) => {
|
||||||
return request({
|
return request({
|
||||||
url: 'user/account/scores',
|
url: 'user/account/scores',
|
||||||
|
|||||||
@@ -547,7 +547,7 @@
|
|||||||
"path": "pages/wallet/fragment",
|
"path": "pages/wallet/fragment",
|
||||||
"name": "Fragment",
|
"name": "Fragment",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "积分记录",
|
"navigationBarTitleText": "贡献值记录",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarBackgroundColor": "#774ffd",
|
"navigationBarBackgroundColor": "#774ffd",
|
||||||
"navigationBarTextStyle": "white"
|
"navigationBarTextStyle": "white"
|
||||||
|
|||||||
@@ -144,7 +144,6 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
console.log('11', res)
|
|
||||||
this.getAppliesCategory(res.industries[0].industry_id)
|
this.getAppliesCategory(res.industries[0].industry_id)
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
|||||||
@@ -225,7 +225,6 @@
|
|||||||
days : this.timeNumber,
|
days : this.timeNumber,
|
||||||
goodsable_ids : this.coupongoods
|
goodsable_ids : this.coupongoods
|
||||||
}
|
}
|
||||||
console.log(valuss.time_type)
|
|
||||||
pushCoupons(valuss).then(res => {
|
pushCoupons(valuss).then(res => {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title : '提示',
|
title : '提示',
|
||||||
|
|||||||
@@ -86,7 +86,6 @@
|
|||||||
type : this.listType,
|
type : this.listType,
|
||||||
status : this.tabsType
|
status : this.tabsType
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.coupons = res.lists.data
|
this.coupons = res.lists.data
|
||||||
this.pages = res.lists.page
|
this.pages = res.lists.page
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
|||||||
@@ -395,7 +395,6 @@
|
|||||||
},
|
},
|
||||||
// 易货分类
|
// 易货分类
|
||||||
onClassify(id) {
|
onClassify(id) {
|
||||||
console.log(id)
|
|
||||||
// this.$Router.push({
|
// this.$Router.push({
|
||||||
// name: 'goodsList'
|
// name: 'goodsList'
|
||||||
// })
|
// })
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
签到成功
|
签到成功
|
||||||
</view>
|
</view>
|
||||||
<view class="signPop-cont-text">
|
<view class="signPop-cont-text">
|
||||||
积分<view class="signPop-cont-number">+{{sign.signSuccess}}</view>
|
贡献值<view class="signPop-cont-number">+{{sign.signSuccess}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
<!-- 签到 -->
|
<!-- 签到 -->
|
||||||
<view class="signCont">
|
<view class="signCont">
|
||||||
<view class="content-title">发现更多</view>
|
<view class="content-title">发现更多</view>
|
||||||
<view class="content-sumite">海量积分等你解锁</view>
|
<view class="content-sumite">海量贡献值等你解锁</view>
|
||||||
<view class="sign">
|
<view class="sign">
|
||||||
<view class="sign-list" :class="{ active: item.sign }" v-for="(item, index) in sign.signArr"
|
<view class="sign-list" :class="{ active: item.sign }" v-for="(item, index) in sign.signArr"
|
||||||
:key="index">
|
:key="index">
|
||||||
@@ -39,25 +39,25 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="sign-record">再签到{{ sign.nextTask.day }}天额外赠送{{ sign.nextTask.diff }}个积分</view>
|
<view class="sign-record">再签到{{ sign.nextTask.day }}天额外赠送{{ sign.nextTask.diff }}个贡献值</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="signBtn">
|
<view class="signBtn">
|
||||||
<block v-if="sign.signCan">
|
<block v-if="sign.signCan">
|
||||||
<view class="signBtn-go" @click="signClick" style="cursor:pointer">
|
<view class="signBtn-go" @click="signClick" style="cursor:pointer">
|
||||||
<u-icon name="calendar-fill" color="#333" size="40" />
|
<u-icon name="calendar-fill" color="#333" size="40" />
|
||||||
签到领取积分
|
签到领取贡献值
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<block v-else>
|
<block v-else>
|
||||||
<view class="signBtn-go" @click="$Router.push({name:'Fragment'})">
|
<view class="signBtn-go" @click="$Router.push({name:'Fragment'})">
|
||||||
积分记录<image class="signBtn-go-icon" src="/static/user/sign_arrow.png" mode="aspectFill"></image>
|
贡献值记录<image class="signBtn-go-icon" src="/static/user/sign_arrow.png" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
<!-- 水晶任务 -->
|
<!-- 水晶任务 -->
|
||||||
<view class="task">
|
<view class="task">
|
||||||
<view class="task-liest">
|
<view class="task-liest">
|
||||||
积分任务
|
贡献值任务
|
||||||
</view>
|
</view>
|
||||||
<block v-for="(item, index) in task" :key="index">
|
<block v-for="(item, index) in task" :key="index">
|
||||||
<view class="task-item" v-if="item.rule.name != 'sign_crystal'"
|
<view class="task-item" v-if="item.rule.name != 'sign_crystal'"
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
tipsContent: '', // 弹出的动态内容
|
tipsContent: '', // 弹出的动态内容
|
||||||
tipsState: false // 弹出的动态状态
|
tipsState: false // 弹出的动态状态
|
||||||
},
|
},
|
||||||
energyShard: '' // 积分说明
|
energyShard: '' // 贡献值说明
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -144,10 +144,10 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
// 积分提示信息
|
// 贡献值提示信息
|
||||||
showHelp() {
|
showHelp() {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '积分',
|
title: '贡献值',
|
||||||
confirmColor: '#8b64fd',
|
confirmColor: '#8b64fd',
|
||||||
content: this.energyShard.description,
|
content: this.energyShard.description,
|
||||||
showCancel: false
|
showCancel: false
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
taskInfo() {
|
taskInfo() {
|
||||||
// 领取水晶
|
// 领取水晶
|
||||||
thawlog().then(res => {
|
thawlog().then(res => {
|
||||||
console.log(res)
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
|||||||
@@ -419,7 +419,6 @@
|
|||||||
}
|
}
|
||||||
if(authRes.confirm){
|
if(authRes.confirm){
|
||||||
let goodsId = this.$Route.query.type === 'edit' ? this.$Route.query.id : res
|
let goodsId = this.$Route.query.type === 'edit' ? this.$Route.query.id : res
|
||||||
console.log(goodsId)
|
|
||||||
this.$Router.push({name: 'goodsAddAuth', params: { id: goodsId , type: 'goodsAdd', edit: this.$Route.query.type === 'edit'}})
|
this.$Router.push({name: 'goodsAddAuth', params: { id: goodsId , type: 'goodsAdd', edit: this.$Route.query.type === 'edit'}})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -205,7 +205,6 @@
|
|||||||
}, 3000);
|
}, 3000);
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
console.log('payerr', err)
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '支付失败',
|
title: '支付失败',
|
||||||
duration: 3000,
|
duration: 3000,
|
||||||
|
|||||||
@@ -96,7 +96,6 @@
|
|||||||
methods: {
|
methods: {
|
||||||
// picker选择
|
// picker选择
|
||||||
pickerChange(e, key){
|
pickerChange(e, key){
|
||||||
console.log(key,e.detail.value)
|
|
||||||
this[key] = e.detail.value
|
this[key] = e.detail.value
|
||||||
},
|
},
|
||||||
// 图片预览
|
// 图片预览
|
||||||
|
|||||||
@@ -127,7 +127,6 @@
|
|||||||
cancelText : '确定',
|
cancelText : '确定',
|
||||||
success : res => {
|
success : res => {
|
||||||
if(res.confirm){
|
if(res.confirm){
|
||||||
console.log(res.confirm)
|
|
||||||
this.$Router.push({name: 'goodsAdd', params: {type: 'edit', id}})
|
this.$Router.push({name: 'goodsAdd', params: {type: 'edit', id}})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<image src="@/static/icons/gemstone-icon.png" />{{isAuth ? '通证' + account.coin : '查看通证'}}
|
<image src="@/static/icons/gemstone-icon.png" />{{isAuth ? '通证' + account.coin : '查看通证'}}
|
||||||
</view>
|
</view>
|
||||||
<view class="item nowrap" @click="navAccount('Fragment')">
|
<view class="item nowrap" @click="navAccount('Fragment')">
|
||||||
<image src="@/static/icons/crystal-icon.png" />{{isAuth ? '积分' + account.crystal : '查看积分'}}
|
<image src="@/static/icons/crystal-icon.png" />{{isAuth ? '贡献值' + account.crystal : '查看贡献值'}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
<image :src="item.cover" />
|
<image :src="item.cover" />
|
||||||
</view>
|
</view>
|
||||||
<view class="title nowrap">{{item.title}}</view>
|
<view class="title nowrap">{{item.title}}</view>
|
||||||
<view class="submit-title nowrap">积分{{item.tips}}</view>
|
<view class="submit-title nowrap">贡献值{{item.tips}}</view>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<!-- 平台概况 -->
|
<!-- 平台概况 -->
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
<view class="number nowrap">{{chains.up}}</view>
|
<view class="number nowrap">{{chains.up}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="header-item">
|
<view class="header-item">
|
||||||
<view class="title">昨日瓜分积分
|
<view class="title">昨日瓜分贡献值
|
||||||
<uni-icons class="help-icon" @click="showHelp('score')" type="help-filled" size="15"
|
<uni-icons class="help-icon" @click="showHelp('score')" type="help-filled" size="15"
|
||||||
color="rgba(255,255,255,.3)" />
|
color="rgba(255,255,255,.3)" />
|
||||||
</view>
|
</view>
|
||||||
@@ -174,9 +174,6 @@
|
|||||||
},
|
},
|
||||||
// 查看钱包账户
|
// 查看钱包账户
|
||||||
navAccount(pathName) {
|
navAccount(pathName) {
|
||||||
|
|
||||||
console.log(1111)
|
|
||||||
|
|
||||||
if (!this.isAuth) {
|
if (!this.isAuth) {
|
||||||
this.$Router.push({
|
this.$Router.push({
|
||||||
name: 'Login'
|
name: 'Login'
|
||||||
@@ -217,7 +214,6 @@
|
|||||||
success: res => {
|
success: res => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
if (pathName === 'vipIndex') {
|
if (pathName === 'vipIndex') {
|
||||||
console.log(this.userAuth.identity)
|
|
||||||
this.$Router.push({
|
this.$Router.push({
|
||||||
name: 'vipIndex',
|
name: 'vipIndex',
|
||||||
params: {
|
params: {
|
||||||
@@ -234,7 +230,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 领取积分
|
// 领取贡献值
|
||||||
ledCrystal(index) {
|
ledCrystal(index) {
|
||||||
// 播放音频
|
// 播放音频
|
||||||
const innerAudioContext = uni.createInnerAudioContext();
|
const innerAudioContext = uni.createInnerAudioContext();
|
||||||
|
|||||||
@@ -105,7 +105,6 @@
|
|||||||
city_id: this.addressIdList[1],
|
city_id: this.addressIdList[1],
|
||||||
district_id: this.addressIdList[2]
|
district_id: this.addressIdList[2]
|
||||||
}
|
}
|
||||||
console.log(params,'params。。。')
|
|
||||||
if (params.name.trim() === '') {
|
if (params.name.trim() === '') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请重新核对姓名',
|
title: '请重新核对姓名',
|
||||||
|
|||||||
@@ -59,7 +59,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
console.log(e)
|
|
||||||
if (e.type !== undefined) {
|
if (e.type !== undefined) {
|
||||||
this.type = e.type
|
this.type = e.type
|
||||||
}
|
}
|
||||||
@@ -140,7 +139,6 @@
|
|||||||
addresses().then(res => {
|
addresses().then(res => {
|
||||||
this.addressLists = res
|
this.addressLists = res
|
||||||
uni.stopPullDownRefresh()
|
uni.stopPullDownRefresh()
|
||||||
console.log(this.type === '1', this.type)
|
|
||||||
if (this.type == '1') {
|
if (this.type == '1') {
|
||||||
if (this.addressLists.length === 0) {
|
if (this.addressLists.length === 0) {
|
||||||
let pages = getCurrentPages();
|
let pages = getCurrentPages();
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
</swiper>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
<view class="footer">
|
<view class="footer">
|
||||||
<view class="hith">朋友通过你的邀请注册成功后,将与您绑定好友关系通过成为平台用户,你都可以获得积分奖励。</view>
|
<view class="hith">朋友通过你的邀请注册成功后,将与您绑定好友关系通过成为平台用户,你都可以获得贡献值奖励。</view>
|
||||||
<view class="number">
|
<view class="number">
|
||||||
<view class="title">邀请码 : {{inviteData[0].invite}}</view>
|
<view class="title">邀请码 : {{inviteData[0].invite}}</view>
|
||||||
<view class="value" @click="copyCenter(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 class="assets-label-number">{{userData.account.cash || 0}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="assets-label" @click="$Router.push({name:'Fragment'})">
|
<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"
|
<image @click.stop="showHelp('chip')" class="assets-label-icon"
|
||||||
src="/static/user/userAssets_tips.png" />
|
src="/static/user/userAssets_tips.png" />
|
||||||
</view>
|
</view>
|
||||||
@@ -391,9 +391,6 @@
|
|||||||
userInfo() {
|
userInfo() {
|
||||||
// 读取配置信息
|
// 读取配置信息
|
||||||
userIndex().then(res => {
|
userIndex().then(res => {
|
||||||
|
|
||||||
console.log(res)
|
|
||||||
|
|
||||||
res.account = {
|
res.account = {
|
||||||
stone: res.stone,
|
stone: res.stone,
|
||||||
stone_value: res.stone_value,
|
stone_value: res.stone_value,
|
||||||
@@ -455,7 +452,7 @@
|
|||||||
showHelp(type) {
|
showHelp(type) {
|
||||||
let title = '通证',
|
let title = '通证',
|
||||||
content = this.helpDoc.energy_ball.description
|
content = this.helpDoc.energy_ball.description
|
||||||
if (type == 'chip') title = '积分'
|
if (type == 'chip') title = '贡献值'
|
||||||
if (type == 'chip') content = this.helpDoc.energy_shard.description
|
if (type == 'chip') content = this.helpDoc.energy_shard.description
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: title,
|
title: title,
|
||||||
|
|||||||
@@ -48,7 +48,6 @@
|
|||||||
methods: {
|
methods: {
|
||||||
getLogistic(no) {
|
getLogistic(no) {
|
||||||
mallShipmentsLogistic(no).then(res => {
|
mallShipmentsLogistic(no).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.list = res.logistics
|
this.list = res.logistics
|
||||||
this.express = res.express
|
this.express = res.express
|
||||||
this.loaded = true
|
this.loaded = true
|
||||||
@@ -65,8 +64,6 @@
|
|||||||
uni.setClipboardData({
|
uni.setClipboardData({
|
||||||
data: no,
|
data: no,
|
||||||
success: res=>{
|
success: res=>{
|
||||||
console.log('success');
|
|
||||||
console.log(res)
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,326 +1,330 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="NumberWeight">
|
<view class="NumberWeight">
|
||||||
<!-- 订单分类 -->
|
<!-- 订单分类 -->
|
||||||
<scroll-view class="nav" scroll-x="true" :scroll-into-view='selectCategoryId' scroll-with-animation="true">
|
<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"
|
<view :class="['nav-item' ,selectNavId === item.id?'nav-item-selected':'']" v-for="(item,index) in navList"
|
||||||
:key="index" @click="selectNav(item.id)">
|
:key="index" @click="selectNav(item.id)">
|
||||||
{{item.name}}
|
{{item.name}}
|
||||||
{{item.id ==='apply' && count.apply >0 ? '('+count.apply + ')':''}}
|
{{item.id ==='apply' && count.apply >0 ? '('+count.apply + ')':''}}
|
||||||
{{item.id ==='deliver' && count.deliver >0 ?'('+count.deliver + ')':''}}
|
{{item.id ==='deliver' && count.deliver >0 ?'('+count.deliver + ')':''}}
|
||||||
{{item.id ==='delivered' && count.delivered >0 ?'('+count.delivered + ')':''}}
|
{{item.id ==='delivered' && count.delivered >0 ?'('+count.delivered + ')':''}}
|
||||||
{{item.id ==='signed' && count.signed >0 ?'('+count.signed + ')':''}}
|
{{item.id ==='signed' && count.signed >0 ?'('+count.signed + ')':''}}
|
||||||
{{item.id ==='process' && count.process >0 ?'('+count.process + ')':''}}
|
{{item.id ==='process' && count.process >0 ?'('+count.process + ')':''}}
|
||||||
{{item.id ==='completed' && count.completed >0 ?'('+count.completed + ')':''}}
|
{{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>
|
</view>
|
||||||
</scroll-view>
|
<!-- 没有订单列表 -->
|
||||||
|
<no-list v-if="lists.length === 0" name='no-order' txt="暂无数据~" />
|
||||||
|
|
||||||
<!-- 有订单列表 -->
|
<!-- <u-toast ref="uToast" /> -->
|
||||||
<view class="" v-if="lists.length > 0">
|
<u-toast ref="uToast" />
|
||||||
<!-- 订单列表 -->
|
</view>
|
||||||
<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>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
MallRefundsTemplate
|
MallRefundsTemplate
|
||||||
} from '@/components/mall-refunds-template/mall-refunds-template'
|
} from '@/components/mall-refunds-template/mall-refunds-template'
|
||||||
import { mallRefunds } from '@/apis/interfaces/numberWeight'
|
import {
|
||||||
export default {
|
mallRefunds
|
||||||
components: {
|
} from '@/apis/interfaces/numberWeight'
|
||||||
MallRefundsTemplate
|
export default {
|
||||||
},
|
components: {
|
||||||
data() {
|
MallRefundsTemplate
|
||||||
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)
|
|
||||||
},
|
},
|
||||||
// 选择订单
|
data() {
|
||||||
selectNav(id) {
|
return {
|
||||||
if (this.selectNavId !== id) {
|
lists: [],
|
||||||
this.selectNavId = id
|
page: 1,
|
||||||
this.reset()
|
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() {
|
||||||
getList(){
|
this.getList()
|
||||||
let data = {
|
},
|
||||||
pageSize:20,
|
onShow() {
|
||||||
page:this.page,
|
if (uni.getStorageSync('refresh')) {
|
||||||
state:this.selectNavId
|
this.reset()
|
||||||
}
|
}
|
||||||
mallRefunds(data).then(res=>{
|
},
|
||||||
console.log(res)
|
onUnload() {
|
||||||
this.count = res.count
|
uni.setStorageSync('refresh', false)
|
||||||
this.lists = this.lists.concat(res.lists.data)
|
},
|
||||||
this.total = res.lists.page.total
|
onReachBottom() {
|
||||||
}).catch(err=>{
|
if (this.total > this.lists.length) {
|
||||||
|
this.page = this.page + 1
|
||||||
|
this.getList()
|
||||||
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: err.message,
|
title: '吼吼吼~我是有底的~',
|
||||||
type: 'error',icon:false,
|
type: 'error',
|
||||||
duration: 3000
|
icon: false,
|
||||||
|
duration: 3000
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
},
|
},
|
||||||
// 取消提货单
|
methods: {
|
||||||
nowCancel(index,no){
|
reset() {
|
||||||
console.log(index,no)
|
this.page = 1
|
||||||
uni.showModal({
|
this.total = 0
|
||||||
title: '哎呦,提醒你',
|
this.lists = []
|
||||||
content: '是否确认要取消订单啊,取消后请去我的权证中查看',
|
this.getList()
|
||||||
success: (res) =>{
|
uni.setStorageSync('refresh', false)
|
||||||
if (res.confirm) {
|
},
|
||||||
mallShipmentsCancel(no).then(res=>{
|
// 选择订单
|
||||||
console.log(res)
|
selectNav(id) {
|
||||||
this.$refs.uToast.show({
|
if (this.selectNavId !== id) {
|
||||||
title:res,
|
this.selectNavId = id
|
||||||
type: 'error',icon:false,
|
this.reset()
|
||||||
duration: 3000
|
}
|
||||||
|
},
|
||||||
|
// 获取订单列表
|
||||||
|
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)
|
} else if (res.cancel) {
|
||||||
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)
|
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title:res,
|
title: '放弃了~',
|
||||||
type: 'error',icon:false,
|
type: 'error',
|
||||||
duration: 3000
|
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:'放弃了~',
|
nowSign(index, no) {
|
||||||
type: 'error',icon:false,
|
uni.showModal({
|
||||||
duration: 3000
|
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) {
|
||||||
goDetail(no){
|
this.$refs.uToast.show({
|
||||||
this.$router.push({
|
title: '放弃了~',
|
||||||
name: 'MallRefundsInfo',
|
type: 'error',
|
||||||
params:{
|
icon: false,
|
||||||
no:no
|
duration: 3000
|
||||||
}
|
})
|
||||||
})
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查看详情
|
||||||
|
goDetail(no) {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'MallRefundsInfo',
|
||||||
|
params: {
|
||||||
|
no: no
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
page {
|
page {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.NumberWeight {
|
.NumberWeight {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background-color: #F7F7F7;
|
background-color: #F7F7F7;
|
||||||
|
|
||||||
// 订单nav
|
// 订单nav
|
||||||
.nav {
|
.nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
font-size: $title-size*0.95;
|
font-size: $title-size*0.95;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
color: #666;
|
color: #666;
|
||||||
border-top: solid 20rpx #f7f7f7;
|
border-top: solid 20rpx #f7f7f7;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0rpx;
|
top: 0rpx;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
||||||
.nav-item {
|
.nav-item {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-bottom: solid 4rpx #fff;
|
border-bottom: solid 4rpx #fff;
|
||||||
padding: 30rpx 10rpx;
|
padding: 30rpx 10rpx;
|
||||||
margin-right: 10rpx;
|
margin-right: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item-selected {
|
.nav-item-selected {
|
||||||
border-bottom: solid 4rpx $main-color;
|
border-bottom: solid 4rpx $main-color;
|
||||||
color: $main-color;
|
color: $main-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 订单列表
|
// 订单列表
|
||||||
.order-list {
|
.order-list {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
min-height: 300rpx;
|
min-height: 300rpx;
|
||||||
margin: 30rpx 20rpx 0 20rpx;
|
margin: 30rpx 20rpx 0 20rpx;
|
||||||
padding:30rpx 30rpx 20rpx 30rpx ;
|
padding: 30rpx 30rpx 20rpx 30rpx;
|
||||||
// border-top: solid 4rpx #cacaca;
|
// border-top: solid 4rpx #cacaca;
|
||||||
|
|
||||||
// 操作信息
|
// 操作信息
|
||||||
.actions {
|
.actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-top: solid 1rpx #EFF4F2;
|
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cancelOrder {
|
.nowPay {
|
||||||
padding: 10rpx 30rpx;
|
padding: 4rpx 20rpx;
|
||||||
border-radius: 40rpx;
|
border-radius: 40rpx;
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
background-color: #DD524D;
|
// background-color: $main-color;
|
||||||
}
|
color: #999;
|
||||||
|
border: solid 1rpx #cacaca;
|
||||||
|
}
|
||||||
|
|
||||||
.logistics {
|
.cancelOrder {
|
||||||
background-color: $main-color;
|
padding: 10rpx 30rpx;
|
||||||
padding: 10rpx 30rpx;
|
border-radius: 40rpx;
|
||||||
border-radius: 40rpx;
|
margin-left: 20rpx;
|
||||||
margin-left: 20rpx;
|
margin-top: 20rpx;
|
||||||
margin-top: 20rpx;
|
background-color: #DD524D;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sign {
|
.logistics {
|
||||||
background-color: #DD524D;
|
background-color: $main-color;
|
||||||
padding: 10rpx 30rpx;
|
padding: 10rpx 30rpx;
|
||||||
border-radius: 40rpx;
|
border-radius: 40rpx;
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.evaluate {
|
.sign {
|
||||||
background-color: $main-color;
|
background-color: #DD524D;
|
||||||
padding: 10rpx 30rpx;
|
padding: 10rpx 30rpx;
|
||||||
border-radius: 40rpx;
|
border-radius: 40rpx;
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
.evaluate {
|
||||||
}
|
background-color: $main-color;
|
||||||
|
padding: 10rpx 30rpx;
|
||||||
|
border-radius: 40rpx;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -128,7 +128,6 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
priveImg(index,idx){
|
priveImg(index,idx){
|
||||||
console.log(this.logs[index].pictures);
|
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
current:idx,
|
current:idx,
|
||||||
urls:this.logs[index].pictures
|
urls:this.logs[index].pictures
|
||||||
@@ -163,7 +162,6 @@
|
|||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
mallRefundsDeliver(data).then(res => {
|
mallRefundsDeliver(data).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res,
|
title: res,
|
||||||
type: 'error',icon:false,
|
type: 'error',icon:false,
|
||||||
|
|||||||
@@ -158,7 +158,6 @@
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
console.log(uni.getStorageSync('refresh'), 'getStorageSync')
|
|
||||||
if (uni.getStorageSync('refresh')) {
|
if (uni.getStorageSync('refresh')) {
|
||||||
this.reset()
|
this.reset()
|
||||||
}
|
}
|
||||||
@@ -196,7 +195,6 @@
|
|||||||
},
|
},
|
||||||
// 快递单post 提货单 take 退货单refund
|
// 快递单post 提货单 take 退货单refund
|
||||||
selectType(id,index) {
|
selectType(id,index) {
|
||||||
console.log('id:' + id)
|
|
||||||
if (this.selectTypeId !== id) {
|
if (this.selectTypeId !== id) {
|
||||||
this.state = this.typeList[index].categrery[0].id
|
this.state = this.typeList[index].categrery[0].id
|
||||||
this.selectTypeId = id
|
this.selectTypeId = id
|
||||||
@@ -221,7 +219,6 @@
|
|||||||
apiUrl = 'mall/refunds'
|
apiUrl = 'mall/refunds'
|
||||||
}
|
}
|
||||||
mallShipmentsPostShop(apiUrl, data).then(res => {
|
mallShipmentsPostShop(apiUrl, data).then(res => {
|
||||||
console.log(res.count)
|
|
||||||
this.count = res.count
|
this.count = res.count
|
||||||
this.lists = this.lists.concat(res.lists.data)
|
this.lists = this.lists.concat(res.lists.data)
|
||||||
this.total = res.lists.page.total
|
this.total = res.lists.page.total
|
||||||
@@ -236,14 +233,12 @@
|
|||||||
},
|
},
|
||||||
// 取消提货单
|
// 取消提货单
|
||||||
nowCancel(index, no) {
|
nowCancel(index, no) {
|
||||||
console.log(index, no)
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '哎呦,提醒你',
|
title: '哎呦,提醒你',
|
||||||
content: '是否确认要取消订单啊,取消后请去我的权证中查看',
|
content: '是否确认要取消订单啊,取消后请去我的权证中查看',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
mallShipmentsCancel(no).then(res => {
|
mallShipmentsCancel(no).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res,
|
title: res,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
@@ -274,15 +269,12 @@
|
|||||||
},
|
},
|
||||||
// 签收提货单
|
// 签收提货单
|
||||||
nowSign(index, no) {
|
nowSign(index, no) {
|
||||||
console.log(index, no)
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '哎呦,提醒你',
|
title: '哎呦,提醒你',
|
||||||
content: '是否确认已经收到商品了呀',
|
content: '是否确认已经收到商品了呀',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
console.log(no)
|
|
||||||
mallShipmentsSign(no).then(res => {
|
mallShipmentsSign(no).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res,
|
title: res,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -87,7 +87,6 @@
|
|||||||
methods: {
|
methods: {
|
||||||
// 预览上传图片
|
// 预览上传图片
|
||||||
priviewImg(index) {
|
priviewImg(index) {
|
||||||
console.log(index, this.pictures.showpath)
|
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
current: index,
|
current: index,
|
||||||
urls: this.pictures.showpath
|
urls: this.pictures.showpath
|
||||||
@@ -97,7 +96,6 @@
|
|||||||
updImgs(type) {
|
updImgs(type) {
|
||||||
uni.chooseImage({
|
uni.chooseImage({
|
||||||
success: res => {
|
success: res => {
|
||||||
console.log(res)
|
|
||||||
let path = res.tempFiles.map((val, index) => {
|
let path = res.tempFiles.map((val, index) => {
|
||||||
return {
|
return {
|
||||||
name: 'uploads' + index,
|
name: 'uploads' + index,
|
||||||
@@ -105,12 +103,10 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
uploads(path).then(pathRes => {
|
uploads(path).then(pathRes => {
|
||||||
// console.log(pathRes)
|
|
||||||
this.pictures = {
|
this.pictures = {
|
||||||
path: [...this.pictures.path, ...pathRes.path],
|
path: [...this.pictures.path, ...pathRes.path],
|
||||||
showpath: [...this.pictures.showpath, ...pathRes.url]
|
showpath: [...this.pictures.showpath, ...pathRes.url]
|
||||||
}
|
}
|
||||||
console.log(this.pictures)
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err.message,
|
title: err.message,
|
||||||
@@ -122,11 +118,8 @@
|
|||||||
},
|
},
|
||||||
// 删除图片
|
// 删除图片
|
||||||
closeImg(index) {
|
closeImg(index) {
|
||||||
console.log(index)
|
|
||||||
this.pictures.path.splice(index, 1)
|
this.pictures.path.splice(index, 1)
|
||||||
this.pictures.showpath.splice(index, 1)
|
this.pictures.showpath.splice(index, 1)
|
||||||
|
|
||||||
console.log(this.pictures);
|
|
||||||
},
|
},
|
||||||
// 获取退货的基本信息
|
// 获取退货的基本信息
|
||||||
getInfo(shipment_no) {
|
getInfo(shipment_no) {
|
||||||
@@ -139,7 +132,6 @@
|
|||||||
}
|
}
|
||||||
lists.push(items)
|
lists.push(items)
|
||||||
})
|
})
|
||||||
console.log(lists)
|
|
||||||
this.list = lists
|
this.list = lists
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
@@ -182,7 +174,6 @@
|
|||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
mallShipmentsRefund(data).then(res => {
|
mallShipmentsRefund(data).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res,
|
title: res,
|
||||||
type: 'error',icon:false,
|
type: 'error',icon:false,
|
||||||
|
|||||||
@@ -68,7 +68,6 @@
|
|||||||
page: this.page
|
page: this.page
|
||||||
}
|
}
|
||||||
mallWarrants(data).then(res => {
|
mallWarrants(data).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.lists = this.lists.concat(res.data)
|
this.lists = this.lists.concat(res.data)
|
||||||
this.total = res.total
|
this.total = res.total
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
|||||||
@@ -224,11 +224,9 @@
|
|||||||
}
|
}
|
||||||
data.store_id = ''
|
data.store_id = ''
|
||||||
}
|
}
|
||||||
console.log(data)
|
|
||||||
// 快递单继续沿用之前的信息
|
// 快递单继续沿用之前的信息
|
||||||
if (data.type === '1') {
|
if (data.type === '1') {
|
||||||
mallWarrantsSure(data).then(res => {
|
mallWarrantsSure(data).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res,
|
title: res,
|
||||||
type: 'error',icon:false,
|
type: 'error',icon:false,
|
||||||
@@ -250,7 +248,6 @@
|
|||||||
// 提货或者服务单生成二维码
|
// 提货或者服务单生成二维码
|
||||||
else {
|
else {
|
||||||
mallWarrantsQrcode(data).then(res => {
|
mallWarrantsQrcode(data).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.showCodeImg = res.code
|
this.showCodeImg = res.code
|
||||||
// uni.setStorageSync('refresh', true)
|
// uni.setStorageSync('refresh', true)
|
||||||
this.showCode = true
|
this.showCode = true
|
||||||
|
|||||||
@@ -63,7 +63,6 @@
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
console.log(uni.getStorageSync('refresh'),'getStorageSync')
|
|
||||||
if(uni.getStorageSync('refresh')){
|
if(uni.getStorageSync('refresh')){
|
||||||
this.reset()
|
this.reset()
|
||||||
}
|
}
|
||||||
@@ -108,7 +107,6 @@
|
|||||||
apiUrl = 'mall/shipments/service'
|
apiUrl = 'mall/shipments/service'
|
||||||
data.channel = 'app'
|
data.channel = 'app'
|
||||||
mallShipmentsPostShop(apiUrl,data).then(res=>{
|
mallShipmentsPostShop(apiUrl,data).then(res=>{
|
||||||
console.log(res.count)
|
|
||||||
this.count = res.count
|
this.count = res.count
|
||||||
this.lists = this.lists.concat(res.lists.data)
|
this.lists = this.lists.concat(res.lists.data)
|
||||||
this.total = res.lists.page.total
|
this.total = res.lists.page.total
|
||||||
|
|||||||
@@ -102,10 +102,8 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
console.log(e)
|
|
||||||
this.shipment_no = e.no
|
this.shipment_no = e.no
|
||||||
this.getInfo(e.no)
|
this.getInfo(e.no)
|
||||||
console.log(this.shipment_no)
|
|
||||||
// this.getInfo('2021081817410747800300000004')
|
// this.getInfo('2021081817410747800300000004')
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -134,12 +132,10 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
map(info) {
|
map(info) {
|
||||||
console.log(info.latitude, info.longitude)
|
|
||||||
uni.openLocation({
|
uni.openLocation({
|
||||||
latitude: Number(info.latitude),
|
latitude: Number(info.latitude),
|
||||||
longitude: Number(info.longitude),
|
longitude: Number(info.longitude),
|
||||||
success: function() {
|
success: function() {
|
||||||
console.log('success');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -159,7 +159,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
scanList(apiUrl, data).then(res => {
|
scanList(apiUrl, data).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.account = res.all
|
this.account = res.all
|
||||||
this.lists = this.lists.concat(res.lists.data)
|
this.lists = this.lists.concat(res.lists.data)
|
||||||
this.has_more = res.lists.page.has_more
|
this.has_more = res.lists.page.has_more
|
||||||
@@ -167,7 +166,6 @@
|
|||||||
this.ShopList = [{name:'全部',store_id:''},...res.stores]
|
this.ShopList = [{name:'全部',store_id:''},...res.stores]
|
||||||
this.isBos = res.isBos
|
this.isBos = res.isBos
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err)
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err.message,
|
title: err.message,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
@@ -192,7 +190,6 @@
|
|||||||
},
|
},
|
||||||
// 选择 年 月 日 切换要重置数据
|
// 选择 年 月 日 切换要重置数据
|
||||||
selectType(type) {
|
selectType(type) {
|
||||||
console.log(type, typeof type)
|
|
||||||
if (this.type !== type) {
|
if (this.type !== type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'year':
|
case 'year':
|
||||||
|
|||||||
@@ -60,12 +60,9 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
scanCode(e) {
|
scanCode(e) {
|
||||||
console.log(e)
|
|
||||||
this.scanType = e
|
this.scanType = e
|
||||||
uni.scanCode({
|
uni.scanCode({
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
console.log('条码类型:' + res.scanType);
|
|
||||||
console.log('条码内容:' + res.result);
|
|
||||||
// uni.showLoading({
|
// uni.showLoading({
|
||||||
// title: '核销请求中..'
|
// title: '核销请求中..'
|
||||||
// })
|
// })
|
||||||
@@ -76,16 +73,13 @@
|
|||||||
},
|
},
|
||||||
// 请求核销前置,优惠券前置和权证前置(get) post 是核销
|
// 请求核销前置,优惠券前置和权证前置(get) post 是核销
|
||||||
scanInfo(token, method) {
|
scanInfo(token, method) {
|
||||||
console.log(token, this.scanType)
|
|
||||||
let apiUrl = ''
|
let apiUrl = ''
|
||||||
let data = {
|
let data = {
|
||||||
code: token
|
code: token
|
||||||
}
|
}
|
||||||
if (this.scanType === 'goods') {
|
if (this.scanType === 'goods') {
|
||||||
console.log('权证核销')
|
|
||||||
apiUrl = 'manages/warrants/verification'
|
apiUrl = 'manages/warrants/verification'
|
||||||
} else {
|
} else {
|
||||||
console.log('优惠券核销!')
|
|
||||||
apiUrl = 'coupons/verify/coupon'
|
apiUrl = 'coupons/verify/coupon'
|
||||||
}
|
}
|
||||||
scanInfo(apiUrl, data, method).then(res => {
|
scanInfo(apiUrl, data, method).then(res => {
|
||||||
@@ -104,8 +98,6 @@
|
|||||||
this.info = res
|
this.info = res
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log('优惠券核销 有商品跳转优惠券详情页面,没有商品直接弹出核销页面!')
|
|
||||||
console.log(res, 'res')
|
|
||||||
if (method === 'post') {
|
if (method === 'post') {
|
||||||
this.showCode = false
|
this.showCode = false
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
export default {
|
export default {
|
||||||
methods:{
|
methods:{
|
||||||
toUser(){
|
toUser(){
|
||||||
console.log('trule')
|
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:'/pages/user/index'
|
url:'/pages/user/index'
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -270,7 +270,6 @@
|
|||||||
type: 'app'
|
type: 'app'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
let payConfig = JSON.parse(res)
|
let payConfig = JSON.parse(res)
|
||||||
console.log(payConfig, 'console.log(res)')
|
|
||||||
uni.requestPayment({
|
uni.requestPayment({
|
||||||
provider: 'wxpay',
|
provider: 'wxpay',
|
||||||
orderInfo: {
|
orderInfo: {
|
||||||
@@ -287,7 +286,6 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
fail: payErr => {
|
fail: payErr => {
|
||||||
console.log(payErr, 'console.log(payErr)')
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '支付失败',
|
title: '支付失败',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|||||||
@@ -73,7 +73,6 @@
|
|||||||
// 获取添加银行前置条件
|
// 获取添加银行前置条件
|
||||||
getAccountsCreate() {
|
getAccountsCreate() {
|
||||||
accountsCreate().then(res => {
|
accountsCreate().then(res => {
|
||||||
console.log(res)
|
|
||||||
this.banks = res.banks
|
this.banks = res.banks
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
@@ -86,7 +85,6 @@
|
|||||||
// 编辑前置
|
// 编辑前置
|
||||||
getAccountsCreateEdit() {
|
getAccountsCreateEdit() {
|
||||||
accountsCreateEdit(this.bank_account_id).then(res => {
|
accountsCreateEdit(this.bank_account_id).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.banks = res.banks
|
this.banks = res.banks
|
||||||
this.no = res.info.no
|
this.no = res.info.no
|
||||||
this.name = res.info.name
|
this.name = res.info.name
|
||||||
@@ -104,7 +102,6 @@
|
|||||||
},
|
},
|
||||||
// 选择银行
|
// 选择银行
|
||||||
selectBank(e) {
|
selectBank(e) {
|
||||||
console.log(e[0])
|
|
||||||
this.selectBankObj = e[0]
|
this.selectBankObj = e[0]
|
||||||
this.bank_id = e[0].value
|
this.bank_id = e[0].value
|
||||||
},
|
},
|
||||||
@@ -158,7 +155,6 @@
|
|||||||
}
|
}
|
||||||
if (this.bank_account_id) {
|
if (this.bank_account_id) {
|
||||||
data.bank_account_id = this.bank_account_id
|
data.bank_account_id = this.bank_account_id
|
||||||
console.log(data)
|
|
||||||
this.withdrawsAccountsEdits(data)
|
this.withdrawsAccountsEdits(data)
|
||||||
} else {
|
} else {
|
||||||
this.withdrawsAccounts(data)
|
this.withdrawsAccounts(data)
|
||||||
|
|||||||
@@ -73,7 +73,6 @@
|
|||||||
page: this.page
|
page: this.page
|
||||||
}
|
}
|
||||||
withdrawsAccountsList(data).then(res => {
|
withdrawsAccountsList(data).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.lists = this.lists.concat(res.data)
|
this.lists = this.lists.concat(res.data)
|
||||||
this.has_more = res.page.has_more
|
this.has_more = res.page.has_more
|
||||||
uni.setStorageSync('refresh', false)
|
uni.setStorageSync('refresh', false)
|
||||||
@@ -107,7 +106,6 @@
|
|||||||
success(res) {
|
success(res) {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
withdrawsAccountsDelete(id).then(res => {
|
withdrawsAccountsDelete(id).then(res => {
|
||||||
console.log(res)
|
|
||||||
that.lists.splice(index, 1)
|
that.lists.splice(index, 1)
|
||||||
if (that.lists.length === 0) {
|
if (that.lists.length === 0) {
|
||||||
uni.navigateBack({})
|
uni.navigateBack({})
|
||||||
@@ -132,7 +130,6 @@
|
|||||||
// }
|
// }
|
||||||
// let pages = getCurrentPages()
|
// let pages = getCurrentPages()
|
||||||
// let prevPage = pages[pages.length - 2]
|
// let prevPage = pages[pages.length - 2]
|
||||||
// console.log(bankInfo)
|
|
||||||
// prevPage._data.bankInfo = bankInfo
|
// prevPage._data.bankInfo = bankInfo
|
||||||
// uni.navigateBack() //返回上一页面
|
// uni.navigateBack() //返回上一页面
|
||||||
|
|
||||||
|
|||||||
@@ -84,7 +84,6 @@
|
|||||||
// 输入提现通证金额
|
// 输入提现通证金额
|
||||||
inputNum(e) {
|
inputNum(e) {
|
||||||
let number = Number(e.detail.value)
|
let number = Number(e.detail.value)
|
||||||
console.log(number, this.balance)
|
|
||||||
if (number <= Number(this.balance)) {
|
if (number <= Number(this.balance)) {
|
||||||
this.total = Number(e.detail.value) * this.cost
|
this.total = Number(e.detail.value) * this.cost
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
<view :class="['pay_type_item',cointype==='0'?'pay_type_item_select':'']" @click="selectCoinType('0')">已发放</view>
|
<view :class="['pay_type_item',cointype==='0'?'pay_type_item_select':'']" @click="selectCoinType('0')">已发放</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="record-title">当前积分个数</view>
|
<view class="record-title">当前贡献值个数</view>
|
||||||
<view class="record-money">{{score || '0.00'}} <span>个</span></view>
|
<view class="record-money">{{score || '0.00'}} <span>个</span></view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 无列表 -->
|
<!-- 无列表 -->
|
||||||
<no-list v-if="lists.length === 0" name='no-record' txt="没有任何积分记录 ~ " />
|
<no-list v-if="lists.length === 0" name='no-record' txt="没有任何贡献值记录 ~ " />
|
||||||
|
|
||||||
<!-- <u-toast ref="uToast" /> -->
|
<!-- <u-toast ref="uToast" /> -->
|
||||||
<u-toast ref="uToast" />
|
<u-toast ref="uToast" />
|
||||||
|
|||||||
@@ -140,7 +140,6 @@
|
|||||||
success: (res) => {
|
success: (res) => {
|
||||||
switch (res.tapIndex) {
|
switch (res.tapIndex) {
|
||||||
case 0:
|
case 0:
|
||||||
console.log('提现了,')
|
|
||||||
this.$Router.push({
|
this.$Router.push({
|
||||||
name: 'Extract'
|
name: 'Extract'
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -58,11 +58,9 @@
|
|||||||
this.reset()
|
this.reset()
|
||||||
uni.setStorageSync('refresh',false)
|
uni.setStorageSync('refresh',false)
|
||||||
}else{
|
}else{
|
||||||
console.log('没有更多更新')
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
console.log('chudi.....')
|
|
||||||
if(this.has_more){
|
if(this.has_more){
|
||||||
this.page = this.page+1
|
this.page = this.page+1
|
||||||
this.getlog()
|
this.getlog()
|
||||||
@@ -80,7 +78,6 @@
|
|||||||
page:this.page
|
page:this.page
|
||||||
}
|
}
|
||||||
accountCashs(data).then(res => {
|
accountCashs(data).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.logs = this.logs.concat(res.lists.data)
|
this.logs = this.logs.concat(res.lists.data)
|
||||||
this.cash = res.cash
|
this.cash = res.cash
|
||||||
this.has_more = res.lists.page.has_more
|
this.has_more = res.lists.page.has_more
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="record-title">积分个数</view>
|
<!-- <view class="record-title">贡献值个数</view>
|
||||||
<view class="record-money"><span>¥</span>{{account || '0.00'}}</view> -->
|
<view class="record-money"><span>¥</span>{{account || '0.00'}}</view> -->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -108,7 +108,6 @@
|
|||||||
date: this.date,
|
date: this.date,
|
||||||
}
|
}
|
||||||
withdrawsIndexLists(data).then(res => {
|
withdrawsIndexLists(data).then(res => {
|
||||||
console.log(res)
|
|
||||||
this.account = res.all
|
this.account = res.all
|
||||||
this.lists = this.lists.concat(res.lists.data)
|
this.lists = this.lists.concat(res.lists.data)
|
||||||
this.has_next_page = res.lists.page.has_more
|
this.has_next_page = res.lists.page.has_more
|
||||||
|
|||||||
Reference in New Issue
Block a user