diff --git a/App.vue b/App.vue index d56d2d7..e2d92bf 100644 --- a/App.vue +++ b/App.vue @@ -222,7 +222,8 @@ }, onShow() { - + + let that = this // 记录H5和公众号 if (this.$store.state.app.token) { @@ -349,9 +350,9 @@ }); }, - // 微信分享; setOpenShare: function(data) { + // #ifdef H5 let that = this; let href = location.href; href = href.indexOf("?") === -1 ? href + "?spid=" + this.globalData.uid : href + "&spid=" + this @@ -367,6 +368,7 @@ that.$wechat.wechatEvevt(["updateAppMessageShareData", "updateTimelineShareData"], configAppMessage); } + // #endif }, // 获取配置 getConfigData() { @@ -426,12 +428,14 @@ watch: { // 记录H5和公众号 $route(n) { + // #ifdef H5 if (this.$store.state.app.token) { // 浏览记录 history({ page: location.pathname + location.search, }).then(() => {}); } + // #endif }, } } @@ -443,6 +447,7 @@ @import 'static/iconfont/iconfont.css'; @import 'static/iconfont/iconlihai.css'; @import 'static/iconfont/icontan.css'; + @import 'static/iconfont/demo.css'; @import 'static/css/style.scss'; diff --git a/api/api.js b/api/api.js index c382e10..acb74a7 100644 --- a/api/api.js +++ b/api/api.js @@ -5,7 +5,7 @@ import request from "@/utils/request.js"; * */ export function cloudWarehouse(data) { - return request.get("store/product/cloudWarehouse", data); + return request.get("store/product/cloudWarehouse", data, { noAuth: true }); } /** * 获取云仓分类 @@ -293,20 +293,20 @@ export function brigade(data) { } /* - 生产 -- 获取商户保证金信息支付接口 + 生产 -- 获取商户押金信息支付接口 */ export function paymerchant() { return request.post(`user/margin`,{}); } /* - 生产 -- 获取商户保证金信息接口 + 生产 -- 获取商户押金信息接口 */ export function merchant(data) { return request.get(`store/merchant/margin`, data); } -//获取保证金缴纳列表 +//获取押金缴纳列表 export function marginlist(data) { return request.get(`user/margin/list`,data); } 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/live.js b/api/live.js new file mode 100644 index 0000000..3c1edf0 --- /dev/null +++ b/api/live.js @@ -0,0 +1,151 @@ +import request from "@/utils/requestc.js"; +import requesta from "@/utils/request.js"; +/** + * 直播列表 + */ +export function live(data) { + return request.get("zhibo/live" ,data); +} + +/** + * 直播详情 + */ +export function liveDetail(data) { + return request.get("zhibo/liveDetail" ,data); +} + + +/** + * 获取直播详情接口 + */ + + +/** + * 创建直播间 + */ +export function createPushLive(data) { + return request.post("zhibo/createPushLive", data); +} + + +/** + * 关闭直播间 + */ +export function stopPushLive(data) { + return request.post("zhibo/stopPushLive", data); +} + + +/** + * 绑定用户client客户 + */ +export function bindUser(data) { + return request.post("zhibo/bindUser", data); +} + + + +/** + * 加入直播间聊天室 + */ +export function joinChatRoom(data) { + return request.post("zhibo/joinChatRoom", data); +} + + +/** + * 直播间聊天室发言 + */ +export function sendGroupMessage(data) { + return request.post("zhibo/sendGroupMessage", data); +} + + + +//商品列表 +export function good(data) { + return requesta.get("product/spu/lst", data); +} + +/** + * 获取用户信息 + * + */ +export function getUserInfo() { + return request.get('user'); +} + + +//关注 +export function getfans(id,data) { + return requesta.post('community/fans/'+id,data); +} + +//我关注的人 +export function getfocuslst(data) { + return requesta.post('community/focus/lst',data); +} + +//关注我的人 +export function getfanslst(data) { + return requesta.get('community/fans/lst',data); +} + +//用户送礼 +export function reward(data) { + return request.post('zhibo/reward',data); +} +//获取礼物 +export function rewardList(data) { + return requesta.get('zhibo/rewardList',data); +} + +//获取礼物 +export function giftList(data) { + return request.get('zhibo/giftList',data); +} + +//获取房间人数 +export function liveAudience(data) { + return request.get('zhibo/liveAudience',data); +} + +//获取用户余额 +export function getuser(data) { + return requesta.get('user',data); +} + + +//送礼 +export function sendGift(data) { + return request.post('zhibo/sendGift',data); +} + + +//获取主播关注人数 +export function fansNum(data) { + return requesta.get('zhibo/fansNum',data); +} + + +/** + * 充值金额选择 + */ +export function getRechargeApi() { + return requesta.get("common/recharge_quota"); +} + +//历史直播记录 + +export function playbackList(data) { + return request.get("zhibo/playbackList",data); +} + +//获取直播回放详情 +export function playbackDetail(data) { + return request.get("zhibo/playbackDetail",data); +} +//获取观众关注主播状态 +export function getAjuser(id) { + return requesta.get(`community/user/info/${id}`); +} \ No newline at end of file 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/components/gb-popup/gb-popup.vue b/components/gb-popup/gb-popup.vue new file mode 100644 index 0000000..fe710e0 --- /dev/null +++ b/components/gb-popup/gb-popup.vue @@ -0,0 +1,169 @@ + + + + + \ No newline at end of file diff --git a/components/mh-msgList/mh-msgList.vue b/components/mh-msgList/mh-msgList.vue new file mode 100644 index 0000000..859ef21 --- /dev/null +++ b/components/mh-msgList/mh-msgList.vue @@ -0,0 +1,183 @@ + + + \ No newline at end of file diff --git a/components/sd-live-page/histroy.nvue b/components/sd-live-page/histroy.nvue new file mode 100644 index 0000000..4e8b92a --- /dev/null +++ b/components/sd-live-page/histroy.nvue @@ -0,0 +1,2085 @@ + + + + + \ No newline at end of file diff --git a/components/sd-live-page/livepage.nvue b/components/sd-live-page/livepage.nvue new file mode 100644 index 0000000..c0eea3f --- /dev/null +++ b/components/sd-live-page/livepage.nvue @@ -0,0 +1,2303 @@ + + + + + \ No newline at end of file diff --git a/components/unipopup/live-uni-popup.vue b/components/unipopup/live-uni-popup.vue new file mode 100644 index 0000000..134c831 --- /dev/null +++ b/components/unipopup/live-uni-popup.vue @@ -0,0 +1,241 @@ + + + + \ No newline at end of file diff --git a/components/unipopup/uni-popup.vue b/components/unipopup/uni-popup.vue new file mode 100644 index 0000000..7408094 --- /dev/null +++ b/components/unipopup/uni-popup.vue @@ -0,0 +1,241 @@ + + + + \ No newline at end of file diff --git a/components/zbpSwiper.vue b/components/zbpSwiper.vue index 341bacb..b5151aa 100644 --- a/components/zbpSwiper.vue +++ b/components/zbpSwiper.vue @@ -294,7 +294,7 @@ .search_content { margin: 0 auto; width: 724rpx; - height: 74rpx; + height: 64rpx; padding: 2px 2px 2px 21.05rpx; border-radius: 175rpx; background: #fff; @@ -312,8 +312,8 @@ .search_btn { color: #fff; width: 105.26rpx; - height: 52.63rpx; - line-height: 52.63rpx; + height: 56rpx; + line-height: 56rpx; background: #f84221; border-radius: 100px; font-size: 28.07rpx; diff --git a/config/app.js b/config/app.js index 346d3c5..9bfd4f2 100644 --- a/config/app.js +++ b/config/app.js @@ -7,10 +7,11 @@ let httpApi let httpApiTwo let httpApiThree let httpApiFour +let httpApiFive // 在打包之前请检查当前环境是否正确 -// const env = 'dev'; // 开发 -const env = 'prod'; // 生产 +const env = 'dev'; // 开发 +// const env = 'prod'; // 生产 // const env = 'prew'; // 预上线 switch (env) { @@ -31,6 +32,7 @@ switch (env) { httpApiTwo = "https://nk.lihaink.cn" httpApiThree = 'http://ceshi-oa.lihaink.cn' httpApiFour = 'https://ceshi-worker-task.lihaink.cn' + httpApiFive = 'https://ceshi-zhibo.lihaink.cn' } @@ -39,7 +41,7 @@ switch (env) { // 聊天接口修改此字符 小程序聊天要求wss 例如:wss://mer.crmeb.net // let wsApi = 'ws://192.168.3.20:8324' let wsApi = 'wss://shop.lihaink.cn' - +let wsApi_one = 'wss://ceshi-zhibo.lihaink.cn/chat_room' module.exports = { // 请求域名 格式: https://您的域名 // #ifdef MP || APP-PLUS @@ -48,18 +50,23 @@ module.exports = { HTTP_REQUEST_URL_TWO: httpApiTwo, HTTP_REQUEST_URL_THREE: httpApiThree, HTTP_REQUEST_URL_FOUR: httpApiFour, + HTTP_REQUEST_URL_FIVE: httpApiFive, VUE_APP_WS_URL: `${wsApi}?type=user`, + VUE_APP_WS_URL_ONE:wsApi_one, // #endif - + // #ifdef H5 //H5接口是浏览器地址 - HTTP_REQUEST_URL_FOUR: httpApiFour|| window.location.protocol + "//" + window.location.host, - HTTP_REQUEST_URL: httpApi || window.location.protocol + "//" + window.location.host, - HTTP_REQUEST_URL_TWO: httpApiTwo || window.location.protocol + "//" + window.location.host, + HTTP_REQUEST_URL: process.env.NODE_ENV == 'development'? httpApi : window.location.protocol + "//" + window.location.host, + HTTP_REQUEST_URL_TWO: httpApiTwo, + HTTP_REQUEST_URL_FIVE: httpApiFive, + HTTP_REQUEST_URL_FOUR: window.location.host == 'shop.lihaink.cn' ?'https://worker-task.lihaink.cn':window.location.host == 'test.shop.lihaink.cn'?'https://preview-worker-task.lihaink.cn':'https://ceshi-worker-task.lihaink.cn', + // 聊天长连接地址 VUE_APP_WS_URL: wsApi ? `${wsApi}?type=user` : VUE_APP_WS_URL, // #endif openPlantGrass: openPlantGrass, + HEADER: { 'content-type': 'application/json', //#ifdef H5 diff --git a/libs/uniApi.js b/libs/uniApi.js index 612c4c8..ae80c51 100644 --- a/libs/uniApi.js +++ b/libs/uniApi.js @@ -130,6 +130,7 @@ export function Modal(title = '提示', content = '这是一个模态弹窗!', o }) { return new Promise((reslove, reject) => { uni.showModal({ + ...obj, title: title, content: content, success: (res) => { diff --git a/manifest.json b/manifest.json index f637671..e88dc21 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "惠农生活", "appid" : "__UNI__3A527D1", "description" : "", - "versionName" : "1.4.5", - "versionCode" : 145, + "versionName" : "1.5.3", + "versionCode" : 153, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { @@ -31,7 +31,10 @@ "UniMP" : { "description" : "uni小程序" }, - "Maps" : {} + "Maps" : {}, + "Push" : {}, + "Record" : {}, + "LivePusher" : {} }, "safearea" : { "bottom" : { @@ -44,6 +47,8 @@ "android" : { "resizeableActivity" : true, "permissions" : [ + "", + "", "", "", "", @@ -57,17 +62,17 @@ "", "", "", + "", "", "", "", "", "", + "", "", "", "", - "", - "", - "" + "" ], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "permissionExternalStorage" : { @@ -103,13 +108,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" : { @@ -120,7 +125,8 @@ } }, "oauth" : {}, - "ad" : {} + "ad" : {}, + "push" : {} }, "icons" : { "android" : { @@ -160,8 +166,8 @@ }, "nativePlugins" : { "JG-JCore" : { - "JPUSH_APPKEY_IOS" : "b5f679f4357018605ea6fd2e", - "JPUSH_CHANNEL_IOS" : "", + "JPUSH_APPKEY_IOS" : "8a5efd65cda14fafa6e64ad3", + "JPUSH_CHANNEL_IOS" : "8a5efd65cda14fafa6e64ad3", "JPUSH_APPKEY_ANDROID" : "b5f679f4357018605ea6fd2e", "JPUSH_CHANNEL_ANDROID" : "", "__plugin_info__" : { @@ -178,7 +184,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 +205,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 b957f87..c4e8e9f 100644 --- a/pages.json +++ b/pages.json @@ -64,6 +64,27 @@ "navigationBarTitleText": "购物车" } }, + { + "path": "pages/room/index", + "style": { + "navigationBarTitleText": "直播列表", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/room/spectator", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "直播间" + } + } + ,{ + "path": "pages/room/histroyroom", + "style": { + "navigationBarTitleText": "历史直播间", + "navigationStyle": "custom" + } + }, { "path": "pages/plant_grass/index", "style": { @@ -151,7 +172,7 @@ "path" : "pages/margin/margin", "style" : { - "navigationBarTitleText": "", + "navigationBarTitleText":"缴纳押金", "enablePullDownRefresh": false } @@ -839,7 +860,7 @@ }, { "path": "payment/payment", "style": { - "navigationBarTitleText": "", + "navigationBarTitleText": "支付", "enablePullDownRefresh": false } diff --git a/pages/admin/cancellate_result/index.vue b/pages/admin/cancellate_result/index.vue index 2614b9e..62c966e 100644 --- a/pages/admin/cancellate_result/index.vue +++ b/pages/admin/cancellate_result/index.vue @@ -91,6 +91,7 @@ import authorize from '@/components/Authorize'; import emptyPage from '@/components/emptyPage.vue' import { configMap } from '@/utils'; +import { navigateBack } from '../../../libs/uniApi'; const app = getApp(); export default { components: { @@ -198,6 +199,14 @@ that.$util.Tips({ title: res.message }); + if(res.status==200){ + // uni.redirectTo({ + // url:'/admin/orderList/index?types=4&merId='+that.mer_id + // }) + uni.navigateBack({ + delta:2 + }) + } that.getOrderData(); }) .catch(res => { diff --git a/pages/admin/financial_management/index.vue b/pages/admin/financial_management/index.vue index 751c9a5..7fb54bb 100644 --- a/pages/admin/financial_management/index.vue +++ b/pages/admin/financial_management/index.vue @@ -54,7 +54,7 @@ - 履约保证金额(元) + 履约押金额(元) {{ userInfo.deposit || 0.0 }} diff --git a/pages/admin/goods_details/index.vue b/pages/admin/goods_details/index.vue index 9fc4b31..6b6624d 100644 --- a/pages/admin/goods_details/index.vue +++ b/pages/admin/goods_details/index.vue @@ -264,14 +264,22 @@ 产品介绍 - + + + + + + - {{description.content.title}} - - - + {{description.content.title}} + + + + @@ -558,6 +566,23 @@ } that.$set(that, 'storeInfo', storeInfo); that.$set(that, 'description', storeInfo.content); + if(typeof that.description.content == 'string'){ + try{ + that.description.content = JSON.parse(that.description.content); + }catch(e){ + console.log(e); + } + } + if (that.description.type == 0 && typeof that.description.content == 'string') { + that.description.content = that.description.content.replace( + / \ No newline at end of file diff --git a/pages/admin/orderDetail/index.vue b/pages/admin/orderDetail/index.vue index 1517bb5..d7fc7a7 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 399c417..4879d0d 100644 --- a/pages/admin/orderList/index.vue +++ b/pages/admin/orderList/index.vue @@ -293,6 +293,9 @@ this.merId = option.merId; this.getIndex(); }, + onShow(){ + this.getIndex(); + }, methods: { // 关闭二维码弹窗 popUpClose() { diff --git a/pages/admin/orderRefund/index.vue b/pages/admin/orderRefund/index.vue index 4374450..ac4815c 100644 --- a/pages/admin/orderRefund/index.vue +++ b/pages/admin/orderRefund/index.vue @@ -134,11 +134,15 @@ }) } } + + let params = { status: that.status, fail_message: that.fail_message } - if(that.orderInfo.refund_type == 2){ + + + if(that.orderInfo.refund_type == 2 && that.status != -1){ if (!that.refundInfo.mer_delivery_user) { return that.$util.Tips({ title: '请填写收货人姓名' diff --git a/pages/admin/order_cancellation/index.vue b/pages/admin/order_cancellation/index.vue index 2f54607..7aec653 100644 --- a/pages/admin/order_cancellation/index.vue +++ b/pages/admin/order_cancellation/index.vue @@ -122,6 +122,7 @@ }, // 扫码核销 scanCode() { + var self = this; // #ifdef MP || APP-PLUS wx.scanCode({ @@ -129,11 +130,14 @@ success(res) { self.verify_code = res.result // console.log(self.verify_code); + console.log('111',self.mer_id,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 }); + }) .catch(res => { self.verify_code = '' @@ -161,9 +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 }); + // this.codeChange(); }).catch(res => { this.$util.Tips({ diff --git a/pages/chat/customer_list/chat.vue b/pages/chat/customer_list/chat.vue index 40a218e..9b7d49f 100644 --- a/pages/chat/customer_list/chat.vue +++ b/pages/chat/customer_list/chat.vue @@ -53,7 +53,8 @@
- {{val.product.cart_info.product.store_name}}
+ {{val.product.cart_info.product.store_name}} +
¥{{ item.refundOrder.refund_price }}
@@ -89,7 +90,8 @@
- {{val.cart_info.product.store_name}}
+ {{val.cart_info.product.store_name}} +
¥{{ item.orderInfo.pay_price }}
@@ -114,7 +116,8 @@ ¥{{ item.product.price }}
- {{item.product.store_name}}
+ {{item.product.store_name}} + @@ -135,7 +138,8 @@ ¥{{ item.presell.price }}
- {{item.presell.store_name}}
+ {{item.presell.store_name}} + @@ -143,7 +147,7 @@
-
+
- {{item.productGroup.product.store_name}}
+ {{item.productGroup.product.store_name}} +
@@ -207,7 +212,8 @@
- {{val.product.cart_info.product.store_name}}
+ {{val.product.cart_info.product.store_name}} +
¥{{ item.refundOrder.refund_price }}
@@ -216,6 +222,7 @@ +
@@ -243,7 +250,8 @@
- {{val.cart_info.product.store_name}}
+ {{val.cart_info.product.store_name}} +
¥{{ item.orderInfo.pay_price }}
@@ -267,7 +275,8 @@ ¥{{ item.product.price }}
- {{item.product.store_name}}
+ {{item.product.store_name}} + @@ -288,7 +297,8 @@ ¥{{ item.presell.price }}
- {{item.presell.store_name}}
+ {{item.presell.store_name}} + @@ -309,7 +319,8 @@ ¥{{ item.productGroup.product.price }}
- {{item.productGroup.product.store_name}}
+ {{item.productGroup.product.store_name}} + @@ -358,6 +369,7 @@
{{items.time}}
+
@@ -388,7 +400,8 @@
- {{val.product.cart_info.product.store_name}}
+ {{val.product.cart_info.product.store_name}} +
¥{{ val.product.cart_info.productAttr.price }}
@@ -425,7 +438,8 @@
- {{val.cart_info.product.store_name}}
+ {{val.cart_info.product.store_name}} +
¥{{ item.orderInfo.pay_price }}
@@ -450,7 +464,8 @@ ¥{{ item.product.price }}
- {{item.product.store_name}}
+ {{item.product.store_name}} + @@ -471,7 +486,8 @@ ¥{{ item.presell.price }}
- {{item.presell.store_name}}
+ {{item.presell.store_name}} + @@ -492,7 +508,8 @@ ¥{{ item.productGroup.product.price }}
- {{item.productGroup.product.store_name}}
+ {{item.productGroup.product.store_name}} + @@ -534,7 +551,8 @@
- {{val.product.cart_info.product.store_name}}
+ {{val.product.cart_info.product.store_name}} +
共{{item.refundOrder.refund_num}}件商品, 合计 ¥{{ item.refundOrder.refund_price }} @@ -571,7 +589,8 @@
- {{val.cart_info.product.store_name}}
+ {{val.cart_info.product.store_name}} +
¥{{ item.orderInfo.pay_price }}
@@ -596,7 +615,8 @@ ¥{{ item.product.price }}
- {{item.product.store_name}}
+ {{item.product.store_name}} + @@ -617,7 +637,8 @@ ¥{{ item.presell.price }}
- {{item.presell.store_name}}
+ {{item.presell.store_name}} + @@ -638,7 +659,8 @@ ¥{{ item.productGroup.product.price }}
- {{item.productGroup.product.store_name}}
+ {{item.productGroup.product.store_name}} + @@ -778,7 +800,7 @@
-
@@ -1212,8 +1236,7 @@ let self = this self.$util.uploadImageOne('upload/image', function(res) { if (res.status == 200) { - self.sendMsg(res.data.path, 3 - ) + self.sendMsg(res.data.path, 3) } }); }, @@ -1603,7 +1626,7 @@ margin-top: 20rpx; width: 710rpx; position: fixed; - bottom: 120rpx; + bottom: 160rpx; left: 20rpx; .broadcast-details_box, @@ -1790,6 +1813,7 @@ .broadcast-details .chat .item .text { margin-left: 20rpx; + } .broadcast-details .chat .item .text.textR { @@ -1943,19 +1967,23 @@ transition: all 0.005s cubic-bezier(0.25, 0.5, 0.5, 0.9); background-color: #fff; position: fixed; - bottom: 0; + bottom:var(--status-bar-height); left: 0; - margin-bottom: var(--status-bar-height);; + + + } .broadcast-details .footerCon.on { position: relative; - top: -300rpx; + top: -360rpx; + transform: translate3d(0, 0, 0) !important; } .broadcast-details .footerCon .banner { background: #fff; + padding-top: var(--status-bar-height); } .broadcast-details .footerCon .banner .swiper-slide { @@ -1971,7 +1999,7 @@ display: block; width: 50rpx; height: 50rpx; - margin: 40rpx 0 0 50rpx; + margin: 20rpx 0 0 40rpx; } .broadcast-details .footerCon .banner .swiper-container-horizontal>.swiper-pagination-bullets { @@ -1980,6 +2008,10 @@ .broadcast-details .footerCon .slider-banner .swiper-pagination-bullet-active { background-color: #999; + + + + } .broadcast-details .recording { @@ -2036,6 +2068,8 @@ padding: 0 80rpx 0 30rpx; height: 76rpx; position: relative; + + } .broadcast-details .footer .placeholder { @@ -2064,7 +2098,9 @@ display: inline-block; width: 50rpx; height: 50rpx; - margin: 40rpx 0 0 50rpx; + + + margin: 20rpx 0 0 40rpx; } .emoji-outer { 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/index/index.vue b/pages/index/index.vue index 6474185..15d39e5 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -38,6 +38,9 @@ + + + - - - + + + 商家平台 - + + @@ -50,14 +54,16 @@ 订单管理 --> + 入库管理 + + @click="buyserset"> 商户设置 @@ -78,12 +84,12 @@ 订单核销 - + - 保证缴纳金 + 缴纳押金 - + - +
@@ -618,7 +628,7 @@ cardno_back: '' }, Fheight: 0, - + statusBarHeight: 0 }; }, computed: { @@ -627,7 +637,7 @@ created() {}, onLoad() { this.Fheight = uni.getSystemInfoSync().windowHeight + 'px'; - + this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 45; }, onShow() { if (this.isLogin) { @@ -838,7 +848,7 @@ } }, - //保证金缴纳 + //押金缴纳 margin(url) { if (this.userInfoData.mer_info.mer_settlement_agree_status == 0) { @@ -864,12 +874,13 @@ } }, - // - logout(){ + + logout() { uni.switchTab({ - url:'/pages/gather/gather' + url: '/pages/gather/gather' }) }, + //商户设置 buyserset() { uni.navigateTo({ @@ -877,10 +888,7 @@ }) }, navigator(url, t) { - if (this.userInfoData.mer_info.mer_settlement_agree_status == 0) { - - if (this.codenote.length == 0) { this.isFshow = true this.countDown() @@ -895,7 +903,6 @@ } } } else { - uni.navigateTo({ url: url }) @@ -954,8 +961,6 @@ .conten-top { width: 100%; - padding-top: var(--status-bar-height); - padding-bottom: 30rpx; text-align: center; background-color: #fff; position: absolute; diff --git a/pages/nongKe/cloud_entrepot/index.vue b/pages/nongKe/cloud_entrepot/index.vue index f0527f2..91a7775 100644 --- a/pages/nongKe/cloud_entrepot/index.vue +++ b/pages/nongKe/cloud_entrepot/index.vue @@ -1,1568 +1,1514 @@ \ No newline at end of file diff --git a/pages/nongKe/cloud_entrepot/indexa.vue b/pages/nongKe/cloud_entrepot/indexa.vue index 778e746..83aa4c7 100644 --- a/pages/nongKe/cloud_entrepot/indexa.vue +++ b/pages/nongKe/cloud_entrepot/indexa.vue @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/pages/nongKe/food/index.vue b/pages/nongKe/food/index.vue index d84703e..386ad5e 100644 --- a/pages/nongKe/food/index.vue +++ b/pages/nongKe/food/index.vue @@ -26,8 +26,9 @@ :value='sotreParam.keyword' @confirm="searchSubmit"> --> - + 搜索 + @@ -703,7 +704,19 @@ margin: 0; padding: 0; } - +.serchbtn { + // position: absolute; + // right: 5rpx; + // top: 5rpx; + width: 100rpx; + height: 50rpx; + border-radius: 30rpx; + text-align: center; + line-height: 50rpx; + // background-color: #FEAB00; + color: #fff; + background: linear-gradient(to right, #F84221, #FF6D20); + } .com_name { font-size: 32rpx; // background-color: red; @@ -1304,7 +1317,7 @@ .img_cls { position: absolute; top: 50%; - right: 7rpx; + right: 5rpx; transform: translateY(-50%); } diff --git a/pages/nongKe/gather/select_warehouse.vue b/pages/nongKe/gather/select_warehouse.vue index 7a03a32..87ad74a 100644 --- a/pages/nongKe/gather/select_warehouse.vue +++ b/pages/nongKe/gather/select_warehouse.vue @@ -12,7 +12,8 @@ - + + {{ item.store_name }} @@ -24,7 +25,7 @@ - 商品编号: + 商品条码: 商品名称: @@ -43,8 +44,25 @@ - + + + + 是否添加到你的仓库中? + + 价格: + + + + 库存: + + + + 取消 + 确定 + + + @@ -68,7 +86,7 @@ } from '@/api/store.js' import { seachBarCodeAPI, - post_product_import + micro_product_import } from '@/api/api.js' import { Toast @@ -77,7 +95,7 @@ data() { return { goodsData: [{ - name: '', + name: '商品名称添加', type: 1, src: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/mingcheng.png' }, @@ -96,7 +114,24 @@ mer_id: 0, searchGoodsShow: false, searchGoodsName: '', - goods: [], + goods: [ + // { + // "id": 5, + // "store_name": "雨森电商纯木生活260张面巾纸 170X118X260张(5层)", + // "bar_code": "6940074914381", + // "unit_name": "", + // "price": "0.00", + // "cost": "0.00", + // "ot_price": "0.00", + // "stock": 9999999, + // "image": "127.0.0.1:8324/uploads/img/2023-11-01/1698809432.jpg" + // } + ], + putGoods: { + id: '', + price: '', + stock: '', + }, item: [], addGoodsShow: false, stype: '', @@ -104,28 +139,32 @@ }, onLoad(e) { this.mer_id = e.mer_id - this.stype = e.stype - if (this.stype == 1) { - return this.goodsData[0].name = '商品添加' - } - if (this.stype == 2) { - return this.goodsData[0].name = '商品名称添加' - } + // this.stype = e.stype + this.stype = 2 + // if (this.stype == 1) { + // return this.goodsData[0].name = '商品添加' + // } + // if (this.stype == 2) { + // return this.goodsData[0].name = '商品名称添加' + // } }, onShow() { }, methods: { addGoods(item) { + this.putGoods.id = item.id; this.addGoodsShow = true this.item = item }, addGoodsopen() { - if (this.item) { - post_product_import(this.item.product_id).then(e => { + if (this.putGoods.id) { + console.log('开始'); + micro_product_import(this.putGoods).then(e => { if (e.status == 200) { Toast(e.data.msg) this.addGoodsShow = false + this.putGoods = {}; } else { // console.log(e); Toast(e.message) @@ -149,6 +188,8 @@ }, openSearch() {}, async searchGoodsClose() { + console.log('搜索', this.searchGoodsName); + if(this.searchGoodsName=='') return Toast('请输入商品名称'); const rq = { mer_id: this.mer_id, name: this.searchGoodsName @@ -221,6 +262,7 @@ code: code, mer_id: this.mer_id }).then(res => { + console.log(res); if (!res.data) { uni.showToast({ title: res.message, @@ -311,6 +353,13 @@ padding: 12px; margin: 21.05rpx 0; } + + .putGoods { + height: 87.72rpx; + border: 1px solid #f5f5f5; + border-radius: 8px; + padding: 12px; + } .search_goods_btn { margin-top: 28.07rpx; diff --git a/pages/nongKe/specialty/index.vue b/pages/nongKe/specialty/index.vue index 9a5ab18..a2df3ba 100644 --- a/pages/nongKe/specialty/index.vue +++ b/pages/nongKe/specialty/index.vue @@ -9,8 +9,11 @@ - + + + @@ -27,8 +30,9 @@ :value='sotreParam.keyword' @confirm="searchSubmit"> --> - + 搜索 + @@ -700,6 +704,19 @@ \ No newline at end of file diff --git a/pages/product/addGoods/index.vue b/pages/product/addGoods/index.vue index 8d18d8e..d05d363 100644 --- a/pages/product/addGoods/index.vue +++ b/pages/product/addGoods/index.vue @@ -1,81 +1,61 @@