Merge remote-tracking branch 'origin/feature/mall_product' into feature/mall_product
commit
90fde064c8
|
@ -6,7 +6,7 @@
|
||||||
width="70%"
|
width="70%"
|
||||||
:before-close="handleClose"
|
:before-close="handleClose"
|
||||||
>
|
>
|
||||||
<el-form ref="ruleForm" :model="ruleForm" label-width="120px" size="mini" v-if="dialogVisible" :rules="rules">
|
<el-form ref="ruleForm" :model="ruleForm" label-width="180px" size="mini" v-if="dialogVisible" :rules="rules">
|
||||||
<el-form-item label="模板名称" prop="name">
|
<el-form-item label="模板名称" prop="name">
|
||||||
<el-input v-model="ruleForm.name" class="withs" placeholder="请输入模板名称" />
|
<el-input v-model="ruleForm.name" class="withs" placeholder="请输入模板名称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -31,7 +31,6 @@
|
||||||
collapse-tags
|
collapse-tags
|
||||||
clearable
|
clearable
|
||||||
filterable
|
filterable
|
||||||
@change="changeRegion"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -306,9 +305,6 @@ export default {
|
||||||
noRegion: []
|
noRegion: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
changeRegion(value) {
|
|
||||||
console.log(value)
|
|
||||||
},
|
|
||||||
changeRadio(num) {
|
changeRadio(num) {
|
||||||
this.columns = Object.assign({}, statusMap[num - 1])
|
this.columns = Object.assign({}, statusMap[num - 1])
|
||||||
},
|
},
|
||||||
|
@ -346,8 +342,10 @@ export default {
|
||||||
name: info.name,
|
name: info.name,
|
||||||
type: info.type,
|
type: info.type,
|
||||||
appoint: info.appoint,
|
appoint: info.appoint,
|
||||||
|
noDelivery: info.noDelivery,
|
||||||
sort: info.sort
|
sort: info.sort
|
||||||
})
|
})
|
||||||
|
console.log(this.ruleForm)
|
||||||
this.columns = Object.assign({}, statusMap[this.ruleForm.type - 1])
|
this.columns = Object.assign({}, statusMap[this.ruleForm.type - 1])
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
loadingInstance.close()
|
loadingInstance.close()
|
||||||
|
@ -394,11 +392,7 @@ export default {
|
||||||
// 包邮
|
// 包邮
|
||||||
shippingNodelivery() {
|
shippingNodelivery() {
|
||||||
logistics.shippingNodelivery({ tempId: this.tempId }).then(res => {
|
logistics.shippingNodelivery({ tempId: this.tempId }).then(res => {
|
||||||
res.data.forEach((item, index) => {
|
this.ruleForm.noRegion = JSON.parse(res.data[0].title)
|
||||||
// item.title = JSON.parse(item.title)
|
|
||||||
item.city_ids = JSON.parse(item.title)
|
|
||||||
})
|
|
||||||
this.ruleForm.noDelivery = res.data
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
removeChild(list){
|
removeChild(list){
|
||||||
|
|
|
@ -15,6 +15,13 @@ export function memberOrderInfo(){
|
||||||
return request.get('api/order/member/memberOrderInfo', {})
|
return request.get('api/order/member/memberOrderInfo', {})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据当前手机号获取账号的充值记录
|
||||||
|
*/
|
||||||
|
export function memberOrderInfoByPhone(phone){
|
||||||
|
return request.get(`api/order/member/memberOrderInfoByPhone?phone=${phone}`, {})
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询权益档位信息
|
* 查询权益档位信息
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-navbar leftIcon="" title="话费返回情况"></u-navbar>
|
<u-navbar autoBack title="购买纪录"></u-navbar>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<text>再升1级即可获得【XX】等6项权益</text>
|
<text>再升1级即可获得【XX】等6项权益</text>
|
||||||
<view class="left-button">
|
<view class="left-button">
|
||||||
<view class="left-shopping" @click="handleRouter('购买记录')">
|
<view class="left-shopping" @click="handleRouter('购买记录')">
|
||||||
<text>购买记录</text>
|
<text>购买记录</text>
|
||||||
<image src="../../static/images/shopping-right.png" ></image>
|
<image src="../../static/images/shopping-right.png" ></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="left-others" @click="handleRouter('为他人充值')">
|
<view class="left-others" @click="handleRouter('为他人充值')">
|
||||||
|
@ -21,8 +21,8 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="member-right">
|
<view class="member-right">
|
||||||
<image src='../../static/images/vipStar.png'></image>
|
<image src='../../static/images/vipStar.png'></image>
|
||||||
<text>会员等级{{vipData.findIndex((item) => item == parseInt(memberDetail.grade)) +1}}级</text>
|
<text>会员等级{{vipData.findIndex((item) => item == memberDetail.grade) +1}}级</text>
|
||||||
<button @click="handleRenew">立即续费</button>
|
<button @click="handleRenew" class="right-button">立即续费</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="box-equity">
|
<view class="box-equity">
|
||||||
|
@ -256,7 +256,7 @@
|
||||||
margin-bottom: 10rpx;
|
margin-bottom: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
.right-button {
|
||||||
border-radius: 18rpx;
|
border-radius: 18rpx;
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
padding: 7rpx 16rpx;
|
padding: 7rpx 16rpx;
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
<view></view>
|
<view></view>
|
||||||
<text>充值号码:{{item.userPhone}}</text>
|
<text>充值号码:{{item.userPhone}}</text>
|
||||||
</view>
|
</view>
|
||||||
<button v-show="item.bool" @click.stop="handleService(item.orderId)">申请退款</button>
|
<button v-show="item.bool && item.refundStatus == 0" @click.stop="handleService(item)">申请退款</button>
|
||||||
|
<view v-show="item.refundStatus == 1">申请退款中</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-text">
|
<view class="item-text">
|
||||||
<text>充值档次:{{item.grade}}</text>
|
<text>充值档次:{{item.grade}}</text>
|
||||||
|
@ -22,7 +23,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
memberOrderInfo,memberApplyRefund
|
memberOrderInfo,memberApplyRefund,memberOrderInfoByPhone
|
||||||
} from '@/api/member.js';
|
} from '@/api/member.js';
|
||||||
import { Debounce } from '@/utils/validate.js'
|
import { Debounce } from '@/utils/validate.js'
|
||||||
export default {
|
export default {
|
||||||
|
@ -37,20 +38,12 @@
|
||||||
await this.getList()
|
await this.getList()
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
keyword :Debounce (function (){
|
keyword :Debounce (async function (){
|
||||||
this.memberData.sort((a,b) =>{
|
if(this.keyword == ''){
|
||||||
let aIndex = this.keyword.indexOf(a.userPhone)
|
await this.getList()
|
||||||
let bIndex = this.keyword.indexOf(b.userPhone)
|
}else{
|
||||||
if(aIndex > bIndex) return -1
|
await this.searchList()
|
||||||
if(aIndex < bIndex) return 1
|
}
|
||||||
if(a.userPhone == b.userPhone){
|
|
||||||
return a.stringCreateTime - b.stringCreateTime
|
|
||||||
}else{
|
|
||||||
if(a.stringCreateTime<b.stringCreateTime) return -1
|
|
||||||
if(a.stringCreateTime>b.stringCreateTime) return 1
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},1000)
|
},1000)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -59,20 +52,40 @@
|
||||||
url:`/pages/member_back/index?userPhone=${item.userPhone}&grade=${item.grade}`
|
url:`/pages/member_back/index?userPhone=${item.userPhone}&grade=${item.grade}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
async searchList(){
|
||||||
|
let milliseconds = 2 * 3600 * 1000 // 7200000 毫秒
|
||||||
|
let timestamp = new Date().getTime()
|
||||||
|
const res = await memberOrderInfoByPhone(this.keyword)
|
||||||
|
if(res.data){
|
||||||
|
const arr = res.data.map((item) => {
|
||||||
|
return {
|
||||||
|
...item,
|
||||||
|
bool:item.createTime+milliseconds>timestamp
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.memberData = arr
|
||||||
|
}else{
|
||||||
|
this.memberData = []
|
||||||
|
}
|
||||||
|
},
|
||||||
async getList(){
|
async getList(){
|
||||||
let milliseconds = 2 * 3600 * 1000 // 7200000 毫秒
|
let milliseconds = 2 * 3600 * 1000 // 7200000 毫秒
|
||||||
let timestamp = new Date().getTime()
|
let timestamp = new Date().getTime()
|
||||||
const res = await memberOrderInfo()
|
const res = await memberOrderInfo()
|
||||||
const arr = res.data.map((item) => {
|
if(res.data){
|
||||||
return {
|
const arr = res.data.map((item) => {
|
||||||
...item,
|
return {
|
||||||
bool:item.createTime+milliseconds>timestamp
|
...item,
|
||||||
}
|
bool:item.createTime+milliseconds>timestamp
|
||||||
})
|
}
|
||||||
this.memberData = arr
|
})
|
||||||
|
this.memberData = arr
|
||||||
|
}else{
|
||||||
|
this.memberData = []
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async handleService(orderId){
|
async handleService(item){
|
||||||
await memberApplyRefund({orderId})
|
await memberApplyRefund({orderId:item.id,type:3})
|
||||||
this.$util.Tips({
|
this.$util.Tips({
|
||||||
title: '申请成功'
|
title: '申请成功'
|
||||||
});
|
});
|
||||||
|
@ -93,10 +106,10 @@
|
||||||
background-attachment: fixed;
|
background-attachment: fixed;
|
||||||
.box-seach{
|
.box-seach{
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
padding: 10% 40rpx;
|
padding: 0 40rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 3%;
|
top: 8%;
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
.list-item{
|
.list-item{
|
||||||
|
|
Loading…
Reference in New Issue