添加注释
parent
7f5d2b41d5
commit
f97282ad44
|
@ -63,17 +63,17 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
selectTags (item) {
|
selectTags (item) { // 选择热门标签
|
||||||
this.searchData = item;
|
this.searchData = item;
|
||||||
this.search();
|
this.search();
|
||||||
},
|
},
|
||||||
search () {
|
search () { // 全平台搜索商品
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/goodsList',
|
path: '/goodsList',
|
||||||
query: { keyword: this.searchData }
|
query: { keyword: this.searchData }
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
searchStore () {
|
searchStore () { // 店铺搜索商品
|
||||||
this.$emit('search', this.searchData)
|
this.$emit('search', this.searchData)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -139,7 +139,7 @@ export default {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
goPromotion () {
|
goPromotion () { // 跳转秒杀页面
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
path: '/seckill'
|
path: '/seckill'
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
## 此组件为结算页面修改发票信息使用 后续可以复用到个人信息添加发票页面
|
## 此组件为结算页面修改发票信息使用 后续可以复用到个人信息添加发票页面
|
||||||
|
|
||||||
### 目前没有参数,之后会设置一个参数接收历史的单位发票数据
|
|
|
@ -69,7 +69,7 @@ export default {
|
||||||
receiptContent: '不开发票', // 发票内容
|
receiptContent: '不开发票', // 发票内容
|
||||||
type: 1 // 1 个人 2 单位
|
type: 1 // 1 个人 2 单位
|
||||||
},
|
},
|
||||||
ruleInline: {
|
ruleInline: { // 验证规则
|
||||||
receiptTitle: [{ required: true, message: '请填写公司名称' }],
|
receiptTitle: [{ required: true, message: '请填写公司名称' }],
|
||||||
taxpayerId: [
|
taxpayerId: [
|
||||||
{ required: true, message: '请填写纳税人识别号' },
|
{ required: true, message: '请填写纳税人识别号' },
|
||||||
|
@ -79,7 +79,7 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
save () {
|
save () { // 保存发票
|
||||||
if (this.invoiceForm.type === 1) {
|
if (this.invoiceForm.type === 1) {
|
||||||
// 个人
|
// 个人
|
||||||
let flag = true;
|
let flag = true;
|
||||||
|
|
|
@ -85,7 +85,7 @@ export default {
|
||||||
this.$emit('getAddress', this.addrContent);
|
this.$emit('getAddress', this.addrContent);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
init () {
|
init () { // 初始化地图
|
||||||
AMapLoader.load({
|
AMapLoader.load({
|
||||||
key: 'b440952723253aa9fe483e698057bf7d', // 申请好的Web端开发者Key,首次调用 load 时必填
|
key: 'b440952723253aa9fe483e698057bf7d', // 申请好的Web端开发者Key,首次调用 load 时必填
|
||||||
version: '', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
|
version: '', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
|
||||||
|
|
|
@ -21,7 +21,7 @@ export default {
|
||||||
props: ['addressId'],
|
props: ['addressId'],
|
||||||
mounted () {},
|
mounted () {},
|
||||||
methods: {
|
methods: {
|
||||||
change (val, selectedData) {
|
change (val, selectedData) { // 选择地区
|
||||||
/**
|
/**
|
||||||
* @returns [regionId,region]
|
* @returns [regionId,region]
|
||||||
*/
|
*/
|
||||||
|
@ -30,7 +30,7 @@ export default {
|
||||||
selectedData[selectedData.length - 1].__label.split('/')
|
selectedData[selectedData.length - 1].__label.split('/')
|
||||||
]);
|
]);
|
||||||
},
|
},
|
||||||
loadData (item, callback) {
|
loadData (item, callback) { // 加载数据
|
||||||
item.loading = true;
|
item.loading = true;
|
||||||
getRegion(item.value).then((res) => {
|
getRegion(item.value).then((res) => {
|
||||||
if (res.result.length <= 0) {
|
if (res.result.length <= 0) {
|
||||||
|
@ -59,7 +59,7 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async init () {
|
async init () { // 初始化地图数据
|
||||||
let data = await getRegion(0);
|
let data = await getRegion(0);
|
||||||
let arr = [];
|
let arr = [];
|
||||||
data.result.forEach((item) => {
|
data.result.forEach((item) => {
|
||||||
|
|
|
@ -209,7 +209,7 @@ export default {
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
},
|
},
|
||||||
'$route': {
|
'$route': { // 监听路由
|
||||||
handler (val, oVal) {
|
handler (val, oVal) {
|
||||||
if (this.$route.query.categoryId) {
|
if (this.$route.query.categoryId) {
|
||||||
let cateId = this.$route.query.categoryId.split(',')
|
let cateId = this.$route.query.categoryId.split(',')
|
||||||
|
@ -373,6 +373,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
// 有分类id就根据id搜索
|
||||||
if (this.$route.query.categoryId) {
|
if (this.$route.query.categoryId) {
|
||||||
let cateId = this.$route.query.categoryId.split(',')
|
let cateId = this.$route.query.categoryId.split(',')
|
||||||
Object.assign(this.params, this.$route.query)
|
Object.assign(this.params, this.$route.query)
|
||||||
|
|
|
@ -43,11 +43,11 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
mouseDown (e) {
|
mouseDown (e) { // 鼠标按下操作,
|
||||||
this.downX = e.clientX;
|
this.downX = e.clientX;
|
||||||
this.flag = true;
|
this.flag = true;
|
||||||
},
|
},
|
||||||
mouseMove (e) {
|
mouseMove (e) { // 鼠标移动
|
||||||
if (this.flag) {
|
if (this.flag) {
|
||||||
let offset = e.clientX - this.downX;
|
let offset = e.clientX - this.downX;
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mouseUp () {
|
mouseUp () { // 鼠标抬起
|
||||||
if (!this.flag) return false;
|
if (!this.flag) return false;
|
||||||
this.flag = false;
|
this.flag = false;
|
||||||
let params = {
|
let params = {
|
||||||
|
@ -83,7 +83,7 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
refresh () {
|
refresh () { // 刷新验证图片
|
||||||
this.flag = false;
|
this.flag = false;
|
||||||
this.downX = 0;
|
this.downX = 0;
|
||||||
this.distance = 0;
|
this.distance = 0;
|
||||||
|
@ -91,7 +91,7 @@ export default {
|
||||||
this.verifyText = '拖动滑块解锁';
|
this.verifyText = '拖动滑块解锁';
|
||||||
this.getImg();
|
this.getImg();
|
||||||
},
|
},
|
||||||
getImg () {
|
getImg () { // 获取验证图片
|
||||||
getVerifyImg(this.type).then(res => {
|
getVerifyImg(this.type).then(res => {
|
||||||
this.data = res.result;
|
this.data = res.result;
|
||||||
});
|
});
|
||||||
|
|
|
@ -78,6 +78,7 @@ export default {
|
||||||
name: cateName[index]
|
name: cateName[index]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
console.log(cateArr);
|
||||||
this.categoryBar = cateArr;
|
this.categoryBar = cateArr;
|
||||||
this.goodsMsg = res.result;
|
this.goodsMsg = res.result;
|
||||||
// 判断是否收藏
|
// 判断是否收藏
|
||||||
|
|
|
@ -25,13 +25,6 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'AccountBind',
|
name: 'AccountBind',
|
||||||
data () {
|
|
||||||
return {}
|
|
||||||
},
|
|
||||||
mounted () {
|
|
||||||
|
|
||||||
},
|
|
||||||
methods: {}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<card _Title="账户安全"/>
|
<card _Title="账户安全"/>
|
||||||
|
|
||||||
<div class="safeList">
|
<div class="safeList">
|
||||||
<!-- 密码 -->
|
<!-- 密码 -->
|
||||||
<Row class="safeItem">
|
<Row class="safeItem">
|
||||||
|
@ -16,102 +15,11 @@
|
||||||
<Button @click="modifyPwd">修改密码</Button>
|
<Button @click="modifyPwd">修改密码</Button>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<!-- 邮箱 -->
|
|
||||||
<!-- <Row class="safeItem">
|
|
||||||
<Col :span="2">
|
|
||||||
<Icon size="40" type="md-mail" />
|
|
||||||
</Col>
|
|
||||||
<Col :span="16">
|
|
||||||
<div class="setDivItem">
|
|
||||||
邮箱验证
|
|
||||||
</div>
|
|
||||||
<div class="setDivItem " v-if="true">
|
|
||||||
您的验证邮箱:<span>xxxxx</span>
|
|
||||||
</div>
|
|
||||||
<div class="setDivItem " v-else>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</Col>
|
|
||||||
<Col :span="4">
|
|
||||||
<Button>修改邮箱</Button>
|
|
||||||
</Col>
|
|
||||||
</Row> -->
|
|
||||||
<!-- 手机验证 -->
|
|
||||||
<!-- <Row class="safeItem">
|
|
||||||
<Col :span="2">
|
|
||||||
<Icon size="40" type="ios-phone-portrait" />
|
|
||||||
</Col>
|
|
||||||
<Col :span="16">
|
|
||||||
<div class="setDivItem">
|
|
||||||
手机验证
|
|
||||||
</div>
|
|
||||||
<div class="setDivItem " v-if="true">
|
|
||||||
您的手机号:<span>xxxxx</span>
|
|
||||||
</div>
|
|
||||||
<div class="setDivItem " v-else>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</Col>
|
|
||||||
<Col :span="4">
|
|
||||||
<Button>立即验证</Button>
|
|
||||||
</Col>
|
|
||||||
</Row> -->
|
|
||||||
<!-- 支付密码 -->
|
|
||||||
<!-- <Row class="safeItem">
|
|
||||||
<Col :span="2">
|
|
||||||
<Icon size="40" type="md-lock" />
|
|
||||||
</Col>
|
|
||||||
<Col :span="16">
|
|
||||||
<div class="setDivItem">
|
|
||||||
支付密码
|
|
||||||
</div>
|
|
||||||
<div class="setDivItem " v-if="true">
|
|
||||||
安全认证:<span>xxxxx</span>
|
|
||||||
</div>
|
|
||||||
<div class="setDivItem " v-else>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</Col>
|
|
||||||
<Col :span="4">
|
|
||||||
<Button @click="goModifyPwd" v-if="pwdStatus == '设置密码'" type="error">{{pwdStatus}}</Button>
|
|
||||||
<Dropdown style="margin-left: 20px" v-if="pwdStatus == '修改密码'" @on-click="selectPwd">
|
|
||||||
<Button type="primary">
|
|
||||||
修改密码
|
|
||||||
<Icon type="ios-arrow-down"></Icon>
|
|
||||||
</Button>
|
|
||||||
<DropdownMenu slot="list" on-click="selectPwd">
|
|
||||||
<DropdownItem name = "1">修改密码</DropdownItem>
|
|
||||||
<DropdownItem name = "2">重置密码</DropdownItem>
|
|
||||||
</DropdownMenu>
|
|
||||||
</Dropdown>
|
|
||||||
</Col>
|
|
||||||
</Row> -->
|
|
||||||
<!-- 实名 -->
|
|
||||||
<!-- <Row class="safeItem">
|
|
||||||
<Col :span="2">
|
|
||||||
<Icon size="40" type="md-card" />
|
|
||||||
</Col>
|
|
||||||
<Col :span="16">
|
|
||||||
<div class="setDivItem">
|
|
||||||
实名认证
|
|
||||||
</div>
|
|
||||||
<div class="setDivItem " v-if="true">
|
|
||||||
已认证:<span>xxxxx</span>
|
|
||||||
</div>
|
|
||||||
<div class="setDivItem " v-else>
|
|
||||||
您还未实名认证该账户,立即实名认证可加快提现速度。
|
|
||||||
</div>
|
|
||||||
</Col>
|
|
||||||
<Col :span="4">
|
|
||||||
<Button>立即认证</Button>
|
|
||||||
</Col>
|
|
||||||
</Row> -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import card from '@/components/card'
|
|
||||||
import {
|
import {
|
||||||
getPwdStatus
|
getPwdStatus
|
||||||
} from '@/api/account';
|
} from '@/api/account';
|
||||||
|
@ -122,7 +30,6 @@ export default {
|
||||||
pwdStatus: '' // 密码状态
|
pwdStatus: '' // 密码状态
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {card},
|
|
||||||
mounted () {
|
mounted () {
|
||||||
this.getPwdStatus()
|
this.getPwdStatus()
|
||||||
},
|
},
|
||||||
|
@ -131,10 +38,7 @@ export default {
|
||||||
goModifyPwd () {
|
goModifyPwd () {
|
||||||
this.$router.push({name: 'ModifyPwd', query: { status: 2 }})
|
this.$router.push({name: 'ModifyPwd', query: { status: 2 }})
|
||||||
},
|
},
|
||||||
selectPwd (value) {
|
modifyPwd () { // 修改密码
|
||||||
this.$router.push({name: 'ModifyPwd', query: { status: value }})
|
|
||||||
},
|
|
||||||
modifyPwd () {
|
|
||||||
this.$router.push({name: 'ModifyPwd', query: { status: 1 }})
|
this.$router.push({name: 'ModifyPwd', query: { status: 1 }})
|
||||||
},
|
},
|
||||||
// 获取密码状态
|
// 获取密码状态
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<div class="title order-item-title">
|
<div class="title order-item-title">
|
||||||
<span>订单号:{{item.orderNo}}</span>
|
<span>订单号:{{item.orderNo}}</span>
|
||||||
<span class="color999 ml_10">{{item.createTime}}</span>
|
<span class="color999 ml_10">{{item.createTime}}</span>
|
||||||
<span class="hover-pointer fontsize_12 eval-detail" @click="evaluate(item.id)">评价详情</span>
|
<span class="hover-pointer fontsize_12 eval-detail" @click="evaluateDetail(item.id)">评价详情</span>
|
||||||
</div>
|
</div>
|
||||||
<Row class="order-item-view">
|
<Row class="order-item-view">
|
||||||
<i-col span="12" class="item-view-name">
|
<i-col span="12" class="item-view-name">
|
||||||
|
@ -80,7 +80,7 @@ export default {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList () {
|
getList () { // 获取评价列表
|
||||||
evolutionList(this.params).then(res => {
|
evolutionList(this.params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
const list = res.result.records;
|
const list = res.result.records;
|
||||||
|
@ -92,19 +92,16 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
changePageNum (val) {
|
changePageNum (val) { // 修改页码
|
||||||
this.params.pageNumber = val;
|
this.params.pageNumber = val;
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
changePageSize (val) {
|
changePageSize (val) { // 修改页数
|
||||||
this.pageNumber = 1;
|
this.pageNumber = 1;
|
||||||
this.params.pageSize = val;
|
this.params.pageSize = val;
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
changeIndex (index) {
|
evaluateDetail (id) { // 跳转评价详情
|
||||||
console.log(index);
|
|
||||||
},
|
|
||||||
evaluate (id) {
|
|
||||||
this.$router.push({path: '/home/evalDetail', query: { id }})
|
this.$router.push({path: '/home/evalDetail', query: { id }})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,23 +141,23 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getDetail () {
|
getDetail () { // 获取投诉详情
|
||||||
getComplainDetail(this.$route.query.id).then(res => {
|
getComplainDetail(this.$route.query.id).then(res => {
|
||||||
if (res.success) this.detail = res.result
|
if (res.success) this.detail = res.result
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
goGoodsDetail (skuId, goodsId) {
|
goGoodsDetail (skuId, goodsId) { // 跳转商品详情
|
||||||
let routerUrl = this.$router.resolve({
|
let routerUrl = this.$router.resolve({
|
||||||
path: '/goodsDetail',
|
path: '/goodsDetail',
|
||||||
query: {skuId, goodsId}
|
query: {skuId, goodsId}
|
||||||
})
|
})
|
||||||
window.open(routerUrl.href, '_blank')
|
window.open(routerUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
handleView (name) {
|
handleView (name) { // 预览图片
|
||||||
this.previewImage = name;
|
this.previewImage = name;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
},
|
},
|
||||||
// 回复
|
// 回复消息
|
||||||
handleSubmit () {
|
handleSubmit () {
|
||||||
if (this.params.content === '') {
|
if (this.params.content === '') {
|
||||||
this.$Message.error('请填写对话内容');
|
this.$Message.error('请填写对话内容');
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<div class="title order-item-title">
|
<div class="title order-item-title">
|
||||||
<span>投诉单号:{{item.id}}</span>
|
<span>投诉单号:{{item.id}}</span>
|
||||||
<span class="color999 ml_10">{{item.createTime}}</span>
|
<span class="color999 ml_10">{{item.createTime}}</span>
|
||||||
<span class="hover-pointer fontsize_12 eval-detail" @click="detail(item.id)">投诉详情</span>
|
<span class="hover-pointer fontsize_12 eval-detail" @click="goDetail(item.id)">投诉详情</span>
|
||||||
<span class="hover-pointer fontsize_12 eval-detail" style="right: 90px" v-if="item.complainStatus != 'EXPIRED' && item.complainStatus != 'CANCEL'" @click="cancel(item.id)">取消投诉</span>
|
<span class="hover-pointer fontsize_12 eval-detail" style="right: 90px" v-if="item.complainStatus != 'EXPIRED' && item.complainStatus != 'CANCEL'" @click="cancel(item.id)">取消投诉</span>
|
||||||
</div>
|
</div>
|
||||||
<Row class="order-item-view">
|
<Row class="order-item-view">
|
||||||
|
@ -93,7 +93,7 @@ export default {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList () {
|
getList () { // 获取投诉列表
|
||||||
complainList(this.params).then(res => {
|
complainList(this.params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
const list = res.result.records;
|
const list = res.result.records;
|
||||||
|
@ -102,16 +102,16 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
changePageNum (val) {
|
changePageNum (val) { // 改变页码
|
||||||
this.params.pageNumber = val;
|
this.params.pageNumber = val;
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
changePageSize (val) {
|
changePageSize (val) { // 改变页数
|
||||||
this.pageNumber = 1;
|
this.pageNumber = 1;
|
||||||
this.params.pageSize = val;
|
this.params.pageSize = val;
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
cancel (id) {
|
cancel (id) { // 取消投诉
|
||||||
this.$Modal.confirm({
|
this.$Modal.confirm({
|
||||||
title: '取消投诉',
|
title: '取消投诉',
|
||||||
content: '<p>确定取消投诉吗?</p>',
|
content: '<p>确定取消投诉吗?</p>',
|
||||||
|
@ -126,7 +126,7 @@ export default {
|
||||||
onCancel: () => { }
|
onCancel: () => { }
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
detail (id) {
|
goDetail (id) { // 跳转投诉详情
|
||||||
this.$router.push({path: '/home/complainDetail', query: { id }})
|
this.$router.push({path: '/home/complainDetail', query: { id }})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,7 +213,7 @@ export default {
|
||||||
this.distribution()
|
this.distribution()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
apply () {
|
apply () { // 申请成为分销商
|
||||||
this.$refs.form.validate(valid => {
|
this.$refs.form.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.applyLoading = true
|
this.applyLoading = true
|
||||||
|
@ -239,10 +239,10 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
qrcodeData (data64) {
|
qrcodeData (data64) { // 二维码base64地址
|
||||||
this.base64Img = data64
|
this.base64Img = data64
|
||||||
},
|
},
|
||||||
downloadQrcode () {
|
downloadQrcode () { // 下载二维码
|
||||||
let a = document.createElement('a'); // 生成一个a元素
|
let a = document.createElement('a'); // 生成一个a元素
|
||||||
let event = new MouseEvent('click'); // 创建一个单击事件
|
let event = new MouseEvent('click'); // 创建一个单击事件
|
||||||
a.download = this.goodsNameCurr || 'photo'
|
a.download = this.goodsNameCurr || 'photo'
|
||||||
|
@ -265,11 +265,11 @@ export default {
|
||||||
this.getLog()
|
this.getLog()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
changePage (val) {
|
changePage (val) { // 修改页码
|
||||||
this.params.pageNumber = val;
|
this.params.pageNumber = val;
|
||||||
this.getGoodsData()
|
this.getGoodsData()
|
||||||
},
|
},
|
||||||
changePageLog (val) {
|
changePageLog (val) { // 修改页码 日志
|
||||||
this.logParams.pageNumber = val;
|
this.logParams.pageNumber = val;
|
||||||
this.getLog()
|
this.getLog()
|
||||||
},
|
},
|
||||||
|
|
|
@ -68,19 +68,19 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList () {
|
getList () { // 获取收藏列表
|
||||||
this.spinShow = true
|
this.spinShow = true
|
||||||
collectList(this.params).then(res => {
|
collectList(this.params).then(res => {
|
||||||
this.spinShow = false
|
this.spinShow = false
|
||||||
if (res.success) this.list = res.result.records;
|
if (res.success) this.list = res.result.records;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
change (index) {
|
change (index) { // tab栏切换
|
||||||
if (index === 0) { this.params.type = 'GOODS' }
|
if (index === 0) { this.params.type = 'GOODS' }
|
||||||
if (index === 1) { this.params.type = 'SHOP' }
|
if (index === 1) { this.params.type = 'SHOP' }
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
cancel (id) {
|
cancel (id) { // 取消收藏
|
||||||
let typeName = this.params.type === 'GOODS' ? '商品' : '店铺'
|
let typeName = this.params.type === 'GOODS' ? '商品' : '店铺'
|
||||||
this.$Modal.confirm({
|
this.$Modal.confirm({
|
||||||
title: 'Title',
|
title: 'Title',
|
||||||
|
@ -94,23 +94,23 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
changePageNum (val) {
|
changePageNum (val) { // 修改页码
|
||||||
this.params.pageNumber = val;
|
this.params.pageNumber = val;
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
changePageSize (val) {
|
changePageSize (val) { // 修改页数
|
||||||
this.pageNumber = 1;
|
this.pageNumber = 1;
|
||||||
this.params.pageSize = val;
|
this.params.pageSize = val;
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
buynow (skuId, goodsId) {
|
buynow (skuId, goodsId) { // 跳转详情
|
||||||
let url = this.$router.resolve({
|
let url = this.$router.resolve({
|
||||||
path: '/goodsDetail',
|
path: '/goodsDetail',
|
||||||
query: {skuId, goodsId}
|
query: {skuId, goodsId}
|
||||||
})
|
})
|
||||||
window.open(url.href, '_blank')
|
window.open(url.href, '_blank')
|
||||||
},
|
},
|
||||||
goShop (id) {
|
goShop (id) { // 跳转店铺页面
|
||||||
let url = this.$router.resolve({
|
let url = this.$router.resolve({
|
||||||
path: '/merchant',
|
path: '/merchant',
|
||||||
query: {id}
|
query: {id}
|
||||||
|
|
|
@ -78,12 +78,12 @@ export default {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList () {
|
getList () { // 获取发票列表
|
||||||
receiptList().then(res => {
|
receiptList().then(res => {
|
||||||
this.list = res.result.records;
|
this.list = res.result.records;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
save () {
|
save () { // 保存发票
|
||||||
this.$refs.form.validate((valid) => {
|
this.$refs.form.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
@ -105,7 +105,7 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
resetData () {
|
resetData () { // 重置表单数据
|
||||||
this.$refs.form.resetFields();
|
this.$refs.form.resetFields();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getOrderDetail () {
|
getOrderDetail () { // 获取订单详情
|
||||||
orderDetail(this.$route.query.sn).then(res => {
|
orderDetail(this.$route.query.sn).then(res => {
|
||||||
this.order = res.result
|
this.order = res.result
|
||||||
this.orderGoods = res.result.orderItems[this.$route.query.index]
|
this.orderGoods = res.result.orderItems[this.$route.query.index]
|
||||||
|
@ -96,7 +96,7 @@ export default {
|
||||||
this.orderGoods.uploadList = []
|
this.orderGoods.uploadList = []
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
save () {
|
save () { // 保存评价
|
||||||
if (!this.form.serviceScore || !this.form.deliveryScore) {
|
if (!this.form.serviceScore || !this.form.deliveryScore) {
|
||||||
this.$Message.warning('物流服务评价不能为空')
|
this.$Message.warning('物流服务评价不能为空')
|
||||||
return false;
|
return false;
|
||||||
|
@ -129,26 +129,26 @@ export default {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
goGoodsDetail (skuId, goodsId) {
|
goGoodsDetail (skuId, goodsId) { // 跳转商品详情
|
||||||
let routerUrl = this.$router.resolve({
|
let routerUrl = this.$router.resolve({
|
||||||
path: '/goodsDetail',
|
path: '/goodsDetail',
|
||||||
query: {skuId, goodsId}
|
query: {skuId, goodsId}
|
||||||
})
|
})
|
||||||
window.open(routerUrl.href, '_blank')
|
window.open(routerUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
handleView (name) {
|
handleView (name) { // 预览图片
|
||||||
this.previewImage = name;
|
this.previewImage = name;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
},
|
},
|
||||||
handleRemove (index) {
|
handleRemove (index) { // 移除图片
|
||||||
this.orderGoods.uploadList.splice(index, 1)
|
this.orderGoods.uploadList.splice(index, 1)
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
},
|
},
|
||||||
handleSuccess (res, file) {
|
handleSuccess (res, file) { // 上传成功回调
|
||||||
this.orderGoods.uploadList.push(res.result)
|
this.orderGoods.uploadList.push(res.result)
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
},
|
},
|
||||||
handleBeforeUpload () {
|
handleBeforeUpload () { // 上传之前钩子
|
||||||
const check = this.orderGoods.uploadList.length < 10;
|
const check = this.orderGoods.uploadList.length < 10;
|
||||||
if (!check) {
|
if (!check) {
|
||||||
this.$Notice.warning({
|
this.$Notice.warning({
|
||||||
|
|
|
@ -65,19 +65,19 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getDetail () {
|
getDetail () { // 获取评价详情
|
||||||
evaluationDetail(this.$route.query.id).then(res => {
|
evaluationDetail(this.$route.query.id).then(res => {
|
||||||
if (res.success) this.orderGoods = res.result
|
if (res.success) this.orderGoods = res.result
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
goGoodsDetail (skuId, goodsId) {
|
goGoodsDetail (skuId, goodsId) { // 跳转商品详情
|
||||||
let routerUrl = this.$router.resolve({
|
let routerUrl = this.$router.resolve({
|
||||||
path: '/goodsDetail',
|
path: '/goodsDetail',
|
||||||
query: {skuId, goodsId}
|
query: {skuId, goodsId}
|
||||||
})
|
})
|
||||||
window.open(routerUrl.href, '_blank')
|
window.open(routerUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
handleView (name) {
|
handleView (name) { // 预览图片
|
||||||
this.previewImage = name;
|
this.previewImage = name;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
</p>
|
</p>
|
||||||
<template v-if="!$route.query.id">
|
<template v-if="!$route.query.id">
|
||||||
<Divider>或选择商品模版</Divider>
|
<Divider>或选择商品模版</Divider>
|
||||||
<Select v-model="draftId" style="width: 200px">
|
<Select v-model="draftId" clearable style="width: 200px">
|
||||||
<Option v-for="item in goodsTemplates" :value="item.id" :key="item.id"
|
<Option v-for="item in goodsTemplates" :value="item.id" :key="item.id"
|
||||||
>{{ item.goodsName || item.id }}
|
>{{ item.goodsName || item.id }}
|
||||||
</Option>
|
</Option>
|
||||||
|
|
Loading…
Reference in New Issue