Merge remote-tracking branch 'origin/master'
| | |
| | | VUE_APP_DEBUG = 'off' |
| | | |
| | | # VUE_APP_API_URL = 'https://test.doumee.cn/jinkuai_admin' |
| | | VUE_APP_API_URL = 'http://192.168.0.212/jinkuai_admin' |
| | | VUE_APP_API_URL = 'https://jinkuai.832smartfarm.com/jinkuai_admin' |
| | |
| | | padding: 16px; |
| | | } |
| | | .renzheng{ |
| | | margin: 0px 0px 50px 20px; |
| | | margin: 0px 0px 30px 20px; |
| | | width: calc(100% - 60px); |
| | | .detail{ |
| | | font-size: 14px; |
| | |
| | | <style lang="scss" scoped> |
| | | @import '@/assets/style/variables.scss'; |
| | | .renzheng{ |
| | | margin: 0px 0px 50px 20px; |
| | | margin: 0px 0px 30px 20px; |
| | | width: calc(100% - 60px); |
| | | .detail{ |
| | | font-size: 14px; |
| | |
| | | <div class="line"> |
| | | <div class="cont"><span class="label">æµç§°ï¼</span> <span class="txt">{{ info.releaseName||'' }}</span></div> |
| | | <div class="cont" ><span class="label">èç³»æ¹å¼ï¼</span> <span class="txt ">{{ info.releasePhone||'' }}</span></div> |
| | | <div class="cont" ><span class="label">å
¶ä»è系人ï¼</span> <span class="txt ">{{ info.linkName||'å¿å' }}-{{ info.linkPhone||'æªè®¾ç½®' }}</span></div> |
| | | <div class="cont" ><span class="label">å
¶ä»è系人ï¼</span> <span class="txt ">{{ info.linkName||'' }}-{{ info.linkPhone||'æªè®¾ç½®' }}</span></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | color: #ff4d00 !important; |
| | | } |
| | | .renzheng{ |
| | | margin: 0px 0px 50px 20px; |
| | | margin: 0px 0px 30px 20px; |
| | | width: calc(100% - 60px); |
| | | .detail{ |
| | | font-size: 14px; |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="orderContent" label="订åå
容" width="200px" :show-overflow-tooltip='true'></el-table-column> |
| | | <el-table-column prop="releaseName" label="ååæ¹" width="200px"> |
| | | <el-table-column prop="releaseName" label="ååæ¹" min-width="100px" :show-overflow-tooltip='true'> |
| | | <template slot-scope="{row}"> |
| | | {{(row.releaseName||'å¿å') +' - ' +(row.releasePhone||'æ ') }} |
| | | <span v-if="row.releaseName || row.releasePhone">{{(row.releaseName||'') +' - ' +(row.releasePhone||'') }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="acceptName" label="æ¥åæ¹" width="200px"> |
| | | <el-table-column prop="acceptName" label="æ¥åæ¹" min-width="100px" :show-overflow-tooltip='true'> |
| | | <template slot-scope="{row}"> |
| | | {{(row.acceptName||'å¿å') +' - ' +(row.acceptPhone ||'æ ') }} |
| | | <span v-if="row.acceptName || row.acceptPhone">{{(row.acceptName||'') +' - ' +(row.acceptPhone ||'') }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="createTime" label="å叿¶é´" min-width="150px"></el-table-column> |
| | |
| | | <li><el-button type="primary" @click="$refs.operaDictWindow.open('æ°å»ºåå
¸')" icon="el-icon-plus" v-permissions="['system:dict:create']">æ°å»º</el-button></li> |
| | | <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['system:dict:delete']">å é¤</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | :height="tableHeightNew" |
| | | <el-table :height="tableHeightNew" |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | :default-sort = "{prop: 'createTime', order: 'descending'}" |
| | |
| | | #mchKey: W97N53Q71326D6JZ2E9HY5M4VT4BAC8S |
| | | notifyUrl: https://test.doumee.cn/jinkuai_admin/web/wxPayNotify |
| | | refundNotifyUrl: https://test.doumee.cn/jinkuai_admin/web/wxRefundNotify |
| | | keyPath: d://jinkuai/apiclient_cert.p12 |
| | | privateCertPath: d://jinkuai/apiclient_cert.pem |
| | | privateKeyPath: d://jinkuai/apiclient_key.pem |
| | | pubKeyPath: d://jinkuai/pub_key.pem #åæ·æ¯ä»å
¬é¥ |
| | | keyPath: D://jinkuai/apiclient_cert.p12 |
| | | privateCertPath: D://jinkuai/apiclient_cert.pem |
| | | privateKeyPath: D://jinkuai/apiclient_key.pem |
| | | pubKeyPath: D://jinkuai/pub_key.pem #åæ·æ¯ä»å
¬é¥ |
| | | |
| | | #æå¡å-------------end--- |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | #!/bin/bash |
| | | |
| | | killall java |
| | | |
| | | nohup java -jar /usr/local/jars/jinkuai/jinkuai_admin.jar > /dev/null 2>&1 & |
| | | nohup java -jar /usr/local/jars/jinkuai/jinkuai_web.jar > /dev/null 2>&1 & |
| | | |
| | | cd /data/jars/lianhelihua/logs |
| | | tail -f /data/jars/lianhelihua/logs/info.2025-05-19.1.log |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 1ãææ *_start.shèæ¬æ§è¡åï¼è¯·æå¨åæ¢å¯¹åºjavaè¿ç¨ ps -ef grep java æ¥è¯¢pidï¼æ§è¡ kill -9 pid |
| | | |
| | | 2ãæ¥å¿æ¸
çèæ¬ logByDate.shæ§è¡å½ä»¤ï¼ |
| | | #æ§è¡å¯å¨å½ä»¤ |
| | | sh /usr/local/jars/startsh/logByDate.sh |
| | | |
| | | #æ§è¡ |
| | | crontab -e |
| | | #å å
¥æ§è¡ä»»å¡ æ¯å¤©åæ¨æ§è¡ |
| | | 0 0 * * * /usr/local/jars/startsh/logByDate.sh |
| | | #æEscé®ååè¾å
¥:wqï¼,å车ä¿å |
| | | #æ¥çæ¯å¦å建æå |
| | | crontab -l |
| | |
| | | uni.getLocation({ |
| | | type: 'wgs84', |
| | | success: (addr) => { |
| | | const locParam = { latitude: addr.latitude, longitude: addr.longitude ,address:'è·åå°å失败'}; |
| | | const locParam = { latitude: addr.latitude, longitude: addr.longitude }; |
| | | uni.setStorageSync('address', locParam); |
| | | var address =null |
| | | const qqmapsdk = new QQMapWX({ |
| | | key: '4PXBZ-JLBC7-LCLXG-P2SZX-C4HYE-LDBLQ' //è
¾è®¯å°å¾ç³è¯·çkeyï¼åç»éè¦å
¬å¸æä¾ï¼ä¸ªäººå¼åè
é¢åº¦æéï¼ |
| | |
| | | Vue.prototype.$isResolve = resolve; |
| | | }) |
| | | |
| | | // Vue.prototype.$baseUrl = 'http://192.168.1.54:10011/' |
| | | Vue.prototype.$baseUrl = 'http://192.168.1.54:10011/' |
| | | |
| | | // Vue.prototype.$baseUrl = 'https://test.doumee.cn/jinkuai_web/' |
| | | // Vue.prototype.$baseUrl = 'https://jinkuai.832smartfarm.com/jinkuai_web/' |
| | | |
| | | const app = new Vue({ |
| | | store, |
| | |
| | | var param ={ |
| | | id:that.info.id, |
| | | lat:res.latitude, |
| | | location:res.address, |
| | | location:res.name || res.address, |
| | | lgt:res.longitude |
| | | } |
| | | that.$u.api.updateLocation(param).then(res1 =>{ |
| | |
| | | <view class="eidt-phone" v-if="[2].includes(item.status)">èç³»å¸å
</view> |
| | | <view class="eidt-phone" v-if="item.status === 4 && item.commentStatus === 0">è¯ä»·è®¢å</view> |
| | | <view class="eidt-btn" v-if="[0,1,2].includes(item.status) && item.type !== 2" @click.stop="jumpEdit(item)">ä¿®æ¹è®¢å</view> |
| | | <view class="eidt-btn" v-if="(item.type === 2 && item.status === 0) || (item.type === 2 && item.status === 3)" @click.stop="jumpEdit(item)">ç»§ç»æ¯ä»</view> |
| | | <view class="eidt-btn" v-if="(item.type !== 2 && item.status === 0) || (item.type !== 2 && item.status === 3)" @click.stop="jumpEdit(item)">ç»§ç»æ¯ä»</view> |
| | | <!-- <view class="eidt-btn" v-if="item.status === 2" @click.stop="startJobs(item.id)">å¼å§ä½ä¸</view> --> |
| | | <view class="eidt-btn" v-if="item.status === 3" @click.stop="jumpDesc(item)">宿并æ¯ä»</view> |
| | | <view class="eidt-btn" v-if="item.type != 2 && item.status === 3" @click.stop="jumpDesc(item)">宿并æ¯ä»</view> |
| | | <view class="eidt-btn" v-if="item.type == 2 && item.status === 3" @click.stop="jumpDesc(item)">宿ä½ä¸</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <!-- æ¥åæ¹ --> |
| | | <view class="index-list" v-if="typeViewId === 1"> |
| | | <view class="index-list-item" v-for="(item, index) in orderList" :key="index" @click="jumpDesc(item)"> |
| | | <view class="index-list-wu" v-if="orderList.length === 0"> |
| | | <text>å·²å è½½å
¨é¨æ°æ®</text> |
| | | </view> |
| | | <view class="index-list-item" v-for="(item, index) in orderList" :key="index" @click="jumpDesc(item)" v-else> |
| | | <view class="index-list-item-head"> |
| | | <view class="index-list-item-head-l"> |
| | | <view class="xoam"></view> |
| | |
| | | { name: 'å·²æ¥å', id: 2 }, |
| | | { name: 'è¿è¡ä¸', id: 3 }, |
| | | { name: '已宿', id: 4 }, |
| | | { name: '已忶', id: 99 }, |
| | | // { name: '已忶', id: 99 }, |
| | | ], |
| | | list1: [ |
| | | { name: 'å
¨é¨', id: '' }, |
| | |
| | | { name: 'è¿è¡ä¸', id: 3 }, |
| | | { name: '已宿', id: 4 }, |
| | | { name: '已忶', id: 99 }, |
| | | { name: 'å¾
è¯ä»·', id: [4, 0] } |
| | | { name: 'å¾
è¯ä»·', id: 5 } |
| | | ], |
| | | orderId: null, |
| | | status: '', |
| | |
| | | page: this.page, |
| | | model: { |
| | | queryMyOrderType: this.userInfo.useIdentity, |
| | | status: this.status, |
| | | status: this.status === 5 ? 4 : this.status, |
| | | commentStatus: this.status === 5 ? 0 : '', |
| | | queryLat: this.latitude, |
| | | queryLgt: this.longitude |
| | | } |
| | |
| | | }) |
| | | }, |
| | | clickOrderType(id) { |
| | | if (typeof id === 'object') { |
| | | this.status = id[0] |
| | | this.commentStatus = id[1] |
| | | } else { |
| | | // if (typeof id === 5) { |
| | | // this.status = 5 |
| | | // // this.commentStatus = 0 |
| | | // } else { |
| | | this.commentStatus = '' |
| | | this.status = id |
| | | } |
| | | // } |
| | | this.orderList = [] |
| | | this.next = true |
| | | this.page = 1 |
| | |
| | | <template> |
| | | <view class="box"> |
| | | <view class="box-head" :style="{ backgroundImage: 'url(' + bgImg + ')' }"> |
| | | <view class="box-head"> |
| | | <!-- ç¨å·¥ --> |
| | | <image class="box-head-bg" src="@/static/image/bg_renzheng_yonggong@2x.png" mode="widthFix" v-if="title === 'ç¨å·¥è®¤è¯'"></image> |
| | | <!-- è´§è¿ --> |
| | | <image class="box-head-bg" src="@/static/image/bg_renzheng_huoyun@2x.png" mode="widthFix" v-if="title === 'è´§è¿è®¤è¯'"></image> |
| | | <!-- ç¨é¤ --> |
| | | <image class="box-head-bg" src="@/static/image/bg_renzheng_gongcan@2x.png" mode="widthFix" v-if="title === 'ä¾é¤è®¤è¯'"></image> |
| | | <view class="box-head-info"> |
| | | <text>{{title}}</text> |
| | | <text>请æè¦æ±å¡«å认è¯ä¿¡æ¯</text> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | bgImg: require('@/static/image/bg_renzheng_yonggong@2x.png'), |
| | | bgImg: null, |
| | | title: 'ç¨æ·è®¤è¯', |
| | | flag: null, |
| | | |
| | |
| | | return false |
| | | }, |
| | | applySubmit() { |
| | | console.log(this.loading) |
| | | if (this.loading) { |
| | | return |
| | | } |
| | |
| | | this.inNullParam(this.form.lgt) || |
| | | this.inNullParam(this.form.location) || |
| | | this.inNullParam(this.form.telephone)) { |
| | | |
| | | uni.showToast({ |
| | | title: '对ä¸èµ·ï¼è¯·æè¦æ±å¡«åç³è¯·ä¿¡æ¯1ï¼', |
| | | icon: "none", |
| | |
| | | param.img2 = this.form.img21 |
| | | } |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['4H9ztG4E9BxJLwMuYSZ6oiM7yb4KX7u7bYhkhYJP0-Y'], |
| | | tmplIds: ['VJho7-lf-4_WZFfOzenDndgwNDIA0EvCiE6vqBnExpQ'], |
| | | success(res) { |
| | | console.log('æäº¤åæ°ï¼', param) |
| | | that.$u.api.applyForIdentity(param).then(res => { |
| | |
| | | }).finally(() => { |
| | | that.loading = false |
| | | }) |
| | | }, |
| | | fail(err) { |
| | | console.log(err) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | uni.chooseLocation({ |
| | | success: (res) => { |
| | | console.log(res); |
| | | this.form.location = res.address |
| | | this.form.location = res.name || res.address |
| | | this.form.lat = res.latitude |
| | | this.form.lgt = res.longitude |
| | | }, |
| | |
| | | height: 300rpx; |
| | | padding: 34rpx 40rpx 0 40rpx; |
| | | box-sizing: border-box; |
| | | background-repeat: no-repeat; |
| | | background-size: 100% 100%; |
| | | // background-repeat: no-repeat; |
| | | // background-size: 100% 100%; |
| | | position: relative; |
| | | |
| | | .box-head-bg { |
| | | width: 100%; |
| | | height: 300rpx; |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | z-index: -1; |
| | | } |
| | | |
| | | .box-head-botton { |
| | | width: 100%; |
| | |
| | | <view class="list-item-row"> |
| | | <view class="list-item-row-label">è¿è¾éé/æ°é<b>*</b></view> |
| | | <view class="list-item-row-val"> |
| | | <input type="text" v-model="form.transportNum" placeholder="请è¾å
¥" /> |
| | | <view @click="show4 = true" style="width: 100%; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end;"> |
| | | <input type="text" style="flex: 1;" v-model="form.transportNum" placeholder="请è¾å
¥" /> |
| | | <view @click="show4 = true" style="width: 100rpx; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end;"> |
| | | <text>{{form.transportUnit}}</text> |
| | | <u-icon name="arrow-down" color="#111111" size="16"></u-icon> |
| | | </view> |
| | |
| | | <u-calendar |
| | | :show="show2" |
| | | color="#00BC12" |
| | | :allowSameDay="true" |
| | | mode="range" |
| | | @close="show2 = false" |
| | | @confirm="confirmDate" /> |
| | |
| | | }) |
| | | } else { |
| | | const res = uni.getStorageSync('carData'); |
| | | console.log(res) |
| | | this.form.linkPhone = this.userInfo.telephone |
| | | this.form.linkName = this.userInfo.name |
| | | this.form.startDate = res.startDate |
| | | this.form.endDate = res.endDate |
| | | this.form.lat = res.lat |
| | |
| | | }, |
| | | // æäº¤è®¢å |
| | | submit() { |
| | | var that = this; |
| | | if (!this.form.carUnit) { |
| | | return uni.showToast({ title: 'è¯·éæ©è´§è½¦åå·', icon: 'none' }) |
| | | } |
| | |
| | | if (!this.form.linkPhone) { |
| | | return uni.showToast({ title: '请è¾å
¥èç³»çµè¯', icon: 'none' }) |
| | | } |
| | | if (!this.form.id) { |
| | | this.$u.api.release({ |
| | | ...this.form, |
| | | price: Number(this.form.price) * 100, |
| | | if (!that.form.id) { |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['oVjOBLcHxIlGzOMJsdInmgI5CHGXh-UTvMzQqfFOnIg'], |
| | | success(res) { |
| | | that.$u.api.release({ |
| | | ...that.form, |
| | | price: Number(that.form.price) * 100, |
| | | wayInfoDTOList: [ |
| | | { |
| | | lat: this.form.lat, |
| | | lgt: this.form.lgt, |
| | | location: this.form.location |
| | | lat: that.form.lat, |
| | | lgt: that.form.lgt, |
| | | location: that.form.location |
| | | }, |
| | | ...this.form.wayInfoDTOList, |
| | | ...that.form.wayInfoDTOList, |
| | | { |
| | | lat: this.form.latEnd, |
| | | lgt: this.form.lgtEnd, |
| | | location: this.form.locationEnd |
| | | lat: that.form.latEnd, |
| | | lgt: that.form.lgtEnd, |
| | | location: that.form.locationEnd |
| | | } |
| | | ] |
| | | }).then(res => { |
| | |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } else { |
| | | this.$u.api.updateOrder({ |
| | | ...this.form, |
| | | price: Number(this.form.price) * 100, |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['3YSC7gouRlSjHXz4CrWOGFzPmGwEBtFj4snwdfMvKHk'], |
| | | success(res) { |
| | | that.$u.api.updateOrder({ |
| | | ...that.form, |
| | | price: Number(that.form.price) * 100, |
| | | wayInfoDTOList: [ |
| | | { |
| | | lat: this.form.lat, |
| | | lgt: this.form.lgt, |
| | | location: this.form.location |
| | | lat: that.form.lat, |
| | | lgt: that.form.lgt, |
| | | location: that.form.location |
| | | }, |
| | | ...this.form.wayInfoDTOList, |
| | | ...that.form.wayInfoDTOList, |
| | | { |
| | | lat: this.form.latEnd, |
| | | lgt: this.form.lgtEnd, |
| | | location: this.form.locationEnd |
| | | lat: that.form.latEnd, |
| | | lgt: that.form.lgtEnd, |
| | | location: that.form.locationEnd |
| | | } |
| | | ] |
| | | }).then(res => { |
| | |
| | | uni.navigateBack({ delta: 1 }); |
| | | // uni.$emit('refresh') |
| | | }, 1500) |
| | | |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | |
| | | confirmDate(e) { |
| | | this.form.startDate = e[0] |
| | | this.form.endDate = e[e.length - 1] |
| | | this.form.priceNum1 = e.length; |
| | | let time = this.form.startDate == this.form.endDate ? 1 : 0 |
| | | this.form.priceNum1 = e.length - time; |
| | | this.show2 = false |
| | | }, |
| | | addAddr() { |
| | |
| | | if ([2].includes(type)) { |
| | | this.form.latitude = res.latitude |
| | | this.form.longitude = res.longitude |
| | | this.form.address = res.address |
| | | this.form.address = res.name || res.address |
| | | } else if (type === 3) { |
| | | this.form.locationEnd = res.address |
| | | this.form.locationEnd = res.name || res.address |
| | | this.form.latEnd = res.latitude |
| | | this.form.lgtEnd = res.longitude |
| | | } else if (type === 4) { |
| | | this.form.wayInfoDTOList[0].lat = res.latitude |
| | | this.form.wayInfoDTOList[0].lgt = res.longitude |
| | | this.form.wayInfoDTOList[0].location = res.address |
| | | this.form.wayInfoDTOList[index].lat = res.latitude |
| | | this.form.wayInfoDTOList[index].lgt = res.longitude |
| | | this.form.wayInfoDTOList[index].location = res.name || res.address |
| | | } |
| | | } |
| | | }); |
| | |
| | | <template> |
| | | <view class="index"> |
| | | <!-- æ¥åæ¹ --> |
| | | <view class="index-j" v-if="typeViewId === 1"> |
| | | <view class="index-j" v-if="userInfo && userInfo.useIdentity === 1"> |
| | | <view class="index-j-head"> |
| | | <view :style="{ width: '100%', height: statusbarHeight + 'px' }"></view> |
| | | <view class="index-c-title" :style="{ height: navHeight + 'px' }"> |
| | |
| | | <text>Â¥{{item.estimatedAccount / 100}}</text> |
| | | </view> |
| | | <view class="eidt"> |
| | | <sunui-mverify @change="getaccept($event, item.id, index)"></sunui-mverify> |
| | | <!-- <sunui-mverify @change="getaccept($event, item.id, index)"></sunui-mverify> --> |
| | | <view class="eidt-btn" @click="show1 = true, orderId = item.id">æ¢å</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- ååæ¹ --> |
| | | <view class="index-c" v-if="typeViewId === 0"> |
| | | <view class="index-c" v-if="!userInfo || userInfo.useIdentity === 0"> |
| | | <view :style="{ width: '100%', height: statusbarHeight + 'px' }"></view> |
| | | <view class="index-c-title" :style="{ height: navHeight + 'px' }" @click="selectAddress(-1)"> |
| | | <text class="index-c-title-logo">è¿å¿«</text> |
| | |
| | | <view class="radio-item-label">{{item.name}}</view> |
| | | <view class="radio-item-list"> |
| | | <view class="radio-item-list-l"> |
| | | <view :class="child.active ? 'radio-item-list-item active' : 'radio-item-list-item'" v-for="(child, childIndex) in item.list" :key="childIndex" @click="selectMenu(index, childIndex)">{{child.price}}å
</view> |
| | | <view v-if="child.price" :class="child.active ? 'radio-item-list-item active' : 'radio-item-list-item'" v-for="(child, childIndex) in item.list" :key="childIndex" @click="selectMenu(index, childIndex)">{{child.price||0}}å
</view> |
| | | </view> |
| | | <view class="radio-item-list-data"> |
| | | <text>份æ°ï¼</text> |
| | | <text style="flex-shrink: 0;">份æ°ï¼</text> |
| | | <input type="number" v-model="item.num" placeholder="请è¾å
¥"> |
| | | <text style="color: #999999;">份</text> |
| | | <view class="radio-item-list-data-btn" @click="clear(index)">åæ¶</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="box-hz-btn" :style="{ backgroundImage: 'url(' + btn + ')' }"> |
| | | <view class="box-hz-btn-kf" @click="contactPhone()">客æ</view> |
| | | <view class="box-hz-btn-next" @click="submit">ä¸ä¸æ¥</view> |
| | | <view class="box-hz-btn-next" @click="submit">ç«å³ä¸å</view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | <view :class="form.startDate ? 'box-hz-list-item-val active' : 'box-hz-list-item-val'"> |
| | | <view class="box-hz-list-item-val-left"> |
| | | <image class="icon" src="/static/icon/ic_time@2x.png" mode="widthFix"></image> |
| | | <text>{{ form.startDate ? form.startDate + ' è³ ' + form.endDate : 'è¯·éæ©ç¨å·¥æ¶é´'}}</text> |
| | | <text>{{ form.startDate ? form.startDate + ' è³ ' + form.endDate : 'è¯·éæ©ç¨è½¦æ¶é´'}}</text> |
| | | </view> |
| | | <u-icon name="arrow-right" color="#111111" size="16"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="box-hz-list-item"> |
| | | <view class="box-hz-list-item-label"> |
| | | <text>ç¨è½¦æ¶é´ï¼</text> |
| | | <text>ç¨è½¦å°ç¹ï¼</text> |
| | | <text @click="addAddr">+å¢å éç»ç¹</text> |
| | | </view> |
| | | <view class="item-d"> |
| | |
| | | |
| | | <view class="box-hz-btn" :style="{ backgroundImage: 'url(' + btn + ')' }"> |
| | | <view class="box-hz-btn-kf" @click="contactPhone()" >客æ</view> |
| | | <view class="box-hz-btn-next" @click="jump()">ä¸ä¸æ¥</view> |
| | | <view class="box-hz-btn-next" @click="jump()">ç«å³ä¸å</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- éæ©æ¥æèå´ --> |
| | | <u-calendar :show="show" color="#00BC12" mode="range" @close="show = false" @confirm="confirmDate"></u-calendar> |
| | | <u-popup :show="showPhone" round="15" mode="bottom" @close="contactPhone()" :closeable="true" :closeOnClickOverlay="true"> |
| | | <u-calendar :show="show" color="#00BC12" :allowSameDay="true" mode="range" @close="show = false" @confirm="confirmDate"></u-calendar> |
| | | |
| | | <u-popup :show="showPhone" round="15" mode="bottom" :safeAreaInsetBottom="true" @close="contactPhone()" :closeable="true" :closeOnClickOverlay="true"> |
| | | <view class="phone"> |
| | | <view class="phone-head"> |
| | | <view></view> |
| | |
| | | <view></view> |
| | | <text>{{item}}</text> |
| | | </view> |
| | | <view style="width: 100%; height: 30rpx;"></view> |
| | | <!-- <view class="phone-botton" @click="contactPhone()" >å
³é</view> --> |
| | | </view> |
| | | </u-popup> |
| | | |
| | | <u-modal |
| | | title="温馨æç¤º" |
| | | :show="show1" |
| | | closeOnClickOverlay |
| | | showCancelButton |
| | | > |
| | | <view class="slot-content"> |
| | | æ¯å¦ç¡®è®¤æ¢åï¼ |
| | | </view> |
| | | <view slot="confirmButton" style="display: flex; justify-content: space-between; align-items: center; width: 100%;"> |
| | | <view class="btn1" @click="show1 = false">åæ¶</view> |
| | | <view class="btn2" @click="getaccept1">确认</view> |
| | | </view> |
| | | </u-modal> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | linkName: '', |
| | | linkPhone: '', |
| | | estimatedAccount: '', |
| | | price: '' |
| | | price: '', |
| | | address: '' |
| | | }, |
| | | sortType: 0, |
| | | orderList: [], |
| | |
| | | page: 1, |
| | | next: true, |
| | | |
| | | isOnce: true |
| | | isOnce: true, |
| | | show1: false, |
| | | orderId: null |
| | | } |
| | | }, |
| | | async onLoad() { |
| | | await this.$onLaunched; |
| | | |
| | | if (this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}' && this.userInfo.useIdentity === 1) { |
| | | this.getOrderList() |
| | | } |
| | | console.log('2') |
| | | // if (this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}' && this.userInfo.useIdentity === 1) { |
| | | // this.getOrderList() |
| | | // } |
| | | |
| | | this.getCategoryLists() |
| | | this.getDictInfo() |
| | | |
| | | if (this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}') { |
| | | this.form.linkPhone = this.userInfo.telephone |
| | | this.form.linkPhone = this.userInfo.telephone || '' |
| | | this.form.linkName = this.userInfo.name || '' |
| | | } |
| | | |
| | | this.qqmapsdk = new QQMapWX({ |
| | |
| | | this.form.locationRemark = '' |
| | | this.form.supplement = '' |
| | | this.form.multifileList = [] |
| | | this.form.linkName = '' |
| | | this.form.estimatedAccount = '' |
| | | this.form.price = '' |
| | | this.form.address = '' |
| | | this.orderFood = [] |
| | | this.clearAll() |
| | | }) |
| | | // å·æ°é¦é¡µæ°æ® |
| | | uni.$on('refresh', () => { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | onShow(options) { |
| | | this.typeViewId = 0 |
| | | if(this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}') { |
| | | console.log('å·²ç»é') |
| | | this.isLogin = true |
| | | |
| | | if (!this.isOnce && this.userInfo.useIdentity == 1) { |
| | | this.page = 1 |
| | | this.next = true |
| | | this.orderList = [] |
| | | this.getOrderList() |
| | | } |
| | | |
| | | } else { |
| | | this.isLogin = false |
| | | console.log('æªç»é') |
| | | } |
| | | |
| | | if (this.userInfo && this.userInfo.useIdentity == 1) { |
| | | this.typeViewId = 1 |
| | | } |
| | | }, |
| | | watch: { |
| | | typeId: { |
| | | handler(news, old) { |
| | | async onShow(options) { |
| | | await this.$onLaunched; |
| | | console.log('2') |
| | | this.form.startDate = '' |
| | | |
| | | this.form.address = '' |
| | | this.form.endDate = '' |
| | | this.form.latitude = '' |
| | | this.form.longitude = '' |
| | |
| | | this.form.locationRemark = '' |
| | | this.form.supplement = '' |
| | | this.form.multifileList = [] |
| | | this.form.linkName = '' |
| | | this.form.estimatedAccount = '' |
| | | this.form.price = '' |
| | | this.viewStatus = false |
| | | this.clearAll() |
| | | |
| | | if(this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}') { |
| | | console.log('å·²ç»é') |
| | | this.isLogin = true |
| | | |
| | | // this.typeViewId = this.userInfo.useIdentity |
| | | // !this.isOnce && |
| | | if (this.userInfo.useIdentity === 1) { |
| | | console.log('å·²ç»é111') |
| | | this.page = 1 |
| | | this.next = true |
| | | this.orderList = [] |
| | | this.getOrderList() |
| | | } |
| | | |
| | | } else { |
| | | this.isLogin = false |
| | | console.log('æªç»é') |
| | | } |
| | | }, |
| | | watch: { |
| | | typeId: { |
| | | handler(news, old) { |
| | | console.log('typeId') |
| | | this.form.startDate = '' |
| | | this.form.address = '' |
| | | this.form.endDate = '' |
| | | this.form.latitude = '' |
| | | this.form.longitude = '' |
| | | this.form.location = '' |
| | | this.form.locationEnd = '' |
| | | this.form.wayInfoDTOList = [] |
| | | this.form.workType = 0 |
| | | this.form.days = '' |
| | | this.form.locationRemark = '' |
| | | this.form.supplement = '' |
| | | this.form.multifileList = [] |
| | | this.form.estimatedAccount = '' |
| | | this.form.price = '' |
| | | this.viewStatus = false |
| | | this.clearAll() |
| | | } |
| | | }, |
| | | orderFood: { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | clear(index) { |
| | | this.orderFood[index].num = '' |
| | | this.orderFood[index].list.forEach(item => { |
| | | item.active = false |
| | | }) |
| | | }, |
| | | clearAll() { |
| | | this.orderFood.forEach(p=>{ |
| | | p.num=null |
| | | p.list.forEach(item => { |
| | | item.active = false |
| | | }) |
| | | }) |
| | | }, |
| | | getDictInfo(){ |
| | | var that = this; |
| | | this.$u.api.getPlatformAboutUs({}).then(res =>{ |
| | |
| | | } |
| | | }, |
| | | // æå¨æ¥å |
| | | getaccept(e, orderId, index) { |
| | | if (!e.msg) return; |
| | | this.$u.api.accept({ orderId }) |
| | | .then(res => { |
| | | if (res.code === 200) { |
| | | getaccept() { |
| | | var that = this; |
| | | that.$u.api.accept({ orderId: this.orderId }) |
| | | .then(res1 => { |
| | | if (res1.code === 200) { |
| | | uni.showToast({ title: 'æ¢åæåï¼', icon: 'success', duration: 2000 }) |
| | | setTimeout(() => { |
| | | this.page = 1 |
| | | this.next = true |
| | | this.orderList = [] |
| | | this.getOrderList() |
| | | that.page = 1 |
| | | that.next = true |
| | | that.orderList = [] |
| | | that.getOrderList() |
| | | }, 2000) |
| | | } |
| | | }) |
| | | }, |
| | | getaccept1() { |
| | | var that = this; |
| | | this.show1 = false |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['tDpYImlrdv-0d3euTrHbYZ1cEZvjVHTNlqHvV0tpLHg'], |
| | | success(res) { |
| | | that.getaccept() |
| | | }, |
| | | fail(err) { |
| | | that.getaccept() |
| | | } |
| | | }) |
| | | }, |
| | |
| | | queryMyOrderType: 2, |
| | | type: this.typeVal, |
| | | sortType: this.sortType, |
| | | queryLat: this.latitude, |
| | | queryLgt: this.longitude |
| | | queryLat: uni.getStorageSync('address').latitude, |
| | | queryLgt: uni.getStorageSync('address').longitude |
| | | } |
| | | }).then(res => { |
| | | if (res.code !== 200) return; |
| | |
| | | }, |
| | | // æäº¤è®¢å |
| | | submit() { |
| | | var that = this |
| | | if (!this.form.startDate) { |
| | | return uni.showToast({ title: 'è¯·éæ©ç¨é¤æ¶é´', icon: 'none' }) |
| | | } |
| | | if (this.form.price === 0) { |
| | | return uni.showToast({ title: 'è¯·éæ©ç¨é¤æ¶é´', icon: 'none' }) |
| | | let cateringDTOList = [] |
| | | let valid = true |
| | | let msg ='è¯·éæ©' |
| | | that.orderFood.forEach(item => { |
| | | item.list.forEach(child => { |
| | | if (child.active) { |
| | | // (Number(child.price) * Number(item.num)) |
| | | if( !item.num){ |
| | | msg =msg +'ã'+item.name+'ã'; |
| | | valid =false |
| | | } |
| | | cateringDTOList.push({ |
| | | name: item.name, |
| | | num: item.num, |
| | | price: child.price * 100 |
| | | }) |
| | | } |
| | | }) |
| | | }) |
| | | if(!valid){ |
| | | return uni.showToast({ title: msg+'ç¨é¤ä»½æ°', icon: 'none' }) |
| | | } |
| | | if (cateringDTOList.length === 0) { |
| | | return uni.showToast({ title: 'è¯·éæ©ç¨é¤æ å', icon: 'none' }) |
| | | } |
| | | if (!this.form.address) { |
| | | return uni.showToast({ title: 'è¯·éæ©ç¨é¤å°ç¹', icon: 'none' }) |
| | |
| | | if (!this.form.linkPhone) { |
| | | return uni.showToast({ title: '请è¾å
¥èç³»çµè¯', icon: 'none' }) |
| | | } |
| | | let cateringDTOList = [] |
| | | this.orderFood.forEach(item => { |
| | | item.list.forEach(child => { |
| | | if (child.active) { |
| | | cateringDTOList.push({ |
| | | name: item.name, |
| | | num: item.num, |
| | | price: (Number(child.price) * Number(item.num)) * 100 |
| | | }) |
| | | } |
| | | }) |
| | | }) |
| | | this.$u.api.release({ |
| | | ...this.form, |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['oVjOBLcHxIlGzOMJsdInmgI5CHGXh-UTvMzQqfFOnIg'], |
| | | success(res) { |
| | | that.$u.api.release({ |
| | | ...that.form, |
| | | type: 2, |
| | | price: Number(this.form.price) * 100, |
| | | priceNum1: this.form.days, |
| | | location: this.form.address, |
| | | lat: this.form.latitude, |
| | | lgt: this.form.longitude, |
| | | price: Number(that.form.price) * 100, |
| | | priceNum1: that.form.days, |
| | | location: that.form.address, |
| | | lat: that.form.latitude, |
| | | lgt: that.form.longitude, |
| | | cateringDTOList |
| | | }).then(res => { |
| | | if (res.code == 200) { |
| | |
| | | } |
| | | }) |
| | | console.log(cateringDTOList) |
| | | }, |
| | | fail(err) { |
| | | console.log(err) |
| | | } |
| | | }) |
| | | }, |
| | | uploadImg() { |
| | | uni.chooseImage({ |
| | |
| | | confirmDate(e) { |
| | | this.form.startDate = e[0] |
| | | this.form.endDate = e[e.length - 1] |
| | | this.form.days = e.length; |
| | | |
| | | let time = this.form.startDate == this.form.endDate ? 1 : 0 |
| | | |
| | | this.form.days = e.length - time; |
| | | this.show = false |
| | | if (this.typeId === 2) { |
| | | this.getPrice() |
| | |
| | | selectAddress(type, index) { |
| | | uni.chooseLocation({ |
| | | success: (res) => { |
| | | console.log("==================",res) |
| | | if ([1,2].includes(type)) { |
| | | this.form.latitude = res.latitude |
| | | this.form.longitude = res.longitude |
| | | this.form.address = res.address |
| | | this.form.address = res.name ||res.address |
| | | } else if (type === 3) { |
| | | this.form.locationEnd = res.address |
| | | this.form.locationEnd = res.name ||res.address |
| | | this.form.latEnd = res.latitude |
| | | this.form.lgtEnd = res.longitude |
| | | } else if (type === 4) { |
| | | this.form.wayInfoDTOList[0].lat = res.latitude |
| | | this.form.wayInfoDTOList[0].lgt = res.longitude |
| | | this.form.wayInfoDTOList[0].location = res.address |
| | | this.form.wayInfoDTOList[index].lat = res.latitude |
| | | this.form.wayInfoDTOList[index].lgt = res.longitude |
| | | this.form.wayInfoDTOList[index].location = res.name|| res.address |
| | | }else if (type == -1) { |
| | | console.log(res) |
| | | this.location.latitude = res.latitude |
| | |
| | | }); |
| | | }, |
| | | clickType(e) { |
| | | if (!this.token) { |
| | | uni.navigateTo({ |
| | | url: '/pages/login/login' |
| | | }) |
| | | return |
| | | } |
| | | this.typeId = e |
| | | if (e === 2) { |
| | | this.form.categoryId = this.car[0].id |
| | |
| | | <style lang="scss" scoped> |
| | | .index { |
| | | width: 100%; |
| | | .slot-content { |
| | | width: 100%; |
| | | text-align: center; |
| | | font-weight: 400; |
| | | font-size: 30rpx; |
| | | color: #333333; |
| | | margin: 30rpx 0; |
| | | } |
| | | .btn1 { |
| | | width: 264rpx; |
| | | height: 88rpx; |
| | | line-height: 88rpx; |
| | | text-align: center; |
| | | font-weight: 400; |
| | | font-size: 32rpx; |
| | | color: #666666; |
| | | border-radius: 44rpx; |
| | | border: 1rpx solid #B2B2B2; |
| | | } |
| | | .btn2 { |
| | | width: 264rpx; |
| | | height: 88rpx; |
| | | line-height: 88rpx; |
| | | text-align: center; |
| | | font-weight: 500; |
| | | font-size: 32rpx; |
| | | color: #FFFFFF; |
| | | background: #00BC12; |
| | | border-radius: 44rpx; |
| | | } |
| | | .index-j { |
| | | width: 100%; |
| | | .index-j-head { |
| | |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | .eidt-btn { |
| | | width: 100%; |
| | | height: 88rpx; |
| | | line-height: 88rpx; |
| | | text-align: center; |
| | | background: #00BC12; |
| | | border-radius: 44rpx; |
| | | font-weight: 500; |
| | | font-size: 32rpx; |
| | | color: #FFFFFF; |
| | | } |
| | | // background: #00BC12; |
| | | // border-radius: 50rpx; |
| | | // text { |
| | |
| | | .radio-item { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: self-end; |
| | | align-items: flex-start; |
| | | margin-bottom: 30rpx; |
| | | border-bottom: 1rpx solid #E5E5E5; |
| | | &:last-child { |
| | |
| | | justify-content: flex-end; |
| | | margin-top: 42rpx; |
| | | margin-bottom: 34rpx; |
| | | .radio-item-list-data-btn { |
| | | width: 110rpx; |
| | | height: 64rpx; |
| | | line-height: 64rpx; |
| | | margin-left: 20rpx; |
| | | font-weight: 400; |
| | | font-size: 24rpx; |
| | | color: #666666; |
| | | text-align: center; |
| | | border: 1rpx solid #B2B2B2; |
| | | border-radius: 34rpx; |
| | | } |
| | | text { |
| | | font-weight: 400; |
| | | font-size: 30rpx; |
| | |
| | | <view class="info-box-head" > |
| | | <view class="info-box-head-image" @click="jump(isLogin?1:5)"> |
| | | <image v-if="userInfo.fullCoverImage&&userInfo.fullCoverImage !=''" :src="userInfo.fullCoverImage" mode="widthFix"></image> |
| | | <image v-else src="/static/logo.png" mode="widthFix"></image> |
| | | <image v-else src="/static/icon/img@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="info-box-head-info" v-if="isLogin"> |
| | | <view class="info-box-head-info-name" @click="jump(1)">{{userInfo.nickName||'å¿å'}}</view> |
| | |
| | | console.log(222,res) |
| | | if(res.code ===200){ |
| | | that.userInfo.useIdentity = param.useIdentity |
| | | that.$store.commit('setUserInfo', that.userInfo) |
| | | uni.$emit('refresh') |
| | | } |
| | | }).finally(() => { |
| | |
| | | <view class="order-head-status">{{info.statusName || ''}}</view> |
| | | <view class="order-head-info">{{getStatusInfo()}}</view> |
| | | </view> |
| | | <view class="order-quxiao" v-if="userInfo.useIdentity != 0"> |
| | | <view class="order-quxiao"> |
| | | <view class="order-quxiao-btn" @click="show = true" v-if="userInfo.id === info.acceptMemberId && info.status ===2">åæ¶è®¢å</view> |
| | | <view class="order-quxiao-btn" @click="show = true" v-if="userInfo.id === info.releaseMemberId && (info.status ===0 || info.status ===1|| info.status ===2)">åæ¶è®¢å</view> |
| | | <view class="order-quxiao-btn1" v-if="userInfo.id === info.releaseMemberId && (info.status ===0 || info.status ===1|| info.status ===2)" @click="jumpEdit()">ä¿®æ¹è®¢å</view> |
| | | </view> |
| | | <view class="order-user" v-if="userInfo.id === info.releaseMemberId && userInfo.useIdentity != 0"> |
| | | <view class="order-user" v-if="userInfo.id === info.releaseMemberId && info.acceptMemberId"> |
| | | <view class="order-user-info"> |
| | | <view class="user-info-l"> |
| | | <view class="user-info-l-image"> |
| | |
| | | </view> |
| | | <view class="user-info-l-i-bottom-item"> |
| | | <text>åæ°ï¼</text> |
| | | <text>{{info.publishNum || 0}}</text> |
| | | <text>{{info.receiveNum ? info.receiveNum : 0}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="price-row"> |
| | | <view class="price-row-label">é¢ä¼°æ»è´¹ç¨(å
)</view> |
| | | <view class="price-row-val" style="color: #FF0000;"> |
| | | <view class="price-row-val" :style="{color: userInfo.id !== info.acceptMemberId ? '#FF0000' : ''}"> |
| | | ¥{{((info.estimatedAccount||0)/100).toFixed(2) }} |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="price-row" v-if="userInfo.id === info.acceptMemberId"> |
| | | <view class="price-row-label">å®é
å°è´¦(å
)</view> |
| | | <view class="price-row-val" style="color: #FF0000;"> |
| | | ¥{{((info.estimatedAccount * (1 - (info.platformRata || 0))) / 100).toFixed(2) }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="order-info-title"> |
| | | <text>è¯ä»·</text> |
| | | </view> |
| | | <u-rate :count="count" activeColor="#FFC331" size="26" v-model="info.commentLevel"></u-rate> |
| | | <u-rate :count="count" readonly activeColor="#FFC331" size="26" v-model="info.commentLevel"></u-rate> |
| | | <view class="order-info-remark"> |
| | | {{ info.commentInfo || '-'}} |
| | | </view> |
| | |
| | | <view class="order-footer-btn-a" @click="show = true" v-if="userInfo.id === info.acceptMemberId && info.status ===2">åæ¶è®¢å</view> |
| | | <view class="order-footer-btn-a" @click="show = true" v-if="userInfo.id === info.releaseMemberId && (info.status ===0 || info.status ===1|| info.status ===2)">åæ¶è®¢å</view> |
| | | <view class="order-footer-btn-b" @click="show2=true" v-if="userInfo.id === info.releaseMemberId && (info.status ===4 && info.commentStatus!=1)">å»è¯ä»·</view> |
| | | <view class="order-footer-btn-b" v-if="userInfo.id === info.releaseMemberId &&((info.status ===3 && info.type !==2)|| (info.status ===0 && info.type===2))" @click="show1 = true">宿并æ¯ä»</view> |
| | | <view class="order-footer-btn-b" v-if="userInfo.id === info.releaseMemberId &&((info.status ===3 && info.type !==2)|| (info.status ===0 && info.type===2))" @click="show1 = true">{{info.type === 2 ? 'ç»§ç»æ¯ä»' : '宿并æ¯ä»'}}</view> |
| | | |
| | | <view class="order-footer-btn-b" v-if="userInfo.id === info.releaseMemberId && ((info.status ===3 && info.type===2))" @click="payment1">宿ä½ä¸</view> |
| | | |
| | | <view class="order-footer-btn-b" v-if="userInfo.id === info.releaseMemberId && (info.status ===0 || info.status ===1|| info.status ===2)" @click="jumpEdit()">ä¿®æ¹è®¢å</view> |
| | | <view class="order-footer-btn-b" @click="show5 =true" v-if="userInfo.id === info.acceptMemberId && (info.isUpdate==1 && info.status ===2)">ä¿®æ¹ç¡®è®¤</view> |
| | | <view class="order-footer-btn-b" @click="startJobs()" v-if="userInfo.id === info.releaseMemberId && (info.status ===2)">å¼å§ä½ä¸</view> |
| | |
| | | }) |
| | | } |
| | | }, |
| | | payment1() { |
| | | var that = this |
| | | this.$u.api.doneOrder({ |
| | | orderId: this.info.id |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | that.getOrderData() |
| | | } |
| | | }) |
| | | }, |
| | | payment() { |
| | | var that = this |
| | | // è®¢é¤ |
| | |
| | | }, |
| | | cancelDo(){ |
| | | var that = this |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['AA97cHjvlPiNO4viMkVe4JifCf9TD5b5Eb7s6El3VS8'], |
| | | success(res) { |
| | | var param ={ orderId:that.id} |
| | | this.$u.api.cancelOrder(param).then(res =>{ |
| | | that.$u.api.cancelOrder(param).then(res =>{ |
| | | if(res.code ===200){ |
| | | that.show=false |
| | | uni.showToast({ title: '订ååæ¶æå', icon: 'error', duration: 2000 }); |
| | |
| | | } |
| | | }) |
| | | }, |
| | | fail(err) { |
| | | console.log(err) |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | previemImg(src){ |
| | | uni.previewImage({ |
| | | current: src, |
| | |
| | | <view :class="form.carType === item.id ? 'list-item-cate-item active' : 'list-item-cate-item'" v-for="(item, index) in settlementType" :key="index" @click="clickType(item.id)">{{item.name}}</view> |
| | | </view> |
| | | <view class="list-item-row"> |
| | | <view class="list-item-row-label">天æ°</view> |
| | | <view class="list-item-row-label" v-if="form.carType === 0">天æ°</view> |
| | | <view class="list-item-row-label" v-if="form.carType === 1">å°æ¶æ°</view> |
| | | <view class="list-item-row-label" v-if="form.carType === 2">éé</view> |
| | | <view class="list-item-row-val"> |
| | | <input v-model="form.priceNum1" disabled @blur="getPrice" type="number" placeholder="请è¾å
¥" /> |
| | | <text>天</text> |
| | | <input v-model="form.priceNum1" :disabled="form.carType === 0" @blur="getPrice" type="number" placeholder="请è¾å
¥" /> |
| | | <text v-if="form.carType === 0">天</text> |
| | | <text v-if="form.carType === 1">å°æ¶</text> |
| | | <text v-if="form.carType === 2">æ¤</text> |
| | | </view> |
| | | </view> |
| | | <view class="list-item-row"> |
| | |
| | | :show="show" |
| | | color="#00BC12" |
| | | mode="range" |
| | | :allowSameDay="true" |
| | | @close="show = false" |
| | | @confirm="confirmDate" /> |
| | | |
| | |
| | | }, |
| | | settlementType: [ |
| | | { name: 'æå¤©ä»è´¹', id: 0 }, |
| | | { name: 'ææ¬¡ä»è´¹', id: 1 }, |
| | | { name: 'æå°æ¶ä»è´¹', id: 1 }, |
| | | { name: 'æééä»è´¹', id: 2 } |
| | | ], |
| | | cateList: [], |
| | | viewStatus: false |
| | | viewStatus: false, |
| | | workDays: 0 |
| | | }; |
| | | }, |
| | | onLoad(option) { |
| | |
| | | confirmDate(e) { |
| | | this.form.startDate = e[0] |
| | | this.form.endDate = e[e.length - 1] |
| | | this.form.priceNum1 = e.length; |
| | | let time = this.form.startDate == this.form.endDate ? 1 : 0 |
| | | this.workDays = e.length - time; |
| | | if (this.form.carType === 0) { |
| | | this.form.priceNum1 = e.length - time; |
| | | } |
| | | this.show = false |
| | | this.getPrice() |
| | | }, |
| | |
| | | success: (res) => { |
| | | this.form.lat = res.latitude |
| | | this.form.lgt = res.longitude |
| | | this.form.address = res.address |
| | | this.form.address =res.name || res.address |
| | | } |
| | | }); |
| | | }, |
| | |
| | | this.form.carType = id |
| | | if (id === 0) { |
| | | this.form.priceUnit = 'å
/人/天' |
| | | this.form.priceNum1 = this.workDays |
| | | } else if (id === 1) { |
| | | this.form.priceUnit = 'å
/人/å°æ¶' |
| | | this.form.priceNum1 = '' |
| | | } else { |
| | | this.form.priceUnit = 'å
/æ¤' |
| | | this.form.priceNum1 = '' |
| | | } |
| | | }, |
| | | confirmCategary(e) { |
| | |
| | | :show="show" |
| | | color="#00BC12" |
| | | mode="range" |
| | | :allowSameDay="true" |
| | | @close="show = false" |
| | | @confirm="confirmDate" /> |
| | | |
| | |
| | | success: (res) => { |
| | | this.form.lat = res.latitude |
| | | this.form.lgt = res.longitude |
| | | this.form.address = res.address |
| | | this.form.address = res.name || res.address |
| | | } |
| | | }); |
| | | }, |
| | |
| | | :show="show" |
| | | color="#00BC12" |
| | | mode="range" |
| | | :allowSameDay="true" |
| | | @close="show = false" |
| | | @confirm="confirmDate" /> |
| | | |
| | |
| | | methods: { |
| | | // æäº¤è®¢å |
| | | submit() { |
| | | var that = this; |
| | | if (!this.form.categoryId) { |
| | | return uni.showToast({ title: 'è¯·éæ©éæåç§', icon: 'none' }) |
| | | } |
| | |
| | | if (!this.form.linkPhone) { |
| | | return uni.showToast({ title: '请è¾å
¥èç³»çµè¯', icon: 'none' }) |
| | | } |
| | | if (!this.form.id) { |
| | | this.$u.api.release({ ...this.form, price: Number(this.form.price) * 100 }) |
| | | if (!that.form.id) { |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['oVjOBLcHxIlGzOMJsdInmgI5CHGXh-UTvMzQqfFOnIg'], |
| | | success(res) { |
| | | that.$u.api.release({ ...that.form, price: Number(that.form.price) * 100 }) |
| | | .then(res => { |
| | | if (res.code == 200) { |
| | | uni.navigateTo({ |
| | |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } else { |
| | | this.$u.api.updateOrder({ ...this.form, price: Number(this.form.price) * 100 }) |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['3YSC7gouRlSjHXz4CrWOGFzPmGwEBtFj4snwdfMvKHk'], |
| | | success(res) { |
| | | that.$u.api.updateOrder({ ...that.form, price: Number(that.form.price) * 100 }) |
| | | .then(res => { |
| | | if (res.code == 200) { |
| | | uni.showToast({ |
| | |
| | | uni.navigateBack({ delta: 1 }); |
| | | // uni.$emit('refresh') |
| | | }, 1500) |
| | | |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | |
| | | success: (res) => { |
| | | this.form.lat = res.latitude |
| | | this.form.lgt = res.longitude |
| | | this.form.address = res.address |
| | | this.form.address = res.name || res.address |
| | | } |
| | | }); |
| | | }, |
| | |
| | | fail: (res) => { |
| | | console.log("22222222222222",res) |
| | | uni.showToast({ |
| | | title:'对ä¸èµ·ï¼æç°å¤±è´¥ã'+res.err_msg |
| | | title:'对ä¸èµ·ï¼æç°å¤±è´¥ã', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | |
| | | ); */ |
| | | }, |
| | | submit() { |
| | | var that = this; |
| | | if(!this.canTransfer){ |
| | | uni.showToast({ |
| | | title:'æ¨çå¾®ä¿¡çæ¬è¿ä½ï¼è¯·æ´æ°è³ææ°çæ¬ä½¿ç¨è¯¥åè½ã' |
| | |
| | | this.changing1 = false |
| | | return |
| | | } |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['fNJy4545hcrH83bP3a1vszs7XEKWjXMsrfr2XCNsql0'], |
| | | success(res) { |
| | | this.changing1 = true |
| | | var that = this |
| | | var param ={amount:this.amount,name:this.name } |
| | | var param ={amount:that.amount,name:that.name } |
| | | that.$u.api.applyWithdrawal(param) |
| | | .then(res =>{ |
| | | if(res.code ===200){ |
| | |
| | | that.tips='' |
| | | that.amount =null |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | } |
| | |
| | | }, |
| | | // 设置ç»çº¬åº¦ |
| | | setPosition(state, obj) { |
| | | console.log(obj) |
| | | state.latitude = obj.latitude |
| | | state.longitude = obj.longitude |
| | | state.address = obj.address |
| | | console.log("=====================",obj) |
| | | console.log("å°åè®¾ç½®å®æ") |
| | | }, |
| | | // æ¸
é¤ç¼åæ°æ® |
| | | empty(state) { |