添加注释
							parent
							
								
									f97282ad44
								
							
						
					
					
						commit
						4ef8287802
					
				| 
						 | 
				
			
			@ -99,7 +99,7 @@ export default {
 | 
			
		|||
        againPassword: '',
 | 
			
		||||
        newPassword: ''
 | 
			
		||||
      },
 | 
			
		||||
      ruleInLines: {
 | 
			
		||||
      ruleInLines: { // 验证规则
 | 
			
		||||
        picture: [
 | 
			
		||||
          {required: true, message: '请输入图片验证码', trigger: 'blur'}
 | 
			
		||||
        ],
 | 
			
		||||
| 
						 | 
				
			
			@ -107,7 +107,7 @@ export default {
 | 
			
		|||
          {required: true, message: '请输入短信验证码', trigger: 'blur'}
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      ruleIn: {
 | 
			
		||||
      ruleIn: { // 验证规则
 | 
			
		||||
        newPassword: [
 | 
			
		||||
          {required: true, message: '请输入新密码', trigger: 'blur'},
 | 
			
		||||
          {type: 'string', min: 6, message: '密码不能少于6位'}
 | 
			
		||||
| 
						 | 
				
			
			@ -117,7 +117,7 @@ export default {
 | 
			
		|||
          {type: 'string', min: 6, message: '密码不能少于6位'}
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      ruleInline: {
 | 
			
		||||
      ruleInline: { // 验证规则
 | 
			
		||||
        password: [
 | 
			
		||||
          {required: true, message: '请输入旧密码', trigger: 'blur'}
 | 
			
		||||
        ],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -63,7 +63,7 @@ export default {
 | 
			
		|||
    this.getPoint()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    getHistory () {
 | 
			
		||||
    getHistory () { // 获取积分历史
 | 
			
		||||
      memberPointHistory(this.params).then(res => {
 | 
			
		||||
        this.logData = res.result;
 | 
			
		||||
      })
 | 
			
		||||
| 
						 | 
				
			
			@ -73,11 +73,11 @@ export default {
 | 
			
		|||
        if (res.success) this.pointObj = res.result
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    changePage (val) {
 | 
			
		||||
    changePage (val) { // 修改页码
 | 
			
		||||
      this.pageNumber = val
 | 
			
		||||
      this.getHistory()
 | 
			
		||||
    },
 | 
			
		||||
    changePageSize (val) {
 | 
			
		||||
    changePageSize (val) { // 修改页数
 | 
			
		||||
      this.param.pageSize = val
 | 
			
		||||
      this.params.pageNumber = 1
 | 
			
		||||
      this.getHistory()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,7 +8,6 @@
 | 
			
		|||
        <Upload
 | 
			
		||||
          :show-upload-list="false"
 | 
			
		||||
          :on-success="handleSuccess"
 | 
			
		||||
          :before-upload="handleBeforeUpload"
 | 
			
		||||
          :format="['jpg','jpeg','png']"
 | 
			
		||||
          :action="action"
 | 
			
		||||
          :headers="accessToken"
 | 
			
		||||
| 
						 | 
				
			
			@ -58,7 +57,7 @@ export default {
 | 
			
		|||
    this.accessToken.accessToken = storage.getItem('accessToken');
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    save () {
 | 
			
		||||
    save () { // 保存
 | 
			
		||||
      this.$refs.form.validate(valid => {
 | 
			
		||||
        if (valid) {
 | 
			
		||||
          let params = {
 | 
			
		||||
| 
						 | 
				
			
			@ -76,10 +75,9 @@ export default {
 | 
			
		|||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    handleSuccess (res, file) {
 | 
			
		||||
    handleSuccess (res, file) { // 上传成功
 | 
			
		||||
      this.$set(this.formItem, 'face', res.result)
 | 
			
		||||
    },
 | 
			
		||||
    handleBeforeUpload () {}
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -79,7 +79,7 @@ export default {
 | 
			
		|||
    };
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    save () {
 | 
			
		||||
    save () { // 保存地址
 | 
			
		||||
      this.$refs.form.validate((valid) => {
 | 
			
		||||
        if (valid) {
 | 
			
		||||
          const params = JSON.parse(JSON.stringify(this.formData));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -133,7 +133,7 @@ export default {
 | 
			
		|||
      });
 | 
			
		||||
      window.open(routeUrl.href, '_blank');
 | 
			
		||||
    },
 | 
			
		||||
    getList () {
 | 
			
		||||
    getList () { // 获取售后列表
 | 
			
		||||
      this.spinShow = true;
 | 
			
		||||
      let params = JSON.parse(JSON.stringify(this.params))
 | 
			
		||||
      afterSaleList(params).then(res => {
 | 
			
		||||
| 
						 | 
				
			
			@ -144,11 +144,11 @@ 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()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -75,7 +75,7 @@ export default {
 | 
			
		|||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    getLog () {
 | 
			
		||||
    getLog () { // 获取售后日志
 | 
			
		||||
      afterSaleLog(this.$route.query.sn).then(res => {
 | 
			
		||||
        this.logList = res.result;
 | 
			
		||||
      })
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -139,7 +139,7 @@ export default {
 | 
			
		|||
    }
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    getInfo () {
 | 
			
		||||
    getInfo () { // 获取售后信息
 | 
			
		||||
      afterSaleInfo(this.$route.query.sn).then(res => {
 | 
			
		||||
        if (res.success) {
 | 
			
		||||
          this.info = res.result
 | 
			
		||||
| 
						 | 
				
			
			@ -147,15 +147,15 @@ export default {
 | 
			
		|||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    getReason (type) {
 | 
			
		||||
    getReason (type) { // 获取售后原因
 | 
			
		||||
      afterSaleReason(type).then(res => {
 | 
			
		||||
        if (res.success) this.reasonList = res.result
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    changeReason (type) {
 | 
			
		||||
    changeReason (type) { // 改变售后原因列表
 | 
			
		||||
      this.getReason(type)
 | 
			
		||||
    },
 | 
			
		||||
    apply () {
 | 
			
		||||
    apply () { // 售后申请提交
 | 
			
		||||
      this.$refs.form.validate(valid => {
 | 
			
		||||
        if (valid) {
 | 
			
		||||
          let params = Object.assign(this.info, this.form)
 | 
			
		||||
| 
						 | 
				
			
			@ -170,19 +170,19 @@ export default {
 | 
			
		|||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    handleView (name) {
 | 
			
		||||
    handleView (name) { // 预览图片
 | 
			
		||||
      this.previewImage = name;
 | 
			
		||||
      this.visible = true;
 | 
			
		||||
    },
 | 
			
		||||
    handleRemove (index) {
 | 
			
		||||
    handleRemove (index) { // 移除图片
 | 
			
		||||
      this.uploadList.splice(index, 1)
 | 
			
		||||
      this.$forceUpdate()
 | 
			
		||||
    },
 | 
			
		||||
    handleSuccess (res, file) {
 | 
			
		||||
    handleSuccess (res, file) { // 上传成功回调
 | 
			
		||||
      this.uploadList.push(res.result)
 | 
			
		||||
      this.$forceUpdate()
 | 
			
		||||
    },
 | 
			
		||||
    handleBeforeUpload () {
 | 
			
		||||
    handleBeforeUpload () { // 上传之前钩子函数
 | 
			
		||||
      const check = this.uploadList.length < 6;
 | 
			
		||||
      if (!check) {
 | 
			
		||||
        this.$Notice.warning({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -78,7 +78,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]
 | 
			
		||||
| 
						 | 
				
			
			@ -92,7 +92,7 @@ export default {
 | 
			
		|||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    save () {
 | 
			
		||||
    save () { // 提交投诉信息
 | 
			
		||||
      let params = {
 | 
			
		||||
        goodsId: this.orderGoods.goodsId,
 | 
			
		||||
        complainTopic: this.form.complainTopic,
 | 
			
		||||
| 
						 | 
				
			
			@ -108,26 +108,26 @@ export default {
 | 
			
		|||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    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 < 6;
 | 
			
		||||
      if (!check) {
 | 
			
		||||
        this.$Notice.warning({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -240,7 +240,7 @@ export default {
 | 
			
		|||
    complainResult (sn) { // 投诉结果
 | 
			
		||||
 | 
			
		||||
    },
 | 
			
		||||
    delOrder (sn) {
 | 
			
		||||
    delOrder (sn) { // 删除订单
 | 
			
		||||
      this.$Modal.confirm({
 | 
			
		||||
        title: '删除订单',
 | 
			
		||||
        content: '<p>确认删除当前订单吗?</p>',
 | 
			
		||||
| 
						 | 
				
			
			@ -255,7 +255,7 @@ export default {
 | 
			
		|||
        onCancel: () => {}
 | 
			
		||||
      });
 | 
			
		||||
    },
 | 
			
		||||
    getList () {
 | 
			
		||||
    getList () { // 获取订单列表
 | 
			
		||||
      this.spinShow = true;
 | 
			
		||||
      let params = JSON.parse(JSON.stringify(this.params))
 | 
			
		||||
      if (params.orderStatus === 'ALL') {
 | 
			
		||||
| 
						 | 
				
			
			@ -269,11 +269,11 @@ 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()
 | 
			
		||||
| 
						 | 
				
			
			@ -289,7 +289,7 @@ export default {
 | 
			
		|||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    sureCancel () {
 | 
			
		||||
    sureCancel () { // 确定取消
 | 
			
		||||
      cancelOrder(this.cancelParams).then(res => {
 | 
			
		||||
        if (res.success) {
 | 
			
		||||
          this.$Message.success('取消订单成功')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -128,7 +128,7 @@ export default {
 | 
			
		|||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    traces () {
 | 
			
		||||
    traces () { // 物流信息
 | 
			
		||||
      getTraces(this.$route.query.sn).then(res => {
 | 
			
		||||
        if (res.success) {
 | 
			
		||||
          this.logistics = res.result
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue