添加注释

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: { 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)
} }
}, },

View File

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

View File

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

View File

@ -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;

View File

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

View File

@ -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) => {

View File

@ -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 () {
// idid
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)

View File

@ -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;
}); });

View File

@ -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;
// //

View File

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

View File

@ -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 }})
}, },
// //

View File

@ -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 }})
} }
} }

View File

@ -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('请填写对话内容');

View File

@ -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 }})
} }
} }

View File

@ -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()
}, },

View File

@ -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}

View File

@ -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();
} }
} }

View File

@ -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({

View File

@ -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;
} }

View File

@ -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>