diff --git a/App.vue b/App.vue index d56d2d7..5129746 100644 --- a/App.vue +++ b/App.vue @@ -161,7 +161,7 @@ jpushModule.initJPushService() jpushModule.addConnectEventListener(result => { let connectEnable = result.connectEnable - // console.log("jpush连接", connectEnable) + console.log("jpush连接", connectEnable) }) @@ -222,7 +222,8 @@ }, onShow() { - + + let that = this // 记录H5和公众号 if (this.$store.state.app.token) { diff --git a/api/community.js b/api/community.js index fe9ec77..23d5d09 100644 --- a/api/community.js +++ b/api/community.js @@ -7,7 +7,7 @@ // +---------------------------------------------------------------------- // | Author: CRMEB Team // +---------------------------------------------------------------------- -import request from "@/utils/request.js"; +import request from "@/utils/requesta.js"; /** 获取话题分类*/ export function getTopicList() { @@ -83,7 +83,9 @@ export function videoList(data) { } /**自己的视频列表*/ export function deoList(id) { - return request.get(`community/show/${id}`); + return request.get(`community/show/${id}`, { + noAuth: true + }); } export function myVideoList(id,data) { diff --git a/api/store.js b/api/store.js index 3659801..ed9b774 100644 --- a/api/store.js +++ b/api/store.js @@ -1,4 +1,5 @@ import request from "@/utils/request.js"; +import requestb from "@/utils/requestb.js"; /** * 扫码查询商品 @@ -578,8 +579,7 @@ export function vicinityStoreApi(data) { 商家入驻 -- 获取商户入驻申请协议内容 */ export function agreeiness(data) { - return request.get(`business/agree`, data, { noAuth: true }); -} - - - + return request.get(`business/agree`, data, { + noAuth: true + }); +} \ No newline at end of file diff --git a/api/uniMP.js b/api/uniMP.js index 06f8b85..3562f10 100644 --- a/api/uniMP.js +++ b/api/uniMP.js @@ -16,3 +16,12 @@ export function getGXconfig(data) { return request.get("global/config", data); } + +/** + * 获取商城小程序信息 + */ + +export function miniapp(data) { + return request.get("miniapp/version?version=1", data); +} + diff --git a/components/orderGoods/index.vue b/components/orderGoods/index.vue index f1c4653..4483d6e 100644 --- a/components/orderGoods/index.vue +++ b/components/orderGoods/index.vue @@ -2,7 +2,7 @@ - {{evaluate == 0 ? '待核销' : '已核销'}} + {{evaluate == 7 ? '待核销' : '已核销'}} {{orderData.verify_time}} diff --git a/config/app.js b/config/app.js index 1e8e1a6..2182f5b 100644 --- a/config/app.js +++ b/config/app.js @@ -6,10 +6,11 @@ let openPlantGrass = '-openPlantGrass-' let httpApi let httpApiTwo let httpApiThree +let httpApiFour // 在打包之前请检查当前环境是否正确 -// const env = 'dev'; // 开发 -const env = 'prod'; // 生产 +const env = 'dev'; // 开发 +// const env = 'prod'; // 生产 // const env = 'prew'; // 预上线 switch (env) { diff --git a/manifest.json b/manifest.json index 42d12ce..c8c719f 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "惠农生活", "appid" : "__UNI__3A527D1", "description" : "", - "versionName" : "1.4.4", - "versionCode" : 144, + "versionName" : "1.4.7", + "versionCode" : 147, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { @@ -103,13 +103,13 @@ "weixin" : { "__platform__" : [ "ios", "android" ], "appid" : "wx9d68c92b550ddd1e", - "UniversalLinks" : "https://mer.crmeb.net/" + "UniversalLinks" : "https://shop.lihaink.cn/" } }, "share" : { "weixin" : { "appid" : "wx9d68c92b550ddd1e", - "UniversalLinks" : "https://mer.crmeb.net/" + "UniversalLinks" : "https://shop.lihaink.cn/" } }, "geolocation" : { @@ -160,7 +160,7 @@ }, "nativePlugins" : { "JG-JCore" : { - "JPUSH_APPKEY_IOS" : "b5f679f4357018605ea6fd2e", + "JPUSH_APPKEY_IOS" : "8a5efd65cda14fafa6e64ad3", "JPUSH_CHANNEL_IOS" : "", "JPUSH_APPKEY_ANDROID" : "b5f679f4357018605ea6fd2e", "JPUSH_CHANNEL_ANDROID" : "", @@ -178,7 +178,7 @@ "JPUSH_APPKEY_IOS" : { "des" : "[iOS]极光portal配置应用信息时分配的AppKey", "key" : "JCore:APP_KEY", - "value" : "7869a2f94b120cfb4431b96f" + "value" : "daebe19b547c43128796a078" }, "JPUSH_CHANNEL_IOS" : { "des" : "[iOS]用于统计分发渠道,不需要可填默认值developer-default", @@ -199,9 +199,9 @@ } }, "JG-JPush" : { - "JPUSH_ISPRODUCTION_IOS" : "", + "JPUSH_ISPRODUCTION_IOS" : "true", "JPUSH_ADVERTISINGID_IOS" : "", - "JPUSH_DEFAULTINITJPUSH_IOS" : "", + "JPUSH_DEFAULTINITJPUSH_IOS" : "true", "JPUSH_OPPO_APPKEY" : "", "JPUSH_OPPO_APPID" : "", "JPUSH_OPPO_APPSECRET" : "", diff --git a/pages.json b/pages.json index 650d550..c26eb18 100644 --- a/pages.json +++ b/pages.json @@ -125,6 +125,7 @@ "path": "pages/moreProject/moreProject", "style": { "navigationBarTitleText": "商户平台", + "navigationStyle": "custom", "enablePullDownRefresh": false } @@ -150,7 +151,7 @@ "path" : "pages/margin/margin", "style" : { - "navigationBarTitleText": "", + "navigationBarTitleText":"缴纳保证金", "enablePullDownRefresh": false } @@ -838,7 +839,7 @@ }, { "path": "payment/payment", "style": { - "navigationBarTitleText": "", + "navigationBarTitleText": "支付", "enablePullDownRefresh": false } @@ -990,6 +991,8 @@ { "path": "settled/index", "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "商家入驻" } }, { diff --git a/pages/admin/orderDetail/index.vue b/pages/admin/orderDetail/index.vue index 4d4d325..d7fc7a7 100644 --- a/pages/admin/orderDetail/index.vue +++ b/pages/admin/orderDetail/index.vue @@ -146,7 +146,7 @@ - + 同意 @@ -376,8 +376,11 @@ /*核销订单*/ goCancellation() { let that = this; + // uni.navigateTo({ + // url: '/pages/admin/cancellate_result/index?mer_id='+that.mer_id+'&code='+that.orderInfo.verify_code, + // }) uni.navigateTo({ - url: '/pages/admin/cancellate_result/index?mer_id='+that.mer_id+'&code='+that.orderInfo.verify_code, + url: `/pages/admin/order_cancellation/index?mer_id=${that.mer_id}` }) // uni.showModal({ // title: '订单核销', diff --git a/pages/admin/orderList/index.vue b/pages/admin/orderList/index.vue index e01fdf4..399c417 100644 --- a/pages/admin/orderList/index.vue +++ b/pages/admin/orderList/index.vue @@ -553,6 +553,7 @@ uni.navigateTo({ url: `/pages/admin/orderDetail/index?id=${item.order_id}&mer_id=${item.mer_id}` }) + }, toRefundDetail(item) { uni.navigateTo({ diff --git a/pages/admin/order_cancellation/index.vue b/pages/admin/order_cancellation/index.vue index 2f54607..9a3d94d 100644 --- a/pages/admin/order_cancellation/index.vue +++ b/pages/admin/order_cancellation/index.vue @@ -131,8 +131,12 @@ // console.log(self.verify_code); verifierOrder(self.mer_id,self.verify_code) .then(res => { + // uni.navigateTo({ + // url: '/pages/admin/cancellate_result/index?code='+self.verify_code+'&mer_id='+self.mer_id + // }); + uni.navigateTo({ - url: '/pages/admin/cancellate_result/index?code='+self.verify_code+'&mer_id='+self.mer_id + url: '/pages/admin/orderList/index?types=2'+'&mer_id='+self.mer_id }); }) .catch(res => { @@ -161,8 +165,11 @@ scanType: ["qrCode", "barCode"] }).then(res=>{ this.verify_code = res.resultStr + // uni.navigateTo({ + // url: '/pages/admin/cancellate_result/index?code='+self.verify_code+'&mer_id='+self.mer_id + // }); uni.navigateTo({ - url: '/pages/admin/cancellate_result/index?code='+self.verify_code+'&mer_id='+self.mer_id + url: '/pages/admin/orderList/index?types=2'+'&mer_id='+self.mer_id }); // this.codeChange(); }).catch(res => { diff --git a/pages/chat/customer_list/index.vue b/pages/chat/customer_list/index.vue index da48440..517c85c 100644 --- a/pages/chat/customer_list/index.vue +++ b/pages/chat/customer_list/index.vue @@ -62,6 +62,9 @@ serviceList, serviceUserList } from "@/api/user"; + import { + getUserInfo + } from '@/api/user.js'; import { mapGetters } from "vuex"; export default { name: "CustomerList", @@ -88,13 +91,9 @@ computed: mapGetters(['isLogin','viewColor']), onLoad(optios) { this.type = optios.type; - this.mer_id = optios.mer_id; - if(this.isLogin){ - this.getList(this.mer_id) - } else { - this.isAuto = true; - this.isShowAuth = true - } + + + this.getindex() }, onShow(option) { if(this.isLogin){ @@ -119,6 +118,21 @@ this.clear = true; }, methods: { + //获取商户信息 + getindex(){ + getUserInfo().then(res => { + + this.mer_id = res.data.service.mer_id; + if(this.isLogin){ + this.getList(this.mer_id) + } else { + this.isAuto = true; + this.isShowAuth = true + } + // this.getList(this.mer_id) + // this.getList(res.data.service.mer_id, true); + }); + }, onLoadFun() { this.isShowAuth = false; this.getList(this.mer_id); @@ -217,7 +231,7 @@ }, }; - \ No newline at end of file diff --git a/pages/moreProject/moreProject.vue b/pages/moreProject/moreProject.vue index a76d52a..e681ae3 100644 --- a/pages/moreProject/moreProject.vue +++ b/pages/moreProject/moreProject.vue @@ -1,5 +1,20 @@