|
@@ -2,7 +2,7 @@ import Taro from '@tarojs/taro'
|
2
|
2
|
import { Image, Button, View, Text, Input } from '@tarojs/components'
|
3
|
3
|
import SpinBox from "@/components/Spin/SpinBox";
|
4
|
4
|
import CustomCard from '@/components/foodCards/CustomCard/index'
|
5
|
|
-import { useState, useEffect, useRef } from "react";
|
|
5
|
+import { useState, useEffect } from "react";
|
6
|
6
|
import BottomMoadl from '@/components/BottomMoadl/index'
|
7
|
7
|
import Travel from '@/assets/icons/Travel/travel.png'
|
8
|
8
|
import ChangeNext from '@/assets/icons/Travel/ChangeNext.png'
|
|
@@ -16,7 +16,7 @@ import './style.less'
|
16
|
16
|
|
17
|
17
|
export default withLayout((props) => {
|
18
|
18
|
const { router, location } = props
|
19
|
|
- const { id, dayNum} = router.params
|
|
19
|
+ const { id, dayNum } = router.params
|
20
|
20
|
|
21
|
21
|
const [loading, setLoading] = useState(false)
|
22
|
22
|
const [bottomDayNum, setBottomDayNum] = useState(true)
|
|
@@ -133,7 +133,7 @@ export default withLayout((props) => {
|
133
|
133
|
}
|
134
|
134
|
//确认
|
135
|
135
|
const ButtonOK = () => {
|
136
|
|
- seaveTravelID(id, { title: inputChangle}).then(val => {
|
|
136
|
+ seaveTravelID(id, { title: inputChangle }).then(val => {
|
137
|
137
|
Taro.showToast({
|
138
|
138
|
title: '修改成功',
|
139
|
139
|
icon: 'none',
|
|
@@ -150,34 +150,33 @@ export default withLayout((props) => {
|
150
|
150
|
}
|
151
|
151
|
|
152
|
152
|
return (
|
153
|
|
- <view className='page-index'>
|
154
|
|
- <Popup show={showDialog} maskClosable={false}>
|
155
|
|
-
|
156
|
|
- <view className='travel-box-info-ROOM'>
|
157
|
|
- <view className='travel-bi-name-ROOM' >
|
158
|
|
- <view className='travel-bin-title-ROOM'>修改行程名称:</view>
|
159
|
|
- <Input className='travel-bint-nameInfo-ROOM' value={inputChangle} onInput={handelInput} />
|
160
|
|
- </view>
|
161
|
|
- </view>
|
162
|
|
-
|
163
|
|
- <view className='travel-button-box' >
|
164
|
|
- <button className='travelButton-Cancel' onClick={ButtonCancel} >取消</button>
|
165
|
|
- <button className='travelButton-OK' onClick={ButtonOK} >确定</button>
|
166
|
|
- </view>
|
167
|
|
- </Popup>
|
168
|
|
- {/*
|
169
|
|
- frameTitle 标题
|
170
|
|
- flag 弹窗显示 true false
|
171
|
|
- ico 底部图标
|
172
|
|
- textNext 底部文字
|
|
153
|
+ <View className='page-index box-content'>
|
|
154
|
+ <View style={{ flex: 'none' }}>
|
|
155
|
+ <Popup show={showDialog} maskClosable={false}>
|
|
156
|
+ <View className='travel-box-info-ROOM'>
|
|
157
|
+ <View className='travel-bi-name-ROOM' >
|
|
158
|
+ <View className='travel-bin-title-ROOM'>修改行程名称:</View>
|
|
159
|
+ <Input className='travel-bint-nameInfo-ROOM' value={inputChangle} onInput={handelInput} />
|
|
160
|
+ </View>
|
|
161
|
+ </View>
|
|
162
|
+ <View className='travel-button-box' >
|
|
163
|
+ <Button className='travelButton-Cancel' onClick={ButtonCancel} >取消</Button>
|
|
164
|
+ <Button className='travelButton-OK' onClick={ButtonOK} >确定</Button>
|
|
165
|
+ </View>
|
|
166
|
+ </Popup>
|
|
167
|
+ {/*
|
|
168
|
+ frameTitle 标题
|
|
169
|
+ flag 弹窗显示 true false
|
|
170
|
+ ico 底部图标
|
|
171
|
+ textNext 底部文字
|
173
|
172
|
*/}
|
174
|
|
- <BottomMoadl frameTitle='行程推荐' dayNumber={dayNumber} travelId={id} flag={showFrame} handelAddTravel={handelAddTravel} onRecommend={setRecommend} ico={ChangeNext} textNext='换一批' location={location} />
|
175
|
|
-
|
176
|
|
- <View className='box-content'>
|
177
|
|
- <View className='index-navbar'>
|
178
|
|
- <CustomNav title='定制行程' />
|
179
|
|
- </View>
|
180
|
|
- <scroll-view scrollY style='height: calc(100% - 75px);margin-bottom: 40px;' >
|
|
173
|
+ <BottomMoadl frameTitle='行程推荐' dayNumber={dayNumber} travelId={id} flag={showFrame} handelAddTravel={handelAddTravel} onRecommend={setRecommend} ico={ChangeNext} textNext='换一批' location={location} />
|
|
174
|
+ </View>
|
|
175
|
+ <View className='index-navbar'>
|
|
176
|
+ <CustomNav title='定制行程' />
|
|
177
|
+ </View>
|
|
178
|
+ <View className='index-container'>
|
|
179
|
+ <scroll-view scrollY style='height:100%;' >
|
181
|
180
|
<View className='TravelTitle'>
|
182
|
181
|
{travelCustom?.title}<Image src={editImg} className='edit' onClick={handleModale} ></Image>
|
183
|
182
|
</View>
|
|
@@ -208,7 +207,7 @@ export default withLayout((props) => {
|
208
|
207
|
</View>
|
209
|
208
|
}
|
210
|
209
|
</scroll-view>
|
211
|
|
- </View >
|
212
|
|
- </view>
|
|
210
|
+ </View>
|
|
211
|
+ </View>
|
213
|
212
|
)
|
214
|
213
|
})
|