diff --git a/App.vue b/App.vue index 9e4a0fe..951f3f5 100644 --- a/App.vue +++ b/App.vue @@ -76,6 +76,15 @@ onLaunch: function(option) { this.globalData.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px'; this.globalData.uid = this.$store.state.app.uid; + let appkey = uni.getStorage({ + key: 'launchFlag' + }) + if (appkey) { + setTimeout(() => { + this.$store.dispatch('INIT_CONFIG'); + }, 6000) + } + // #ifdef APP-PLUS //监听uni小程序发送的事件 @@ -202,8 +211,11 @@ + + }, onShow() { + let that = this // 记录H5和公众号 if (this.$store.state.app.token) { @@ -232,20 +244,74 @@ // #endif }, mounted() { - uni.onTabBarMidButtonTap((e) => { - // console.log("点击了", e); - uni.switchTab({ - url: '/pages/plant_release/index' - }) - // uni.navigateTo({ - // url: '/pages/plant_release/index' - // }) - - }); - uni.setTabBarItem((e) => { console.log("点击了", e)}); + }, methods: { + //网络检测 + checknetwork() { + + uni.onNetworkStatusChange(function(res) { + + if (res.isConnected) { + + uni.reLaunch({ + url: '/pages/index/index' + }) + + } else { + + uni.showModal({ + + title: '系统提示', + + content: '当前设备无网络或网络较差', + + cancelText: '取消', + + confirmText: '确定', + + success: (res) => { + + if (res.confirm) { + + uni.reLaunch({ + + url: '/pages/index/index' + + }) + + } else { + + // #ifdef H5 + + uni.navigateTo({ + url: '/pages/users/login/login_copy' + }) + + // #endif + + // #ifdef APP-PLUS + + plus.runtime.quit() + + // #endif + + } + + } + + }) + + } + + }) + + }, + + + + /** * 语音播报 * @@ -396,9 +462,17 @@ display: flex; justify-content: center; align-items: center; - margin-top: -40rpx; + margin-top: -50rpx; // box-shadow: 0px 5px 10px 1px rgba(32, 161, 98, 0.3); } + + .custom_style-txt { + display: flex; + flex-direction: column; + align-items: center; + margin-top: 5rpx; + + } } .bg-color-red { diff --git a/api/public.js b/api/public.js index 250bb47..723b7d3 100644 --- a/api/public.js +++ b/api/public.js @@ -24,6 +24,7 @@ export function getWechatConfig() { ); } + /** * 获取微信sdk配置 * @returns {*} diff --git a/api/sale.js b/api/sale.js index 7fc62dc..c7e5ce8 100644 --- a/api/sale.js +++ b/api/sale.js @@ -7,4 +7,50 @@ // +---------------------------------------------------------------------- // | Author: CRMEB Team // +---------------------------------------------------------------------- -import request from "@/utils/request.js"; \ No newline at end of file +import request from "@/utils/request.js"; + +//发布委托商品选择 供应链商家接口 +export function supplychain(data) { + return request.get("community/supplychain/list", data); +} + +//普通商家发布委托商品 +export function entrustchain(data) { + return request.post("community/entrust", data); +} + + +//获取委托商品列表 +export function entrustlist(data) { + return request.get("community/entrust/list", data); +} + +//供应链商家是否同意委托 +export function checkchain(id,data) { + return request.post("community/entrust/check/"+id, data); +} + + +//供应链商家申请结束委托 +export function finishchain(id,data) { + return request.post("community/entrust/apply/finish/"+id, data); +} +//商家申请结束委托 +export function finishentrust(id,data) { + return request.post("community/entrust/finish/"+id, data); +} +//委托商品加入购物车 +export function addEntrustCart(data) { + return request.post("community/entrust/addEntrustCart", data); +} + + +//获取委托商品详情 +export function entrustdetail(id) { + return request.get("community/entrust/"+id); +} + +//编辑委托商品详情 +export function editentrust(id,data) { + return request.post("community/entrust/edit/"+id, data); +} \ No newline at end of file diff --git a/api/user.js b/api/user.js index 7b806ed..1f1fce7 100644 --- a/api/user.js +++ b/api/user.js @@ -9,6 +9,14 @@ // +---------------------------------------------------------------------- import request from "@/utils/request.js"; import Cache from '@/utils/cache' +/** + * 获取版本信息 + */ +export function Appversion(data) { + return request.get(`app/version`, data, { + noAuth: true + }); +} /** * 提交提现 */ diff --git a/components/WaterfallsFlow/WaterfallsFlows.vue b/components/WaterfallsFlow/WaterfallsFlows.vue index e954156..faf88dc 100644 --- a/components/WaterfallsFlow/WaterfallsFlows.vue +++ b/components/WaterfallsFlow/WaterfallsFlows.vue @@ -2,13 +2,12 @@ - - + @@ -17,7 +16,7 @@ - + @@ -26,7 +25,7 @@ + + \ No newline at end of file diff --git a/pages/admin/order/index.vue b/pages/admin/order/index.vue index 460b5cf..9387d8a 100644 --- a/pages/admin/order/index.vue +++ b/pages/admin/order/index.vue @@ -239,7 +239,6 @@ const data = { product_type: this.where.product_type } - console.log('data', data); orderStatistics(mer_id, data).then( res => { that.census = res.data.order; diff --git a/pages/admin/orderDetail/index.vue b/pages/admin/orderDetail/index.vue index 0a85f08..4d4d325 100644 --- a/pages/admin/orderDetail/index.vue +++ b/pages/admin/orderDetail/index.vue @@ -146,7 +146,7 @@ - + 同意 diff --git a/pages/admin/orderList/index.vue b/pages/admin/orderList/index.vue index 29a0edf..e01fdf4 100644 --- a/pages/admin/orderList/index.vue +++ b/pages/admin/orderList/index.vue @@ -4,7 +4,7 @@ - @@ -261,7 +261,7 @@ page: 1, limit: 10, status: 1, - store_name: '', + search_info: '', product_type: '' }, list: [], @@ -284,9 +284,7 @@ that.init(); } }, - types: function() { - this.getIndex(); - } + }, onLoad(option) { this.where.product_type = uni.getStorageSync("PRODUCT_TYPE") ?? "" @@ -324,12 +322,13 @@ }, handleSearch() { this.loaded = false; - this.where.page = 3; - this.list = []; + this.where.page = 1; + this.list = []; this.getIndex(); }, // 获取数据 getIndex() { + let that = this; if (that.loading || that.loaded) return; that.loading = true; @@ -355,7 +354,7 @@ that.loaded = res.data.list.length < that.where.limit; that.list.push.apply(that.list, res.data.list); that.where.page = that.where.page + 1; - console.log(that.list) + // console.log(that.list) // console.log(that.list); }, @@ -381,10 +380,12 @@ if (val != 'verify') { if (this.where.status != val) { this.where.status = val; + this.where.search_info='' delete this.where.is_verify; this.init(); } } else { + this.where.search_info='' this.where.is_verify = 1; delete this.where.status; this.init(); diff --git a/pages/chat/customer_list/chat.vue b/pages/chat/customer_list/chat.vue index f0408ef..40a218e 100644 --- a/pages/chat/customer_list/chat.vue +++ b/pages/chat/customer_list/chat.vue @@ -789,6 +789,7 @@ +
@@ -1944,6 +1945,7 @@ position: fixed; bottom: 0; left: 0; + margin-bottom: var(--status-bar-height);; } .broadcast-details .footerCon.on { diff --git a/pages/columnGoods/goods_search_con/index.vue b/pages/columnGoods/goods_search_con/index.vue index cdd6ad6..27e017d 100644 --- a/pages/columnGoods/goods_search_con/index.vue +++ b/pages/columnGoods/goods_search_con/index.vue @@ -821,8 +821,10 @@ //查找产品 get_product_list: function(isPage) { let that = this; + if (that.loadend) return; if (that.loading) return; + if (isPage === true) that.$set(that, 'productList', []); that.loading = true; that.loadTitle = ''; diff --git a/pages/commissionedSales/addDelegation/index.vue b/pages/commissionedSales/addDelegation/index.vue index 5b800aa..d2da49e 100644 --- a/pages/commissionedSales/addDelegation/index.vue +++ b/pages/commissionedSales/addDelegation/index.vue @@ -1,28 +1,26 @@ + + \ No newline at end of file diff --git a/pages/commissionedSales/initiateDelegation/index.vue b/pages/commissionedSales/initiateDelegation/index.vue index ce2d100..d26b645 100644 --- a/pages/commissionedSales/initiateDelegation/index.vue +++ b/pages/commissionedSales/initiateDelegation/index.vue @@ -6,7 +6,7 @@ - + @@ -14,88 +14,94 @@ - {{item.content}} + {{item.title}} - 委托周期:{{item.day}} + 委托周期:{{item.entrust_day}} - - - + + 待处理 - - + + + 编辑 - + + 删除 + + + 详情 - - - + 已接受 - - + 结束委托 - - + + 详情 - - - + 已拒绝 - + + 详情 - - 已完成 - + 删除 - + 详情 - - + + + + + + 新增委托 + + + + - @@ -107,19 +113,16 @@ 委托申请处理 - 结算周期: 30天 - - + 结算周期: {{obj.settle_cycle}}天 - 利息比例: 0.05% + 利息比例: {{obj.interest_rate}}% - - + 拒绝 - + 接受 @@ -129,7 +132,6 @@ - @@ -149,15 +151,11 @@ - - - - @@ -168,20 +166,17 @@ 结束委托申请处理 - - 结算周期: 30天 - - + + 结算周期: {{obj.mer_info.settle_cycle}}天 - - 利息比例: 0.05% + + 利息比例: {{obj.mer_info.interest_rate}}% - - + 拒绝 - + 接受 @@ -202,24 +197,19 @@ 结束委托申请处理 - - 结算周期: 30天 - - + + 结算周期: {{obj.mer_info.settle_cycle}}天 + + + 利息比例: {{obj.mer_info.interest_rate}}% - 利息比例: 0.05% - - - 拒绝原因: - -