|
|
|
@ -5,46 +5,43 @@ |
|
|
|
|
</view> |
|
|
|
|
<view class="recycling-bd"> |
|
|
|
|
<view class="tab"> |
|
|
|
|
<view class="a" v-if="type == 2"> |
|
|
|
|
<view class="a"> |
|
|
|
|
<view class="item" @click="tabItem(0)"></view> |
|
|
|
|
<view class="item" @click="tabItem(1)"></view> |
|
|
|
|
<view class="item" @click="tabItem(2)"></view> |
|
|
|
|
<view class="item" @click="tabItem(3)"></view> |
|
|
|
|
</view> |
|
|
|
|
<view class="b" v-if="type == 2"> |
|
|
|
|
<image v-if="tabIndex == 1" src="@/static/news/icon-recyling-tab-01.png"></image> |
|
|
|
|
<image v-if="tabIndex == 2" src="@/static/news/icon-recyling-tab-02.png"></image> |
|
|
|
|
<image v-if="tabIndex == 3" src="@/static/news/icon-recyling-tab-03.png"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="b" v-else> |
|
|
|
|
<image src="@/static/news/icon-recyling-tab-04.png"></image> |
|
|
|
|
<view class="b"> |
|
|
|
|
<image v-if="tabIndex == 0" src="@/static/news/icon-recyling-tab-01.png"></image> |
|
|
|
|
<image v-if="tabIndex == 1" src="@/static/news/icon-recyling-tab-02.png"></image> |
|
|
|
|
<image v-if="tabIndex == 2" src="@/static/news/icon-recyling-tab-03.png"></image> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="goods"> |
|
|
|
|
<view class="a"> |
|
|
|
|
<image src="@/static/news/icon-mall.jpg"></image>京送家电武隆路店 |
|
|
|
|
<image src="@/static/news/icon-mall.jpg"></image>{{storeInfo.shop_name}} |
|
|
|
|
</view> |
|
|
|
|
<view class="b"> |
|
|
|
|
<view class="l"> |
|
|
|
|
<image class="pic" src="@/static/home/phone.jpg"></image> |
|
|
|
|
<image class="pic" :src="storeInfo.logo_url"></image> |
|
|
|
|
<view class="info"> |
|
|
|
|
<view class="tel">13770577307</view> |
|
|
|
|
<view class="address">杭州市萧山区宏达路234号 国际中心</view> |
|
|
|
|
<view class="time">营业时间:10:00-18:00</view> |
|
|
|
|
<view class="tel">{{storeInfo.linkman}}{{storeInfo.phone}}</view> |
|
|
|
|
<view class="address">{{storeInfo.address}}</view> |
|
|
|
|
<view class="time">营业时间:{{storeInfo.shop_hours}}</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="do"> |
|
|
|
|
<view class="tel"> |
|
|
|
|
<view class="tel" @click="openPage(1,storeInfo.phone)"> |
|
|
|
|
<image src="@/static/news/tel.png"></image>电话 |
|
|
|
|
</view> |
|
|
|
|
<view class="tel"> |
|
|
|
|
<view class="tel" @click="openPage(2)"> |
|
|
|
|
<image src="@/static/news/address.png"></image>导航 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="r"> |
|
|
|
|
<image class="pic" src="@/static/home/phone.jpg"></image> |
|
|
|
|
<image class="pic" :src="info.recovery_image"></image> |
|
|
|
|
<view class="info"> |
|
|
|
|
<view class="tel">手机回收</view> |
|
|
|
|
<view class="price">¥<text>4189234</text></view> |
|
|
|
|
<view class="tel">{{info.recovery_name}}</view> |
|
|
|
|
<view class="price">免支付预约</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="num"> |
|
|
|
|
x1 |
|
|
|
@ -52,18 +49,30 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="form"> |
|
|
|
|
<view class="form"> |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="a">品牌</view> |
|
|
|
|
<view class="b"> |
|
|
|
|
<input class="box" type="text" v-model="brand" placeholder="品牌" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="a">型号</view> |
|
|
|
|
<view class="b"> |
|
|
|
|
<input class="box" type="text" v-model="model" placeholder="型号" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="a">服务时间</view> |
|
|
|
|
<view class="b" @click="openPage(1)"> |
|
|
|
|
<view class="select">请选择预约到店时间</view> |
|
|
|
|
<u-icon style="margin-left: 10rpx;" name="arrow-right"></u-icon> |
|
|
|
|
<view class="b" @click="openPage(3)"> |
|
|
|
|
<view class="select" :class="server_time?'select-on':''">{{server_time?server_time:(tabIndex <= 1?'请选择预约到店时间':'请选择预计寄出商品的时间')}}</view> |
|
|
|
|
<u-icon style="margin-left: 10rpx;" name="arrow-right"></u-icon> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="a">联系人</view> |
|
|
|
|
<view class="b"> |
|
|
|
|
<input class="box1" type="text" placeholder="联系人姓名" /> |
|
|
|
|
<input class="box1" v-model="username" type="text" placeholder="联系人姓名" /> |
|
|
|
|
<view class="radio"> |
|
|
|
|
<u-radio-group v-model="radioValue" active-color="red"> |
|
|
|
|
<u-radio name="先生">先生</u-radio> |
|
|
|
@ -75,37 +84,40 @@ |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="a">联系电话</view> |
|
|
|
|
<view class="b"> |
|
|
|
|
<input class="box" type="text" placeholder="联系人手机号码" /> |
|
|
|
|
<input class="box" type="number" v-model="mobile" placeholder="联系人手机号码" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item" v-if="tabIndex == 3"> |
|
|
|
|
<view class="item" v-if="tabIndex == 2"> |
|
|
|
|
<view class="a">联系人微信</view> |
|
|
|
|
<view class="b"> |
|
|
|
|
<input class="box" type="text" placeholder="联系人微信号码" /> |
|
|
|
|
<input class="box" v-model="wx_account" type="text" placeholder="联系人微信号码" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item" v-if="tabIndex == 3"> |
|
|
|
|
<view class="item" v-if="tabIndex == 2"> |
|
|
|
|
<view class="a">发件地址</view> |
|
|
|
|
<view class="b"> |
|
|
|
|
<picker mode="region"> |
|
|
|
|
<view class="select">请选择所在人城市</view> |
|
|
|
|
<picker @change="changeRegion" mode="region"> |
|
|
|
|
<view class="select" :class="region.length>0?'select-on':''"> |
|
|
|
|
{{ |
|
|
|
|
region.length > 0?region[0]+region[1]+region[2]:'请选择所在人城市' |
|
|
|
|
}}</view> |
|
|
|
|
</picker> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item" v-if="tabIndex == 3"> |
|
|
|
|
<view class="item" v-if="tabIndex == 2"> |
|
|
|
|
<view class="a">门牌号</view> |
|
|
|
|
<view class="b"> |
|
|
|
|
<input class="box" type="text" placeholder="详细地址 例:12幢1单元102室" /> |
|
|
|
|
<input class="box" type="text" placeholder="例:12幢1单元102室" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item"> |
|
|
|
|
<view class="a">期待卖价</view> |
|
|
|
|
<view class="b"> |
|
|
|
|
<input class="box" type="text" placeholder="请输入您期待的售卖价格(元)" /> |
|
|
|
|
<input class="box" v-model="expect_price" type="number" placeholder="请输入您期待的售卖价格(元)" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="photo"> |
|
|
|
|
<u-upload :action="action" width="160" height="160" :file-list="fileList" :custom-btn="true" max-count="5"> |
|
|
|
|
<view class="photo" v-if="tabIndex != 0"> |
|
|
|
|
<u-upload :action="url" :header="header" @on-uploaded="success" width="160" height="160" :file-list="fileList" :custom-btn="true" max-count="8"> |
|
|
|
|
<template v-slot:addBtn> |
|
|
|
|
<view class="slot-btn" hover-class="slot-btn__hover" hover-stay-time="150"> |
|
|
|
|
<image src="/static/news/icon-upload.png"></image> |
|
|
|
@ -116,54 +128,147 @@ |
|
|
|
|
</u-upload> |
|
|
|
|
</view> |
|
|
|
|
<view class="remark"> |
|
|
|
|
<view class="name">留言 :</view> |
|
|
|
|
<view class="xu"> |
|
|
|
|
<view class="li">可提前来</view> |
|
|
|
|
<view class="li">来之前打电话</view> |
|
|
|
|
<view class="li">请尽快联系我</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="content"> |
|
|
|
|
<u-input v-model="value" height="260" type="textarea" placeholder="请输入您的留言,最多可留言100字" :border="true" /> |
|
|
|
|
<view class="name">备注 :</view> |
|
|
|
|
<view class="xu"> |
|
|
|
|
<view class="li" @click="openPage(5,'可提前来')">可提前来</view> |
|
|
|
|
<view class="li" @click="openPage(5,'来之前打电话')">来之前打电话</view> |
|
|
|
|
<view class="li" @click="openPage(5,'请尽快联系我')">请尽快联系我</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="content"> |
|
|
|
|
<u-input v-model="remake" height="260" type="textarea" placeholder="请输入您的留言,最多可留言100字" :border="true" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="recycling-fd"> |
|
|
|
|
<view class="a" v-if="type==2">免支付预购</view> |
|
|
|
|
<view class="c" v-else>¥{{info.server_price}}元</view> |
|
|
|
|
<view class="b" @click="openPage(2)">提交订单</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="a">免支付预购</view> |
|
|
|
|
<view class="b" @click="openPage(4)">提交订单</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 时间选择器 --> |
|
|
|
|
<u-picker mode="time" :params="params" v-model="show" confirm-color="#FE483B" :show-time-tag="false" @confirm="confirm"></u-picker> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
<script> |
|
|
|
|
import Config from '@/core/config' |
|
|
|
|
export default{ |
|
|
|
|
data(){ |
|
|
|
|
return { |
|
|
|
|
info: {}, |
|
|
|
|
type: 1, |
|
|
|
|
radioValue: "男士", |
|
|
|
|
tabIndex: 1, |
|
|
|
|
fileList: [ |
|
|
|
|
{ |
|
|
|
|
url: 'http://pics.sc.chinaz.com/files/pic/pic9/201912/hpic1886.jpg', |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
radioValue: "男士", |
|
|
|
|
server_time: "", |
|
|
|
|
tabIndex: 0, |
|
|
|
|
fileList: [], |
|
|
|
|
image_ids: [], |
|
|
|
|
express_no: "", |
|
|
|
|
express_id: "", |
|
|
|
|
shipping_address: "", |
|
|
|
|
house_number: "", |
|
|
|
|
wx_account: "", |
|
|
|
|
model: "", |
|
|
|
|
brand: "", |
|
|
|
|
remake: "", |
|
|
|
|
expect_price: "", |
|
|
|
|
mobile: "", |
|
|
|
|
username: "", |
|
|
|
|
params: { |
|
|
|
|
year: true, |
|
|
|
|
month: true, |
|
|
|
|
day: true, |
|
|
|
|
hour: true, |
|
|
|
|
minute: true, |
|
|
|
|
second: true |
|
|
|
|
}, |
|
|
|
|
show: false, |
|
|
|
|
storeInfo: {}, |
|
|
|
|
region: [], |
|
|
|
|
header: { |
|
|
|
|
'Storeid': uni.getStorageSync('Store').storeInfo.store_id |
|
|
|
|
'AccessToken': uni.getStorageSync('AccessToken') |
|
|
|
|
'platform': "MP-WEIXIN", |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
url: Config.get('apiUrl')+'user/upload' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad(o) { |
|
|
|
|
onLoad(o) { |
|
|
|
|
this.tabIndex = o.tabIndex; |
|
|
|
|
this.info = uni.getStorageSync("getInfo") |
|
|
|
|
this.type = o.type |
|
|
|
|
this.storeInfo = uni.getStorageSync("storeHsInfo") |
|
|
|
|
this.type = o.type; |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
methods: { |
|
|
|
|
success(e) { |
|
|
|
|
console.log(e) |
|
|
|
|
}, |
|
|
|
|
beforeUpload(e,list){ |
|
|
|
|
console.log(list) |
|
|
|
|
for(i = 0; i<list.length;i++){ |
|
|
|
|
uni.uploadFile({ |
|
|
|
|
name: 'file', |
|
|
|
|
header: { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
url: , |
|
|
|
|
filePath: list[i].url, |
|
|
|
|
success: (upRes) => { |
|
|
|
|
let end = JSON.parse(upRes.data); |
|
|
|
|
console.log(end) |
|
|
|
|
// that.userInfo.avatar = end.data.path |
|
|
|
|
// that.userInfo.avatar1 = end.data.url |
|
|
|
|
}, |
|
|
|
|
fail: (err) => { |
|
|
|
|
console.log("toUpload err",err) |
|
|
|
|
console.log(err) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
uploadImage() { |
|
|
|
|
const that = this |
|
|
|
|
uni.chooseImage({ |
|
|
|
|
count: 1, |
|
|
|
|
sizeType: ["original"], //可以指定是原图还是压缩图,默认二者都有 |
|
|
|
|
sourceType: ["album", "camera"], |
|
|
|
|
success: (res) => { |
|
|
|
|
console.log(res.tempFilePaths[0]) |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
fail(err){ |
|
|
|
|
console.log("fail",err) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
tabItem(i) { |
|
|
|
|
this.tabIndex = i |
|
|
|
|
}, |
|
|
|
|
confirm(e){ |
|
|
|
|
this.server_time = e.year+"-"+e.month+'-'+e.day+" "+e.hour+"-"+e.minute+'-'+e.second |
|
|
|
|
}, |
|
|
|
|
changeRegion(e) { |
|
|
|
|
this.region = e.detail.value |
|
|
|
|
}, |
|
|
|
|
openPage(i){ |
|
|
|
|
if(i == 1){ |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: "/pages/news/recycling/timer" |
|
|
|
|
}) |
|
|
|
|
}else { |
|
|
|
|
openPage(i,msg){ |
|
|
|
|
if(i == 1){ |
|
|
|
|
uni.makePhoneCall({ |
|
|
|
|
phoneNumber: msg |
|
|
|
|
}) |
|
|
|
|
}else if(i == 2){ |
|
|
|
|
uni.openLocation({ |
|
|
|
|
latitude: this.storeInfo.latitude, |
|
|
|
|
longitude: this.storeInfo.longitude, |
|
|
|
|
complete: function (res) { |
|
|
|
|
console.log(res); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}else if(i == 3){ |
|
|
|
|
this.show = true |
|
|
|
|
// uni.navigateTo({ |
|
|
|
|
// url: "/pages/news/recycling/timer" |
|
|
|
|
// }) |
|
|
|
|
}else if(i == 4) { |
|
|
|
|
uni.redirectTo({ |
|
|
|
|
url: "/pages/news/recycling/order" |
|
|
|
|
}) |
|
|
|
@ -219,7 +324,7 @@ |
|
|
|
|
.b{ |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
display: block; |
|
|
|
|
display: block; |
|
|
|
|
image{ |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |