Bläddra i källkod

前端小程序 sdy

zhongtianhaoyuan 3 år sedan
förälder
incheckning
e836402e99
4 ändrade filer med 192 tillägg och 2 borttagningar
  1. 78 0
      pages.json
  2. 112 0
      pages/attestation/index.vue
  3. 1 1
      pages/sale/information.vue
  4. 1 1
      pages/user/user.vue

+ 78 - 0
pages.json

@@ -332,6 +332,84 @@
             }
             
         }
+        ,{
+            "path" : "pageD/identity/driverIdentity",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "司机认证",
+                "enablePullDownRefresh": false
+            }
+            
+        },
+		{
+		    "path" : "pageD/identity/driverIdentityLook",
+		    "style" :                                                                                    
+		    {
+		        "navigationBarTitleText": "认证信息",
+		        "enablePullDownRefresh": false
+		    }   
+		},
+		{
+		    "path" : "pageD/identity/companyIdentity",
+		    "style" :                                                                                    
+		    {
+		        "navigationBarTitleText": "粮商认证",
+		        "enablePullDownRefresh": false
+		    }   
+		},
+		{
+		    "path" : "pageD/identity/companyIdentityLook",
+		    "style" :                                                                                    
+		    {
+		        "navigationBarTitleText": "认证信息",
+		        "enablePullDownRefresh": false
+		    }   
+		}
+        ,{
+            "path" : "pages/release/release",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "我的发布",
+                "enablePullDownRefresh": false
+            }
+            
+        }
+        ,{
+            "path" : "pageD/myRelease/sellGrain",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "卖粮",
+                "enablePullDownRefresh": false
+            }
+            
+        },
+		{
+		    "path" : "pageD/myRelease/buyGrain",
+		    "style" :                                                                                    
+		    {
+		        "navigationBarTitleText": "买粮",
+		        "enablePullDownRefresh": false
+		    }
+		    
+		},
+		{
+		    "path" : "pageD/myRelease/sellDetails",
+		    "style" :                                                                                    
+		    {
+		        "navigationBarTitleText": "卖粮详情",
+		        "enablePullDownRefresh": false
+		    }
+		    
+		},
+		{
+		    "path" : "pageD/myRelease/buyDetails",
+		    "style" :                                                                                    
+		    {
+		        "navigationBarTitleText": "买粮详情",
+		        "enablePullDownRefresh": false
+		    }
+		    
+		}
     ],
 	"subpackages": [
 			{

+ 112 - 0
pages/attestation/index.vue

@@ -1,8 +1,120 @@
 <template>
+	<view class="center">
+		<view>
+			<view class="title">粮商身份</view>
+			<view class='cu-tag radius line-pink' @click="adddriver(1)">新增</view>
+			<view class="company">****公司</view>
+			<view class="guess-item" @click="navToDetailPage(1)">
+				<view class="infos">
+
+					<view class="info">张三
+						<view class='cu-tag radius line-pink but'>审核中</view>
+					</view>
+					<view class="info">13333333333</view>
+					<label>
+						<checkbox :value="1" /><text>设置默认</text>
+					</label>
+					<view class='cu-tag radius line-pink '>删除</view>
+					<view class='cu-tag radius line-pink but'>更换手机号</view>
+				</view>
+
+			</view>
+		</view>
+
+		<view class="margin-top">
+			<view class="title">司机身份</view>
+			<view class='cu-tag radius line-pink' @click="adddriver(2)">新增</view>
+			<view class="guess-item" @click="navToDetailPage(2)">
+				<view class="infos">
+					<view class="info">张三
+						<view class='cu-tag radius line-pink but'>审核中</view>
+					</view>
+					<view class="info">13333333333</view>
+
+					<view class='cu-tag radius line-pink '>删除</view>
+					<view class='cu-tag radius line-pink '>修改</view>
+					<view class='cu-tag radius line-pink but'>更换手机号</view>
+				</view>
+			</view>
+		</view>
+	</view>
+
+	</view>
+	</view>
 </template>
 
 <script>
+	export default {
+		name: "buy",
+		data() {
+			return {
+				PageCur: "buy",
+				buyInfo: [],
+				pages: 1, //页数
+				limit: 10, //每次取条目数
+				loadStatus: 'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
+				isLoadMore: false, //是否加载中
+				showTran: true,
+				scrollTop: 0,
+				TabCur: 0,
+				current: 1
+			};
+		},
+		methods: {
+			adddriver(index) {
+				if (index == 1) {
+					uni.navigateTo({
+						url: `/pageD/identity/companyIdentity`
+					})
+				} else {
+					uni.navigateTo({
+						url: `/pageD/identity/driverIdentity`
+					})
+				}
+			},
+			navToDetailPage(index) {
+				if (index == 1) {
+					uni.navigateTo({
+						url: `/pageD/identity/companyIdentityLook`
+					})
+				} else {
+					uni.navigateTo({
+						url: `/pageD/identity/driverIdentityLook`
+					})
+				}
+
+			}
+		}
+	}
 </script>
 
 <style>
+	.center {
+		padding: 10px 20px;
+	}
+
+	.title {
+		font-size: 18px;
+		font-weight: 900;
+		margin-right: 20px;
+		display: initial;
+	}
+
+	.company {
+		font-size: 16px;
+		margin-top: 10px;
+	}
+
+	.infos {
+		/* margin: 10px 20px; */
+		width: 100%;
+		display: inline-table;
+	}
+	.info {
+		line-height: 20px;
+	}
+	.but {
+		right: 3px;
+		float: right;
+	}
 </style>

+ 1 - 1
pages/sale/information.vue

@@ -48,7 +48,7 @@
 						<view style='flex:1;'>
 							<view class='factory'>{{item.factory}}</view>
 							<view class='wrap'>{{item.city}} {{item.factoryType}}</view>
-							</view>
+						</view>
 						<view style='flex:1;' class='price'>{{item.price}}</view>
 						<view style='flex:1;' class='positive' v-if='item.comparePrice>0'>{{item.comparePrice}}<image class='up' src='https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/up.png'></image></view>
 						<view style='flex:1;' class='negative' v-if='item.comparePrice<0'>{{-item.comparePrice}}<image class='down' src='https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/decline.png'></image></view>

+ 1 - 1
pages/user/user.vue

@@ -202,7 +202,7 @@
 							name: '我的发布',
 							icon:'cuIcon-news',
 							tips: 0,
-							url:'/pages/user/message',
+							url:'pages/release/release',
 							show:true
 						},
 						{