Skip to content

Commit

Permalink
Adaptive English
Browse files Browse the repository at this point in the history
  • Loading branch information
javashop committed Apr 14, 2022
1 parent b69beaf commit d7e88e2
Show file tree
Hide file tree
Showing 123 changed files with 1,813 additions and 1,814 deletions.
18 changes: 9 additions & 9 deletions api/address.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* 收货地址相关API
* The receiving address is relevantAPI
*/

import request, { Method } from '@/utils/request'

/**
* 获取收货地址列表
* Get a list of shipping addresses
* @returns {AxiosPromise}
*/
export function getAddressList() {
Expand All @@ -17,8 +17,8 @@ export function getAddressList() {
}

/**
* 添加收货地址
* @param params 地址参数
* Add a shipping address
* @param params Address parameter
* @returns {AxiosPromise}
*/
export function addAddress(params) {
Expand All @@ -31,9 +31,9 @@ export function addAddress(params) {
}

/**
* 编辑地址
* @param id 地址ID
* @param params 地址参数
* Edit the address
* @param id addressID
* @param params Address parameter
* @returns {AxiosPromise}
*/
export function editAddress(id, params) {
Expand All @@ -46,7 +46,7 @@ export function editAddress(id, params) {
}

/**
* 删除收货地址
* Delete the shipping address
* @param id
*/
export function deleteAddress(id) {
Expand All @@ -58,7 +58,7 @@ export function deleteAddress(id) {
}

/**
* 设置默认地址
* Setting the Default address
* @param id
*/
export function setDefaultAddress(id) {
Expand Down
16 changes: 8 additions & 8 deletions api/after-sale.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* 申请售后相关API
* Application for after-sale relatedAPI
*/

import request, { Method } from '@/utils/request'

/**
* 获取售后列表
* Get after-sale list
* @param params
* @returns {AxiosPromise}
*/
Expand All @@ -19,7 +19,7 @@ export function getAfterSale(params) {
}

/**
* 获取售后申请数据
* Obtain after-sales application data
* @param order_sn
* @param sku_id
*/
Expand All @@ -33,8 +33,8 @@ export function getAfterSaleData(order_sn, sku_id) {
}

/**
* 获取售后详情
* @param sn 订单编号
* Obtain after-sale details
* @param sn Order no.
* @returns {AxiosPromise}
*/
export function getAfterSaleDetail(sn) {
Expand All @@ -46,7 +46,7 @@ export function getAfterSaleDetail(sn) {
}

/**
* 申请退款
* To apply for a refund
* @param params
*/
export function applyAfterSaleMoney(params) {
Expand All @@ -59,7 +59,7 @@ export function applyAfterSaleMoney(params) {
}

/**
* 申请退货
* To apply for a refund
* @param params
*/
export function applyAfterSaleGoods(params) {
Expand All @@ -72,7 +72,7 @@ export function applyAfterSaleGoods(params) {
}

/**
* 申请取消订单
* Application for Cancellation of order
* @param params
*/
export function applyAfterSaleCancel(params) {
Expand Down
12 changes: 6 additions & 6 deletions api/article.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* Created by Andste on 2018/7/3.
* 文章相关API
* The article relatedAPI
*/

import request, { Method } from '@/utils/request'
import { api } from '@/ui-domain'

/**
* 获取某个分类的文章列表
* Gets a list of articles for a category
* @param category_type
*/
export function getArticleCategory(category_type) {
Expand All @@ -19,7 +19,7 @@ export function getArticleCategory(category_type) {
}

/**
* 获取文章详情
* Get article details
* @param id
*/
export function getArticleDetail(id) {
Expand All @@ -30,7 +30,7 @@ export function getArticleDetail(id) {
}

/**
* 获取某个位置的文章列表
* Gets a list of articles at a location
* @param position
*/
export function getArticlesByPosition(position) {
Expand All @@ -41,7 +41,7 @@ export function getArticlesByPosition(position) {
}

/**
* 获取某个位置的文章
* Gets the article at a location
* @param position
*/
export function getArticleByPosition(position) {
Expand All @@ -52,7 +52,7 @@ export function getArticleByPosition(position) {
}

/**
* 获取某个分类下的文章列表
* Gets a list of articles under a category
* @param category_type
*/
export function getArticlesByCategory(category_type) {
Expand Down
12 changes: 6 additions & 6 deletions api/common.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* 公共API
* publicAPI
*/

import request, { Method } from '@/utils/request'
import Storage from '@/utils/storage'
import { api } from '@/ui-domain'

/**
* 获取图片验证码URL
* Get the image captchaURL
* @param uuid
* @param type
* @returns {string}
Expand All @@ -18,7 +18,7 @@ export function getValidateCodeUrl(uuid, type) {
}

/**
* 获取站点设置
* Get site Settings
*/
export function getSiteData() {
return request({
Expand All @@ -28,7 +28,7 @@ export function getSiteData() {
}

/**
* 记录浏览量【用于统计
* Record page Views【For statistical
*/
export function recordViews(url) {
return request({
Expand All @@ -43,8 +43,8 @@ export function recordViews(url) {
}

/**
* 获取设置信息
* 主要是QQ号
* Get setting Information
* mainlyQQNo.
* @returns {*}
*/
export function getSettingsInfo() {
Expand Down
16 changes: 8 additions & 8 deletions api/connect.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* Created by Andste on 2018/7/2.
* 信任登录相关API
* Trusted login correlationAPI
*/

import request, { Method } from '@/utils/request'
import { api } from '@/ui-domain'
import md5 from 'js-md5'

/**
* 获取第三方登录url
* Obtaining third-party Loginurl
* @param client_type
* @param login_type
* @returns {string}
Expand All @@ -18,7 +18,7 @@ export function getConnectUrl(client_type, login_type) {
}

/**
* 获取个人中心绑定url
* Get the personal center bindingurl
* @param login_type
* @returns {string}
*/
Expand All @@ -31,7 +31,7 @@ export function getLogindConnectUrl(login_type) {
}

/**
* 第三方登录绑定
* Third-party Login Binding
* @param uuid
* @param params
*/
Expand All @@ -45,7 +45,7 @@ export function loginByConnect(uuid, params) {
}

/**
* 登录绑定openid
* Log on to the bindingopenid
* @param uuid
*/
export function loginBindConnect(uuid) {
Expand All @@ -57,7 +57,7 @@ export function loginBindConnect(uuid) {
}

/**
* 注册绑定openid
* Registered bindingopenid
* @param uuid
*/
export function registerBindConnect(uuid) {
Expand All @@ -69,7 +69,7 @@ export function registerBindConnect(uuid) {
}

/**
* 获取绑定列表
* Getting the binding list
*/
export function getConnectList() {
return request({
Expand All @@ -80,7 +80,7 @@ export function getConnectList() {
}

/**
* 解绑
* unbundling
* @param type
*/
export function unbindConnect(type) {
Expand Down
Loading

0 comments on commit d7e88e2

Please sign in to comment.