添加注释

master
mabo 2021-06-03 17:32:38 +08:00
parent 7f5d2b41d5
commit f97282ad44
20 changed files with 60 additions and 166 deletions

View File

@ -63,17 +63,17 @@ export default {
};
},
methods: {
selectTags (item) {
selectTags (item) { //
this.searchData = item;
this.search();
},
search () {
search () { //
this.$router.push({
path: '/goodsList',
query: { keyword: this.searchData }
});
},
searchStore () {
searchStore () { //
this.$emit('search', this.searchData)
}
},

View File

@ -139,7 +139,7 @@ export default {
}, 1000);
}
},
goPromotion () {
goPromotion () { //
let routeUrl = this.$router.resolve({
path: '/seckill'
});

View File

@ -1,3 +1 @@
## 此组件为结算页面修改发票信息使用 后续可以复用到个人信息添加发票页面
### 目前没有参数,之后会设置一个参数接收历史的单位发票数据

View File

@ -69,7 +69,7 @@ export default {
receiptContent: '不开发票', //
type: 1 // 1 2
},
ruleInline: {
ruleInline: { //
receiptTitle: [{ required: true, message: '请填写公司名称' }],
taxpayerId: [
{ required: true, message: '请填写纳税人识别号' },
@ -79,7 +79,7 @@ export default {
};
},
methods: {
save () {
save () { //
if (this.invoiceForm.type === 1) {
//
let flag = true;

View File

@ -85,7 +85,7 @@ export default {
this.$emit('getAddress', this.addrContent);
}
},
init () {
init () { //
AMapLoader.load({
key: 'b440952723253aa9fe483e698057bf7d', // WebKey load
version: '', // JSAPI 1.4.15

View File

@ -21,7 +21,7 @@ export default {
props: ['addressId'],
mounted () {},
methods: {
change (val, selectedData) {
change (val, selectedData) { //
/**
* @returns [regionId,region]
*/
@ -30,7 +30,7 @@ export default {
selectedData[selectedData.length - 1].__label.split('/')
]);
},
loadData (item, callback) {
loadData (item, callback) { //
item.loading = true;
getRegion(item.value).then((res) => {
if (res.result.length <= 0) {
@ -59,7 +59,7 @@ export default {
}
});
},
async init () {
async init () { //
let data = await getRegion(0);
let arr = [];
data.result.forEach((item) => {

View File

@ -209,7 +209,7 @@ export default {
},
deep: true
},
'$route': {
'$route': { //
handler (val, oVal) {
if (this.$route.query.categoryId) {
let cateId = this.$route.query.categoryId.split(',')
@ -373,6 +373,7 @@ export default {
}
},
mounted () {
// idid
if (this.$route.query.categoryId) {
let cateId = this.$route.query.categoryId.split(',')
Object.assign(this.params, this.$route.query)

View File

@ -43,11 +43,11 @@ export default {
};
},
methods: {
mouseDown (e) {
mouseDown (e) { //
this.downX = e.clientX;
this.flag = true;
},
mouseMove (e) {
mouseMove (e) { //
if (this.flag) {
let offset = e.clientX - this.downX;
@ -60,7 +60,7 @@ export default {
}
}
},
mouseUp () {
mouseUp () { //
if (!this.flag) return false;
this.flag = false;
let params = {
@ -83,7 +83,7 @@ export default {
}
});
},
refresh () {
refresh () { //
this.flag = false;
this.downX = 0;
this.distance = 0;
@ -91,7 +91,7 @@ export default {
this.verifyText = '拖动滑块解锁';
this.getImg();
},
getImg () {
getImg () { //
getVerifyImg(this.type).then(res => {
this.data = res.result;
});

View File

@ -78,6 +78,7 @@ export default {
name: cateName[index]
});
});
console.log(cateArr);
this.categoryBar = cateArr;
this.goodsMsg = res.result;
//

View File

@ -25,13 +25,6 @@
<script>
export default {
name: 'AccountBind',
data () {
return {}
},
mounted () {
},
methods: {}
}
</script>

View File

@ -1,7 +1,6 @@
<template>
<div class="wrapper">
<card _Title="账户安全"/>
<div class="safeList">
<!-- 密码 -->
<Row class="safeItem">
@ -16,102 +15,11 @@
<Button @click="modifyPwd"></Button>
</Col>
</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>
</template>
<script>
import card from '@/components/card'
import {
getPwdStatus
} from '@/api/account';
@ -122,7 +30,6 @@ export default {
pwdStatus: '' //
}
},
components: {card},
mounted () {
this.getPwdStatus()
},
@ -131,10 +38,7 @@ export default {
goModifyPwd () {
this.$router.push({name: 'ModifyPwd', query: { status: 2 }})
},
selectPwd (value) {
this.$router.push({name: 'ModifyPwd', query: { status: value }})
},
modifyPwd () {
modifyPwd () { //
this.$router.push({name: 'ModifyPwd', query: { status: 1 }})
},
//

View File

@ -18,7 +18,7 @@
<div class="title order-item-title">
<span>订单号:{{item.orderNo}}</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>
<Row class="order-item-view">
<i-col span="12" class="item-view-name">
@ -80,7 +80,7 @@ export default {
this.getList()
},
methods: {
getList () {
getList () { //
evolutionList(this.params).then(res => {
if (res.success) {
const list = res.result.records;
@ -92,19 +92,16 @@ export default {
}
})
},
changePageNum (val) {
changePageNum (val) { //
this.params.pageNumber = val;
this.getList()
},
changePageSize (val) {
changePageSize (val) { //
this.pageNumber = 1;
this.params.pageSize = val;
this.getList()
},
changeIndex (index) {
console.log(index);
},
evaluate (id) {
evaluateDetail (id) { //
this.$router.push({path: '/home/evalDetail', query: { id }})
}
}

View File

@ -141,23 +141,23 @@ export default {
}
},
methods: {
getDetail () {
getDetail () { //
getComplainDetail(this.$route.query.id).then(res => {
if (res.success) this.detail = res.result
})
},
goGoodsDetail (skuId, goodsId) {
goGoodsDetail (skuId, goodsId) { //
let routerUrl = this.$router.resolve({
path: '/goodsDetail',
query: {skuId, goodsId}
})
window.open(routerUrl.href, '_blank')
},
handleView (name) {
handleView (name) { //
this.previewImage = name;
this.visible = true;
},
//
//
handleSubmit () {
if (this.params.content === '') {
this.$Message.error('请填写对话内容');

View File

@ -18,7 +18,7 @@
<div class="title order-item-title">
<span>投诉单号:{{item.id}}</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>
</div>
<Row class="order-item-view">
@ -93,7 +93,7 @@ export default {
this.getList()
},
methods: {
getList () {
getList () { //
complainList(this.params).then(res => {
if (res.success) {
const list = res.result.records;
@ -102,16 +102,16 @@ export default {
}
})
},
changePageNum (val) {
changePageNum (val) { //
this.params.pageNumber = val;
this.getList()
},
changePageSize (val) {
changePageSize (val) { //
this.pageNumber = 1;
this.params.pageSize = val;
this.getList()
},
cancel (id) {
cancel (id) { //
this.$Modal.confirm({
title: '取消投诉',
content: '<p>确定取消投诉吗?</p>',
@ -126,7 +126,7 @@ export default {
onCancel: () => { }
});
},
detail (id) {
goDetail (id) { //
this.$router.push({path: '/home/complainDetail', query: { id }})
}
}

View File

@ -213,7 +213,7 @@ export default {
this.distribution()
},
methods: {
apply () {
apply () { //
this.$refs.form.validate(valid => {
if (valid) {
this.applyLoading = true
@ -239,10 +239,10 @@ export default {
}
})
},
qrcodeData (data64) {
qrcodeData (data64) { // base64
this.base64Img = data64
},
downloadQrcode () {
downloadQrcode () { //
let a = document.createElement('a'); // a
let event = new MouseEvent('click'); //
a.download = this.goodsNameCurr || 'photo'
@ -265,11 +265,11 @@ export default {
this.getLog()
}
},
changePage (val) {
changePage (val) { //
this.params.pageNumber = val;
this.getGoodsData()
},
changePageLog (val) {
changePageLog (val) { //
this.logParams.pageNumber = val;
this.getLog()
},

View File

@ -68,19 +68,19 @@ export default {
};
},
methods: {
getList () {
getList () { //
this.spinShow = true
collectList(this.params).then(res => {
this.spinShow = false
if (res.success) this.list = res.result.records;
})
},
change (index) {
change (index) { // tab
if (index === 0) { this.params.type = 'GOODS' }
if (index === 1) { this.params.type = 'SHOP' }
this.getList()
},
cancel (id) {
cancel (id) { //
let typeName = this.params.type === 'GOODS' ? '商品' : '店铺'
this.$Modal.confirm({
title: 'Title',
@ -94,23 +94,23 @@ export default {
}
});
},
changePageNum (val) {
changePageNum (val) { //
this.params.pageNumber = val;
this.getList()
},
changePageSize (val) {
changePageSize (val) { //
this.pageNumber = 1;
this.params.pageSize = val;
this.getList()
},
buynow (skuId, goodsId) {
buynow (skuId, goodsId) { //
let url = this.$router.resolve({
path: '/goodsDetail',
query: {skuId, goodsId}
})
window.open(url.href, '_blank')
},
goShop (id) {
goShop (id) { //
let url = this.$router.resolve({
path: '/merchant',
query: {id}

View File

@ -78,12 +78,12 @@ export default {
this.getList()
},
methods: {
getList () {
getList () { //
receiptList().then(res => {
this.list = res.result.records;
})
},
save () {
save () { //
this.$refs.form.validate((valid) => {
if (valid) {
this.loading = true;
@ -105,7 +105,7 @@ export default {
}
});
},
resetData () {
resetData () { //
this.$refs.form.resetFields();
}
}

View File

@ -88,7 +88,7 @@ export default {
}
},
methods: {
getOrderDetail () {
getOrderDetail () { //
orderDetail(this.$route.query.sn).then(res => {
this.order = res.result
this.orderGoods = res.result.orderItems[this.$route.query.index]
@ -96,7 +96,7 @@ export default {
this.orderGoods.uploadList = []
})
},
save () {
save () { //
if (!this.form.serviceScore || !this.form.deliveryScore) {
this.$Message.warning('物流服务评价不能为空')
return false;
@ -129,26 +129,26 @@ export default {
this.loading = false;
})
},
goGoodsDetail (skuId, goodsId) {
goGoodsDetail (skuId, goodsId) { //
let routerUrl = this.$router.resolve({
path: '/goodsDetail',
query: {skuId, goodsId}
})
window.open(routerUrl.href, '_blank')
},
handleView (name) {
handleView (name) { //
this.previewImage = name;
this.visible = true;
},
handleRemove (index) {
handleRemove (index) { //
this.orderGoods.uploadList.splice(index, 1)
this.$forceUpdate()
},
handleSuccess (res, file) {
handleSuccess (res, file) { //
this.orderGoods.uploadList.push(res.result)
this.$forceUpdate()
},
handleBeforeUpload () {
handleBeforeUpload () { //
const check = this.orderGoods.uploadList.length < 10;
if (!check) {
this.$Notice.warning({

View File

@ -65,19 +65,19 @@ export default {
}
},
methods: {
getDetail () {
getDetail () { //
evaluationDetail(this.$route.query.id).then(res => {
if (res.success) this.orderGoods = res.result
})
},
goGoodsDetail (skuId, goodsId) {
goGoodsDetail (skuId, goodsId) { //
let routerUrl = this.$router.resolve({
path: '/goodsDetail',
query: {skuId, goodsId}
})
window.open(routerUrl.href, '_blank')
},
handleView (name) {
handleView (name) { //
this.previewImage = name;
this.visible = true;
}

View File

@ -61,7 +61,7 @@
</p>
<template v-if="!$route.query.id">
<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"
>{{ item.goodsName || item.id }}
</Option>