shish 3 лет назад
Родитель
Сommit
bcf34bf77a
3 измененных файлов с 107 добавлено и 1 удалено
  1. 1 0
      ghsApp/src/admin/home/apply.vue
  2. 104 0
      ghsApp/src/admin/order/freight.vue
  3. 2 1
      ghsApp/src/pages.json

+ 1 - 0
ghsApp/src/admin/home/apply.vue

@@ -59,6 +59,7 @@ export default {
                     list:[
                         {name: "预售",img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`,url: "/admin/order/statBook"},
                         {name: "预订开关",img: `${this.$constant.imgUrl}/ghs/home/shop.png`,url: "/admin/order/bookSet"},
+                        {name: "运费设置",img: `${this.$constant.imgUrl}/ghs/home/shop.png`,url: "/admin/order/freight"}
                     ]
                 },
                 {

+ 104 - 0
ghsApp/src/admin/order/freight.vue

@@ -0,0 +1,104 @@
+<template>
+	<view class="app-content">
+		<form @submit="formSubmit">
+			<view class="module-com input-line-wrap">
+				<tui-list-cell class="line-cell" :hover="false">
+					<view class="tui-title">基础价格</view>
+					<input v-model="form.baseFee" placeholder-class="phcolor" class="tui-input" name="shopName" placeholder="请输入基础运费" maxlength="50" type="text" />
+				</tui-list-cell>
+				<tui-list-cell class="line-cell" :hover="false">
+					<view class="tui-title">距离加价</view>
+					<input v-model="form.distanceFee" placeholder-class="phcolor" class="tui-input" name="distanceFee" placeholder="请输入手机号" maxlength="50" type="number" />
+				</tui-list-cell>
+				<tui-list-cell class="line-cell" :hover="false">
+					<view class="tui-title">距离加价</view>
+					<input v-model="form.distanceFee" placeholder-class="phcolor" class="tui-input" name="distanceFee" placeholder="请输入手机号" maxlength="50" type="number" />
+				</tui-list-cell>
+				<tui-list-cell class="line-cell" :hover="false">
+					<view class="tui-title">重量加价</view>
+					<input v-model="form.weightFee" placeholder-class="phcolor" class="tui-input" name="weightFee" placeholder="请输入手机号" maxlength="50" type="number" />
+				</tui-list-cell>
+				<tui-list-cell class="line-cell" :hover="false">
+					<view class="tui-title">重量加价</view>
+					<input v-model="form.weightFee" placeholder-class="phcolor" class="tui-input" name="weightFee" placeholder="请输入手机号" maxlength="50" type="number" />
+				</tui-list-cell>
+				<tui-list-cell class="line-cell" :hover="false">
+					<view class="tui-title">特殊时段费</view>
+					<input v-model="form.periodFee" placeholder-class="phcolor" class="tui-input" name="periodFee" placeholder="请输入加价" maxlength="50" type="number" />
+				</tui-list-cell>
+				<tui-list-cell class="line-cell" :hover="false">
+					<view class="tui-title">特殊时段费</view>
+					<input v-model="form.periodFee" placeholder-class="phcolor" class="tui-input" name="periodFee" placeholder="请输入加价" maxlength="50" type="number" />
+				</tui-list-cell>
+				<tui-list-cell class="line-cell" :hover="false">
+					<view class="tui-title">特殊时段费</view>
+					<input v-model="form.periodFee" placeholder-class="phcolor" class="tui-input" name="periodFee" placeholder="请输入加价" maxlength="50" type="number" />
+				</tui-list-cell>
+				<tui-list-cell class="line-cell" :hover="false">
+					<view class="tui-title">临时加价</view>
+					<input v-model="form.lsFee" placeholder-class="phcolor" class="tui-input" name="lsFee" placeholder="恶劣天气和下单高峰等时可填写" maxlength="50" type="number" />
+				</tui-list-cell>
+			</view>
+			<view class="confirm-btn">
+				<button class="admin-button-com big blue" formType="submit">提交</button>
+			</view>
+		</form>
+	</view>
+</template>
+<script>
+import TuiListCell from '@/components/plugin/list-cell'
+import {mapActions} from "vuex";
+export default {
+	name: 'add',
+	components: {TuiListCell},
+	data() {
+		return {
+
+		}
+	},
+	onLoad() {
+	},
+	onShow() {
+
+	},
+	methods: {
+		init() {
+
+		}
+	}
+}
+</script>
+<style lang="scss" scoped>
+	.app-content {
+		min-height: calc(100vh - 20upx);
+		padding-top: 20upx;
+	}
+	.prompt-text {
+		color: $fontColor3;
+		padding-left: 30upx;
+		margin-bottom: 30upx;
+	}
+	.module-com {
+		margin-bottom: 20upx;
+		.member-wrap {
+			.member-det {
+				font-size: 24upx;
+				margin-left: 20upx;
+			}
+		}
+		.remark-wrap {
+			align-items: flex-start;
+			.remark {
+				height: 180upx;
+			}
+		}
+	}
+	// 按钮
+	.confirm-btn {
+		width: calc(100% - 60upx);
+		margin: 60upx 30upx 20upx;
+		.admin-button-com {
+			width: 100%;
+		}
+	}
+</style>

+ 2 - 1
ghsApp/src/pages.json

@@ -402,7 +402,8 @@
 				{"path": "itemOrder","style": {"navigationBarTitleText": "订单列表"}},
 				{"path": "bookSet","style": {"navigationBarTitleText": "预订开关"}},
 				{"path": "statBook","style": {"navigationBarTitleText": "预售"}},
-				{"path": "statKhBook","style": {"navigationBarTitleText": "详情"}}
+				{"path": "statKhBook","style": {"navigationBarTitleText": "详情"}},
+				{"path": "freight","style": {"navigationBarTitleText": "运费设置"}}
 			]
 		},
 		{