From 5885261a6073e7e525dd366d42cd9f2daf466adb Mon Sep 17 00:00:00 2001
From: jia <1451658316@qq.com>
Date: Wed, 16 Aug 2023 17:59:23 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E6=98=93=E5=A4=A7=E5=8E=85=E6=8E=A5?=
=?UTF-8?q?=E5=8F=A3=E5=AF=B9=E6=8E=A5=E5=8F=8A=E7=95=8C=E9=9D=A2=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 16 +-
api/trading-floor.js | 24 +-
components/release/release.vue | 4 +-
components/shoppinglist/shoppinglist.vue | 94 ++--
.../commissionedSales/addDelegation/index.vue | 11 +-
pages/gather/gather.vue | 7 +-
pages/releaseManagement/index.vue | 12 +-
pages/trading_hall/adddiscounts/index.vue | 446 +++++++++++-------
pages/trading_hall/product_details/index.vue | 87 ++--
pages/trading_hall/transfer_goods/index.vue | 215 ++++++++-
pages/users/trading_hall/index.vue | 130 +++--
plugin/voice/voice.js | 200 ++------
static/css/base.css | 2 +-
static/images/sym.png | Bin 2854 -> 7163 bytes
14 files changed, 735 insertions(+), 513 deletions(-)
diff --git a/App.vue b/App.vue
index 6841165..9965722 100644
--- a/App.vue
+++ b/App.vue
@@ -22,6 +22,7 @@ import {
history
} from '@/api/public.js'
import Routine from './libs/routine.js';
+ import voice from'./plugin/voice/voice.js'
export default {
globalData: {
spid: 0,
@@ -119,8 +120,7 @@ import {
// #endif
that.getConfigData()
-
- //#ifdef APP-PLUS
+ //#ifdef APP-PLUS
jpushModule.setLoggerEnable(true);
jpushModule.initJPushService()
jpushModule.addConnectEventListener(result=>{
@@ -152,6 +152,14 @@ import {
let extras = result.extras
console.log("通知", result)
+ // if(result.content=="您有新的订单,请注意查看。"){
+ // console.log("通知", '11111111')
+ // voice.init()
+ // }
+ if(result.extras.type=='ORDER_CREATE'){
+ voice.init()
+
+ }
// 点击事件
if (notificationEventType == 'notificationOpened') {
uni.navigateTo({
@@ -173,6 +181,10 @@ import {
},
onShow() {
+ // console.log(voice.in)
+
+ // voice.connectSocketGlobal()
+
let that = this
// 记录H5和公众号
if (this.$store.state.app.token) {
diff --git a/api/trading-floor.js b/api/trading-floor.js
index c50c5c5..1c80359 100644
--- a/api/trading-floor.js
+++ b/api/trading-floor.js
@@ -24,7 +24,7 @@ export function getCommunityList(data) {
*/
export function getCommunityshow(data) {
- return request.get('community/show/'+data,{}, {
+ return request.get('community/show/' + data, {}, {
noAuth: true
});
}
@@ -43,23 +43,35 @@ export function getCommunitygetOrderList(data) {
* 发起转售
*
*/
-export function getCommunitycreate( data) {
- return request.post(`community/create`, data, { login: true });
+export function getCommunitycreate(data) {
+ return request.post(`community/create`, data, {
+ login: true
+ });
}
/**
* 修改转售
*
*/
-export function getCommunityUpdate( data) {
- return request.post(`community/update`, data, { login: true });
+export function getCommunityUpdate(data) {
+ return request.post(`community/update`, data, {
+ login: true
+ });
}
/**
* 加入购物车
*
*/
export function getCommunityaddCart(data) {
- return request.get('community/addCart', data, {
+ return request.post('community/addCart', data, {
noAuth: true
});
+}
+
+//商品宝贝详情
+
+export function getProductDetail(id) {
+ return request.get('store/product/detail/' + id, {
+ noAuth: true
+ });
}
\ No newline at end of file
diff --git a/components/release/release.vue b/components/release/release.vue
index eb7e02f..bacdf9e 100644
--- a/components/release/release.vue
+++ b/components/release/release.vue
@@ -158,7 +158,7 @@
}
.title {
- margin-top: 21rpx;
+ margin-top: 23rpx;
}
.title1 {
@@ -173,7 +173,7 @@
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
- margin-top: 9rpx;
+ margin-top: 11rpx;
}
}
diff --git a/components/shoppinglist/shoppinglist.vue b/components/shoppinglist/shoppinglist.vue
index 258289d..a15c8a6 100644
--- a/components/shoppinglist/shoppinglist.vue
+++ b/components/shoppinglist/shoppinglist.vue
@@ -13,7 +13,7 @@
-
+
@@ -33,10 +33,12 @@
-
+
{{item.attrValue[index].sku}}
+
库存:{{item.attrValue[index].stock}}
@@ -53,17 +55,19 @@
出售价格
出售数量
-
-
-
+
+
+
+
@@ -164,22 +168,33 @@
this.getBounht();
},
methods: {
+ //价格
+ producrprice(e, i) {
+ this.bought[i].price = e.detail.value
+ },
// picker修改事件
- bindPickerChange: function(e, storage, num) {
- this.bought[num].attrValue[this.index].stock=storage[e.detail.value].stock
- this.bought[num].product_attr_unique=storage[e.detail.value].unique
+ bindPickerChange: function(e, storage, num) {
+ this.bought[num].attrValue[this.index].sku = storage[e.detail.value].sku
+ this.bought[num].attrValue[this.index].stock = storage[e.detail.value].stock
+ this.bought[num].product_attr_unique = storage[e.detail.value].unique
this.pickerData = storage[this.index] // 这里就是选中的对象
+
+ if (this.bought[num].attrValue[this.index].stock == 0) {
+ this.$util.Tips({
+ title: '库存不足'
+ });
+ }
},
// 点击关闭按钮
close() {
this.$emit('close');
},
- numberChange(data,i) {
+ numberChange(data, i) {
this.peicenumber = data.number;
- this.bought[i].num=data.number
-
+ this.bought[i].num = data.number
+
},
tabs(index) {
this.isActive = index
@@ -207,7 +222,7 @@
},
searchBut() {
this.whereb.page = this.wherec.page = this.wheres.page =
- this.bought = []
+ this.bought = []
this.isActive == 0 ? this.getBounht() : ''
},
getBounht() {
@@ -241,13 +256,11 @@
if (item.product_id == val.product_id) {
that.$set(item, 'check', true);
that.$set(item, 'num', val.num);
-
- }else{
- that.$set(item, 'num', 0);
+ that.$set(item, 'price', val.price);
}
})
})
-
+
},
/*已选中的商品打钩*/
getCheckedGoods() {
@@ -258,19 +271,18 @@
},
/*点击选中与否*/
goodsCheck(item) {
- this.$set(item, 'check', !item.check);
+ this.$set(item, 'check', !item.check);
+ console.log( item.num)
if (item.check) {
- if(this.peicenumber>0){
- item.num=this.peicenumber
- }else{
- item.num=1
- }
-
- if(!item.product_attr_unique){
- item.product_attr_unique=item.attrValue[0].unique
+ if (this.peicenumber > 0) {
+ item.num = this.peicenumber
+ }
+
+ if (!item.product_attr_unique) {
+ item.product_attr_unique = item.attrValue[0].unique
}
this.checkedArr.push(item)
-
+
} else {
this.checkedArr.splice(this.checkedArr.findIndex(itemn => ((itemn.spu_id == item.spu_id) || (item
.spu_id == (
@@ -280,9 +292,8 @@
},
/*确定提交*/
submit() {
-
this.$emit('getProduct', this.checkedArr);
-
+
},
}
}
@@ -331,6 +342,7 @@
.iconclose {
width: 44rpx;
height: 44rpx;
+ line-height: 44rpx;
border: 2rpx solid #fff;
border-radius: 50%;
text-align: center;
@@ -393,27 +405,29 @@
position: relative;
align-items: center;
justify-content: space-between;
- margin-bottom: 10rpx;
+
border-top: 2rpx solid #E7E6E4;
-
+
.picTxt_one {
display: flex;
margin-top: 20rpx;
-
+
.slecte {
margin-right: 30rpx;
- width: 140rpx;
+ width: 280rpx;
height: 60rpx;
- line-height: 50rpx;
+ line-height: 60rpx;
text-align: center;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
- color: #CCCCCC;
+ color: #959595;
+ background-color: #E7E6E4;
+ border-radius: 10rpx 10rpx 10rpx 10rpx;
white-space: nowrap;
overflow: hidden;
- border: 1px solid #CCCCCC;
+
}
}
diff --git a/pages/commissionedSales/addDelegation/index.vue b/pages/commissionedSales/addDelegation/index.vue
index a9821f4..7746811 100644
--- a/pages/commissionedSales/addDelegation/index.vue
+++ b/pages/commissionedSales/addDelegation/index.vue
@@ -53,9 +53,9 @@
-
+
-
+
@@ -74,7 +74,7 @@
-
+
@@ -154,7 +154,8 @@
padding: 0 28rpx;
margin-top: 28rpx;
-.content_center-one {
+
+ .content_center-one {
display: flex;
padding: 0 28rpx;
@@ -200,6 +201,7 @@
}
}
+
.release_item {
background: #ffffff;
padding: 0 30rpx;
@@ -389,7 +391,6 @@
font-weight: 500;
color: #FFFFFF;
}
-
.release_btn {
margin-top: 100rpx;
}
diff --git a/pages/gather/gather.vue b/pages/gather/gather.vue
index 5a2dc20..e96c03d 100644
--- a/pages/gather/gather.vue
+++ b/pages/gather/gather.vue
@@ -127,12 +127,12 @@
交易大厅
-
+
委托销售
-
+
发布管理
@@ -313,10 +313,11 @@
this.isShow = true
this.mer_id = res.data.service.mer_id
}
+
if (!res.data.mer_info) {
that.$set(this, 'jurisdiction', false);
}
- console.log(that.userInfoData);
+ // console.log(that.userInfoData);
});
}
}
diff --git a/pages/releaseManagement/index.vue b/pages/releaseManagement/index.vue
index 58aa571..90cc1d0 100644
--- a/pages/releaseManagement/index.vue
+++ b/pages/releaseManagement/index.vue
@@ -188,13 +188,13 @@
}
},
onLoad(num) {
-
- this.tabTitle = this.tabs[0].name
-
- if(num.key=='2'){
- this.activeItem='tabThree'
+
+ this.tabTitle = this.tabs[0].name
+
+ if (num.key == '2') {
+ this.activeItem = 'tabThree'
}
-
+
//有时进入页面需要获取默认的第一个标签做逻辑判断 -- 如下:
// console.log(this.tabs[0])
},
diff --git a/pages/trading_hall/adddiscounts/index.vue b/pages/trading_hall/adddiscounts/index.vue
index 94a594c..f946de1 100644
--- a/pages/trading_hall/adddiscounts/index.vue
+++ b/pages/trading_hall/adddiscounts/index.vue
@@ -75,9 +75,8 @@
-
+
@@ -96,18 +95,60 @@
- 价格:¥{{price}}
-
+
+ 价格:¥{{price}}
+
+
+
+
@@ -136,29 +177,20 @@
-
+
@@ -200,7 +214,7 @@
}
.content_titimg {
- width: 136rpx;
+ width: 116rpx;
height: 64rpx;
margin-top: -10rpx;
margin-left: 10rpx;
@@ -214,11 +228,19 @@
.content_top-two {
.price {
+ display: flex;
margin-top: 21rpx;
font-size: 46rpx;
font-family: PingFang SC;
font-weight: 500;
- color: #F84221
+ color: #F84221;
+
+ input {
+ font-size: 46rpx;
+ font-family: PingFang SC;
+ font-weight: 500;
+ color: #F84221
+ }
}
.top-two_content {
@@ -332,11 +354,12 @@
.content_bootm_txt {
margin-top: 42rpx;
padding-left: 28rpx;
+
}
.content_bootm_one {
height: 112rpx;
- line-height: 112rpx;
+ padding-right: 28rpx;
background: #FFFFFF;
display: flex;
margin-top: 21rpx;
diff --git a/pages/trading_hall/transfer_goods/index.vue b/pages/trading_hall/transfer_goods/index.vue
index f5c8493..ba786bc 100644
--- a/pages/trading_hall/transfer_goods/index.vue
+++ b/pages/trading_hall/transfer_goods/index.vue
@@ -97,7 +97,7 @@
- 价格:¥{{price}}
+ 价格:¥{{price.toFixed(2)}}
+
+
+
@@ -143,6 +183,7 @@