diff --git a/api/product.js b/api/product.js index 547c66e..8bfa886 100644 --- a/api/product.js +++ b/api/product.js @@ -17,14 +17,14 @@ export const getProductDetailsAPI = (data) => request.get('micro/product_details /** *商品列表 */ -export const spuInfo = (id,data) => request.get('product/spu/street/'+id, data) +export const spuInfo = (id, data) => request.get('product/spu/street/' + id, data) /** * 线下导入 */ -export function postImport(merid,data) { - return request.post(`server/${merid}/product/stockIn`, data); +export function postImport(merid, data) { + return request.post(`server/${merid}/product/stockIn`, data); } /** * 获取商户基本信息 http://127.0.0.1:8324/api/store/merchant/info?id=4 @@ -38,20 +38,26 @@ export const merchantUpdateAPI = (data) => request.post('store/merchant/update', * 商品列表 */ export function productLstApi(merId, data) { - return request.get(`server/${merId}/product/lst`, data, { login: true }); + return request.get(`server/${merId}/product/lst`, data, { + login: true + }); } /** * 商品列表 -- 删除 */ export function productDeleteApi(merId, id) { - return request.post(`server/${merId}/product/delete/${id}`, {}, { login: true }); + return request.post(`server/${merId}/product/delete/${id}`, {}, { + login: true + }); } /** * 商品列表 -- 上下架 */ export function productOffApi(merId, id, data) { - return request.post(`server/${merId}/product/status/${id}`, data, { login: true }); + return request.post(`server/${merId}/product/status/${id}`, data, { + login: true + }); } /* @@ -59,7 +65,9 @@ export function productOffApi(merId, id, data) { */ export function productTitle(merId, data) { - return request.get(`server/${merId}/product/title`, data, { login: true }); + return request.get(`server/${merId}/product/title`, data, { + login: true + }); } /* @@ -67,7 +75,9 @@ export function productTitle(merId, data) { */ export function productDestory(merId, id, data) { - return request.post(`server/${merId}/product/destory/${id}`, data, { login: true }); + return request.post(`server/${merId}/product/destory/${id}`, data, { + login: true + }); } /* @@ -75,7 +85,9 @@ export function productDestory(merId, id, data) { */ export function productRestore(merId, id) { - return request.post(`server/${merId}/product/restore/${id}`, {}, { login: true }); + return request.post(`server/${merId}/product/restore/${id}`, {}, { + login: true + }); } /* @@ -83,7 +95,9 @@ export function productRestore(merId, id) { */ export function categoryBrandlist(merId) { - return request.get(`server/${merId}/category/brandlist`, {}, { login: true }); + return request.get(`server/${merId}/category/brandlist`, {}, { + login: true + }); } /* @@ -91,7 +105,9 @@ export function categoryBrandlist(merId) { */ export function categorySelect(merId) { - return request.get(`server/${merId}/category/select`, {}, { login: true }) + return request.get(`server/${merId}/category/select`, {}, { + login: true + }) } /* @@ -99,7 +115,9 @@ export function categorySelect(merId) { */ export function categoryList(merId) { - return request.get(`server/${merId}/category/list`, {}, { login: true }) + return request.get(`server/${merId}/category/list`, {}, { + login: true + }) } /* @@ -107,13 +125,17 @@ export function categoryList(merId) { */ export function productCreate(merId, data) { - return request.post(`server/${merId}/product/create`, data, { login: true }) + return request.post(`server/${merId}/product/create`, data, { + login: true + }) } /** * 商品列表 -- 设置推荐 */ export function productRecommendApi(merId, id, data) { - return request.post(`server/${merId}/product/good/${id}`, data, { login: true }); + return request.post(`server/${merId}/product/good/${id}`, data, { + login: true + }); } /* @@ -121,119 +143,181 @@ export function productRecommendApi(merId, id, data) { */ export function attrList(merId, data) { - return request.get(`server/${merId}/attr/lst`, data, { login: true }) + return request.get(`server/${merId}/attr/lst`, data, { + login: true + }) } /* 请求运费模板 */ export function templateList(merId, data) { - return request.get(`server/${merId}/template/lst`, data, { login: true }) + return request.get(`server/${merId}/template/lst`, data, { + login: true + }) } /* 运费模板 -- 删除 */ export function templateDelete(merId, data) { - return request.post(`server/${merId}/template/delete`, data, { login: true }) + return request.post(`server/${merId}/template/delete`, data, { + login: true + }) } /** * 运费模板 -- 详情 */ export function templateDetail(merId, id) { - return request.get(`server/${merId}/template/detail/${id}`, {}, { login: true }); + return request.get(`server/${merId}/template/detail/${id}`, {}, { + login: true + }); } /* 运费模板 -- 添加 */ export function templateCreate(merId, data) { - return request.post(`server/${merId}/template/create`, data, { login: true }); + return request.post(`server/${merId}/template/create`, data, { + login: true + }); } /* 运费模板 -- 编辑 */ export function templateUpdate(merId, id, data) { - return request.post(`server/${merId}/template/update/${id}`, data, { login: true }); + return request.post(`server/${merId}/template/update/${id}`, data, { + login: true + }); } /** * 店铺分类 -- 列表 */ export function storeClassifyLst(merId) { - return request.get(`server/${merId}/category/lst`, {}, { login: true }); + return request.get(`server/${merId}/category/lst`, {}, { + login: true + }); } /** * 店铺分类 -- 列表(删除) */ export function storeClassifyDel(merId, id) { - return request.post(`server/${merId}/category/delete/${id}`, {}, { login: true }); + return request.post(`server/${merId}/category/delete/${id}`, {}, { + login: true + }); } /** * 上级分类 -- 商户列表 */ export function merClassifyLst(merId) { - return request.get(`server/${merId}/category/select`, {}, { login: true }); + return request.get(`server/${merId}/category/select`, {}, { + login: true + }); } /** * 店铺分类 -- 添加 */ export function merClassifyAdd(merId, data) { - return request.post(`server/${merId}/category/create`, data, { login: true }); + return request.post(`server/${merId}/category/create`, data, { + login: true + }); } /** * 店铺分类 -- 详情 */ export function merClassifyDetail(merId, id) { - return request.get(`server/${merId}/category/detail/${id}`, {}, { login: true }); + return request.get(`server/${merId}/category/detail/${id}`, {}, { + login: true + }); } /** * 店铺分类 -- 编辑 */ export function merClassifyUpdate(merId, id, data) { - return request.post(`server/${merId}/category/update/${id}`, data, { login: true }); + return request.post(`server/${merId}/category/update/${id}`, data, { + login: true + }); } /** * 商品规格项目 -- 列表 */ export function specificationLst(merId, data) { - return request.get(`server/${merId}/attr/lst`, data, { login: true }); + return request.get(`server/${merId}/attr/lst`, data, { + login: true + }); } /** * 商品规格项目 -- 删除 */ export function specificationDel(merId, data) { - return request.post(`server/${merId}/attr/delete`, data, { login: true }); + return request.post(`server/${merId}/attr/delete`, data, { + login: true + }); } /** * 商品规格项目 -- 添加 */ export function specificationAdd(merId, data) { - return request.post(`server/${merId}/attr/create`, data, { login: true }); + return request.post(`server/${merId}/attr/create`, data, { + login: true + }); } /** * 商品规格项目 -- 编辑 */ export function specificationUpdate(merId, id, data) { - return request.post(`server/${merId}/attr/update/${id}`, data, { login: true }); + return request.post(`server/${merId}/attr/update/${id}`, data, { + login: true + }); } /** * 商品规格项目 -- 详情 */ export function specificationDetail(merId, id) { - return request.get(`server/${merId}/attr/detail/${id}`, {}, { login: true }); + return request.get(`server/${merId}/attr/detail/${id}`, {}, { + login: true + }); } /* 请求商品详情 */ export function productDetail(merId, id) { - return request.get(`server/${merId}/product/detail/${id}`, {}, { login: true }); + return request.get(`server/${merId}/product/detail/${id}`, {}, { + login: true + }); } /* 编辑商品 */ export function productUpdate(merId, id, data) { - return request.post(`server/${merId}/product/update/${id}`, data, { login: true }); + return request.post(`server/${merId}/product/update/${id}`, data, { + login: true + }); } /* 添加商品 -- 获取送货方式信息 */ export function getDeliveryType(merId) { - return request.get(`server/${merId}/product/config`, {}, { login: true }); + return request.get(`server/${merId}/product/config`, {}, { + login: true + }); +} + +/* + 商品 -- 获取交易协议内容 +*/ +export function business() { + return request.get(`business/agree?type=business_apply_agree`, {}, { + noAuth: true + }); +} +/* + 商品 -- 获取交易申请记录 +*/ +export function intention(data) { + return request.get(`intention/lst`, data); +} + +/* + 商品 -- 同意提交申请 +*/ +export function intentionbus(data) { + return request.post(`intention/business`, {}); } \ No newline at end of file diff --git a/api/store.js b/api/store.js index 1b566c2..399e35a 100644 --- a/api/store.js +++ b/api/store.js @@ -572,4 +572,11 @@ export function supAgoodsApi(data) { // } export function vicinityStoreApi(data) { return request.get(`region/${data}/merchant`); +} + +/* + 商家入驻 -- 获取商户入驻申请协议内容 +*/ +export function agreeiness() { + return request.get(`business/agree?type=sys_intention_agree`, {}, { noAuth: true }); } \ No newline at end of file diff --git a/api/user.js b/api/user.js index 1f1fce7..0009c40 100644 --- a/api/user.js +++ b/api/user.js @@ -719,4 +719,5 @@ export function getBankInfo() { // 商户账单管理 export function getBillDetil() { return request.get(`mer/financial_record`) -} \ No newline at end of file +} + diff --git a/config/app.js b/config/app.js index 5261574..a45360a 100644 --- a/config/app.js +++ b/config/app.js @@ -9,8 +9,8 @@ let httpApiThree // 网络接口修改此字符 小程序域名要求https // let httpApi = 'http://192.168.31.110:8324' // 测试 if (process.env.NODE_ENV === "development") { - httpApi = 'https://shop.lihaink.cn' // 生产 - // httpApi = "https://crmeb-test.shop.lihaink.cn" + // httpApi = 'https://shop.lihaink.cn' // 生产 + httpApi = "https://crmeb-test.shop.lihaink.cn" // httpApi = "http://192.168.0.222" // httpApi = "http://192.168.0.108:8325" // httpApi = 'http://192.168.0.108:8325' @@ -22,11 +22,11 @@ if (process.env.NODE_ENV === "development") { // httpApiTwo = "baseUrl" // h5跨域配置 httpApiTwo = "https://nk.lihaink.cn" // h5跨域配置 // httpApiThree = 'baseUrlTest' // h5跨域配置 + // #endif } else if (process.env.NODE_ENV === 'production') { - httpApi = 'https://shop.lihaink.cn' // 生产 - - // httpApi = "https://crmeb-test.shop.lihaink.cn" + // httpApi = 'https://shop.lihaink.cn' // 生产 + httpApi = "https://crmeb-test.shop.lihaink.cn" httpApiTwo = 'https://nk.lihaink.cn' // 生产 httpApiThree = 'http://ceshi-oa.lihaink.cn' //生产 } diff --git a/manifest.json b/manifest.json index 0712ed8..da3dd97 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "惠农生活", "appid" : "__UNI__3A527D1", "description" : "", - "versionName" : "1.3.8", - "versionCode" : 138, + "versionName" : "1.3.9", + "versionCode" : 139, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages.json b/pages.json index dfca1ac..5b6a41a 100644 --- a/pages.json +++ b/pages.json @@ -1123,6 +1123,18 @@ "navigationBarTitleText": "商品管理", "enablePullDownRefresh": true } + },{ + "path": "transactionApplication/index", + "style": { + "navigationBarTitleText": "交易申请", + "enablePullDownRefresh": true + } + },{ + "path": "transactionApplication/application", + "style": { + "navigationBarTitleText": "申请记录", + "enablePullDownRefresh": true + } }, { "path": "goodsOnSale/index", diff --git a/pages/guide/guide.vue b/pages/guide/guide.vue index 24e0323..63cdbba 100644 --- a/pages/guide/guide.vue +++ b/pages/guide/guide.vue @@ -66,7 +66,7 @@ }, mounted() { -this.countDown() + this.countDown() }, methods: { @@ -74,7 +74,7 @@ this.countDown() let { num } = this; - if (num === 3) this.nums = true; + // if (num === 3) this.nums = true; num = num > 0 ? num - 1 : "GO"; setTimeout(() => { this.num = num; diff --git a/pages/moreProject/moreProject.vue b/pages/moreProject/moreProject.vue index 7168af5..dc28772 100644 --- a/pages/moreProject/moreProject.vue +++ b/pages/moreProject/moreProject.vue @@ -1,7 +1,7 @@