浏览代码

更新市场

李书文 2 年之前
父节点
当前提交
bada707f85
共有 5 个文件被更改,包括 13 次插入6 次删除
  1. 1 1
      common/style.scss
  2. 7 0
      pages.json
  3. 2 2
      pages/market/one/leader/cart.vue
  4. 1 1
      pages/market/one/leader/order.vue
  5. 2 2
      pages/market/one/list.vue

+ 1 - 1
common/style.scss

@@ -674,7 +674,7 @@
 			.an{
 				float: right;
 				margin-left: 15px;
-				margin-top: -17px;
+				margin-top: 4px;
 				font-weight: bold;
 			}
 			

+ 7 - 0
pages.json

@@ -223,6 +223,13 @@
 			}
 
 		}, {
+			"path": "pages/market/one/leader/success",
+			"style": {
+				"navigationBarTitleText": "接单成功",
+				"enablePullDownRefresh": false
+			}
+
+		}, {
 			"path": "pages/market/two/leader/order",
 			"style": {
 				"navigationBarTitleText": "订单列表",

+ 2 - 2
pages/market/one/leader/cart.vue

@@ -51,9 +51,9 @@ export default {
 		buy(item) {
 			this.http.request({
 				url: '/level-one-server/app/TbGoodsTransit/purchaseLevelOntGoodsTransit',
-				data: { goodsTransitId: item.publishGoodsId },
+				data: { goodsTransitId: item.publishGoodsId, goodsCartId: item.id },
 				method: 'POST',
-				contentType: 'application/json; charset=utf-8',
+				contentType: 'application/json;charset=utf-8',
 				success: res => {
 					uni.redirectTo({ url: '/pages/market/one/leader/success' });
 				}

+ 1 - 1
pages/market/one/leader/order.vue

@@ -20,7 +20,7 @@
 				</view>
 				<image src="../../../../static/news.jpg" mode="aspectFill" class="pic"></image>
 				<view class="con">
-					<view class="productName omit">越南巴沙鱼</view>
+					<view class="productName omit">{{item.goodsNames}}</view>
 					<view class="desc omit">
 						<text>50吨</text>
 						<text>{{ item.tradeAreaName }}</text>

+ 2 - 2
pages/market/one/list.vue

@@ -23,11 +23,11 @@
 				<view class="con">
 					<view class="productName omit">{{ item.goodsName }}</view>
 					<view class="desc">
-						<text>50吨</text>
+						<text>{{item.grossWeight}} {{item.goodsUnits}}</text>
 						<text>{{ item.tradeAreaName }}</text>
 					</view>
 					<view class="price">¥ {{ item.price }}</view>
-					<view class="icon buy" @click.stop="addCar(item)">&#xe604;</view>
+					<view class="icon buy" @click.stop="addCar(item)" v-if="user.userType == 2">&#xe604;</view>
 				</view>
 				<view class="clear"></view>
 			</view>