Merge branch 'old' of https://gitea.lihaink.cn/mkm/nk-shop2.0 into wpf
1
App.vue
@ -85,7 +85,6 @@
|
|||||||
}, 6000)
|
}, 6000)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
//初始化uniMP小程序发送的事件以及其他操作
|
//初始化uniMP小程序发送的事件以及其他操作
|
||||||
initEvent();
|
initEvent();
|
||||||
|
146
api/product.js
@ -38,20 +38,26 @@ export const merchantUpdateAPI = (data) => request.post('store/merchant/update',
|
|||||||
* 商品列表
|
* 商品列表
|
||||||
*/
|
*/
|
||||||
export function productLstApi(merId, data) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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`, {});
|
||||||
}
|
}
|
@ -573,3 +573,10 @@ export function supAgoodsApi(data) {
|
|||||||
export function vicinityStoreApi(data) {
|
export function vicinityStoreApi(data) {
|
||||||
return request.get(`region/${data}/merchant`);
|
return request.get(`region/${data}/merchant`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
商家入驻 -- 获取商户入驻申请协议内容
|
||||||
|
*/
|
||||||
|
export function agreeiness() {
|
||||||
|
return request.get(`business/agree?type=sys_intention_agree`, {}, { noAuth: true });
|
||||||
|
}
|
@ -720,3 +720,4 @@ export function getBankInfo() {
|
|||||||
export function getBillDetil() {
|
export function getBillDetil() {
|
||||||
return request.get(`mer/financial_record`)
|
return request.get(`mer/financial_record`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,14 +65,14 @@
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
location_Arr: {
|
// location_Arr: {
|
||||||
type: Object,
|
// type: Object,
|
||||||
default: () => ({})
|
// default: () => ({})
|
||||||
},
|
// },
|
||||||
town: {
|
// town: {
|
||||||
type: String,
|
// type: String,
|
||||||
default: false
|
// default: false
|
||||||
},
|
// },
|
||||||
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -9,8 +9,8 @@ let httpApiThree
|
|||||||
// 网络接口修改此字符 小程序域名要求https
|
// 网络接口修改此字符 小程序域名要求https
|
||||||
// let httpApi = 'http://192.168.31.110:8324' // 测试
|
// let httpApi = 'http://192.168.31.110:8324' // 测试
|
||||||
if (process.env.NODE_ENV === "development") {
|
if (process.env.NODE_ENV === "development") {
|
||||||
httpApi = 'https://shop.lihaink.cn' // 生产
|
// httpApi = 'https://shop.lihaink.cn' // 生产
|
||||||
// httpApi = "https://crmeb-test.shop.lihaink.cn"
|
httpApi = "https://crmeb-test.shop.lihaink.cn"
|
||||||
// httpApi = "http://192.168.0.222"
|
// httpApi = "http://192.168.0.222"
|
||||||
// httpApi = "http://192.168.0.108:8325"
|
// httpApi = "http://192.168.0.108:8325"
|
||||||
// httpApi = 'http://192.168.0.108:8325'
|
// httpApi = 'http://192.168.0.108:8325'
|
||||||
@ -22,6 +22,7 @@ if (process.env.NODE_ENV === "development") {
|
|||||||
// httpApiTwo = "baseUrl" // h5跨域配置
|
// httpApiTwo = "baseUrl" // h5跨域配置
|
||||||
httpApiTwo = "https://nk.lihaink.cn" // h5跨域配置
|
httpApiTwo = "https://nk.lihaink.cn" // h5跨域配置
|
||||||
// httpApiThree = 'baseUrlTest' // h5跨域配置
|
// httpApiThree = 'baseUrlTest' // h5跨域配置
|
||||||
|
|
||||||
// #endif
|
// #endif
|
||||||
} else if (process.env.NODE_ENV === 'production') {
|
} else if (process.env.NODE_ENV === 'production') {
|
||||||
httpApi = 'https://shop.lihaink.cn' // 生产
|
httpApi = 'https://shop.lihaink.cn' // 生产
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
"name" : "惠农生活",
|
"name" : "惠农生活",
|
||||||
"appid" : "__UNI__3A527D1",
|
"appid" : "__UNI__3A527D1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.3.8",
|
"versionName" : "1.4.1",
|
||||||
"versionCode" : 138,
|
"versionCode" : 141,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
15
pages.json
@ -128,8 +128,7 @@
|
|||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}, {
|
||||||
,{
|
|
||||||
"path": "uni_modules/guyue-updater/pages/updater",
|
"path": "uni_modules/guyue-updater/pages/updater",
|
||||||
"style": {
|
"style": {
|
||||||
"app-plus": {
|
"app-plus": {
|
||||||
@ -1123,6 +1122,18 @@
|
|||||||
"navigationBarTitleText": "商品管理",
|
"navigationBarTitleText": "商品管理",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
},{
|
||||||
|
"path": "transactionApplication/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "交易申请",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"path": "transactionApplication/application",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "申请记录",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "goodsOnSale/index",
|
"path": "goodsOnSale/index",
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<zbpSwiper :isSelectPlace="true" :location_Arr="locationArr" :town="street" @kkchange="kkchange"></zbpSwiper>
|
<zbpSwiper :isSelectPlace="true" :location_Arr="locationArr" :town="street" ></zbpSwiper>
|
||||||
<u-empty :show="jurisdiction" mode="permission" :text="emptyText"
|
<u-empty :show="jurisdiction" mode="permission" :text="emptyText"
|
||||||
icon="http://cdn.uviewui.com/uview/empty/permission.png"></u-empty>
|
icon="http://cdn.uviewui.com/uview/empty/permission.png"></u-empty>
|
||||||
<view class="business com special_work" v-if="jurisdiction == false">
|
<view class="business com special_work" v-if="jurisdiction == false">
|
||||||
@ -73,9 +73,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="" v-if="jurisdiction == false && isShow == false">
|
|
||||||
<emptyPage title="暂无信息"></emptyPage>
|
|
||||||
</view>
|
|
||||||
<u-picker :defaultIndex="[0,0]" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm"
|
<u-picker :defaultIndex="[0,0]" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm"
|
||||||
@cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker>
|
@cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker>
|
||||||
<!-- <m-tabbar native>
|
<!-- <m-tabbar native>
|
||||||
@ -91,7 +89,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import Cache from '@/utils/cache';
|
import Cache from '@/utils/cache';
|
||||||
import mTabbar from '@/components/m-tabbar/m-tabbar.vue'
|
import mTabbar from '@/components/m-tabbar/m-tabbar.vue'
|
||||||
import emptyPage from '@/components/emptyPage.vue';
|
|
||||||
import zbpSwiper from '@/components/zbpSwiper'
|
import zbpSwiper from '@/components/zbpSwiper'
|
||||||
import {
|
import {
|
||||||
getArea,
|
getArea,
|
||||||
@ -127,8 +125,8 @@
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
mTabbar,
|
mTabbar,
|
||||||
zbpSwiper,
|
zbpSwiper
|
||||||
emptyPage
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -143,7 +141,7 @@
|
|||||||
},
|
},
|
||||||
prefix: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/11/',
|
prefix: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/11/',
|
||||||
isShow: false,
|
isShow: false,
|
||||||
bgColor: '',
|
|
||||||
isFshow: false,
|
isFshow: false,
|
||||||
street: '',
|
street: '',
|
||||||
// 编辑中标记
|
// 编辑中标记
|
||||||
@ -166,7 +164,7 @@
|
|||||||
street: '',
|
street: '',
|
||||||
showPicker: false,
|
showPicker: false,
|
||||||
columnData: [],
|
columnData: [],
|
||||||
bgColor: '',
|
|
||||||
isFshow: false,
|
isFshow: false,
|
||||||
backColor: 'rgba(252, 252, 252, 0)'
|
backColor: 'rgba(252, 252, 252, 0)'
|
||||||
};
|
};
|
||||||
@ -293,6 +291,7 @@
|
|||||||
this.getUniMp(data);
|
this.getUniMp(data);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
|
||||||
this.navigator(data);
|
this.navigator(data);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -410,10 +409,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
kkchange(e) {
|
|
||||||
this.bgColor = e
|
|
||||||
},
|
|
||||||
|
|
||||||
navigator(url, t) {
|
navigator(url, t) {
|
||||||
// if (this.userInfoData.is_wsxx === 0 && t != '商户设置') return Toast("请完善商户信息");
|
// if (this.userInfoData.is_wsxx === 0 && t != '商户设置') return Toast("请完善商户信息");
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
@ -74,7 +74,7 @@ this.countDown()
|
|||||||
let {
|
let {
|
||||||
num
|
num
|
||||||
} = this;
|
} = this;
|
||||||
if (num === 3) this.nums = true;
|
// if (num === 3) this.nums = true;
|
||||||
num = num > 0 ? num - 1 : "GO";
|
num = num > 0 ? num - 1 : "GO";
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.num = num;
|
this.num = num;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="gather">
|
<view class="gather">
|
||||||
<block v-if="isShow">
|
<block v-if="isShow&&userInfoData.mer_info.mer_name">
|
||||||
<view class="" v-if="userInfoData.mer_info.setup_status==1">
|
<view class="" v-if="userInfoData.mer_info.business_status==2">
|
||||||
<view class="special_work com" v-if="userInfoData.mer_info.type_code === 'TypeSupplyChain'">
|
<view class="special_work com" v-if="userInfoData.mer_info.type_code === 'TypeSupplyChain'">
|
||||||
<view class="special_work com" v-if="true">
|
<view class="special_work com" v-if="true">
|
||||||
<view class="title">市级供应链</view>
|
<view class="title">市级供应链</view>
|
||||||
@ -37,6 +37,12 @@
|
|||||||
<image class="icon_img" :src="`${prefix}shsz.png`" mode="aspectFill"></image>
|
<image class="icon_img" :src="`${prefix}shsz.png`" mode="aspectFill"></image>
|
||||||
<text class="text">商户设置</text>
|
<text class="text">商户设置</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="examine"
|
||||||
|
@click="navigator(`/pages/product/transactionApplication/index?mer_id=${mer_id}`, '交易申请')">
|
||||||
|
<image class="icon_img" src="@/static/images/jy.png" mode="aspectFill">
|
||||||
|
</image>
|
||||||
|
<text class="text">交易申请</text>
|
||||||
|
</view>
|
||||||
<view class="examine" @click="navigator(`/pages/product/list/index?mer_id=${mer_id}`)">
|
<view class="examine" @click="navigator(`/pages/product/list/index?mer_id=${mer_id}`)">
|
||||||
<image class="icon_img" :src="`${prefix}spgl.png`" mode="aspectFill">
|
<image class="icon_img" :src="`${prefix}spgl.png`" mode="aspectFill">
|
||||||
</image>
|
</image>
|
||||||
@ -151,6 +157,12 @@
|
|||||||
</image>
|
</image>
|
||||||
<text class="text">商户设置</text>
|
<text class="text">商户设置</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="examine"
|
||||||
|
@click="navigator(`/pages/product/transactionApplication/index?mer_id=${mer_id}`, '交易申请')">
|
||||||
|
<image class="icon_img" src="@/static/images/jy.png" mode="aspectFill">
|
||||||
|
</image>
|
||||||
|
<text class="text">交易申请</text>
|
||||||
|
</view>
|
||||||
<!-- <view class="examine"
|
<!-- <view class="examine"
|
||||||
@click="navigator(`/pages/users/trading_hall/index?mer_id=${mer_id}`)">
|
@click="navigator(`/pages/users/trading_hall/index?mer_id=${mer_id}`)">
|
||||||
<image class="icon_img" src="@/static/images/diaohuo.png" mode="aspectFill">
|
<image class="icon_img" src="@/static/images/diaohuo.png" mode="aspectFill">
|
||||||
@ -251,6 +263,12 @@
|
|||||||
</image>
|
</image>
|
||||||
<text class="text">商户设置</text>
|
<text class="text">商户设置</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="examine"
|
||||||
|
@click="navigator(`/pages/product/transactionApplication/index?mer_id=${mer_id}`, '交易申请')">
|
||||||
|
<image class="icon_img" src="@/static/images/jy.png" mode="aspectFill">
|
||||||
|
</image>
|
||||||
|
<text class="text">交易申请</text>
|
||||||
|
</view>
|
||||||
<!-- <view class="examine" @click="navigator(`/pages/users/user_invoice_Finance/index?mer_id=${mer_id}`)">
|
<!-- <view class="examine" @click="navigator(`/pages/users/user_invoice_Finance/index?mer_id=${mer_id}`)">
|
||||||
<image class="icon_img" src="@/static/images/cwgk.png" mode="aspectFill">
|
<image class="icon_img" src="@/static/images/cwgk.png" mode="aspectFill">
|
||||||
</image>
|
</image>
|
||||||
@ -304,6 +322,12 @@
|
|||||||
</image>
|
</image>
|
||||||
<text class="text">商户设置</text>
|
<text class="text">商户设置</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="examine"
|
||||||
|
@click="navigator(`/pages/product/transactionApplication/index?mer_id=${mer_id}`, '交易申请')">
|
||||||
|
<image class="icon_img" src="@/static/images/jy.png" mode="aspectFill">
|
||||||
|
</image>
|
||||||
|
<text class="text">交易申请</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -325,20 +349,21 @@
|
|||||||
</image>
|
</image>
|
||||||
<text class="text">商户设置</text>
|
<text class="text">商户设置</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
<view class="examine" v-if="userInfoData.mer_info.setting_status==1" @click="navigator(`/pages/product/transactionApplication/index?mer_id=${mer_id}&business_status=${userInfoData.mer_info.business_status}`, '交易申请')">
|
||||||
|
<image class="icon_img" src="@/static/images/jy.png" mode="aspectFill">
|
||||||
|
</image>
|
||||||
|
<text class="text">交易申请</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</block>
|
|
||||||
<!-- <m-tabbar native>
|
|
||||||
<template v-slot:tabbar_index_2>
|
|
||||||
<view class="custom_style">
|
|
||||||
<view class="custom_style_icon"></view>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
|
||||||
</m-tabbar> -->
|
</block>
|
||||||
<view class="" style="padding-top: 1px;" v-if='jurisdiction==false&&isShow==false'>
|
<view class="" style="padding-top: 1px;" v-else>
|
||||||
<emptyPage title="暂无信息"></emptyPage>
|
<emptyPage title="暂无信息"></emptyPage>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -350,15 +375,12 @@
|
|||||||
import emptyPage from '@/components/emptyPage.vue';
|
import emptyPage from '@/components/emptyPage.vue';
|
||||||
import zbpSwiper from '@/components/zbpSwiper'
|
import zbpSwiper from '@/components/zbpSwiper'
|
||||||
import {
|
import {
|
||||||
mapState,
|
|
||||||
mapGetters
|
mapGetters
|
||||||
} from 'vuex'
|
} from 'vuex'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
getWorkArticleCount,
|
|
||||||
getSlideAPI
|
|
||||||
} from '@/api/article.js'
|
|
||||||
import {
|
|
||||||
getStoreList,
|
|
||||||
getUserInfo
|
getUserInfo
|
||||||
} from '@/api/user.js'
|
} from '@/api/user.js'
|
||||||
import {
|
import {
|
||||||
@ -398,7 +420,7 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['userInfo', 'location', 'isLogin'])
|
...mapGetters(['userInfo', 'isLogin'])
|
||||||
},
|
},
|
||||||
created() {},
|
created() {},
|
||||||
onLoad() {},
|
onLoad() {},
|
||||||
@ -411,98 +433,14 @@
|
|||||||
this.jurisdiction = true
|
this.jurisdiction = true
|
||||||
}
|
}
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
this.appLocation()
|
|
||||||
},
|
|
||||||
onPullDownRefresh() {
|
|
||||||
this.getUserInfo()
|
|
||||||
uni.stopPullDownRefresh()
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.appLocation()
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
|
|
||||||
appLocation() {
|
|
||||||
uni.getLocation({
|
|
||||||
type: 'wgs84',
|
|
||||||
timeout: '10',
|
|
||||||
success: (res) => {
|
|
||||||
// console.log(res)
|
|
||||||
|
|
||||||
let latitude, longitude;
|
|
||||||
latitude = res.latitude.toString();
|
|
||||||
longitude = res.longitude.toString();
|
|
||||||
getGeocoder({
|
|
||||||
lat: latitude,
|
|
||||||
long: longitude
|
|
||||||
}).then(res => {
|
|
||||||
this.street = res.data.address_component.street
|
|
||||||
Cache.set('ADRESS_LOCATION', this.street)
|
|
||||||
}).catch(err => {
|
|
||||||
uni.showToast({
|
|
||||||
title: err,
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
fail: (err) => {
|
|
||||||
|
|
||||||
uni.showToast({
|
|
||||||
title: "获取定位超时",
|
|
||||||
icon: 'none',
|
|
||||||
duration: 2000
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
scrolling() {
|
|
||||||
// 滚动条距文档顶部的距离
|
|
||||||
let scrollTop =
|
|
||||||
window.pageYOffset ||
|
|
||||||
document.documentElement.scrollTop ||
|
|
||||||
document.body.scrollTop;
|
|
||||||
// 滚动条滚动的距离
|
|
||||||
let scrollStep = scrollTop - this.oldScrollTop;
|
|
||||||
console.log("header 滚动距离 ", scrollTop);
|
|
||||||
// 更新——滚动前,滚动条距文档顶部的距离
|
|
||||||
this.oldScrollTop = scrollTop;
|
|
||||||
|
|
||||||
//变量windowHeight是可视区的高度
|
|
||||||
let windowHeight =
|
|
||||||
document.documentElement.clientHeight || document.body.clientHeight;
|
|
||||||
//变量scrollHeight是滚动条的总高度
|
|
||||||
let scrollHeight =
|
|
||||||
document.documentElement.scrollHeight || document.body.scrollHeight;
|
|
||||||
|
|
||||||
//滚动条到底部的条件
|
|
||||||
if (scrollTop + windowHeight == scrollHeight) {
|
|
||||||
//你想做的事情
|
|
||||||
console.log("header 你已经到底部了");
|
|
||||||
}
|
|
||||||
if (scrollStep < 0) {
|
|
||||||
this.isFshow = false
|
|
||||||
console.log("header 滚动条向上滚动了!");
|
|
||||||
} else {
|
|
||||||
this.isFshow = true
|
|
||||||
console.log("header 滚动条向下滚动了!");
|
|
||||||
}
|
|
||||||
// 判断是否到了最顶部
|
|
||||||
if (scrollTop <= 0) {
|
|
||||||
this.isFshow = false
|
|
||||||
console.log("header 到了最顶部")
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
kkchange(e) {
|
|
||||||
this.bgColor = e
|
|
||||||
},
|
|
||||||
|
|
||||||
navigator(url, t) {
|
navigator(url, t) {
|
||||||
// if (this.userInfoData.is_wsxx === 0 && t != '商户设置') return Toast("请完善商户信息");
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: url
|
url: url
|
||||||
})
|
})
|
||||||
|
@ -16,28 +16,61 @@
|
|||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
<view class="" v-if="cloudList.length>0">
|
|
||||||
|
|
||||||
<view class="">
|
<view class="">
|
||||||
<!-- <view :style="`height: ${appInfo.top}px;background-color: red;z-index: 99999;`"></view> -->
|
<view class="">
|
||||||
<!-- <transition name="fade"> -->
|
<view v-if="showtit">
|
||||||
<view :class="{'head':true,'show':showtit}" style="padding-top: var(--status-bar-height);"
|
<view :class="{'head':true,'show':showtit}" style="padding-top: var(--status-bar-height);">
|
||||||
v-if="showtit">
|
|
||||||
<view style="display: flex;align-items: center;">
|
<view style="display: flex;align-items: center;">
|
||||||
<u--image :showLoading="true" src="/static/images/LHYC/FH.png" width="50.82rpx"
|
<u--image :showLoading="true" v-if="cloudList.length>0" src="/static/images/LHYC/FH.png"
|
||||||
|
width="50.82rpx" height="50.82rpx" @click='goBack'></u--image>
|
||||||
|
<u--image v-else :showLoading="true" src="/static/images/LHYC/PFH.png" width="50.82rpx"
|
||||||
height="50.82rpx" @click='goBack'></u--image>
|
height="50.82rpx" @click='goBack'></u--image>
|
||||||
<view class="head_tit">
|
<view class="head_tit" :style="{color:cloudList.length>0?'':'black'}">
|
||||||
{{town}}里海云仓
|
{{town}}里海云仓
|
||||||
</view>
|
</view>
|
||||||
|
<view class="sl" :class="{actsl:showSelect}" @click="showSelect=!showSelect">
|
||||||
|
<u--image :showLoading="true" src="/static/images/GXSC/BSL.png" width="33.29rpx"
|
||||||
|
height="33.29rpx"></u--image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="" style="display: flex;align-items: center;">
|
||||||
|
<view style="display: flex;align-items: center;z-index: 999999;">
|
||||||
|
<u--image :showLoading="true" src="/static/images/LHYC/DWB.png" width="50.82rpx"
|
||||||
|
height="50.82rpx"></u--image>
|
||||||
|
<view class="town_name" :style="{color:cloudList.length>0?'':'black'}"
|
||||||
|
@click="showpick">{{street}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="head_r" @click="showPop=true">
|
<view class="head_r" @click="showPop=true">
|
||||||
<u--image :showLoading="true" src="/static/images/LHYC/QB.png" width="50.82rpx"
|
<u--image v-if="cloudList.length>0" :showLoading="true" src="/static/images/LHYC/QB.png"
|
||||||
|
width="50.82rpx" height="50.82rpx"></u--image>
|
||||||
|
<u--image v-else :showLoading="true" src="/static/images/LHYC/QB.png" width="50.82rpx"
|
||||||
height="50.82rpx"></u--image>
|
height="50.82rpx"></u--image>
|
||||||
<text>全部</text>
|
<text :style="{color:cloudList.length>0?'':'black'}">全部</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="selected-list" :style="`top:${headtop}px`" :class="{actSel:showSelect}">
|
||||||
|
<div class="triangle-up"></div>
|
||||||
|
<view
|
||||||
|
@click="navgo(`/pages/nongKe/supply_chain/supplier?type_id=10&street_id=${street_code}&townName=${street}`)">
|
||||||
|
供销综合云市场 <text></text>
|
||||||
|
</view>
|
||||||
|
<view class="selected-li">
|
||||||
|
供销综合云商品 <text> <u--image style="margin-left: 40rpx;" :showLoading="true"
|
||||||
|
src="/static/images/GXSC/XZ.png" width="24.53rpx" height="24.53rpx"></u--image>
|
||||||
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- </transition> -->
|
</view>
|
||||||
<!-- <transition name="fade"> -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- 滚动 -->
|
<!-- 滚动 -->
|
||||||
<view :class="{'heads':true,'show':!showtit}" style="padding-top: var(--status-bar-height);">
|
<view :class="{'heads':true,'show':!showtit}" style="padding-top: var(--status-bar-height);">
|
||||||
<view style="align-items: center;display: flex;justify-content: space-between;">
|
<view style="align-items: center;display: flex;justify-content: space-between;">
|
||||||
@ -54,7 +87,7 @@
|
|||||||
<view style="position: relative;width: 289.14rpx;">
|
<view style="position: relative;width: 289.14rpx;">
|
||||||
<u-search borderColor="#FF6D20" bgColor="white" :showAction="false" placeholder="请输入..."
|
<u-search borderColor="#FF6D20" bgColor="white" :showAction="false" placeholder="请输入..."
|
||||||
v-model="keyword" class="serch_cls"></u-search>
|
v-model="keyword" class="serch_cls"></u-search>
|
||||||
<u--image class="img_cls" :showLoading="true" src="/static/images/GXSC/SS.png"
|
<u--image class="img_cls" :showLoading="true" src="/static/images/GXSC/SSBT.png"
|
||||||
width="115.65rpx" height="56.82rpx" @click="serch"></u--image>
|
width="115.65rpx" height="56.82rpx" @click="serch"></u--image>
|
||||||
</view>
|
</view>
|
||||||
<view class='head_r' @click="showPop=true">
|
<view class='head_r' @click="showPop=true">
|
||||||
@ -67,8 +100,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- </transition> -->
|
|
||||||
<view class="box">
|
<view class="box" v-if="cloudList.length>0">
|
||||||
<view :class="act_swiper">
|
<view :class="act_swiper">
|
||||||
<swiper :autoplay="false" :active-class="activeClass" :interval="3000" class="swipers"
|
<swiper :autoplay="false" :active-class="activeClass" :interval="3000" class="swipers"
|
||||||
:circular="true" previous-margin='0rpx' next-margin='0rpx' :current="current"
|
:circular="true" previous-margin='0rpx' next-margin='0rpx' :current="current"
|
||||||
@ -83,8 +116,7 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- <u--image :showLoading="true" src="/static/images/LHYC/BG.png" width="750rpx"
|
|
||||||
height="998.83rpx"></u--image> -->
|
|
||||||
<view class="menu" v-if="showtit" style="transition: 1s;">
|
<view class="menu" v-if="showtit" style="transition: 1s;">
|
||||||
<swiper :autoplay="false" :active-class="activeClass" :interval="3000" class="swiper"
|
<swiper :autoplay="false" :active-class="activeClass" :interval="3000" class="swiper"
|
||||||
:circular="true" previous-margin='270rpx' next-margin='270rpx' :current="current"
|
:circular="true" previous-margin='270rpx' next-margin='270rpx' :current="current"
|
||||||
@ -99,7 +131,6 @@
|
|||||||
</swiper>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
<!-- 商品列表 -->
|
<!-- 商品列表 -->
|
||||||
<transition name="fade">
|
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="content_sift" :style="{position:pocls,top:(headtop)+'px'}" v-if="!showtit">
|
<view class="content_sift" :style="{position:pocls,top:(headtop)+'px'}" v-if="!showtit">
|
||||||
<view :class="{act:item.act,price_sift:true}" v-for="item,index in actList" :key="index"
|
<view :class="{act:item.act,price_sift:true}" v-for="item,index in actList" :key="index"
|
||||||
@ -117,7 +148,7 @@
|
|||||||
<view class="empty" v-if='showLoading'>
|
<view class="empty" v-if='showLoading'>
|
||||||
<u-loading-icon v-if='showLoading' text="加载中" textSize="18"></u-loading-icon>
|
<u-loading-icon v-if='showLoading' text="加载中" textSize="18"></u-loading-icon>
|
||||||
</view>
|
</view>
|
||||||
<view class="goods" @click="godDetail(item)" v-else v-for="item,index in goodsList">
|
<view class="goods" @click="goodDetail(item)" v-else v-for="item,index in goodsList">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<u--image :showLoading="true" :src="item.image" width="192.76rpx"
|
<u--image :showLoading="true" :src="item.image" width="192.76rpx"
|
||||||
height="192.76rpx"></u--image>
|
height="192.76rpx"></u--image>
|
||||||
@ -142,13 +173,6 @@
|
|||||||
¥30.00
|
¥30.00
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- :style="{'transform': `translateY(${trnList[index].bottom}) translateX(${trnList[index].left})`,'transition':'1s'}" -->
|
|
||||||
<!-- <view class="good_price_r" @click.stop="addcart(item)">
|
|
||||||
<u--image :class="'act_class'+index" class="act_class"
|
|
||||||
:showLoading="true" src="/static/images/LHYC/J.png"
|
|
||||||
width="49.07rpx" height="49.07rpx"></u--image>
|
|
||||||
|
|
||||||
</view> -->
|
|
||||||
<view class="good_price_r">
|
<view class="good_price_r">
|
||||||
<view :class="{x_tra:trnList[index].bottom }"
|
<view :class="{x_tra:trnList[index].bottom }"
|
||||||
:style="`transform:translateY(${trnList[index].bottom}px);transition:${trnList[index].bottom?1:0}s cubic-bezier(0.4, -0.9, 0.75, 1);`"
|
:style="`transform:translateY(${trnList[index].bottom}px);transition:${trnList[index].bottom?1:0}s cubic-bezier(0.4, -0.9, 0.75, 1);`"
|
||||||
@ -175,7 +199,7 @@
|
|||||||
<view class="info">
|
<view class="info">
|
||||||
<u--image :showLoading="true" src="/static/images/noCart.png" width="400.09rpx"
|
<u--image :showLoading="true" src="/static/images/noCart.png" width="400.09rpx"
|
||||||
height="400.09rpx"></u--image>
|
height="400.09rpx"></u--image>
|
||||||
<view class="" style="text-align: center;">
|
<view class="" style="text-align: center;color:#999">
|
||||||
暂无商品
|
暂无商品
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -208,13 +232,13 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</transition>
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<!-- http://192.168.1.5:8080/ -->
|
|
||||||
</view>
|
</view>
|
||||||
<!-- 组件 -->
|
<!-- 组件 -->
|
||||||
<view<u-popup mode="right" :show="showPop" @close="showPop=false" @open="showPop=true">
|
<view class="" v-if="showPop">
|
||||||
|
<u-popup mode="right" :show="showPop" @close="showPop=false" @open="showPop=true">
|
||||||
<view class="pop">
|
<view class="pop">
|
||||||
<view style="height: var(--status-bar-height);"></view>
|
<view style="height: var(--status-bar-height);"></view>
|
||||||
<view class="pop_head" style="display: flex;">
|
<view class="pop_head" style="display: flex;">
|
||||||
@ -224,7 +248,7 @@
|
|||||||
里海云仓
|
里海云仓
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="pop_content">
|
<view class="pop_content" v-if="cloudList.length">
|
||||||
<view class="pop_li" @click="all(index)" v-for="item,index in cloudList" :key="index">
|
<view class="pop_li" @click="all(index)" v-for="item,index in cloudList" :key="index">
|
||||||
<u--image :showLoading="true" :src="item.background" width="84.11rpx"
|
<u--image :showLoading="true" :src="item.background" width="84.11rpx"
|
||||||
height="84.11rpx"></u--image>
|
height="84.11rpx"></u--image>
|
||||||
@ -238,20 +262,36 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
|
||||||
</u-popup>
|
|
||||||
</view>
|
<view v-else>
|
||||||
<view class="empty" style="" v-else>
|
<!-- <u--image :showLoading="true" src="/static/images/LHYC/PFH.png" width="50.82rpx" height="50.82rpx"
|
||||||
<view style="height: var(--status-bar-height);"></view>
|
|
||||||
<view style="padding: 10rpx;">
|
|
||||||
<u--image :showLoading="true" src="/static/images/LHYC/PFH.png" width="50.82rpx" height="50.82rpx"
|
|
||||||
@click='goBack'></u--image>
|
@click='goBack'></u--image>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="info">
|
<view class="yuncangempty">
|
||||||
|
|
||||||
<u--image :showLoading="true" src="/static/images/noCart.png" width="400.09rpx"
|
<u--image :showLoading="true" src="/static/images/noCart.png" width="400.09rpx"
|
||||||
height="400.09rpx"></u--image>
|
height="400.09rpx"></u--image>
|
||||||
<view class="" style="text-align: center;">
|
<view class="" style="text-align: center;color:#999">
|
||||||
|
当前区域暂无云仓
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</u-popup>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
<view class="empty" style="" v-if="cloudList.length<=0">
|
||||||
|
<view style="height: var(--status-bar-height);"></view>
|
||||||
|
<view style="padding: 10rpx;">
|
||||||
|
|
||||||
|
<view class="info">
|
||||||
|
<u--image :showLoading="true" src="/static/images/noCart.png" width="400.09rpx"
|
||||||
|
height="400.09rpx"></u--image>
|
||||||
|
<view class="" style="text-align: center;color:#999">
|
||||||
当前区域暂无云仓
|
当前区域暂无云仓
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -260,7 +300,18 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- 多规格购物车 -->
|
<!-- 多规格购物车 -->
|
||||||
<view class="" style="z-index: 9999;">
|
|
||||||
|
|
||||||
|
<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse">
|
||||||
|
</authorize>
|
||||||
|
<view class="" :style="`height:${appInfo.bottom}px;background-color:white`">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="">
|
||||||
|
<u-picker :defaultIndex="defaInd" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm"
|
||||||
|
@cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker>
|
||||||
|
</view>
|
||||||
|
<view class="" v-if="showcartpop">
|
||||||
<u-popup :show="showcartpop" @close="closecartpop" @open="opencartpop">
|
<u-popup :show="showcartpop" @close="closecartpop" @open="opencartpop">
|
||||||
<view class="sku">
|
<view class="sku">
|
||||||
<view class="sku_head">
|
<view class="sku_head">
|
||||||
@ -282,8 +333,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view class="sku_size">
|
<view class="sku_size">
|
||||||
<view class="" style="margin-bottom: 10rpx;">
|
<view class="" style="margin-bottom: 10rpx;">
|
||||||
尺码
|
尺码
|
||||||
@ -292,7 +341,6 @@
|
|||||||
<text class="size_li" :class="{act_size_li:item.sku==skusize}"
|
<text class="size_li" :class="{act_size_li:item.sku==skusize}"
|
||||||
v-for="(item,index) in skuform.sku" @click="skusizechange(item.sku)">{{item.sku}}</text>
|
v-for="(item,index) in skuform.sku" @click="skusizechange(item.sku)">{{item.sku}}</text>
|
||||||
|
|
||||||
<!-- <text class="size_li">{item.sku}</text> -->
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="sku_num">
|
<view class="sku_num">
|
||||||
@ -304,9 +352,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="skuaddcart" @click="skuaddcart">
|
<view class="skuaddcart" @click="skuaddcart">
|
||||||
|
|
||||||
确定
|
确定
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@ -314,19 +360,6 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse">
|
|
||||||
</authorize>
|
|
||||||
<view class="" :style="`height:${appInfo.bottom}px;background-color:white`">
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@ -350,13 +383,27 @@
|
|||||||
import {
|
import {
|
||||||
goShopDetail
|
goShopDetail
|
||||||
} from '@/libs/order.js'
|
} from '@/libs/order.js'
|
||||||
|
// 7200 = 8 = 80000 8616
|
||||||
import {
|
import {
|
||||||
postCartAdd,
|
postCartAdd,
|
||||||
} from '@/api/store.js';
|
} from '@/api/store.js';
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
|
|
||||||
|
import {
|
||||||
|
getArea,
|
||||||
|
getStreet
|
||||||
|
} from '@/api/article.js';
|
||||||
|
import {
|
||||||
|
getIndexData,
|
||||||
|
getDiy
|
||||||
|
} from '@/api/api.js'
|
||||||
|
import {
|
||||||
|
getGeocoder
|
||||||
|
} from '@/api/store.js';
|
||||||
import {
|
import {
|
||||||
mapGetters
|
mapGetters
|
||||||
} from "vuex";
|
} from 'vuex'
|
||||||
|
import Cache from '@/utils/cache';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize,
|
authorize,
|
||||||
@ -364,10 +411,10 @@
|
|||||||
data() {
|
data() {
|
||||||
let src = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/13';
|
let src = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/13';
|
||||||
return {
|
return {
|
||||||
skuform: {
|
skuform: {},
|
||||||
|
defaInd: [0, 0],
|
||||||
|
showPicker: false,
|
||||||
},
|
columnData: [],
|
||||||
skusize: 0,
|
skusize: 0,
|
||||||
skuNumber: 1,
|
skuNumber: 1,
|
||||||
showcartpop: false,
|
showcartpop: false,
|
||||||
@ -383,10 +430,12 @@
|
|||||||
isEmpty: false,
|
isEmpty: false,
|
||||||
winHeight: 0,
|
winHeight: 0,
|
||||||
cloudList: [],
|
cloudList: [],
|
||||||
|
street: '',
|
||||||
street_code: '',
|
street_code: '',
|
||||||
totalMoney: 0,
|
totalMoney: 0,
|
||||||
town: '',
|
town: '',
|
||||||
list: [1, 1, 1, 1, 1],
|
list: [1, 1, 1, 1, 1],
|
||||||
|
showSelect: false,
|
||||||
showPop: false,
|
showPop: false,
|
||||||
keyword: "",
|
keyword: "",
|
||||||
showLoading: false,
|
showLoading: false,
|
||||||
@ -430,10 +479,40 @@
|
|||||||
this.street_code = e.street
|
this.street_code = e.street
|
||||||
this.town = e.town
|
this.town = e.town
|
||||||
this.getCloundShop()
|
this.getCloundShop()
|
||||||
|
this.street = e.town
|
||||||
|
this.Area()
|
||||||
|
let that = this
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.createSelectorQuery()
|
||||||
|
.in(this)
|
||||||
|
.select('.flags')
|
||||||
|
.boundingClientRect(rect => {
|
||||||
|
that.headtop = rect.top
|
||||||
|
})
|
||||||
|
.exec();
|
||||||
|
uni.createSelectorQuery()
|
||||||
|
.in(this)
|
||||||
|
.select('.flags')
|
||||||
|
.boundingClientRect(rect => {
|
||||||
|
this.headtop = rect.top
|
||||||
|
})
|
||||||
|
.exec();
|
||||||
|
uni.createSelectorQuery()
|
||||||
|
.in(this)
|
||||||
|
.select('.cart')
|
||||||
|
.boundingClientRect(rect => {
|
||||||
|
// console.log(this.cartTagInfo, 6666)
|
||||||
|
this.cartTagInfo = rect
|
||||||
|
})
|
||||||
|
.exec();
|
||||||
|
// console.log(that.headtop)
|
||||||
|
}, 500)
|
||||||
|
|
||||||
// console.log(this.appInfo, "手机信息")
|
// console.log(this.appInfo, "手机信息")
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.cartFn()
|
this.cartFn()
|
||||||
|
this.showSelect = false
|
||||||
},
|
},
|
||||||
// 分页
|
// 分页
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
@ -443,7 +522,7 @@
|
|||||||
this.flag = true
|
this.flag = true
|
||||||
cloudWarehouse({
|
cloudWarehouse({
|
||||||
street_code: this.street_code,
|
street_code: this.street_code,
|
||||||
category_id: this.cloudList[this.current].category_id,
|
category_id: this.cloudList[this.current]?.category_id || "",
|
||||||
order: this.type,
|
order: this.type,
|
||||||
keyword: this.keyword,
|
keyword: this.keyword,
|
||||||
page_num: this.page_num
|
page_num: this.page_num
|
||||||
@ -472,8 +551,6 @@
|
|||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
let that = this
|
let that = this
|
||||||
this.showtit = !Boolean(e.scrollTop)
|
this.showtit = !Boolean(e.scrollTop)
|
||||||
@ -494,22 +571,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.exec();
|
.exec();
|
||||||
if (this.headtop) return
|
|
||||||
uni.createSelectorQuery()
|
|
||||||
.in(this)
|
|
||||||
.select('.flags')
|
|
||||||
.boundingClientRect(rect => {
|
|
||||||
this.headtop = rect.top
|
|
||||||
})
|
|
||||||
.exec();
|
|
||||||
uni.createSelectorQuery()
|
|
||||||
.in(this)
|
|
||||||
.select('.cart')
|
|
||||||
.boundingClientRect(rect => {
|
|
||||||
this.cartTagInfo = rect
|
|
||||||
})
|
|
||||||
.exec();
|
|
||||||
|
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
this.getCloundShop()
|
this.getCloundShop()
|
||||||
@ -517,11 +578,94 @@
|
|||||||
this.cartFn()
|
this.cartFn()
|
||||||
uni.stopPullDownRefresh()
|
uni.stopPullDownRefresh()
|
||||||
},
|
},
|
||||||
// onReachBottom() {
|
|
||||||
// console.log("daidi")
|
|
||||||
|
|
||||||
// },
|
|
||||||
methods: {
|
methods: {
|
||||||
|
showpick() {
|
||||||
|
this.showPicker = !this.showPicker
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
swiperClick(item) {
|
||||||
|
const url = item.info[1].value
|
||||||
|
uni.navigateTo({
|
||||||
|
url: url
|
||||||
|
})
|
||||||
|
},
|
||||||
|
selectLocation() {
|
||||||
|
this.isSelectPlace ? this.showPicker = true : ''
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
confirm(e) {
|
||||||
|
this.showPicker = false
|
||||||
|
this.$emit('selectPlce', e)
|
||||||
|
this.$emit('change', e)
|
||||||
|
this.street = e.value[1].name
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$bus.$emit('value-updated', e.value[1].name + ',' + e.value[1].code);
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
// this.sotreParam.street_id = e.value[1].code
|
||||||
|
this.street_code = e.value[1].code
|
||||||
|
this.getCloundShop()
|
||||||
|
this.town = e.value[1].name
|
||||||
|
// this.storeMerchantList()
|
||||||
|
|
||||||
|
},
|
||||||
|
changeHandler(e) {
|
||||||
|
const {
|
||||||
|
columnIndex,
|
||||||
|
value,
|
||||||
|
values,
|
||||||
|
index,
|
||||||
|
picker = this.$refs.uPicker
|
||||||
|
} = e;
|
||||||
|
if (columnIndex === 0) {
|
||||||
|
getStreet({
|
||||||
|
area_code: value[0]['code']
|
||||||
|
}).then(res => {
|
||||||
|
picker.setColumnValues(1, res.data);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Area() {
|
||||||
|
let that = this
|
||||||
|
getArea({
|
||||||
|
city_code: 510500
|
||||||
|
}).then(res => {
|
||||||
|
|
||||||
|
this.$refs.uPicker.setColumnValues(0, res.data);
|
||||||
|
this.Street(res.data[0]['code']);
|
||||||
|
// console.log(res.data, 66666)
|
||||||
|
});
|
||||||
|
},
|
||||||
|
Street(code) {
|
||||||
|
getStreet({
|
||||||
|
area_code: code
|
||||||
|
}).then(res => {
|
||||||
|
this.$refs.uPicker.setColumnValues(1, res.data);
|
||||||
|
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
swiperChange(e) {
|
||||||
|
let {
|
||||||
|
current,
|
||||||
|
source
|
||||||
|
} = e.detail;
|
||||||
|
if (source === 'autoplay' || source === 'touch') {
|
||||||
|
this.bgColor = this.swiper.url[e.detail.current]['img']
|
||||||
|
this.$emit('kkchange', this.bgColor)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// 对象转数组
|
||||||
|
objToArr(data) {
|
||||||
|
let obj = Object.keys(data).sort();
|
||||||
|
let m = obj.map(key => data[key]);
|
||||||
|
return m;
|
||||||
|
},
|
||||||
skusizechange(i) {
|
skusizechange(i) {
|
||||||
|
|
||||||
this.skusize = i
|
this.skusize = i
|
||||||
@ -554,9 +698,8 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
valChange(e) {
|
valChange(e) {
|
||||||
console.log(e.value)
|
|
||||||
this.skuNumber = e.value
|
this.skuNumber = e.value
|
||||||
// this.valChange = e.value
|
|
||||||
},
|
},
|
||||||
closecartpop() {
|
closecartpop() {
|
||||||
this.showcartpop = false
|
this.showcartpop = false
|
||||||
@ -578,7 +721,7 @@
|
|||||||
},
|
},
|
||||||
cartFn() {
|
cartFn() {
|
||||||
getCartList().then(res => {
|
getCartList().then(res => {
|
||||||
console.log(res)
|
// console.log(res)
|
||||||
this.totalMoney = 0
|
this.totalMoney = 0
|
||||||
this.cartList = res.data.list
|
this.cartList = res.data.list
|
||||||
this.cartList.forEach(e => {
|
this.cartList.forEach(e => {
|
||||||
@ -594,7 +737,7 @@
|
|||||||
this.goodsNum = res.data[0].count
|
this.goodsNum = res.data[0].count
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
godDetail(item) {
|
goodDetail(item) {
|
||||||
goShopDetail(item, this.uid).then(res => {
|
goShopDetail(item, this.uid).then(res => {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
initiateAssistApi(item.activity_id).then(res => {
|
initiateAssistApi(item.activity_id).then(res => {
|
||||||
@ -617,7 +760,6 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
serch() {
|
serch() {
|
||||||
// console.log(this.keyword)
|
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
goBack() {
|
goBack() {
|
||||||
@ -648,7 +790,7 @@
|
|||||||
this.status = "loading"
|
this.status = "loading"
|
||||||
cloudWarehouse({
|
cloudWarehouse({
|
||||||
street_code: this.street_code,
|
street_code: this.street_code,
|
||||||
category_id: this.cloudList[this.current].category_id,
|
category_id: this.cloudList[this.current]?.category_id || "",
|
||||||
order: this.type,
|
order: this.type,
|
||||||
keyword: this.keyword,
|
keyword: this.keyword,
|
||||||
page_num: this.page_num
|
page_num: this.page_num
|
||||||
@ -666,14 +808,12 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
addcart(item, i) {
|
addcart(item, i) {
|
||||||
|
|
||||||
// console.log(this.isLogin)
|
|
||||||
if (!this.isLogin) {
|
if (!this.isLogin) {
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// console.log(item.sku[''] ? "1" : "2")
|
|
||||||
if (item.sku['']) {
|
if (item.sku['']) {
|
||||||
let data = {
|
let data = {
|
||||||
cart_num: 1,
|
cart_num: 1,
|
||||||
@ -683,14 +823,11 @@
|
|||||||
product_type: item.product_type,
|
product_type: item.product_type,
|
||||||
spread_id: "",
|
spread_id: "",
|
||||||
}
|
}
|
||||||
|
|
||||||
let that = this
|
let that = this
|
||||||
// return
|
|
||||||
|
|
||||||
uni.createSelectorQuery().in(this).select(`.act_class${i}`).boundingClientRect(data1 => {
|
uni.createSelectorQuery().in(this).select(`.act_class${i}`).boundingClientRect(data1 => {
|
||||||
that.trnList[i].left = this.cartTagInfo.left - data1.left;
|
that.trnList[i].left = this.cartTagInfo.left - data1.left;
|
||||||
that.trnList[i].bottom = this.cartTagInfo.top - data1.top;
|
that.trnList[i].bottom = this.cartTagInfo.top - data1.top;
|
||||||
console.log(that.trnList[i])
|
|
||||||
let timer = setTimeout(() => {
|
let timer = setTimeout(() => {
|
||||||
that.trnList[i].left = 0
|
that.trnList[i].left = 0
|
||||||
that.trnList[i].bottom = 0
|
that.trnList[i].bottom = 0
|
||||||
@ -710,7 +847,6 @@
|
|||||||
|
|
||||||
})
|
})
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
// this.act_cart = false
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err,
|
title: err,
|
||||||
icon: "none",
|
icon: "none",
|
||||||
@ -725,11 +861,8 @@
|
|||||||
this.showcartpop = true
|
this.showcartpop = true
|
||||||
const keys = Object.keys(item.sku);
|
const keys = Object.keys(item.sku);
|
||||||
const firstKey = keys[0];
|
const firstKey = keys[0];
|
||||||
|
|
||||||
|
|
||||||
// console.log(keys[0])
|
|
||||||
this.skusize = keys[0]
|
this.skusize = keys[0]
|
||||||
// console.log(this.skuform)
|
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -758,6 +891,7 @@
|
|||||||
street_code: this.street_code,
|
street_code: this.street_code,
|
||||||
category_id: this.cloudList[this.current].category_id
|
category_id: this.cloudList[this.current].category_id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
this.trnList = []
|
||||||
this.goodsList = res.data.list
|
this.goodsList = res.data.list
|
||||||
this.goodsList.forEach(item => {
|
this.goodsList.forEach(item => {
|
||||||
this.trnList.push({
|
this.trnList.push({
|
||||||
@ -766,8 +900,6 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
// console.log(this.cloudList)
|
|
||||||
data.length < 1 ? Toast("暂无云仓") : '';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -786,6 +918,39 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.selected-list {
|
||||||
|
padding: 24rpx 14rpx;
|
||||||
|
border-radius: 10.51rpx 10.51rpx 10.51rpx 10.51rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
position: absolute;
|
||||||
|
left: 100rpx;
|
||||||
|
font-size: 29.79rpx;
|
||||||
|
z-index: 9999;
|
||||||
|
// top: 100rpx;
|
||||||
|
opacity: 0;
|
||||||
|
transition: 0.5s;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.triangle-up {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-left: 10rpx solid transparent;
|
||||||
|
border-right: 10rpx solid transparent;
|
||||||
|
border-bottom: 10rpx solid white;
|
||||||
|
position: absolute;
|
||||||
|
top: -10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-li {
|
||||||
|
margin-top: 35rpx;
|
||||||
|
color: #F84221;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.sku {
|
.sku {
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
|
|
||||||
@ -1018,8 +1183,15 @@
|
|||||||
.head_tit {
|
.head_tit {
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
font-size: 40rpx;
|
font-size: 40rpx;
|
||||||
|
// background-color: red;
|
||||||
|
width: 40vw;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
// font-weight: 700;
|
// font-weight: 700;
|
||||||
transform: skewX(-10deg);
|
// transform: skewX(-10deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1029,7 +1201,7 @@
|
|||||||
|
|
||||||
.head {
|
.head {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 100;
|
z-index: 999;
|
||||||
color: white;
|
color: white;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@ -1068,6 +1240,17 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.town_name {
|
||||||
|
margin-right: 50rpx;
|
||||||
|
// background-color: red;
|
||||||
|
max-width: 15vw;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
.goods_list {
|
.goods_list {
|
||||||
min-height: 95vh;
|
min-height: 95vh;
|
||||||
padding: 0 10rpx;
|
padding: 0 10rpx;
|
||||||
@ -1232,91 +1415,91 @@
|
|||||||
height: 35rpx;
|
height: 35rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cloud_entrepot {
|
// .cloud_entrepot {
|
||||||
background: url("https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/13/ycbg.png") no-repeat;
|
// background: url("https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/13/ycbg.png") no-repeat;
|
||||||
background-size: cover;
|
// background-size: cover;
|
||||||
padding-bottom: 92.98rpx;
|
// padding-bottom: 92.98rpx;
|
||||||
}
|
// }
|
||||||
|
|
||||||
.head-wrapper {
|
// .head-wrapper {
|
||||||
height: 485.96rpx;
|
// height: 485.96rpx;
|
||||||
width: 100%;
|
// width: 100%;
|
||||||
background: url("https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/13/top.png") no-repeat;
|
// background: url("https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/13/top.png") no-repeat;
|
||||||
background-size: cover;
|
// background-size: cover;
|
||||||
margin-bottom: 49.12rpx;
|
// margin-bottom: 49.12rpx;
|
||||||
}
|
// }
|
||||||
|
|
||||||
.town-title {
|
// .town-title {
|
||||||
margin: 0 auto;
|
// margin: 0 auto;
|
||||||
width: 100%;
|
// width: 100%;
|
||||||
text-align: center;
|
// text-align: center;
|
||||||
font-size: 50.88rpx;
|
// font-size: 50.88rpx;
|
||||||
color: #fff;
|
// color: #fff;
|
||||||
margin-bottom: 28.07rpx;
|
// margin-bottom: 28.07rpx;
|
||||||
|
|
||||||
&::after {
|
// &::after {
|
||||||
content: '';
|
// content: '';
|
||||||
display: inline-block;
|
// display: inline-block;
|
||||||
width: 66.67rpx;
|
// width: 66.67rpx;
|
||||||
height: 31.58rpx;
|
// height: 31.58rpx;
|
||||||
background: url("https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/13/you.png") no-repeat;
|
// background: url("https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/13/you.png") no-repeat;
|
||||||
background-size: cover;
|
// background-size: cover;
|
||||||
margin-left: 24.56rpx;
|
// margin-left: 24.56rpx;
|
||||||
}
|
// }
|
||||||
|
|
||||||
&::before {
|
// &::before {
|
||||||
content: '';
|
// content: '';
|
||||||
display: inline-block;
|
// display: inline-block;
|
||||||
width: 66.67rpx;
|
// width: 66.67rpx;
|
||||||
height: 31.58rpx;
|
// height: 31.58rpx;
|
||||||
background: url("https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/13/zuo.png") no-repeat;
|
// background: url("https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/13/zuo.png") no-repeat;
|
||||||
background-size: cover;
|
// background-size: cover;
|
||||||
margin-right: 24.56rpx;
|
// margin-right: 24.56rpx;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
.body-wrapper {
|
// .body-wrapper {
|
||||||
width: 694.74rpx;
|
// width: 694.74rpx;
|
||||||
display: flex;
|
// display: flex;
|
||||||
justify-content: space-between;
|
// justify-content: space-between;
|
||||||
flex-wrap: wrap;
|
// flex-wrap: wrap;
|
||||||
margin: 0 auto;
|
// margin: 0 auto;
|
||||||
|
|
||||||
.item {
|
// .item {
|
||||||
width: 336.84rpx;
|
// width: 336.84rpx;
|
||||||
height: 100%;
|
// height: 100%;
|
||||||
padding: 24.56rpx 28.07rpx;
|
// padding: 24.56rpx 28.07rpx;
|
||||||
margin-bottom: 21.05rpx;
|
// margin-bottom: 21.05rpx;
|
||||||
background-repeat: no-repeat;
|
// background-repeat: no-repeat;
|
||||||
background-size: 100% 100%;
|
// background-size: 100% 100%;
|
||||||
box-sizing: border-box;
|
// box-sizing: border-box;
|
||||||
|
|
||||||
text {
|
// text {
|
||||||
display: block;
|
// display: block;
|
||||||
font-size: 24.56rpx;
|
// font-size: 24.56rpx;
|
||||||
color: #999;
|
// color: #999;
|
||||||
margin-bottom: 14.04rpx;
|
// margin-bottom: 14.04rpx;
|
||||||
}
|
// }
|
||||||
|
|
||||||
.item-title {
|
// .item-title {
|
||||||
font-size: 31.58rpx;
|
// font-size: 31.58rpx;
|
||||||
color: #333;
|
// color: #333;
|
||||||
}
|
// }
|
||||||
|
|
||||||
.chakan-btn {
|
// .chakan-btn {
|
||||||
width: 114.04rpx;
|
// width: 114.04rpx;
|
||||||
height: 49.12rpx;
|
// height: 49.12rpx;
|
||||||
font-size: 28.07rpx;
|
// font-size: 28.07rpx;
|
||||||
text-align: center;
|
// text-align: center;
|
||||||
line-height: 49.12rpx;
|
// line-height: 49.12rpx;
|
||||||
color: #fff;
|
// color: #fff;
|
||||||
margin-top: auto;
|
// margin-top: auto;
|
||||||
background: linear-gradient(90deg, #FE5300 0%, #F84221 100%);
|
// background: linear-gradient(90deg, #FE5300 0%, #F84221 100%);
|
||||||
border-radius: 50px;
|
// border-radius: 50px;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
.empty {
|
.empty {
|
||||||
// display: flex;
|
// display: flex;
|
||||||
@ -1363,4 +1546,27 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sl {
|
||||||
|
margin-left: 20rpx;
|
||||||
|
transform: rotate(180deg);
|
||||||
|
transition: 0.5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.actsl {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.actSel {
|
||||||
|
opacity: 1;
|
||||||
|
// transform: translateX(100rpx);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.yuncangempty {
|
||||||
|
margin: 20vh 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center
|
||||||
|
}
|
||||||
</style>
|
</style>
|
@ -14,21 +14,44 @@
|
|||||||
<view class="back" @click='backjJump()' style="margin-right: 17rpx;">
|
<view class="back" @click='backjJump()' style="margin-right: 17rpx;">
|
||||||
<view class="iconfont icon-xiangzuo" style="color: #333333;"></view>
|
<view class="iconfont icon-xiangzuo" style="color: #333333;"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="" style="font-size: 40rpx;font-weight: 700;transform: skewX(-10deg);">
|
<view class="" style="font-size: 40rpx;font-weight: 700;">
|
||||||
供销综合云市场
|
供销综合云市场
|
||||||
</view>
|
</view>
|
||||||
|
<view style="margin-left: 20rpx;transition: 0.3s;" @click="showSelect=!showSelect"
|
||||||
|
:class="{selects:showSelect}">
|
||||||
|
<u--image :showLoading="true" src="/static/images/GXSC/XL.png" width="33.29rpx"
|
||||||
|
height="33.29rpx"></u--image>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="">
|
||||||
|
|
||||||
<view style="position: relative;width: 289.14rpx;">
|
|
||||||
<u-search borderColor="#FF6D20" bgColor="white" @change="test" :showAction="false"
|
|
||||||
placeholder="请输入..." v-model="sotreParam.keyword" class="serch_cls"></u-search>
|
|
||||||
<u--image @tap="searchSubmit" class="img_cls" :showLoading="true"
|
|
||||||
src="/static/images/GXSC/SS.png" width="115.65rpx" height="56.82rpx"></u--image>
|
|
||||||
</view>
|
</view>
|
||||||
<view class='iconfont search-right'
|
<!-- 搜索框 -->
|
||||||
@click="goMap(`/pages/nongKe/supply_chain/maps?street_id=${street_id}`)">
|
<view style="position: relative;width: 289.14rpx;" v-if="showSerch">
|
||||||
<u--image :showLoading="true" src="/static/images/GXSC/DW.png" width="50.82rpx"
|
<u-search borderColor="#FF6D20" bgColor="white" @change="test" :showAction="false"
|
||||||
|
placeholder="请输入..." v-model="sotreParam.keyword" @search="onInputConfirm"
|
||||||
|
class="serch_cls"></u-search>
|
||||||
|
<u--image @tap="searchSubmit" class="img_cls" :showLoading="true"
|
||||||
|
src="/static/images/GXSC/SSBT.png" width="115.65rpx" height="56.82rpx"></u--image>
|
||||||
|
</view>
|
||||||
|
<!-- 位置 -->
|
||||||
|
<view v-else style="display: flex;align-items: center;" @click="showPicker=!showPicker">
|
||||||
|
<u--image @tap="showSerch=!showSerch" style="margin-right: 30rpx;" :showLoading="true"
|
||||||
|
src="/static/images/GXSC/SS.png" width="49rpx" height="49rpx"></u--image>
|
||||||
|
<u--image :showLoading="true" src="/static/images/GXSC/DW1.png" width="50.82rpx"
|
||||||
height="50.82rpx"></u--image>
|
height="50.82rpx"></u--image>
|
||||||
|
<view class="town_name">{{street}}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="selected-list" :class="{actSel:showSelect}">
|
||||||
|
<div class="triangle-up"></div>
|
||||||
|
<view class="selected-li">
|
||||||
|
供销综合云市场 <text> <u--image style="margin-left: 40rpx;" :showLoading="true"
|
||||||
|
src="/static/images/GXSC/XZ.png" width="24.53rpx" height="24.53rpx"></u--image> </text>
|
||||||
|
</view>
|
||||||
|
<view class=""
|
||||||
|
@click="navGoto(`/pages/nongKe/cloud_entrepot/index?street=${street_id}&town=${street}`)">
|
||||||
|
供销综合云商品
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -36,12 +59,13 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view style="background-color: red;height: 10px">
|
<view style="height: 10px">
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="hot_serch">
|
<view class="hot_serch">
|
||||||
<text>热搜:</text> <text @click="hotSerchFn('小张副食')">小张副食</text> <text
|
<text>热搜:</text>
|
||||||
@click="hotSerchFn('正新酒店')">正新酒店</text>
|
<text @click="hotSerchFn('小张副食')">小张副食</text>
|
||||||
|
<text @click="hotSerchFn('正新酒店')">正新酒店</text>
|
||||||
<text @click="hotSerchFn('麻辣鸡')">麻辣鸡</text>
|
<text @click="hotSerchFn('麻辣鸡')">麻辣鸡</text>
|
||||||
<text @click="hotSerchFn('手撕椒麻鸡')">手撕椒麻鸡</text>
|
<text @click="hotSerchFn('手撕椒麻鸡')">手撕椒麻鸡</text>
|
||||||
</view>
|
</view>
|
||||||
@ -274,6 +298,11 @@
|
|||||||
<image :src="image"></image>
|
<image :src="image"></image>
|
||||||
<image src="@/static/images/guanbi.png" class="guanbi" @click="close"></image>
|
<image src="@/static/images/guanbi.png" class="guanbi" @click="close"></image>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
|
<view class="">
|
||||||
|
<u-picker :defaultIndex="defaInd" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm"
|
||||||
|
@cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker>
|
||||||
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@ -303,6 +332,18 @@
|
|||||||
configMap
|
configMap
|
||||||
} from '@/utils';
|
} from '@/utils';
|
||||||
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
|
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
|
||||||
|
import {
|
||||||
|
getArea,
|
||||||
|
getStreet
|
||||||
|
} from '@/api/article.js';
|
||||||
|
import {
|
||||||
|
getIndexData,
|
||||||
|
getDiy
|
||||||
|
} from '@/api/api.js'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import Cache from '@/utils/cache';
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -312,6 +353,9 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
defaInd: [0, 0],
|
||||||
|
columnData: [],
|
||||||
|
showSerch: false,
|
||||||
imgList: [
|
imgList: [
|
||||||
"/static/images/GXSC/BBY.png",
|
"/static/images/GXSC/BBY.png",
|
||||||
"/static/images/GXSC/NYSC.png",
|
"/static/images/GXSC/NYSC.png",
|
||||||
@ -331,6 +375,7 @@
|
|||||||
"/static/images/GXSC/JDMS.png",
|
"/static/images/GXSC/JDMS.png",
|
||||||
],
|
],
|
||||||
street_id: "",
|
street_id: "",
|
||||||
|
showSelect: false,
|
||||||
price: 0,
|
price: 0,
|
||||||
stock: 0,
|
stock: 0,
|
||||||
nows: false,
|
nows: false,
|
||||||
@ -348,6 +393,8 @@
|
|||||||
downKey: 0,
|
downKey: 0,
|
||||||
downStatus: false,
|
downStatus: false,
|
||||||
menuList: [],
|
menuList: [],
|
||||||
|
street: "",
|
||||||
|
showPicker: false,
|
||||||
// 下拉菜单
|
// 下拉菜单
|
||||||
downMenu: [{
|
downMenu: [{
|
||||||
title: '默认',
|
title: '默认',
|
||||||
@ -406,6 +453,7 @@
|
|||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
// console.log(options);
|
// console.log(options);
|
||||||
this.street_id = options.street_id
|
this.street_id = options.street_id
|
||||||
|
this.street = options.townName
|
||||||
this.product_type = options.product_type ?? 0
|
this.product_type = options.product_type ?? 0
|
||||||
if (options.street_id != undefined) {
|
if (options.street_id != undefined) {
|
||||||
this.sotreParam.street_id = options.street_id
|
this.sotreParam.street_id = options.street_id
|
||||||
@ -424,7 +472,7 @@
|
|||||||
supMenuApi().then(res => {
|
supMenuApi().then(res => {
|
||||||
this.menuList = res.data
|
this.menuList = res.data
|
||||||
})
|
})
|
||||||
|
this.Area()
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
downMenus: function() {
|
downMenus: function() {
|
||||||
@ -445,11 +493,103 @@
|
|||||||
}, mapGetters(['viewColor'])),
|
}, mapGetters(['viewColor'])),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
selectLocation() {
|
||||||
|
this.isSelectPlace ? this.showPicker = true : ''
|
||||||
|
|
||||||
|
},
|
||||||
|
confirm(e) {
|
||||||
|
this.showPicker = false
|
||||||
|
this.$emit('selectPlce', e)
|
||||||
|
this.$emit('change', e)
|
||||||
|
this.street = e.value[1].name
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$bus.$emit('value-updated', e.value[1].name + ',' + e.value[1].code);
|
||||||
|
|
||||||
|
})
|
||||||
|
this.sotreParam.street_id = e.value[1].code
|
||||||
|
this.street_id = e.value[1].code
|
||||||
|
this.storeMerchantList()
|
||||||
|
},
|
||||||
|
changeHandler(e) {
|
||||||
|
const {
|
||||||
|
columnIndex,
|
||||||
|
value,
|
||||||
|
values,
|
||||||
|
index,
|
||||||
|
picker = this.$refs.uPicker
|
||||||
|
} = e;
|
||||||
|
if (columnIndex === 0) {
|
||||||
|
getStreet({
|
||||||
|
area_code: value[0]['code']
|
||||||
|
}).then(res => {
|
||||||
|
picker.setColumnValues(1, res.data);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Area() {
|
||||||
|
getArea({
|
||||||
|
city_code: 510500
|
||||||
|
}).then(res => {
|
||||||
|
this.$refs.uPicker.setColumnValues(0, res.data);
|
||||||
|
// this.Street(res.data[0]['code']);
|
||||||
|
// console.log(res.data, 66666)
|
||||||
|
});
|
||||||
|
},
|
||||||
|
Street(code) {
|
||||||
|
getStreet({
|
||||||
|
area_code: code
|
||||||
|
}).then(res => {
|
||||||
|
this.$refs.uPicker.setColumnValues(1, res.data);
|
||||||
|
console.log(res.data, 9999)
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
swiperChange(e) {
|
||||||
|
let {
|
||||||
|
current,
|
||||||
|
source
|
||||||
|
} = e.detail;
|
||||||
|
if (source === 'autoplay' || source === 'touch') {
|
||||||
|
this.bgColor = this.swiper.url[e.detail.current]['img']
|
||||||
|
this.$emit('kkchange', this.bgColor)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
onInputConfirm() {
|
||||||
|
|
||||||
|
this.showSerch = false
|
||||||
|
this.searchSubmit()
|
||||||
|
|
||||||
|
},
|
||||||
|
// 对象转数组
|
||||||
|
objToArr(data) {
|
||||||
|
let obj = Object.keys(data).sort();
|
||||||
|
let m = obj.map(key => data[key]);
|
||||||
|
return m;
|
||||||
|
},
|
||||||
|
async getBanner(id) {
|
||||||
|
let that = this;
|
||||||
|
const {
|
||||||
|
data
|
||||||
|
} = await getDiy({
|
||||||
|
id: 0
|
||||||
|
})
|
||||||
|
that.styleConfig = that.objToArr(data.value);
|
||||||
|
/* 循环数组得到数据*/
|
||||||
|
that.styleConfig.forEach((item, index, arr) => {
|
||||||
|
if (item.name == 'headerSerch' || item.name == 'homeComb') {
|
||||||
|
if (item.name == 'homeComb') {
|
||||||
|
that.swiper.url = item.swiperConfig.list
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.bgColor = this.swiper.url[0].img
|
||||||
|
},
|
||||||
|
|
||||||
test() {
|
test() {
|
||||||
if (this.sotreParam.keyword.length > 3) {
|
if (this.sotreParam.keyword.length > 3) {
|
||||||
this.sotreParam.keyword.slice(0, 3)
|
this.sotreParam.keyword.slice(0, 3)
|
||||||
this.sotreParam.keyword = this.sotreParam.keyword.slice(0, 3) + "..."
|
this.sotreParam.keyword = this.sotreParam.keyword.slice(0, 3) + "..."
|
||||||
console.log(this.sotreParam.keyword)
|
|
||||||
}
|
}
|
||||||
// console.log(this.sotreParam.keyword.length)
|
// console.log(this.sotreParam.keyword.length)
|
||||||
},
|
},
|
||||||
@ -462,6 +602,11 @@
|
|||||||
url
|
url
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
navGoto(url) {
|
||||||
|
uni.redirectTo({
|
||||||
|
url
|
||||||
|
})
|
||||||
|
},
|
||||||
navGo(id) {
|
navGo(id) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/nongKe/supply_chain/supplierA?type_id=10&merchant_category_id=${id}&street_id=${this.street_id}`
|
url: `/pages/nongKe/supply_chain/supplierA?type_id=10&merchant_category_id=${id}&street_id=${this.street_id}`
|
||||||
@ -644,7 +789,7 @@
|
|||||||
// console.log(rqData)
|
// console.log(rqData)
|
||||||
storeMerchantList(rqData).then(res => {
|
storeMerchantList(rqData).then(res => {
|
||||||
this.count = res.data.count
|
this.count = res.data.count
|
||||||
this.storeList = this.storeList.concat(res.data.list)
|
this.storeList = (res.data.list)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.loadingIcon = false
|
this.loadingIcon = false
|
||||||
})
|
})
|
||||||
@ -667,6 +812,7 @@
|
|||||||
let that = this;
|
let that = this;
|
||||||
that.$set(that.sotreParam, 'keyword', this.sotreParam.keyword);
|
that.$set(that.sotreParam, 'keyword', this.sotreParam.keyword);
|
||||||
this.set_where(this.firstKey)
|
this.set_where(this.firstKey)
|
||||||
|
this.showSerch = false
|
||||||
},
|
},
|
||||||
// 右侧切换
|
// 右侧切换
|
||||||
bindRight() {
|
bindRight() {
|
||||||
@ -674,7 +820,7 @@
|
|||||||
this.rightBox = true
|
this.rightBox = true
|
||||||
},
|
},
|
||||||
// 组件确定
|
// 组件确定
|
||||||
confirm(data) {
|
confirm1(data) {
|
||||||
let arr1 = [],
|
let arr1 = [],
|
||||||
arr2 = []
|
arr2 = []
|
||||||
if (data.storeTypeArr.length == 0) {
|
if (data.storeTypeArr.length == 0) {
|
||||||
@ -737,6 +883,9 @@
|
|||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
uni.stopPullDownRefresh()
|
uni.stopPullDownRefresh()
|
||||||
},
|
},
|
||||||
|
onShow() {
|
||||||
|
this.showSelect = false
|
||||||
|
},
|
||||||
//上划加载更多
|
//上划加载更多
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.count === this.storeList.length) {
|
if (this.count === this.storeList.length) {
|
||||||
@ -832,7 +981,7 @@
|
|||||||
height: auto;
|
height: auto;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
border-radius: 20rpx;
|
// border-radius: 20rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
// align-items: center;
|
// align-items: center;
|
||||||
|
|
||||||
@ -873,6 +1022,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.selects {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.search-right.styleType2 .right-text,
|
.search-right.styleType2 .right-text,
|
||||||
.search-right.styleType3 .right-text {
|
.search-right.styleType3 .right-text {
|
||||||
@ -901,6 +1055,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.town_name {
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
/* 设置文本不换行 */
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
max-width: 25vw;
|
||||||
|
font-size: 14px;
|
||||||
|
/* 设置溢出文本为省略号 */
|
||||||
|
}
|
||||||
|
|
||||||
.hot_serch {
|
.hot_serch {
|
||||||
color: #B3B3B3;
|
color: #B3B3B3;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -1086,6 +1250,43 @@
|
|||||||
margin-left: 10rpx;
|
margin-left: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.selected-list {
|
||||||
|
padding: 24rpx 14rpx;
|
||||||
|
border-radius: 10.51rpx 10.51rpx 10.51rpx 10.51rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
position: absolute;
|
||||||
|
left: 100rpx;
|
||||||
|
font-size: 29.79rpx;
|
||||||
|
opacity: 0;
|
||||||
|
transition: 0.5s;
|
||||||
|
height: 0;
|
||||||
|
|
||||||
|
|
||||||
|
.triangle-up {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-left: 10rpx solid transparent;
|
||||||
|
border-right: 10rpx solid transparent;
|
||||||
|
border-bottom: 10rpx solid white;
|
||||||
|
position: absolute;
|
||||||
|
top: -10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-li {
|
||||||
|
margin-bottom: 35rpx;
|
||||||
|
color: #F84221;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.actSel {
|
||||||
|
opacity: 1;
|
||||||
|
height: auto;
|
||||||
|
// transform: translateX(100rpx);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.store-wrapper {
|
.store-wrapper {
|
||||||
margin-top: 235rpx;
|
margin-top: 235rpx;
|
||||||
border-top: 1px solid #F6F6F6;
|
border-top: 1px solid #F6F6F6;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<u-search borderColor="#FF6D20" bgColor="white" :showAction="false" placeholder="搜索店铺名称"
|
<u-search borderColor="#FF6D20" bgColor="white" :showAction="false" placeholder="搜索店铺名称"
|
||||||
v-model="sotreParam.keyword" class="serch_cls"></u-search>
|
v-model="sotreParam.keyword" class="serch_cls"></u-search>
|
||||||
<u--image @tap="searchSubmit" class="img_cls" :showLoading="true"
|
<u--image @tap="searchSubmit" class="img_cls" :showLoading="true"
|
||||||
src="/static/images/GXSC/SS.png" width="115.65rpx" height="56.82rpx"></u--image>
|
src="/static/images/GXSC/SSBT.png" width="115.65rpx" height="56.82rpx"></u--image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
@ -173,6 +173,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
|
|
||||||
Toast
|
Toast
|
||||||
} from '@/libs/uniApi.js'
|
} from '@/libs/uniApi.js'
|
||||||
import {
|
import {
|
||||||
@ -395,13 +396,20 @@
|
|||||||
merchantUpdateAPI(data).then(res => {
|
merchantUpdateAPI(data).then(res => {
|
||||||
Toast(res.message)
|
Toast(res.message)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.switchTab({
|
// uni.switchTab({
|
||||||
url: '/pages/gather/gather',
|
// url: '/pages/moreProject/moreProject',
|
||||||
fail: (err) => {
|
// fail: (err) => {
|
||||||
// console.log('err', err);
|
// // console.log('err', err);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
}, 2000)
|
// uni.navigateTo({
|
||||||
|
// url:'/pages/moreProject/moreProject'
|
||||||
|
// })
|
||||||
|
uni.redirectTo({
|
||||||
|
url:'/pages/moreProject/moreProject'
|
||||||
|
})
|
||||||
|
|
||||||
|
}, 1000)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
Toast(err)
|
Toast(err)
|
||||||
})
|
})
|
||||||
@ -422,28 +430,36 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
seleckImage(i) {
|
seleckImage(i) {
|
||||||
let that = this
|
let that = this;
|
||||||
uni.chooseImage({
|
that.$util.uploadImageOne('upload/image', function(res) {
|
||||||
count: 1,
|
// console.log(res)
|
||||||
sizeType: ['original', 'compressed'],
|
that.images[i].img = res.data.path
|
||||||
sourceType: ['album', 'camera'],
|
|
||||||
success: function(res) {
|
|
||||||
console.log(res);
|
|
||||||
uni.showLoading({
|
|
||||||
title: '上传中...'
|
|
||||||
})
|
|
||||||
uploads(res.tempFilePaths[0], 'img').then(res => {
|
|
||||||
that.images[i].img = res
|
|
||||||
uni.hideLoading()
|
|
||||||
}).catch(err => {
|
|
||||||
Toast('添加失败')
|
|
||||||
uni.hideLoading()
|
|
||||||
})
|
|
||||||
},
|
|
||||||
fail: function(err) {
|
|
||||||
Toast('添加失败')
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
// let that = this
|
||||||
|
// uni.chooseImage({
|
||||||
|
// count: 1,
|
||||||
|
// sizeType: ['original', 'compressed'],
|
||||||
|
// sourceType: ['album', 'camera'],
|
||||||
|
// success: function(res) {
|
||||||
|
|
||||||
|
// uni.showLoading({
|
||||||
|
// title: '上传中...'
|
||||||
|
// })
|
||||||
|
// console.log(res.tempFilePaths[0],'22222222');
|
||||||
|
// uploads(res.tempFilePaths[0], 'img').then(res => {
|
||||||
|
// console.log(res,'3333');
|
||||||
|
// that.images[i].img = res
|
||||||
|
// uni.hideLoading()
|
||||||
|
// }).catch(err => {
|
||||||
|
// Toast('添加失败')
|
||||||
|
// uni.hideLoading()
|
||||||
|
// })
|
||||||
|
// },
|
||||||
|
// fail: function(err) {
|
||||||
|
// Toast('添加失败')
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
},
|
},
|
||||||
delImg(i) {
|
delImg(i) {
|
||||||
let that = this
|
let that = this
|
||||||
|
163
pages/product/transactionApplication/application.vue
Normal file
@ -0,0 +1,163 @@
|
|||||||
|
<template>
|
||||||
|
|
||||||
|
<view class="content">
|
||||||
|
<view class="">
|
||||||
|
|
||||||
|
|
||||||
|
<view class="content_con" v-for="(item,index) in datalist" :key='index'>
|
||||||
|
<view class="content_title">
|
||||||
|
<view class="content_title_a" v-if="item.status==1">
|
||||||
|
已通过
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="content_title_c" v-else-if="item.status==2">
|
||||||
|
已拒绝
|
||||||
|
</view>
|
||||||
|
<view class="content_title_b" v-else-if="item.status==0">
|
||||||
|
审核中
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="content_title_d">
|
||||||
|
{{item.mer_name}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="" v-if="item.fail_msg" style="margin-top: -50rpx;color: red;">
|
||||||
|
拒绝原因:{{item.fail_msg}}
|
||||||
|
</view>
|
||||||
|
<view class="content_detail">
|
||||||
|
<view class="" style="display: flex;">
|
||||||
|
<view style="width:150rpx;"> 申请人:</view>
|
||||||
|
<span>{{item.name}}</span><text style="margin-left: 20rpx;">{{item.phone}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="" style="display: flex;">
|
||||||
|
|
||||||
|
<view style="width:150rpx;"> 申请时间:</view>
|
||||||
|
<span>{{item.create_time}}</span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="" style="padding-top: 1px;" v-if='datalist.length==0'>
|
||||||
|
<emptyPage title="暂无申请信息"></emptyPage>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import emptyPage from '@/components/emptyPage.vue';
|
||||||
|
import {
|
||||||
|
intention
|
||||||
|
} from "@/api/product"
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
emptyPage
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
datalist: [],
|
||||||
|
where: {
|
||||||
|
type: 2,
|
||||||
|
page: 1,
|
||||||
|
limit: 10
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
this.list()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
list() {
|
||||||
|
intention(this.where).then(res => {
|
||||||
|
this.datalist = res.data.list
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.content {
|
||||||
|
padding: 12rpx 12rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content_con {
|
||||||
|
padding: 42rpx 32rpx;
|
||||||
|
height: 294rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 21rpx 21rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content_title {
|
||||||
|
display: flex;
|
||||||
|
margin-bottom: 70rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
.content_title_a {
|
||||||
|
width: 89rpx;
|
||||||
|
height: 37rpx;
|
||||||
|
line-height: 37rpx;
|
||||||
|
text-align: center;
|
||||||
|
background: #16C295;
|
||||||
|
font-size: 23rpx;
|
||||||
|
font-family: DingTalk JinBuTi-Regular, DingTalk JinBuTi;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #FFFFFF;
|
||||||
|
border-radius: 15rpx 0 15rpx 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.content_title_b {
|
||||||
|
width: 89rpx;
|
||||||
|
height: 37rpx;
|
||||||
|
line-height: 37rpx;
|
||||||
|
text-align: center;
|
||||||
|
background: #3274F9;
|
||||||
|
font-size: 23rpx;
|
||||||
|
font-family: DingTalk JinBuTi-Regular, DingTalk JinBuTi;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #FFFFFF;
|
||||||
|
border-radius: 15rpx 0 15rpx 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.content_title_c {
|
||||||
|
width: 89rpx;
|
||||||
|
height: 37rpx;
|
||||||
|
line-height: 37rpx;
|
||||||
|
text-align: center;
|
||||||
|
background: #ff0000;
|
||||||
|
font-size: 23rpx;
|
||||||
|
font-family: DingTalk JinBuTi-Regular, DingTalk JinBuTi;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #FFFFFF;
|
||||||
|
border-radius: 15rpx 0 15rpx 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.content_title_d {
|
||||||
|
font-size: 33rpx;
|
||||||
|
font-family: PingFang SC-Medium, PingFang SC;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #333333;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
margin-top: -7rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.content_detail {
|
||||||
|
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-family: PingFang SC-Regular, PingFang SC;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #333333;
|
||||||
|
|
||||||
|
view {
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
241
pages/product/transactionApplication/index.vue
Normal file
@ -0,0 +1,241 @@
|
|||||||
|
<template>
|
||||||
|
<view v-if="!successful" class="content">
|
||||||
|
|
||||||
|
<view class="content-detail">
|
||||||
|
<view class="content-title">
|
||||||
|
<view class="content-title-a">
|
||||||
|
交易申请协议
|
||||||
|
</view>
|
||||||
|
<view class="content-title-b" @click="navation">
|
||||||
|
申请记录
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="">
|
||||||
|
|
||||||
|
<view v-html="detail.business_apply_agree">
|
||||||
|
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="content-bottom" v-if="type==0">
|
||||||
|
<view class="bottombtn_no" @click="noagree">拒绝</view>
|
||||||
|
<view class="bottom_agree" @click="agree">同意</view>
|
||||||
|
</view>
|
||||||
|
<view class="content-bottom" v-if="type==1||type==3">
|
||||||
|
<view class="bottom_agree" @click="agree">重新申请</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="settledSuccessMain" v-else>
|
||||||
|
<view class="settledSuccessful">
|
||||||
|
|
||||||
|
<image class="image" src="@/pages/store/static/images/settledSuccessful.svg">
|
||||||
|
<view class="title">恭喜,您的资料提交成功!</view>
|
||||||
|
<view class="info">预计15个工作日内审核完毕,平台客服会及时与您联系!</view>
|
||||||
|
<view class="goHome" hover-class="none" @click="goHome">
|
||||||
|
返回首页
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
business,
|
||||||
|
intentionbus
|
||||||
|
} from "@/api/product"
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
detail: {},
|
||||||
|
type: 0,
|
||||||
|
successful: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(e) {
|
||||||
|
this.type = e.business_status
|
||||||
|
|
||||||
|
this.list()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
//获取协议内容
|
||||||
|
list() {
|
||||||
|
business().then(res => {
|
||||||
|
this.detail = res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// 首页
|
||||||
|
goHome() {
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/index/index'
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//跳转
|
||||||
|
navation() {
|
||||||
|
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/product/transactionApplication/application'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
//拒绝申请
|
||||||
|
noagree() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/moreProject/moreProject'
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
//同意申请
|
||||||
|
agree() {
|
||||||
|
intentionbus().then(res => {
|
||||||
|
if (res.status == 200) {
|
||||||
|
this.$util.Tips({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'success',
|
||||||
|
})
|
||||||
|
this.successful=true
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}).catch((err) => {
|
||||||
|
|
||||||
|
this.$util.Tips({
|
||||||
|
title: err,
|
||||||
|
icon: 'error',
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.content {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-detail {
|
||||||
|
padding: 20rpx 20rpx;
|
||||||
|
color: #333333;
|
||||||
|
font-size: 28rpx;
|
||||||
|
margin-bottom: 155rpx;
|
||||||
|
|
||||||
|
.content-title {
|
||||||
|
color: #333333;
|
||||||
|
font-size: 32rpx;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 40rpx;
|
||||||
|
margin-bottom: 40rpx;
|
||||||
|
|
||||||
|
.content-title-b {
|
||||||
|
width: 165rpx;
|
||||||
|
height: 70rpx;
|
||||||
|
font-size: 26rpx;
|
||||||
|
font-family: PingFang SC-Regular, PingFang SC;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #FFFFFF;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 70rpx;
|
||||||
|
background: linear-gradient(90deg, #F84221 0%, #FF6D20 100%);
|
||||||
|
box-shadow: 0px 4rpx 11rpx 2rpx rgba(252, 89, 32, 0.49);
|
||||||
|
border-radius: 37rpx 0px 0px 37rpx;
|
||||||
|
opacity: 1;
|
||||||
|
position: absolute;
|
||||||
|
top: 40rpx;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-bottom {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
bottom: 0;
|
||||||
|
position: fixed;
|
||||||
|
height: 175rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
|
||||||
|
|
||||||
|
.bottombtn_no {
|
||||||
|
margin-top: 42rpx;
|
||||||
|
width: 249rpx;
|
||||||
|
height: 84rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 84rpx;
|
||||||
|
border-radius: 46rpx 46rpx;
|
||||||
|
opacity: 1;
|
||||||
|
border: 2rpx solid #B3B3B3;
|
||||||
|
font-size: 33rpx;
|
||||||
|
font-family: PingFang SC-Medium, PingFang SC;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #737373;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottom_agree {
|
||||||
|
margin-top: 42rpx;
|
||||||
|
width: 249rpx;
|
||||||
|
height: 84rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 84rpx;
|
||||||
|
background: linear-gradient(270deg, #FF6D20 0%, #F84221 100%);
|
||||||
|
border-radius: 46rpx 46rpx;
|
||||||
|
opacity: 1;
|
||||||
|
|
||||||
|
font-size: 33rpx;
|
||||||
|
font-family: PingFang SC-Medium, PingFang SC;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
.settledSuccessMain {
|
||||||
|
height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.settledSuccessful {
|
||||||
|
flex: 1;
|
||||||
|
width: 100%;
|
||||||
|
padding: 0 56px;
|
||||||
|
height: auto;
|
||||||
|
background: #fff;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.settledSuccessful .image {
|
||||||
|
width: 189px;
|
||||||
|
height: 157px;
|
||||||
|
margin-top: 66px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.settledSuccessful .title {
|
||||||
|
color: #333333;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-top: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.settledSuccessful .info {
|
||||||
|
color: #A0A0A0;
|
||||||
|
font-size: 13px;
|
||||||
|
margin-top: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.settledSuccessful .goHome {
|
||||||
|
margin: 60px auto 0;
|
||||||
|
line-height: 43px;
|
||||||
|
color: #282828;
|
||||||
|
font-size: 15px;
|
||||||
|
border: 1px solid #B4B4B4;
|
||||||
|
border-radius: 60px;
|
||||||
|
}
|
||||||
|
</style>
|
@ -618,6 +618,12 @@
|
|||||||
value: 2,
|
value: 2,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
tabs5: [{
|
||||||
|
icon: 'icon-yizhan_o',
|
||||||
|
name: '云商品',
|
||||||
|
value: 7,
|
||||||
|
}
|
||||||
|
],
|
||||||
tabs: [],
|
tabs: [],
|
||||||
storeScroll: true,
|
storeScroll: true,
|
||||||
storeTop: 0,
|
storeTop: 0,
|
||||||
@ -627,7 +633,8 @@
|
|||||||
service_open: false,
|
service_open: false,
|
||||||
type: 3,
|
type: 3,
|
||||||
statusBarHeight: 0,
|
statusBarHeight: 0,
|
||||||
isLihaiYun: ''
|
isLihaiYun: '',
|
||||||
|
business_status:0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -768,8 +775,15 @@
|
|||||||
this.storeHeight = data.height;
|
this.storeHeight = data.height;
|
||||||
this.storeTop = data.top;
|
this.storeTop = data.top;
|
||||||
}).exec();
|
}).exec();
|
||||||
|
this.userinfo()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
userinfo(){
|
||||||
|
getUserInfo().then(res => {
|
||||||
|
|
||||||
|
this.business_status=res.data.mer_info.business_status
|
||||||
|
})
|
||||||
|
},
|
||||||
getProductSpu() {
|
getProductSpu() {
|
||||||
let that = this;
|
let that = this;
|
||||||
if (that.loadend) return;
|
if (that.loadend) return;
|
||||||
@ -954,7 +968,12 @@
|
|||||||
// this.tabs = this.tabs2
|
// this.tabs = this.tabs2
|
||||||
// this.service_open = false
|
// this.service_open = false
|
||||||
// }
|
// }
|
||||||
|
if(this.business_status==2){
|
||||||
this.isLihaiYun === 'Lihai' ? this.tabs = this.tabs4 : this.tabs = this.tabs3
|
this.isLihaiYun === 'Lihai' ? this.tabs = this.tabs4 : this.tabs = this.tabs3
|
||||||
|
}else{
|
||||||
|
this.tabs = this.tabs5
|
||||||
|
}
|
||||||
|
|
||||||
this.tab(this.type)
|
this.tab(this.type)
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
this.ShareInfo();
|
this.ShareInfo();
|
||||||
|
@ -19,13 +19,8 @@
|
|||||||
placeholder-class='placeholder' />
|
placeholder-class='placeholder' />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
|
||||||
<view class="acea-row row-middle">
|
|
||||||
<text class="item-name">用户姓名</text>
|
|
||||||
<input type="text" placeholder="请输入姓名" v-model="merchantData.user_name" @input="validateBtn"
|
|
||||||
placeholder-class='placeholder' />
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="acea-row row-middle">
|
<view class="acea-row row-middle">
|
||||||
<text class="item-name">联系电话</text>
|
<text class="item-name">联系电话</text>
|
||||||
@ -128,6 +123,13 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="item">
|
||||||
|
<view class="acea-row row-middle">
|
||||||
|
<text class="item-name">法人名称</text>
|
||||||
|
<input type="text" placeholder="请输入法人名称" v-model="merchantData.user_name" @input="validateBtn"
|
||||||
|
placeholder-class='placeholder' />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="uni-list">
|
<view class="uni-list">
|
||||||
<view class="uni-list-cell">
|
<view class="uni-list-cell">
|
||||||
@ -172,7 +174,10 @@
|
|||||||
</checkbox-group>
|
</checkbox-group>
|
||||||
<button class="settleAgree" @click="getConfig">《入驻协议》</button>
|
<button class="settleAgree" @click="getConfig">《入驻协议》</button>
|
||||||
</view>
|
</view>
|
||||||
<button class='submitBtn' :class="validate === true ? 'on':''" @click="formSubmit">提交申请</button>
|
|
||||||
|
<button class='submitBtn' :class="validate === true? 'on':''" @click="formSubmit">
|
||||||
|
提交申请
|
||||||
|
</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</form>
|
</form>
|
||||||
@ -186,6 +191,28 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="settlementAgreement" v-if="isshow">
|
||||||
|
<view class="setAgCount">
|
||||||
|
<i class="icon iconfont icon-cha" @click="recuo"></i>
|
||||||
|
<div class="title">商户入驻协议</div>
|
||||||
|
<view class="contenta">
|
||||||
|
<jyf-parser :html="detail.sys_intention_agree" ref="article" :tag-style="tagStyle"></jyf-parser>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
<view class="setAgCountbtn">
|
||||||
|
<button class="setAgCountbtna" @click="refuse">
|
||||||
|
拒绝
|
||||||
|
</button>
|
||||||
|
|
||||||
|
|
||||||
|
<button :class="num>0?'setAgCountbtnb':'setAgCountbtnc'" :disabled="num!=0" @click="isshow=false">
|
||||||
|
<text v-if="num>0">请仔细阅读协议{{num}}S</text>
|
||||||
|
<text v-else>同意</text>
|
||||||
|
|
||||||
|
</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class='loadingicon acea-row row-center-wrapper' v-if="loading">
|
<view class='loadingicon acea-row row-center-wrapper' v-if="loading">
|
||||||
<text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>
|
<text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>
|
||||||
</view>
|
</view>
|
||||||
@ -221,7 +248,8 @@
|
|||||||
merClassifly,
|
merClassifly,
|
||||||
getGoodsDetails,
|
getGoodsDetails,
|
||||||
updateGoodsRecord,
|
updateGoodsRecord,
|
||||||
getStoreTypeApi
|
getStoreTypeApi,
|
||||||
|
agreeiness
|
||||||
} from '@/api/store.js';
|
} from '@/api/store.js';
|
||||||
import {
|
import {
|
||||||
getCaptcha,
|
getCaptcha,
|
||||||
@ -266,6 +294,7 @@
|
|||||||
showProtocol: false,
|
showProtocol: false,
|
||||||
isShowCode: false,
|
isShowCode: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
|
isshow: false,
|
||||||
merchantData: {
|
merchantData: {
|
||||||
enterprise_name: "",
|
enterprise_name: "",
|
||||||
user_name: "",
|
user_name: "",
|
||||||
@ -314,6 +343,8 @@
|
|||||||
},
|
},
|
||||||
mer_i_id: null, // 商户申请id
|
mer_i_id: null, // 商户申请id
|
||||||
isType: false,
|
isType: false,
|
||||||
|
num: 30,
|
||||||
|
detail: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
@ -323,6 +354,7 @@
|
|||||||
sys_intention_agree: ''
|
sys_intention_agree: ''
|
||||||
}, mapGetters(['isLogin', 'viewColor', 'keyColor'])),
|
}, mapGetters(['isLogin', 'viewColor', 'keyColor'])),
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getClassfication();
|
this.getClassfication();
|
||||||
this.getStoreType();
|
this.getStoreType();
|
||||||
@ -340,10 +372,61 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.getArea()
|
this.getArea()
|
||||||
|
this.shoplist()
|
||||||
},
|
},
|
||||||
onShow() {},
|
onShow() {},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
methods: {
|
methods: {
|
||||||
|
//关闭弹窗
|
||||||
|
recuo() {
|
||||||
|
if (this.num > 0) {
|
||||||
|
this.num = 30
|
||||||
|
this.isshow = false
|
||||||
|
} else {
|
||||||
|
this.num = 0
|
||||||
|
this.isshow = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//拒绝
|
||||||
|
refuse() {
|
||||||
|
|
||||||
|
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/user/index'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
countDown() {
|
||||||
|
let {
|
||||||
|
num
|
||||||
|
} = this;
|
||||||
|
// if (num === 3) this.nums = true;
|
||||||
|
num = num > 0 ? num - 1 : "0";
|
||||||
|
setTimeout(() => {
|
||||||
|
|
||||||
|
this.num = num;
|
||||||
|
if (num == '0') {
|
||||||
|
// this.launchApp()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (this.isshow == false && this.num > 0) {
|
||||||
|
this.num = 30
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.countDown();
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
//获取商户入驻申请协议
|
||||||
|
shoplist() {
|
||||||
|
agreeiness().then(res => {
|
||||||
|
// console.log(res)
|
||||||
|
this.detail = res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
//是否是农贸市场
|
//是否是农贸市场
|
||||||
// change(e) {
|
// change(e) {
|
||||||
// this.isnum = (e === true ? 1 : 0)
|
// this.isnum = (e === true ? 1 : 0)
|
||||||
@ -458,7 +541,7 @@
|
|||||||
this.validateBtn()
|
this.validateBtn()
|
||||||
},
|
},
|
||||||
bindPickerChange1: function(e) {
|
bindPickerChange1: function(e) {
|
||||||
console.log(e);
|
|
||||||
this.index1 = e.target.value
|
this.index1 = e.target.value
|
||||||
let idx = e.target.value
|
let idx = e.target.value
|
||||||
this.merchantData.mer_type = this.storeTypeArr[idx]['mer_type_id']
|
this.merchantData.mer_type = this.storeTypeArr[idx]['mer_type_id']
|
||||||
@ -490,7 +573,7 @@
|
|||||||
getStoreType: function() {
|
getStoreType: function() {
|
||||||
getStoreTypeApi()
|
getStoreTypeApi()
|
||||||
.then(res => {
|
.then(res => {
|
||||||
console.log(res);
|
|
||||||
this.storeTypeArr = res.data
|
this.storeTypeArr = res.data
|
||||||
})
|
})
|
||||||
.catch(res => {
|
.catch(res => {
|
||||||
@ -633,7 +716,15 @@
|
|||||||
this.isAgree = !this.isAgree;
|
this.isAgree = !this.isAgree;
|
||||||
this.validateBtn();
|
this.validateBtn();
|
||||||
},
|
},
|
||||||
|
//协议弹窗
|
||||||
|
showxy() {
|
||||||
|
this.isshow = true
|
||||||
|
},
|
||||||
|
|
||||||
formSubmit: function(e) {
|
formSubmit: function(e) {
|
||||||
|
|
||||||
|
if (this.num == 0) {
|
||||||
|
|
||||||
let that = this;
|
let that = this;
|
||||||
if (that.validateForm() && that.validate) {
|
if (that.validateForm() && that.validate) {
|
||||||
let requestData = {
|
let requestData = {
|
||||||
@ -689,6 +780,13 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
this.isshow = true
|
||||||
|
this.countDown()
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
validateBtn: function() {
|
validateBtn: function() {
|
||||||
let that = this,
|
let that = this,
|
||||||
@ -1127,7 +1225,7 @@
|
|||||||
.settlementAgreement .setAgCount {
|
.settlementAgreement .setAgCount {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
width: 656rpx;
|
width: 656rpx;
|
||||||
height: 458px;
|
// height: 458px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
@ -1180,6 +1278,82 @@
|
|||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.settlementAgreement .setAgCount .contenta {
|
||||||
|
margin-top: 32rpx;
|
||||||
|
color: #333;
|
||||||
|
font-size: 26rpx;
|
||||||
|
line-height: 22px;
|
||||||
|
text-align: justify;
|
||||||
|
text-justify: distribute-all-lines;
|
||||||
|
|
||||||
|
/*#ifdef H5*/
|
||||||
|
height: 600rpx;
|
||||||
|
/*#endif*/
|
||||||
|
/*#ifdef APP-PLUS*/
|
||||||
|
height: 530rpx;
|
||||||
|
/*#endif*/
|
||||||
|
|
||||||
|
overflow-y: scroll;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.setAgCountbtn {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
|
||||||
|
.setAgCountbtna {
|
||||||
|
margin-top: 40rpx;
|
||||||
|
width: 150rpx;
|
||||||
|
height: 74rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 74rpx;
|
||||||
|
border-radius: 46rpx 46rpx;
|
||||||
|
opacity: 1;
|
||||||
|
border: 2rpx solid #B3B3B3;
|
||||||
|
font-size: 25rpx;
|
||||||
|
font-family: PingFang SC-Medium, PingFang SC;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #737373;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.setAgCountbtnb {
|
||||||
|
margin-top: 40rpx;
|
||||||
|
padding-left: 20rpx;
|
||||||
|
padding-right: 20rpx;
|
||||||
|
height: 74rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 74rpx;
|
||||||
|
background:#cecece;
|
||||||
|
border-radius: 46rpx 46rpx;
|
||||||
|
opacity: 1;
|
||||||
|
|
||||||
|
font-size: 25rpx;
|
||||||
|
font-family: PingFang SC-Medium, PingFang SC;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.setAgCountbtnc {
|
||||||
|
margin-top: 40rpx;
|
||||||
|
width: 150rpx;
|
||||||
|
height: 74rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 74rpx;
|
||||||
|
background: linear-gradient(270deg, #FF6D20 0%, #F84221 100%);
|
||||||
|
border-radius: 46rpx 46rpx;
|
||||||
|
opacity: 1;
|
||||||
|
font-size: 25rpx;
|
||||||
|
font-family: PingFang SC-Medium, PingFang SC;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.settledSuccessMain {
|
.settledSuccessMain {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
<view class="list">
|
<view class="list">
|
||||||
<navigator hover-class="none"
|
<navigator hover-class="none"
|
||||||
:url="`/pages/nongKe/supply_chain/supplier?type_id=10&street_id=${street_id}`">
|
:url="`/pages/nongKe/supply_chain/supplier?type_id=10&street_id=${street_id}&townName=${town}`">
|
||||||
<view class="list-m">
|
<view class="list-m">
|
||||||
<image src="@/static/images/f6.png" mode="aspectFit"></image>
|
<image src="@/static/images/f6.png" mode="aspectFit"></image>
|
||||||
<view class="list-title">
|
<view class="list-title">
|
||||||
|
BIN
static/images/GXSC/BSL.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
static/images/GXSC/DW1.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
static/images/GXSC/QB.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
static/images/GXSC/SL.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 2.7 KiB |
BIN
static/images/GXSC/SSBT.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
static/images/GXSC/XL.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
static/images/GXSC/XZ.png
Normal file
After Width: | Height: | Size: 942 B |
BIN
static/images/LHYC/DWB.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.1 KiB |
BIN
static/images/jy.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
@ -125,24 +125,9 @@ const actions = {
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|
||||||
if (Object.keys(res.data.appInfo).length > 0) {
|
if (Object.keys(res.data.appInfo).length > 0) {
|
||||||
|
|
||||||
// if(res.data.appInfo.version) uni.showLoading({
|
// if(res.data.appInfo.version) uni.showLoading({
|
||||||
// title: '检查更新中'
|
// title: '检查更新中'
|
||||||
// })
|
// })
|
||||||
|
|
||||||
if (res.data.appInfo.phone_brand.length > 0) {
|
|
||||||
if (plus.os.name == "Android") {
|
|
||||||
// 跳转安卓应用市场
|
|
||||||
let appurl = res.data.appInfo.dow_url //这个是通用应用市场,如果想指定某个应用商店,需要单独查这个应用商店的包名或scheme及参数
|
|
||||||
plus.runtime.openURL(appurl)
|
|
||||||
} else {
|
|
||||||
// 跳转AppStore
|
|
||||||
plus.runtime.launchApplication({
|
|
||||||
action: res.data.appInfo.dow_url,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
|
|
||||||
// 版本更新
|
// 版本更新
|
||||||
if (compareVersions(res.data.appInfo.version, os.appWgtVersion || wgt_v) == 1 &&
|
if (compareVersions(res.data.appInfo.version, os.appWgtVersion || wgt_v) == 1 &&
|
||||||
compareVersions(res.data.appInfo.version,
|
compareVersions(res.data.appInfo.version,
|
||||||
@ -153,17 +138,19 @@ const actions = {
|
|||||||
title: info.title || '发现新版本',
|
title: info.title || '发现新版本',
|
||||||
content: info.content || '修复了部分BUG',
|
content: info.content || '修复了部分BUG',
|
||||||
versionName: info.version || '1.0.1',
|
versionName: info.version || '1.0.1',
|
||||||
|
|
||||||
|
brand:res.data.appInfo.phone_brand,
|
||||||
downUrl: info.dow_url || '',
|
downUrl: info.dow_url || '',
|
||||||
force: info.force == 1 ? true : false, // 是否强制更新
|
force: info.force == 1 ? true : false, // 是否强制更新
|
||||||
quiet: info.quiet == 1 ? true : false // 是否静默更新
|
quiet: info.quiet == 1 ? true : false // 是否静默更新
|
||||||
}
|
}
|
||||||
Updater.update(version);
|
|
||||||
|
Updater.update(version,res.data.appInfo);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
// uni.hideLoading();
|
// uni.hideLoading();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
|
@ -37,7 +37,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { download, install } from "../updater";
|
import {
|
||||||
|
download,
|
||||||
|
install
|
||||||
|
} from "../updater";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -68,6 +71,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
onLoad(params) {
|
onLoad(params) {
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
title: '发现新版本',
|
title: '发现新版本',
|
||||||
updateBtnText: '立即升级',
|
updateBtnText: '立即升级',
|
||||||
@ -84,6 +88,7 @@ export default {
|
|||||||
return this.updateParams.force;
|
return this.updateParams.force;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
back() {
|
back() {
|
||||||
if (!this.updateParams.force) {
|
if (!this.updateParams.force) {
|
||||||
uni.navigateBack();
|
uni.navigateBack();
|
||||||
@ -96,7 +101,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ios 跳转到appstore,.apk、.wgt 直接安装更新
|
// ios 跳转到appstore,.apk、.wgt 直接安装更新
|
||||||
const isResource = ['.apk', '.wgt'].some(ext => this.updateParams.downUrl.toLocaleLowerCase().includes(ext));
|
const isResource = ['.apk', '.wgt'].some(ext => this.updateParams.downUrl.toLocaleLowerCase().includes(
|
||||||
|
ext));
|
||||||
if (plus.os.name !== "Android" || !isResource) {
|
if (plus.os.name !== "Android" || !isResource) {
|
||||||
plus.runtime.openURL(this.updateParams.downUrl);
|
plus.runtime.openURL(this.updateParams.downUrl);
|
||||||
return;
|
return;
|
||||||
@ -123,6 +129,28 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleButton() {
|
handleButton() {
|
||||||
|
|
||||||
|
if (this.updateParams.brand.length > 0) {
|
||||||
|
if (plus.os.name == "Android") {
|
||||||
|
// 跳转安卓应用市场
|
||||||
|
let appurl = this.updateParams.downUrl //这个是通用应用市场,如果想指定某个应用商店,需要单独查这个应用商店的包名或scheme及参数
|
||||||
|
plus.runtime.openURL(appurl)
|
||||||
|
|
||||||
|
setTimeout((res) => {
|
||||||
|
this.back()
|
||||||
|
}, 1000)
|
||||||
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// 跳转AppStore
|
||||||
|
plus.runtime.launchApplication({
|
||||||
|
action: this.updateParams.downUrl,
|
||||||
|
})
|
||||||
|
setTimeout((res) => {
|
||||||
|
this.back()
|
||||||
|
}, 1000)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
if (!this.downloading) {
|
if (!this.downloading) {
|
||||||
return this.start();
|
return this.start();
|
||||||
}
|
}
|
||||||
@ -133,6 +161,9 @@ export default {
|
|||||||
this.downloadError = true;
|
this.downloadError = true;
|
||||||
return this.start();
|
return this.start();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -301,11 +332,13 @@ page {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.line {
|
.line {
|
||||||
width: 3rpx;
|
width: 3rpx;
|
||||||
height: 50rpx;
|
height: 50rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.close {
|
.close {
|
||||||
width: 64rpx;
|
width: 64rpx;
|
||||||
height: 64rpx;
|
height: 64rpx;
|
||||||
|
@ -3,7 +3,8 @@ const version = '2.0.36'
|
|||||||
|
|
||||||
// 开发环境才提示,生产环境不会提示
|
// 开发环境才提示,生产环境不会提示
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
console.log(`\n %c uView V${version} %c https://uviewui.com/ \n\n`, 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
|
// console.log(`\n %c uView V${version} %c https://uviewui.com/ \n\n`, 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
|
||||||
|
console.log('当前属于测试环境')
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|