| @ -0,0 +1,888 @@ | |||
| <template> | |||
| <view class="containers" > | |||
| <view class="header"> | |||
| <view class="header_info"> | |||
| <view class="header_info_icon" @click.native.stop.prevent="toBack" style="display: flex; justify-content: center; align-items: center;"> | |||
| <uni-icons type="left" size="30" color="#c2d4de" > </uni-icons> | |||
| </view> | |||
| <text class="header_text">信息录入</text> | |||
| </view> | |||
| </view> | |||
| <view class="section" style="margin-top: 5%;"> | |||
| <view class="form-item"> | |||
| <text class="label">付款方式</text> | |||
| <l-radio :checked="clientInfo.payType === '全款'" label="全款" fontSize="1rem" style="transform: scale(0.7);"> | |||
| <template #icon="{checked}"> | |||
| <image v-show="checked" style="width:1.2rem; height:1.2rem;" src="/static/image/xuanzhong.png"></image> | |||
| <image v-show="!checked" style="width:1.2rem; height:1.2rem" src="/static/image/weixuanzhong.png"></image> | |||
| </template> | |||
| </l-radio> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="label">客户类型</text> | |||
| <l-radio-group @change="onChange" class="radio-group" > | |||
| <l-radio :checked= "clientInfo.custType == 0?true:false" value="个人" label="个人" fontSize="1rem" style="margin-right: 1rem; transform: scale(0.7);"> | |||
| <template #icon="{checked}"> | |||
| <image v-show="checked" style="width:1.2rem; height:1.2rem;" src="/static/image/xuanzhong.png"></image> | |||
| <image v-show="!checked" style="width:1.2rem; height:1.2rem" src="/static/image/weixuanzhong.png"></image> | |||
| </template> | |||
| </l-radio> | |||
| <l-radio :checked= "clientInfo.custType == 1?true:false" value="公司" label="公司" fontSize="1rem" style="transform: scale(0.7);"> | |||
| <template #icon="{checked}"> | |||
| <image v-show="checked" style="width:1.2rem; height:1.2rem;" src="/static/image/xuanzhong.png"></image> | |||
| <image v-show="!checked" style="width:1.2rem; height:1.2rem" src="/static/image/weixuanzhong.png"></image> | |||
| </template> | |||
| </l-radio> | |||
| </l-radio-group> | |||
| </view> | |||
| </view> | |||
| <view class="idCard-box"> | |||
| <view class="reverse" @tap.prevent="uploadPositive"> | |||
| <image :src="clientInfo.certFront == ''?positiveImg:certFront" > | |||
| </image> | |||
| <text v-if="certFront == ''?true:false">身份证人像面</text> | |||
| </view> | |||
| <view class="reverse" @tap.prevent="uploadReverse"> | |||
| <image :src="clientInfo.certBack == ''?reverseImg:certBack" > | |||
| </image> | |||
| <text v-if="certBack == ''?true:false">身份证国徽面</text> | |||
| </view> | |||
| <view class="reverse" @tap.prevent="uploadCarCert"> | |||
| <image :src="clientInfo.carPic == ''?carImg:carPic" > | |||
| </image> | |||
| <text v-if="carPic == ''?true:false">车辆合格证</text> | |||
| </view> | |||
| </view> | |||
| <!-- 客户基本信息 --> | |||
| <view class="section"> | |||
| <view class="con_size"> | |||
| <image src="/static/image/矩形 5315.png" class='con_size_img' ></image> | |||
| 客户基本信息 | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">产品名称</text> | |||
| <text class="value">{{ clientInfo.productName }}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">经销商</text> | |||
| <text class="value">{{ clientInfo.storeName }}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">客户姓名</text> | |||
| <textarea auto-height :adjust-position="true" class="input" v-model="clientInfo.custName" placeholder="请输入客户姓名" /> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">居住地址</text> | |||
| <textarea auto-height :adjust-position="true" class="input" v-model="clientInfo.custAddress" placeholder="请输入居住地址" /> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">身份证号码</text> | |||
| <textarea auto-height :adjust-position="true" class="input" v-model="clientInfo.custCardNo" placeholder="请输入身份证号码" /> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">联系方式</text> | |||
| <textarea auto-height :adjust-position="true" class="input" v-model="clientInfo.custPhone" placeholder="请输入联系方式" /> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">销售端口</text> | |||
| <l-radio-group class="radio-group" @change="handleDepartmentChange"> | |||
| <label class="radio-label" v-for="item in departments" :key="item"> | |||
| <l-radio :value="item" :checked="clientInfo.salePort === item" > | |||
| <template #icon="{checked}"> | |||
| <image v-show="checked" style="width:1.2rem; height:1.2rem;" src="/static/image/xuanzhong.png"></image> | |||
| <image v-show="!checked" style="width:1.2rem; height:1.2rem" src="/static/image/weixuanzhong.png"></image> | |||
| </template> | |||
| </l-radio> | |||
| <text style="margin-left:0.2rem;">{{ item }}</text> | |||
| </label> | |||
| </l-radio-group> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">店端销售顾问</text> | |||
| <textarea auto-height :adjust-position="true" class="input" v-model="clientInfo.saleName" placeholder="请输入店铺销售顾问" /> | |||
| </view> | |||
| </view> | |||
| <!-- 车辆信息 --> | |||
| <view class="section"> | |||
| <view class="con_size"> | |||
| <image src="/static/image/矩形 5315.png" class='con_size_img' ></image>车辆信息</view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">车牌车系</text> | |||
| <view class="picker" @click="getCar"> | |||
| <view class="picker-text">{{ clientInfo.appOrderCarList[0].carSeries || '请选择车辆品牌 >' }}</view> | |||
| </view> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">车辆型号</text> | |||
| <textarea auto-height :adjust-position="true" class="input" v-model="clientInfo.appOrderCarList[0].carModel" placeholder="请输入车辆型号" /> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">车架号</text> | |||
| <textarea auto-height :adjust-position="true" class="input" v-model="clientInfo.appOrderCarList[0].vin" placeholder="请输入车架号" /> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">车辆类型</text> | |||
| <picker class="picker" @change="bindCarBrandChanges" :value="carBrandIndex" :range="carType"> | |||
| <view class="picker-text">{{ clientInfo.appOrderCarList[0].carType || '请选择车辆类型 >' }}</view> | |||
| </picker> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">使用性质</text> | |||
| <picker class="picker" @change="binduseTypeChanges" :value="useTypeIndex" :range="useType"> | |||
| <view class="picker-text">{{ clientInfo.appOrderCarList[0].useType || '请选择使用性质 >' }}</view> | |||
| </picker> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">是否新车</text> | |||
| <l-radio-group @change="onChanges" class="radio-group" > | |||
| <l-radio :checked= "clientInfo.appOrderCarList[0].newCar == 1?true:false" value="是" label="是" fontSize="1rem" style="margin-right: 1rem; transform: scale(0.7);"> | |||
| <template #icon="{checked}"> | |||
| <image v-show="checked" style="width:1.2rem; height:1.2rem;" src="/static/image/xuanzhong.png"></image> | |||
| <image v-show="!checked" style="width:1.2rem; height:1.2rem" src="/static/image/weixuanzhong.png"></image> | |||
| </template> | |||
| </l-radio> | |||
| <l-radio :checked= "clientInfo.appOrderCarList[0].newCar == 0?true:false" value="否" label="否" fontSize="1rem" style="transform: scale(0.7);"> | |||
| <template #icon="{checked}"> | |||
| <image v-show="checked" style="width:1.2rem; height:1.2rem;" src="/static/image/xuanzhong.png"></image> | |||
| <image v-show="!checked" style="width:1.2rem; height:1.2rem" src="/static/image/weixuanzhong.png"></image> | |||
| </template> | |||
| </l-radio> | |||
| </l-radio-group> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="label">车牌号</text> | |||
| <textarea auto-height :adjust-position="true" class="input" v-model="clientInfo.appOrderCarList[0].carNo" placeholder="请输入车牌号" /> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">发动机号</text> | |||
| <textarea auto-height :adjust-position="true" class="input" v-model="clientInfo.appOrderCarList[0].engineNo" placeholder="请输入发动机号" /> | |||
| </view> | |||
| </view> | |||
| <!-- 凭证信息 --> | |||
| <view class="section"> | |||
| <view class="con_size"> | |||
| <image src="/static/image/矩形 5315.png" class='con_size_img' ></image>凭证信息</view> | |||
| <view class="con_size"> | |||
| <text class="labels">*</text> | |||
| <text class="label">支付凭证</text> | |||
| <uv-upload | |||
| :fileList="fileList1" | |||
| name="1" | |||
| multiple | |||
| :maxCount="1" | |||
| @afterRead="afterRead" | |||
| @delete="deletePic" | |||
| ><image | |||
| src="/static/image/组件 5 – 1.png" | |||
| mode="widthFix" | |||
| style="width: 100px;height: 150px;" | |||
| ></image></uv-upload> | |||
| </view> | |||
| <view class="con_size"> | |||
| <text class="labels">*</text> | |||
| <text class="label">发票信息</text> | |||
| <uv-upload | |||
| :fileList="fileList2" | |||
| name="2" | |||
| multiple | |||
| :maxCount="1" | |||
| @afterRead="afterRead" | |||
| @delete="deletePic" | |||
| ><image | |||
| src="/static/image/组件 5 – 1.png" | |||
| mode="widthFix" | |||
| style="width: 100px;height: 150px;" | |||
| ></image></uv-upload> | |||
| </view> | |||
| </view> | |||
| <view class="sections"> | |||
| <view class="form-button"> | |||
| <button class=" button" @click="get_to" style="width: 60%;">提交去录单</button> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </template> | |||
| <script> | |||
| import {idCardInfo,carCert,upload,getChildListBatch,add,isToken} from '@/api.uts' | |||
| export default { | |||
| data() { | |||
| return { | |||
| uploadConfig:{ | |||
| // 上传地址 | |||
| url:'https://gpt.aiym.run/contract/miniapp/file/upload', | |||
| // 文件字段名 | |||
| name: 'file', | |||
| // 请求头 | |||
| header: {}, | |||
| // 附带的表单数据 | |||
| formData: { | |||
| 'biz': 'cert' | |||
| }, | |||
| // 是否开启实际上传 | |||
| enabled: true | |||
| }, | |||
| clientInfo: { | |||
| appOrderCarList: [ | |||
| { | |||
| buyMoney: 0, | |||
| buyTax: 0, | |||
| carModel: "", | |||
| carNo: "", | |||
| carSeries: "", | |||
| carType: "", | |||
| engineNo: "", | |||
| newCar: 0, | |||
| useType: "", | |||
| vin: "" | |||
| } | |||
| ], | |||
| appOrderVoucherList: [ | |||
| { | |||
| dealerAddress: "", | |||
| firstBeneficiary: "", | |||
| packageMoney: 0, | |||
| serviceMoney: 0 | |||
| } | |||
| ], | |||
| carPic: "", | |||
| certBack: "", | |||
| certFront: "", | |||
| custAddress: "", | |||
| custCardNo: "", | |||
| custName: "", | |||
| custPhone: "", | |||
| custType: 0, | |||
| invoiceUrl:"", | |||
| payType: '全款', // 默认选中全款 | |||
| payVoucherUrl: "", | |||
| payee: "", | |||
| productName: "自动填写所选商品服务分类", | |||
| productServiceYear: 1, | |||
| saleName: "", | |||
| salePort: ''||"售前", | |||
| status: 0, | |||
| storeName: "自动填写所选择的门店" | |||
| }, | |||
| fileList1:[], | |||
| fileList2:[], | |||
| departments: ['售前', '售后', '二网车'], | |||
| carType : ['燃油车','新能源'], | |||
| useType : ['非营运','营运'], | |||
| carBrandIndex: -1, | |||
| useTypeIndex: -1, | |||
| serviceAges: ['1年', '2年', '3年'], | |||
| serviceAgeIndex: -1, | |||
| payees: [], | |||
| payeeIndex: -1, | |||
| screenHeight: 0, //屏幕可视高度 | |||
| curHeight: 0, //页面需要的动态高 | |||
| // 扫描 | |||
| positiveImg: '/static/image/组件 4 – 1.png',//自己图片路径 | |||
| certFront:'', | |||
| carPic:'', | |||
| certBack:'', | |||
| // 反面身份证 | |||
| reverseImg: '/static/image/组 71663.png', //自己图片路径 | |||
| // 行车驾驶证 | |||
| carImg: '/static/image/组件 2 – 1.png' //自己图片路径 | |||
| } | |||
| }, | |||
| onLoad(options) { | |||
| isToken(); | |||
| this.clientInfo.storeName = getApp().storeName || "自动填写所选择的门店"; | |||
| this.clientInfo.productName = getApp().productName || "自动填写所选商品服务分类"; | |||
| this.clientInfo.appOrderVoucherList[0].dealerAddress = getApp().dealerAddress; | |||
| for (var index = 0; index < getApp().allMsg.length; index++) { | |||
| this.payees.push(getApp().allMsg[index].storeName); | |||
| } | |||
| this.clientInfo.payee = getApp().storeName; | |||
| this.uploadConfig.header = { | |||
| 'X-Access-Token':uni.getStorageSync('token') | |||
| } | |||
| let clientInfo = JSON.parse(decodeURIComponent(options.clientInfo)); | |||
| // console.log('5',clientInfo) | |||
| if(clientInfo){ | |||
| this.clientInfo= JSON.parse(decodeURIComponent(options.clientInfo)) | |||
| this.certFront = getApp().certFront; | |||
| this.carPic =getApp().carPic; | |||
| this.certBack = getApp().certBack; | |||
| // console.log('111',this.certFront ,this.carPic,this.certBack) | |||
| } | |||
| }, | |||
| onUpload() { | |||
| // 页面销毁时移除监听 | |||
| uni.offKeyboardHeightChange(); | |||
| }, | |||
| methods: { | |||
| // 凭证上传函数 | |||
| deletePic(event) { | |||
| this[`fileList${event.name}`].splice(event.index, 1) | |||
| }, | |||
| // 新增图片 | |||
| async afterRead(event) { | |||
| // 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式 | |||
| let lists = [].concat(event.file) | |||
| let fileListLen = this[`fileList${event.name}`].length | |||
| lists.map((item) => { | |||
| this[`fileList${event.name}`].push({ | |||
| ...item, | |||
| status: 'uploading', | |||
| message: '上传中' | |||
| }) | |||
| }) | |||
| for (let i = 0; i < lists.length; i++) { | |||
| const result = await this.uploadFilePromise(lists[i].url,event.name) | |||
| let item = this[`fileList${event.name}`][fileListLen] | |||
| this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, { | |||
| status: 'success', | |||
| message: '', | |||
| url: result | |||
| })) | |||
| fileListLen++ | |||
| } | |||
| }, | |||
| uploadFilePromise(url,name) { | |||
| let token = uni.getStorageSync('token') | |||
| return new Promise((resolve, reject) => { | |||
| let a = uni.uploadFile({ | |||
| url: 'https://www.shengchuangyunkong.com/contract/miniapp/file/upload', // 仅为示例,非真实的接口地址 | |||
| filePath: url, | |||
| name: 'file', | |||
| formData: { | |||
| biz: 'test' | |||
| }, | |||
| header:{ | |||
| 'X-Access-Token':token | |||
| }, | |||
| success: (res) => { | |||
| if(name == '1'){ | |||
| this.clientInfo.payVoucherUrl = JSON.parse(res.data).message; | |||
| setTimeout(() => { | |||
| resolve(res.data.data) | |||
| }, 1000) | |||
| }else{ | |||
| this.clientInfo.invoiceUrl = JSON.parse(res.data).message; | |||
| setTimeout(() => { | |||
| resolve(res.data.data) | |||
| }, 1000) | |||
| } | |||
| } | |||
| }); | |||
| }) | |||
| }, | |||
| isEmpty(value) { | |||
| if (value === null || value === undefined ) return false; | |||
| if (typeof value === "string" && value.trim() === "") return false; | |||
| if (Array.isArray(value) && value.length === 0) return false; | |||
| if (typeof value === "object" && Object.keys(value).length === 0) return false; | |||
| return true; | |||
| }, | |||
| get_to(){ | |||
| console.log('suss', JSON.parse(JSON.stringify(this.clientInfo) )); | |||
| for (var i in this.clientInfo) { | |||
| if (typeof this.clientInfo[i] == 'object') { | |||
| for (var j in this.clientInfo[i]) { | |||
| if(!this.isEmpty(this.clientInfo[i][j])&& j!="carNo"){ | |||
| uni.showToast({ | |||
| title: "提交失败,请检查字段是否未填!", | |||
| icon: 'error', | |||
| duration: 500, | |||
| success: (res) => { | |||
| }, | |||
| fail: (res) => { | |||
| }, | |||
| }); | |||
| return false | |||
| } | |||
| } | |||
| }else{ | |||
| if(!this.isEmpty(this.clientInfo[i])){ | |||
| uni.showToast({ | |||
| title: "提交失败,请检查字段是否未填!", | |||
| icon: 'error', | |||
| duration: 500, | |||
| success: (res) => { | |||
| }, | |||
| fail: (res) => { | |||
| }, | |||
| }); | |||
| return false | |||
| } | |||
| } | |||
| } | |||
| add(this.clientInfo).then((res)=>{ | |||
| if(res.success){ | |||
| uni.showToast({ | |||
| title: "提交成功", | |||
| icon: 'success', | |||
| duration: 500, | |||
| success: (res) => { | |||
| }, | |||
| fail: (res) => { | |||
| }, | |||
| }); | |||
| uni.switchTab ( | |||
| { url: '/pages/index/dingdan' } | |||
| ) | |||
| }else{ | |||
| uni.showToast({ | |||
| title: "提交失败,请检查格式!", | |||
| icon: 'error', | |||
| duration: 500, | |||
| success: (res) => { | |||
| }, | |||
| fail: (res) => { | |||
| }, | |||
| }); | |||
| } | |||
| }).catch((err)=>{ | |||
| console.log('err',err); | |||
| }) | |||
| }, | |||
| getCar(){ | |||
| getApp().flag = 1; | |||
| uni.navigateTo( | |||
| { | |||
| url: '/pages/views/carOne?clientInfo=' + encodeURIComponent(JSON.stringify(this.clientInfo)) | |||
| } | |||
| ) | |||
| getApp().certFront = this.certFront; | |||
| getApp().carPic = this.carPic; | |||
| getApp().certBack =this.certBack; | |||
| }, | |||
| toBack(){ | |||
| // console.log('111') | |||
| uni.navigateBack({delta: 1}) | |||
| }, | |||
| handleDepartmentChange(e) { | |||
| this.clientInfo.salePort = e; | |||
| }, | |||
| // 修改车辆类型 | |||
| bindCarBrandChanges(e){ | |||
| this.clientInfo.appOrderCarList[0].carType = this.carType[e.detail.value]; | |||
| }, | |||
| // 修改车辆类型 | |||
| binduseTypeChanges(e){ | |||
| this.clientInfo.appOrderCarList[0].useType = this.useType[e.detail.value]; | |||
| }, | |||
| // 取服务年限 | |||
| bindServiceAgeChange(e) { | |||
| this.serviceAgeIndex = e.detail.value | |||
| if(this.serviceAges[e.detail.value] == '1年'){ | |||
| this.clientInfo.productServiceYear = 1; | |||
| }else if(this.serviceAges[e.detail.value] == '2年' ){ | |||
| this.clientInfo.productServiceYear = 2; | |||
| }else{ | |||
| this.clientInfo.productServiceYear = 3; | |||
| }; | |||
| }, | |||
| // 选择收款方 | |||
| bindPayeeChange(e) { | |||
| this.payeeIndex = e.detail.value | |||
| this.clientInfo.payee= this.payees[e.detail.value]; | |||
| }, | |||
| msToDate (msec) { | |||
| let datetime = new Date(msec); | |||
| let year = datetime.getFullYear(); | |||
| let month = datetime.getMonth(); | |||
| let date = datetime.getDate(); | |||
| let hour = datetime.getHours(); | |||
| let minute = datetime.getMinutes(); | |||
| let second = datetime.getSeconds(); | |||
| let result1 = year + | |||
| '-' + | |||
| ((month + 1) >= 10 ? (month + 1) : '0' + (month + 1)) + | |||
| '-' + | |||
| ((date + 1) < 10 ? '0' + date : date) + | |||
| ' ' + | |||
| ((hour + 1) < 10 ? '0' + hour : hour) + | |||
| ':' + | |||
| ((minute + 1) < 10 ? '0' + minute : minute) + | |||
| ':' + | |||
| ((second + 1) < 10 ? '0' + second : second); | |||
| let result2 = year + | |||
| '-' + | |||
| ((month + 1) >= 10 ? (month + 1) : '0' + (month + 1)) + | |||
| '-' + | |||
| ((date + 1) < 10 ? '0' + date : date); | |||
| let result = { | |||
| hasTime: result1, | |||
| withoutTime: result2 | |||
| }; | |||
| return result; | |||
| }, | |||
| // 修改生效时间 | |||
| changeEffectiveTime(e){ | |||
| var dateTime = new Date(e); | |||
| dateTime.setDate(dateTime.getDate() + 2); | |||
| dateTime = new Date(dateTime); | |||
| // console.log(this.msToDate(dateTime).withoutTime); | |||
| this.clientInfo.appOrderVoucherList[0].effectiveTime = this.msToDate(dateTime).withoutTime | |||
| }, | |||
| changeTime(e){ | |||
| console.log(e) | |||
| if(this.clientInfo.appOrderVoucherList[0].effectiveTime){ | |||
| var dateTime = new Date(this.clientInfo.appOrderVoucherList[0].effectiveTime); | |||
| let year = Number(dateTime.getFullYear()) + Number(e.detail.value); | |||
| dateTime.setFullYear(year); | |||
| dateTime = new Date(dateTime); | |||
| // console.log(this.msToDate(dateTime).withoutTime); | |||
| this.clientInfo.appOrderVoucherList[0].endTime = this.msToDate(dateTime).withoutTime | |||
| }else{ | |||
| uni.showToast({ | |||
| title: "请先选择生效时间!", | |||
| icon: 'error', | |||
| duration: 500, | |||
| success: (res) => { | |||
| }, | |||
| fail: (res) => { | |||
| }, | |||
| }) | |||
| } | |||
| }, | |||
| changebuyTax(){ | |||
| this.clientInfo.appOrderCarList[0].buyTax = (this.clientInfo.appOrderCarList[0].buyMoney/11.3).toFixed(2) | |||
| }, | |||
| // 身份证正面上传 | |||
| uploadPositive() { | |||
| uni.chooseImage({ | |||
| count: 1, | |||
| sizeType: ['original', 'compressed'], | |||
| sourceType: ['album', 'camera'], | |||
| success: (res) => { | |||
| let filePath = res.tempFilePaths[0]; | |||
| let token = uni.getStorageSync('token'); | |||
| this.uploadIdentify(token,'front',filePath,'sfz'); | |||
| } | |||
| }) | |||
| }, | |||
| // 身份证反面上传 | |||
| uploadReverse() { | |||
| uni.chooseImage({ | |||
| count: 1, | |||
| sizeType: ['original', 'compressed'], | |||
| sourceType: ['album', 'camera'], | |||
| success: (res) => { | |||
| let filePath = res.tempFilePaths[0]; | |||
| let token = uni.getStorageSync('token'); | |||
| this.uploadIdentify(token,'back',filePath,'sfz') | |||
| } | |||
| }) | |||
| }, | |||
| uploadCarCert() { | |||
| uni.chooseImage({ | |||
| count: 1, | |||
| sizeType: ['original', 'compressed'], | |||
| sourceType: ['album', 'camera'], | |||
| success: (res) => { | |||
| let filePath = res.tempFilePaths[0]; | |||
| let token = uni.getStorageSync('token'); | |||
| this.uploadIdentify(token,'',filePath,'carCert') | |||
| } | |||
| }) | |||
| }, | |||
| // 上传识别 | |||
| uploadIdentify(token,side,filePath,type) { | |||
| uni.uploadFile({ | |||
| url: 'https://www.shengchuangyunkong.com/contract/miniapp/file/upload', //仅为示例,非真实的接口地址 | |||
| filePath:filePath, | |||
| name: 'file', | |||
| formData: { | |||
| 'biz': 'cert' | |||
| }, | |||
| header:{ | |||
| 'X-Access-Token':token | |||
| }, | |||
| success: (res) => { | |||
| let image = JSON.parse(res.data).message; | |||
| // console.log(image); | |||
| if(type == "sfz"){ | |||
| idCardInfo({'side':side,'url':JSON.parse(res.data).message}).then((res)=>{ | |||
| if(res.success){ | |||
| if(side == 'front'){ | |||
| this.clientInfo.custName =res.result.name; | |||
| this.clientInfo.appOrderVoucherList[0].firstBeneficiary = res.result.name; | |||
| this.clientInfo.custAddress= res.result.address; | |||
| this.clientInfo.custCardNo = res.result.idCard ; | |||
| this.clientInfo.certFront = image; | |||
| this.certFront=filePath; | |||
| }else { | |||
| this.clientInfo.certBack=image; | |||
| this.certBack=filePath; | |||
| } | |||
| }else{ | |||
| uni.showToast({ | |||
| title: "身份证识别错误,请重新上传!", | |||
| icon: 'error', | |||
| duration: 500, | |||
| success: (res) => { | |||
| }, | |||
| fail: (res) => { | |||
| }, | |||
| }) | |||
| } | |||
| }).catch(err => { | |||
| console.log("catch: ", err); | |||
| }) | |||
| }else if(type == 'carCert' ){ | |||
| // 处理车辆信息 | |||
| carCert({'url':JSON.parse(res.data).message}).then((res)=>{ | |||
| if(res.success){ | |||
| // 车架号 | |||
| this.clientInfo.appOrderCarList[0].vin = res.result.VinNo; | |||
| this.clientInfo.carPic = image; | |||
| this.carPic = filePath; | |||
| // 发动机号 | |||
| this.clientInfo.appOrderCarList[0].engineNo = res.result.EngineNo; | |||
| // 车辆型号 | |||
| this.clientInfo.appOrderCarList[0].carModel = res.result.CarModel; | |||
| }else{ | |||
| uni.showToast({ | |||
| title: "识别错误,请重新上传!", | |||
| icon: 'error', | |||
| duration: 500, | |||
| success: (res) => { | |||
| }, | |||
| fail: (res) => { | |||
| }, | |||
| }) | |||
| } | |||
| }).catch((err)=>{ | |||
| console.log("catch: ", err); | |||
| }) | |||
| } | |||
| }, | |||
| fail:(err)=>{ | |||
| console.log(err) | |||
| } | |||
| }); | |||
| }, | |||
| onChange(e){ | |||
| // console.log(e); | |||
| if(e == '个人'){ | |||
| this.clientInfo.custType = 0; | |||
| }else{ | |||
| this.clientInfo.custType = 1; | |||
| } | |||
| }, | |||
| onChanges(e){ | |||
| if(e == '是'){ | |||
| this.clientInfo.appOrderCarList[0].newCar = 1; | |||
| }else{ | |||
| this.clientInfo.appOrderCarList[0].newCar = 0; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| <style scoped lang="scss"> | |||
| .containers { | |||
| height: 100vh; | |||
| width: 100%; | |||
| background-color: #fff; | |||
| overflow-y:scroll; | |||
| } | |||
| .footer { | |||
| position: fixed; | |||
| bottom: 0; | |||
| left: 0; | |||
| } | |||
| .container::-webkit-scrollbar { | |||
| display: none; | |||
| } | |||
| .section { | |||
| // margin-bottom: 30rpx; | |||
| border-bottom: 1rpx solid #eee; | |||
| margin: 0 1rem 0 1rem; | |||
| } | |||
| .sections{ | |||
| margin: 0 1rem 1rem 1rem; | |||
| } | |||
| .form-item { | |||
| display: flex; | |||
| flex-direction: row; | |||
| justify-content: space-between; | |||
| align-items: center; | |||
| padding: 0.5rem 0; | |||
| border-bottom: 0.1rem solid #f2f2f2; | |||
| color: #767676; | |||
| } | |||
| .labels{ | |||
| color: red; | |||
| display: flex; | |||
| justify-content: center; | |||
| align-items: center; | |||
| } | |||
| .label { | |||
| font-size: 28rpx; | |||
| color: #666; | |||
| width: 200rpx; | |||
| } | |||
| .input { | |||
| flex: 1; | |||
| text-align: right; | |||
| font-size: 28rpx; | |||
| color: #737373; | |||
| height: 100%; | |||
| } | |||
| .picker { | |||
| flex: 1; | |||
| } | |||
| .picker-text { | |||
| text-align: right; | |||
| color: #737373; | |||
| font-size: 0.8rem; | |||
| } | |||
| .radio-group { | |||
| display: flex; | |||
| flex: 1; | |||
| justify-content: flex-end; | |||
| flex-direction: row; | |||
| } | |||
| .radio-label { | |||
| padding: 0; | |||
| margin-left: 10rpx; | |||
| display: flex; | |||
| flex-direction: row; | |||
| font-size: 1rem; | |||
| transform: scale(0.7); | |||
| } | |||
| .value { | |||
| flex: 1; | |||
| text-align: right; | |||
| color: #737373; | |||
| font-size: 0.8rem; | |||
| } | |||
| // .timePiker{ | |||
| // display: flex; | |||
| // justify-content: center; | |||
| // align-items: center; | |||
| // color: #3f3f3f; | |||
| // } | |||
| .idCard-box { | |||
| margin-top: 10%; | |||
| width: 100%; | |||
| height: 50%; | |||
| display: flex; | |||
| flex-direction: row; | |||
| /* background-color: red; */ | |||
| flex-wrap: wrap; | |||
| .reverse { | |||
| height: 30%; | |||
| width: 40%; | |||
| display: flex; | |||
| align-items: center; | |||
| justify-content: center; | |||
| // background-color: blue; | |||
| margin: 0 5% 0 5%; | |||
| image { | |||
| width: 100%; | |||
| height: 100%; | |||
| } | |||
| text{ | |||
| position: absolute; | |||
| text-shadow: 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black; | |||
| font-size: 0.8rem; | |||
| color:#fff; | |||
| } | |||
| } | |||
| } | |||
| /* 表单分区样式 */ | |||
| .con_size { | |||
| font-size: 1rem; | |||
| font-weight: bold; | |||
| margin: 1rem 0; | |||
| color: #000000; | |||
| display: flex; | |||
| flex-direction: row; | |||
| align-items: center; | |||
| } | |||
| .con_size_img{ | |||
| height: 100%; | |||
| width: 2%; | |||
| margin-right: 2%; | |||
| } | |||
| .form-button{ | |||
| width: 100%; | |||
| height:100%; | |||
| // background-color: #000000; | |||
| display: flex; | |||
| align-items: center; | |||
| justify-content: center; | |||
| } | |||
| .button{ | |||
| height: 100%; | |||
| width: 100%; | |||
| background-color: #044f7a; | |||
| color: #ffffff; | |||
| border-radius: 1rem; | |||
| } | |||
| </style> | |||
| @ -0,0 +1,509 @@ | |||
| <template> | |||
| <view class="containers" > | |||
| <view class="header"> | |||
| <view class="header_info"> | |||
| <view class="header_info_icon" @click.native.stop.prevent="toBack" style="display: flex; justify-content: center; align-items: center;"> | |||
| <uni-icons type="left" size="30" color="#c2d4de" > </uni-icons> | |||
| </view> | |||
| <text class="header_text">信息录入</text> | |||
| </view> | |||
| </view> | |||
| <view class="section" style="margin-top: 5%;"> | |||
| <view class="form-item"> | |||
| <text class="label">付款方式</text> | |||
| <text> | |||
| {{records[0].payType}} | |||
| </text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="label">客户类型</text> | |||
| <text @change="onChange" class="radio-group" > | |||
| {{records[0].custType == 0 ? "个人" : "公司"}} | |||
| </text> | |||
| </view> | |||
| </view> | |||
| <view class="idCard-box"> | |||
| <view class="reverse" @tap.prevent="uploadPositive"> | |||
| <image :src="records[0].certFront" > | |||
| </image> | |||
| </view> | |||
| <view class="reverse" @tap.prevent="uploadReverse"> | |||
| <image :src="records[0].certBack" > | |||
| </image> | |||
| </view> | |||
| <view class="reverse" @tap.prevent="uploadCarCert"> | |||
| <image :src="records[0].carPic" > | |||
| </image> | |||
| </view> | |||
| </view> | |||
| <!-- 客户基本信息 --> | |||
| <view class="section"> | |||
| <view class="con_size"> | |||
| <image src="/static/image/矩形 5315.png" class='con_size_img' ></image> | |||
| 客户基本信息 | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">产品名称</text> | |||
| <text class="value">{{ records[0].productName }}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">经销商</text> | |||
| <text class="value">{{ records[0].storeName }}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">客户姓名</text> | |||
| <text class="value">{{ records[0].custName }}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">居住地址</text> | |||
| <text class="value">{{ records[0].custAddress }}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">身份证号码</text> | |||
| <text class="value">{{ records[0].custCardNo }}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">联系方式</text> | |||
| <text class="value">{{ records[0].custPhone }}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">销售端口</text> | |||
| <text class="value">{{ records[0].storeName }}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">店端销售顾问</text> | |||
| <text class="value">{{ records[0].saleName }}</text> | |||
| </view> | |||
| </view> | |||
| <!-- 车辆信息 --> | |||
| <view class="section"> | |||
| <view class="con_size"> | |||
| <image src="/static/image/矩形 5315.png" class='con_size_img' ></image>车辆信息</view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">车牌车系</text> | |||
| <text class="value">{{cars[0].saleName}}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">车辆型号</text> | |||
| <text class="value">{{cars[0].carModel}}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">车架号</text> | |||
| <text class="value">{{cars[0].vin}}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">车辆类型</text> | |||
| <text class="value">{{cars[0].carType}}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">使用性质</text> | |||
| <text class="value">{{cars[0].useType}}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">是否新车</text> | |||
| <text class="value">{{cars[0].newCar==0?"否":"是" }}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="label">车牌号</text> | |||
| <text class="value">{{cars[0].carNo}}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="labels">*</text> | |||
| <text class="label">发动机号</text> | |||
| <text class="value">{{cars[0].engineNo}}</text> | |||
| </view> | |||
| <view class="form-item" v-if="productTypeFlag"> | |||
| <text class="labels">*</text> | |||
| <text class="label">里程</text> | |||
| <text class="value">{{cars[0].mileage}}</text> | |||
| </view> | |||
| <view class="form-item" v-if="productTypeFlag"> | |||
| <text class="labels">*</text> | |||
| <text class="label">购车时间</text> | |||
| <text class="value">{{cars[0].buyTime}}</text> | |||
| </view> | |||
| <view class="form-item" v-if="productTypeFlag"> | |||
| <text class="labels">*</text> | |||
| <text class="label">车辆购置价</text> | |||
| <text class="value">{{cars[0].buyMoney}}</text> | |||
| </view> | |||
| <view class="form-item" v-if="productTypeFlag"> | |||
| <text class="labels">*</text> | |||
| <text class="label">购置税</text> | |||
| <text class="value">{{cars[0].buyTax}}</text> | |||
| </view> | |||
| </view> | |||
| <!-- 凭证信息 --> | |||
| <view class="section"> | |||
| <view class="con_size"> | |||
| <image src="/static/image/矩形 5315.png" class='con_size_img' ></image>凭证信息</view> | |||
| <view class="form-item" v-if="productTypeFlag"> | |||
| <text class="labels">*</text> | |||
| <text class="label">第一受益人</text> | |||
| <text class="value">{{vouchers[0].firstBeneficiary}}</text> | |||
| </view> | |||
| <view class="form-item" v-if="productTypeFlag"> | |||
| <text class="labels">*</text> | |||
| <text class="label">服务费</text> | |||
| <text class="value">{{vouchers[0].serviceMoney}}</text> | |||
| </view> | |||
| <view class="form-item" v-if="productTypeFlag"> | |||
| <text class="labels">*</text> | |||
| <text class="label">生效时间</text> | |||
| <text class="value">{{vouchers[0].effectiveTime}}</text> | |||
| </view> | |||
| <view class="form-item" v-if="productTypeFlag"> | |||
| <text class="labels">*</text> | |||
| <text class="label">失效时间</text> | |||
| <text class="value">{{vouchers[0].endTime}}</text> | |||
| </view> | |||
| <view class="form-item" v-if="productTypeFlag"> | |||
| <text class="labels">*</text> | |||
| <text class="label">服务年限</text> | |||
| <text class="value">{{vouchers[0].serviceYear}}</text> | |||
| </view> | |||
| <view class="form-item" v-if="productTypeFlag"> | |||
| <text class="labels">*</text> | |||
| <text class="label">付款时间</text> | |||
| <text class="value">{{vouchers[0].payTime}}</text> | |||
| </view> | |||
| <view class="con_size" > | |||
| <text class="labels">*</text> | |||
| <text class="label">支付凭证</text><image | |||
| :src="records[0].payVoucherUrl" | |||
| mode="widthFix" | |||
| style="width: 100px;height: 150px;" | |||
| @click="clickImg" | |||
| ></image> | |||
| </view> | |||
| <view class="con_size"> | |||
| <text class="labels">*</text> | |||
| <text class="label">发票信息</text><image | |||
| :src="records[0].invoiceUrl" | |||
| mode="widthFix" | |||
| style="width: 100px;height: 150px;" | |||
| @click="clickImg" | |||
| ></image> | |||
| </view> | |||
| </view> | |||
| <view class="section" v-if="productTypeFlag"> | |||
| <view class="con_size"> | |||
| <image src="/static/image/矩形 5315.png" class='con_size_img' ></image>金融信息</view> | |||
| <view class="form-item"> | |||
| <text class="label">贷款机构</text> | |||
| <text class="value">{{Finances[0].lender||0}}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="label">贷款金额</text> | |||
| <text class="value">{{Finances[0].lenderMoney||0}}</text> | |||
| </view> | |||
| <view class="form-item"> | |||
| <text class="label">贷款期限</text> | |||
| <text class="value">{{Finances[0].lenderYear||0}}</text> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </template> | |||
| <script> | |||
| import {isToken,list,queryAppOrderCarByMainId,queryAppOrderFinanceByMainId,queryAppOrderVoucherByMainId} from '@/api.uts' | |||
| export default { | |||
| data() { | |||
| return { | |||
| records: [ | |||
| { | |||
| id: "1897277583591075841", | |||
| orderNum: "CXSC20250305302395", | |||
| productName: "畅行无忧", | |||
| productServiceYear: "1", | |||
| productMoney: null, | |||
| productContractTemp: "https://img.augcl.com/temp/test_car_1741181182533.pdf", | |||
| productType: "普通产品", | |||
| storeName: "上海测试门店", | |||
| custName: "陈朋涛", | |||
| custAddress: "山东省滕州市龙阳镇", | |||
| custCardNo: "532101198906010015", | |||
| custPhone: "13456788765", | |||
| salePort: "售前", | |||
| createBy: "tanzs", | |||
| saleName: "lj", | |||
| payType: "全款", | |||
| custType: 0, | |||
| certFront: "https://img.augcl.com/cert/4uUVhHO3qByFbeb95285d2741f5437d370fea46a67b9_1740859563993.jpg", | |||
| certBack: "https://img.augcl.com/cert/J4X2ZFsgotLXdcc88281956f0b3fb63708bb497c1698_1740859570051.jpg", | |||
| carPic: "https://img.augcl.com/cert/w2Aoeo53vXfBb3f85e86690e90e240e1111c770e6f26_1740859575127.jpg", | |||
| busLicense: null, | |||
| createTime: "2025-03-05 21:26:39", | |||
| updateBy: null, | |||
| updateTime: null, | |||
| sysOrgCode: null, | |||
| status: 1, | |||
| contractUrl: "https://img.augcl.com/contract/CXSC20250305302395_1741181199845.pdf", | |||
| payee: "上海测试门店", | |||
| payeeTime: null, | |||
| payVoucherUrl: "https://img.augcl.com/test/F5n9sMOVIOBs363af867a4affb43fcf1cc64bb01916d_1740859625764.png", | |||
| salePort_dictText: "售前", | |||
| custType_dictText: "个人", | |||
| status_dictText: "已生效" | |||
| } | |||
| ], | |||
| cars:[ | |||
| { | |||
| id: "1897277583754653697", | |||
| carSeries: "比亚迪海狮05 EV2025款 低配版", | |||
| vin: "LC0CE6DB8S4040471", | |||
| carType: "燃油车", | |||
| useType: "非营运", | |||
| newCar: 1, | |||
| carModel: "BYD7008BEVB1", | |||
| carNo: "fg6545", | |||
| engineNo: "2V4003609", | |||
| mileage: "10000", | |||
| buyTime: "2025-03-02 04:06:50", | |||
| buyMoney: 10000, | |||
| buyTax: 885, | |||
| orderFkId: "1897277583591075841", | |||
| updateBy: null, | |||
| createTime: "2025-03-05 21:26:40", | |||
| updateTime: null, | |||
| sysOrgCode: null, | |||
| createBy: "tanzs"} | |||
| ], | |||
| vouchers:[], | |||
| Finances:[], | |||
| productTypeFlag:true | |||
| } | |||
| }, | |||
| onLoad(options) { | |||
| isToken(); | |||
| list({id:getApp().id}).then((res)=>{ | |||
| this.records = res.result.records | |||
| }) | |||
| queryAppOrderCarByMainId({id:getApp().id}).then((res)=>{ | |||
| this.cars = res.result | |||
| }) | |||
| queryAppOrderFinanceByMainId({id:getApp().id}).then((res)=>{ | |||
| this.Finances = res.result | |||
| }) | |||
| queryAppOrderVoucherByMainId({id:getApp().id}).then((res)=>{ | |||
| this.vouchers = res.result | |||
| }) | |||
| console.log('111',JSON.parse(this.cars)); | |||
| this.productTypeFlag = getApp().productTypeFlag; | |||
| }, | |||
| onUpload() { | |||
| // 页面销毁时移除监听 | |||
| uni.offKeyboardHeightChange(); | |||
| }, | |||
| methods: { | |||
| keyboardheightchange(e){ | |||
| // this.changeBottomVal = e.detail.height + 'px' | |||
| }, | |||
| clickImg(){ | |||
| uni.previewImage({ | |||
| urls: [this.records[0].payVoucherUrl], //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了 | |||
| current: '', // 当前显示图片的http链接,默认是第一个 | |||
| success: function(res) {}, | |||
| fail: function(res) {}, | |||
| complete: function(res) {}, | |||
| }) | |||
| }, | |||
| toBack(){ | |||
| // console.log('111') | |||
| uni.navigateBack({delta: 1}) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| <style scoped lang="scss"> | |||
| .containers { | |||
| height: 100%; | |||
| width: 100%; | |||
| background-color: #fff; | |||
| overflow-y:scroll; | |||
| } | |||
| .footer { | |||
| position: fixed; | |||
| bottom: 0; | |||
| left: 0; | |||
| } | |||
| .container::-webkit-scrollbar { | |||
| display: none; | |||
| } | |||
| .section { | |||
| // margin-bottom: 30rpx; | |||
| border-bottom: 1rpx solid #eee; | |||
| margin: 0 1rem 0 1rem; | |||
| } | |||
| .sections{ | |||
| margin: 0 1rem 1rem 1rem; | |||
| } | |||
| .form-item { | |||
| display: flex; | |||
| flex-direction: row; | |||
| justify-content: space-between; | |||
| align-items: center; | |||
| padding: 0.5rem 0; | |||
| border-bottom: 0.1rem solid #f2f2f2; | |||
| color: #767676; | |||
| } | |||
| .labels{ | |||
| color: red; | |||
| display: flex; | |||
| justify-content: center; | |||
| align-items: center; | |||
| } | |||
| .label { | |||
| font-size: 28rpx; | |||
| color: #666; | |||
| width: 200rpx; | |||
| } | |||
| .input { | |||
| flex: 1; | |||
| text-align: right; | |||
| font-size: 28rpx; | |||
| color: #737373; | |||
| } | |||
| .picker { | |||
| flex: 1; | |||
| } | |||
| .picker-text { | |||
| text-align: right; | |||
| color: #737373; | |||
| font-size: 0.8rem; | |||
| } | |||
| .radio-group { | |||
| display: flex; | |||
| flex: 1; | |||
| justify-content: flex-end; | |||
| flex-direction: row; | |||
| } | |||
| .radio-label { | |||
| padding: 0; | |||
| margin-left: 10rpx; | |||
| display: flex; | |||
| flex-direction: row; | |||
| font-size: 1rem; | |||
| transform: scale(0.7); | |||
| } | |||
| .value { | |||
| flex: 1; | |||
| text-align: right; | |||
| color: #737373; | |||
| font-size: 0.8rem; | |||
| } | |||
| // .timePiker{ | |||
| // display: flex; | |||
| // justify-content: center; | |||
| // align-items: center; | |||
| // color: #3f3f3f; | |||
| // } | |||
| .idCard-box { | |||
| margin-top: 10%; | |||
| width: 100%; | |||
| height: 50%; | |||
| display: flex; | |||
| flex-direction: row; | |||
| /* background-color: red; */ | |||
| flex-wrap: wrap; | |||
| .reverse { | |||
| height: 30%; | |||
| width: 40%; | |||
| display: flex; | |||
| align-items: center; | |||
| justify-content: center; | |||
| // background-color: blue; | |||
| margin: 0 5% 0 5%; | |||
| image { | |||
| width: 100%; | |||
| height: 100%; | |||
| } | |||
| text{ | |||
| position: absolute; | |||
| text-shadow: 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black; | |||
| font-size: 0.8rem; | |||
| color:#fff; | |||
| } | |||
| } | |||
| } | |||
| /* 表单分区样式 */ | |||
| .con_size { | |||
| font-size: 1rem; | |||
| font-weight: bold; | |||
| margin: 1rem 0; | |||
| color: #000000; | |||
| display: flex; | |||
| flex-direction: row; | |||
| align-items: center; | |||
| } | |||
| .con_size_img{ | |||
| height: 100%; | |||
| width: 2%; | |||
| margin-right: 2%; | |||
| } | |||
| .form-button{ | |||
| width: 100%; | |||
| height:100%; | |||
| // background-color: #000000; | |||
| display: flex; | |||
| align-items: center; | |||
| justify-content: center; | |||
| } | |||
| .button{ | |||
| height: 100%; | |||
| width: 100%; | |||
| background-color: #044f7a; | |||
| color: #ffffff; | |||
| border-radius: 1rem; | |||
| } | |||
| </style> | |||
| @ -0,0 +1,149 @@ | |||
| <template> | |||
| <view class="container"> | |||
| <view class="header_infos"> | |||
| <view class="header_info_left" @click="getBack"> | |||
| <uni-icons type="left" size="30"> | |||
| </uni-icons> | |||
| </view> | |||
| <text class="header_info_right"> | |||
| 选择车系 | |||
| </text> | |||
| </view> | |||
| <view class="contents"> | |||
| <scroll-view scroll-y="true" class="scroll-view" :scroll-into-view="currentIndex"> | |||
| <view class="content" v-for="(item, index) in list" :key="index" @click="getPid(item.id,item.name)"> | |||
| <text class="content-left"> | |||
| {{item.name}} | |||
| </text> | |||
| <uni-icons class="content-right" type="right" color="#c0c0c0"></uni-icons> | |||
| </view> | |||
| </scroll-view> | |||
| </view> | |||
| </view> | |||
| </template> | |||
| <script> | |||
| import {childList} from '@/api.uts' | |||
| export default { | |||
| data() { | |||
| return { | |||
| list:[], | |||
| currentIndex: '', | |||
| clientInfo:{}, | |||
| certFront:'', | |||
| carPic:'', | |||
| certBack:'', | |||
| } | |||
| }, | |||
| onLoad(options) { | |||
| this.clientInfo = JSON.parse(decodeURIComponent(options.clientInfo)); | |||
| console.log(this.clientInfo.appOrderCarList[0].carSeries); | |||
| }, | |||
| mounted() { | |||
| childList({pid:getApp().pid}).then((res)=>{ | |||
| this.list =res.result.records | |||
| }) | |||
| }, | |||
| methods: { | |||
| getBack(){ | |||
| uni.navigateBack( | |||
| {delta:1} | |||
| ) | |||
| }, | |||
| getPid(id,name){ | |||
| this.clientInfo.appOrderCarList[0].carSeries = this.clientInfo.appOrderCarList[0].carSeries + name; | |||
| childList({pid:id}).then((res)=>{ | |||
| console.log(res.result.records); | |||
| if(res.result.records.length == 0){ | |||
| if(this.pagesCount >= 10){ | |||
| if(getApp().flag == 0){ | |||
| uni.redirectTo ( | |||
| {url:'/pages/index/PayPal?clientInfo='+ encodeURIComponent(JSON.stringify(this.clientInfo))} | |||
| ) | |||
| }else{ | |||
| uni.redirectTo ( | |||
| {url:'/pages/index/PayPal_pinpai?clientInfo='+ encodeURIComponent(JSON.stringify(this.clientInfo))} | |||
| ) | |||
| } | |||
| }else{ | |||
| if(getApp().flag == 0){ | |||
| uni.navigateTo ( | |||
| {url:'/pages/index/PayPal?clientInfo='+ encodeURIComponent(JSON.stringify(this.clientInfo))} | |||
| ) | |||
| }else{ | |||
| uni.navigateTo ( | |||
| {url:'/pages/index/PayPal_pinpai?clientInfo='+ encodeURIComponent(JSON.stringify(this.clientInfo))} | |||
| ) | |||
| } | |||
| } | |||
| }else{ | |||
| getApp().pid_1 = id; | |||
| if(this.pagesCount >= 10){ | |||
| // 使用重定向跳转页面 | |||
| uni.redirectTo( | |||
| {url:'/pages/views/car?clientInfo='+ encodeURIComponent(JSON.stringify(this.clientInfo)) | |||
| }) | |||
| }else{ | |||
| uni.navigateTo( | |||
| {url:'/pages/views/car?clientInfo='+ encodeURIComponent(JSON.stringify(this.clientInfo)) | |||
| }) | |||
| } | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| <style scss> | |||
| .header_infos{ | |||
| height: 10%; | |||
| width: 100%; | |||
| display: flex; | |||
| flex-direction: row; | |||
| align-items: center; | |||
| background-color: #f8f8f8; | |||
| } | |||
| .header_info_right{ | |||
| width: 80%; | |||
| display: flex; | |||
| align-items: center; | |||
| justify-content: center; | |||
| /* left: 40%; */ | |||
| } | |||
| .contents{ | |||
| height: 100%; | |||
| width: 100%; | |||
| } | |||
| .scroll-view { | |||
| flex: 1; | |||
| height: 100%; | |||
| /* margin-top: 10%; */ | |||
| background-color: #ffffff; | |||
| } | |||
| .content{ | |||
| height: 5%; | |||
| display: flex; | |||
| flex-direction: row; | |||
| border-bottom: 0.01rem solid #e0e0e0; | |||
| /* height: 15%; */ | |||
| } | |||
| .content-left{ | |||
| font-size: 0.8rem; | |||
| display: flex; | |||
| align-items: center; | |||
| justify-content: center; | |||
| } | |||
| .content-right{ | |||
| margin-left: auto; | |||
| display: flex; | |||
| align-items: center; | |||
| justify-content: center; | |||
| } | |||
| </style> | |||
| @ -0,0 +1 @@ | |||
| {"version":3,"names":["_sfc_main","common_vendor","defineComponent","usrInfo","allMsg","infoList","productName","productUrl","storeName","dealerAddress","pid","pid_1","orderCount","certFront","carPic","certBack","id","onLaunch","index","__f__","onShow","onHide","onExit"],"sources":["App.uvue"],"sourcesContent":["<script lang=\"uts\">\r\n\tlet firstBackTime = 0\r\n\texport default {\r\n\t\tusrInfo:{},\r\n\t\tallMsg:[],\r\n\t\tinfoList:[],\r\n\t\tproductName:\"\",\r\n\t\tproductUrl:'',\r\n\t\tstoreName:'',\r\n\t\tdealerAddress:'',\r\n\t\tpid:'',\r\n\t\tpid_1:'',\r\n\t\torderCount:'',\r\n\t\tcertFront:'',\r\n\t\tcarPic:'',\r\n\t\tcertBack:'',\r\n\t\tid,\r\n\t\tonLaunch: function () {\r\n\t\t\tuni.__f__('log','at App.uvue:19','App Launch')\r\n\t\t},\r\n\t\tonShow: function () {\r\n\t\t\tuni.__f__('log','at App.uvue:22','App Show')\r\n\t\t},\r\n\t\tonHide: function () {\r\n\t\t\tuni.__f__('log','at App.uvue:25','App Hide')\r\n\t\t},\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\tonExit: function () {\r\n\t\t\tuni.__f__('log','at App.uvue:46','App Exit')\r\n\t\t},\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t@import \"@/static/iconfont.css\";\r\n\t@import \"css/header.css\";\r\n\t/*每个页面公共css */\r\n\tbody{\r\n\t\tbackground-color: #ffffff;\r\n\t}\r\n\t\r\n\tbody {\r\n\t\t font-family: Arial, sans-serif;\r\n\t\t margin: 0;\r\n\t\t padding: 0;\r\n\t}\r\n\tbody::-webkit-scrollbar {\r\n display: none;\r\n}\r\n\t @media only screen and (-webkit-min-device-pixel-ratio:2),(min-device-pixel-ratio:2){\r\n\t .uni-hairline{\r\n\t border-width: 0.5px !important;\r\n\t }\r\n\t .uni-nbfc {\r\n\t background-color: transparent !important;\r\n\t }\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 320px) {\r\n\t html {font-size: 14px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 360px) {\r\n\t html {font-size: 16px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 400px) {\r\n\t html {font-size: 18px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 440px) {\r\n\t html {font-size: 20px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 480px) {\r\n\t html {font-size: 22px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 640px) {\r\n\t html {font-size: 28px;}\r\n\t }\r\n\r\n</style>"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEC,IAAAA,SAAA,GAAeC,aAAA,CAAAC,eAAA;EACdC,OAAA,EAAQ,CAAE;EACVC,MAAA,EAAO,EAAE;EACTC,QAAA,EAAS,EAAE;EACXC,WAAA,EAAY;EACZC,UAAA,EAAW;EACXC,SAAA,EAAU;EACVC,aAAA,EAAc;EACdC,GAAA,EAAI;EACJC,KAAA,EAAM;EACNC,UAAA,EAAW;EACXC,SAAA,EAAU;EACVC,MAAA,EAAO;EACPC,QAAA,EAAS;EACTC,EAAA,EAAAA,EAAA;EACAC,QAAA,EAAU,SAAVA,SAAA,EAAU;IACThB,aAAA,CAAAiB,KAAA,CAAIC,KAAA,CAAM,OAAM,kBAAiB,YAAY;EAC7C;EACDC,MAAA,EAAQ,SAARA,OAAA,EAAQ;IACPnB,aAAA,CAAAiB,KAAA,CAAIC,KAAA,CAAM,OAAM,kBAAiB,UAAU;EAC3C;EACDE,MAAA,EAAQ,SAARA,OAAA,EAAQ;IACPpB,aAAA,CAAAiB,KAAA,CAAIC,KAAA,CAAM,OAAM,kBAAiB,UAAU;EAC3C;EAmBDG,MAAA,EAAQ,SAARA,OAAA,EAAQ;IACPrB,aAAA,CAAAiB,KAAA,CAAIC,KAAA,CAAM,OAAM,kBAAiB,UAAU;EAC3C;CACF","ignoreList":[]} | |||
| @ -1 +1 @@ | |||
| {"version":3,"file":"api.js","sources":["api.uts"],"sourcesContent":["import request from 'request.uts'; // 封装的request.js文件的位置\n\r\n\r\n\n// 获取用户基本信息 \nexport const login = (usr) => {\n\treturn request(`/contract/miniapp/user/login`, 'POST',usr)\n}\r\n// 获取隐私等基本信息\r\nexport const getInfoList = (usr) => {\n\treturn request(`/contract/miniapp/info/list`, 'GET',usr)\n}\r\n\r\n// 判断token状态是否存在\r\n\r\nexport const isToken = () => {\r\n\tif(!uni.getStorageSync('token')){\r\n\t\tuni.navigateTo(\r\n\t\t{ url: '/pages/index/login' }\r\n\t\t)\r\n\t}\n}\r\n\r\n\r\nexport const getStoreName = () => {\n\treturn request(`/contract/miniapp/store/list`, 'GET')\n}\n\n\r\n\r\nexport const getProduct = (product) => {\n\treturn request(`/contract/miniapp/product/categories`, 'GET',product)\n}\r\n\r\n\r\n\r\nexport const idCardInfo = (idCardInfo) => {\n\treturn request(`/contract/miniapp/file/ocr/idcard`, 'GET',idCardInfo,true)\n}\r\n\r\n\r\nexport const upload = (url) => {\n\tuni.uploadFile({\r\n\t\t\t\turl: 'https://gpt.aiym.run/contract/miniapp/file/upload', //仅为示例,非真实的接口地址\r\n\t\t\t\tfilePath: url,\r\n\t\t\t\tname: 'file',\r\n\t\t\t\tformData: {\r\n\t\t\t\t\tbiz: 'cert'\r\n\t\t\t\t},\r\n\t\t\t\tsuccess: (uploadFileRes) => {\r\n\t\t\t\t\treturn uploadFileRes\r\n\t\t\t\t\t\t\t\t console.log('ossurl:',uploadFileRes.data);\r\n\t\t\t\t},\r\n\t\t\t\tfail:(err)=>{\r\n\t\t\t\t\tconsole.log(err)\r\n\t\t\t\t}\r\n\t\t\t});\n}\r\n\r\n\r\n\r\nexport const getOrderList = () => {\n\treturn request(`/contract/miniapp/order/list`, 'POST')\n}\r\n\r\n\r\n\r\nexport const getChildListBatch = () => {\n\treturn request(`/contract/miniapp/car/rootList`, 'GET')\n}\r\n\r\n\r\n\r\n\r\nexport const add = (appOrderCarList) => {\n\treturn request(`/contract/miniapp/order/add`, 'POST',appOrderCarList)\n}\r\n\r\n\r\n\r\nexport const list = (params) => {\n\treturn request(`/contract/miniapp/order/list`, 'GET',params)\n}\r\n\r\n\r\n\r\n\r\nexport const carCert = (params) => {\n\treturn request(`/contract/miniapp/file/ocr/carCert`, 'GET',params,true)\n}\r\n\r\n\r\n\r\n\r\nexport const logout = () => {\n\treturn request(`/contract/miniapp/user/logout`, 'POST')\n}\r\n\r\n\n\r\n\r\nexport const addContract = (ID) => {\n\treturn request(`/contract/miniapp/order/addContract`, 'GET',ID)\n}\r\n\r\nexport const statistics = () => {\n\treturn request(`/contract/miniapp/order/statistics`, 'GET')\n}\r\n\r\n\r\nexport const getList = () => {\n\treturn request(`/contract/miniapp/car/getList`, 'GET')\n}\r\n\r\n\r\n\r\n\r\n\r\nexport const childList = (id) => {\n\treturn request(`/contract/miniapp/car/childList`, 'GET',id)\n}\r\n"],"names":["request","uni","idCardInfo"],"mappings":";;;AAKa,MAAA,QAAS,CAAC,MAAG,SAAA;AACzB,SAAOA,QAAO,QAAC,gCAAgC,QAAO,GAAG;AAC1D;AAEa,MAAA,cAAe,CAAC,MAAG,SAAA;AAC/B,SAAOA,QAAO,QAAC,+BAA+B,OAAM,GAAG;AACxD;AAIa,MAAA,UAAW,MAAA;AACvB,MAAG,CAACC,cAAG,MAAC,eAAe,OAAO,GAAE;AAC/BA,kBAAAA,MAAI,WACJ,EAAE,KAAK,qBAAsB,CAAA;AAAA,EAE7B;AACF;AAGa,MAAA,eAAgB,MAAA;AAC5B,SAAOD,gBAAQ,gCAAgC,KAAK;AACrD;AAIa,MAAA,aAAc,CAAC,UAAO,SAAA;AAClC,SAAOA,QAAO,QAAC,wCAAwC,OAAM,OAAO;AACrE;AAIa,MAAA,aAAc,CAACE,cAAU,SAAA;AACrC,SAAOF,QAAAA,QAAQ,qCAAqC,OAAME,aAAW,IAAI;AAC1E;AAoCa,MAAA,MAAO,CAAC,kBAAe,SAAA;AACnC,SAAOF,QAAO,QAAC,+BAA+B,QAAO,eAAe;AACrE;AAIa,MAAA,OAAQ,CAAC,SAAM,SAAA;AAC3B,SAAOA,QAAO,QAAC,gCAAgC,OAAM,MAAM;AAC5D;AAKa,MAAA,UAAW,CAAC,SAAM,SAAA;AAC9B,SAAOA,QAAAA,QAAQ,sCAAsC,OAAM,QAAO,IAAI;AACvE;AAKa,MAAA,SAAU,MAAA;AACtB,SAAOA,gBAAQ,iCAAiC,MAAM;AACvD;AASa,MAAA,aAAc,MAAA;AAC1B,SAAOA,gBAAQ,sCAAsC,KAAK;AAC3D;AAGa,MAAA,UAAW,MAAA;AACvB,SAAOA,gBAAQ,iCAAiC,KAAK;AACtD;AAMa,MAAA,YAAa,CAAC,KAAE,SAAA;AAC5B,SAAOA,QAAO,QAAC,mCAAmC,OAAM,EAAE;AAC3D;;;;;;;;;;;;;;"} | |||
| {"version":3,"file":"api.js","sources":["api.uts"],"sourcesContent":["import request from 'request.uts'; // 封装的request.js文件的位置\n\r\n\r\n\n// 获取用户基本信息 \nexport const login = (usr) => {\n\treturn request(`/contract/miniapp/user/login`, 'POST',usr)\n}\r\n// 获取隐私等基本信息\r\nexport const getInfoList = (usr) => {\n\treturn request(`/contract/miniapp/info/list`, 'GET',usr)\n}\r\n\r\n// 判断token状态是否存在\r\n\r\nexport const isToken = () => {\r\n\tif(!uni.getStorageSync('token')){\r\n\t\tuni.navigateTo(\r\n\t\t{ url: '/pages/index/login' }\r\n\t\t)\r\n\t}\n}\r\n\r\n\r\nexport const getStoreName = () => {\n\treturn request(`/contract/miniapp/store/list`, 'GET')\n}\n\n\r\n\r\nexport const getProduct = (product) => {\n\treturn request(`/contract/miniapp/product/categories`, 'GET',product)\n}\r\n\r\n\r\n\r\nexport const idCardInfo = (idCardInfo) => {\n\treturn request(`/contract/miniapp/file/ocr/idcard`, 'GET',idCardInfo,true)\n}\r\n\r\n\r\nexport const upload = (url) => {\n\tuni.uploadFile({\r\n\t\t\t\turl: 'https://gpt.aiym.run/contract/miniapp/file/upload', //仅为示例,非真实的接口地址\r\n\t\t\t\tfilePath: url,\r\n\t\t\t\tname: 'file',\r\n\t\t\t\tformData: {\r\n\t\t\t\t\tbiz: 'cert'\r\n\t\t\t\t},\r\n\t\t\t\tsuccess: (uploadFileRes) => {\r\n\t\t\t\t\treturn uploadFileRes\r\n\t\t\t\t\t\t\t\t console.log('ossurl:',uploadFileRes.data);\r\n\t\t\t\t},\r\n\t\t\t\tfail:(err)=>{\r\n\t\t\t\t\tconsole.log(err)\r\n\t\t\t\t}\r\n\t\t\t});\n}\r\n\r\n\r\n\r\nexport const getOrderList = () => {\n\treturn request(`/contract/miniapp/order/list`, 'POST')\n}\r\n\r\n\r\n\r\nexport const getChildListBatch = () => {\n\treturn request(`/contract/miniapp/car/rootList`, 'GET')\n}\r\n\r\n\r\n\r\n\r\nexport const add = (appOrderCarList) => {\n\treturn request(`/contract/miniapp/order/add`, 'POST',appOrderCarList)\n}\r\n\r\n\r\n\r\nexport const list = (params) => {\n\treturn request(`/contract/miniapp/order/list`, 'GET',params)\n}\r\n\r\n\r\n\r\n\r\nexport const carCert = (params) => {\n\treturn request(`/contract/miniapp/file/ocr/carCert`, 'GET',params,true)\n}\r\n\r\n\r\n\r\n\r\nexport const logout = () => {\n\treturn request(`/contract/miniapp/user/logout`, 'POST')\n}\r\n\r\n\n\r\n\r\nexport const addContract = (ID) => {\n\treturn request(`/contract/miniapp/order/addContract`, 'GET',ID)\n}\r\n\r\nexport const statistics = () => {\n\treturn request(`/contract/miniapp/order/statistics`, 'GET')\n}\r\n\r\n\r\nexport const getList = () => {\n\treturn request(`/contract/miniapp/car/getList`, 'GET')\n}\r\n\r\n\r\n\r\n\r\n\r\nexport const childList = (id) => {\n\treturn request(`/contract/miniapp/car/childList`, 'GET',id)\n}\r\n\r\n\r\n\r\nexport const queryAppOrderCarByMainId = (id) => {\n\treturn request(`/contract/miniapp/order/queryAppOrderCarByMainId`, 'GET',id)\n}\r\n\r\n\r\n\r\nexport const queryDictItemsByCode = (id) => {\n\treturn request(`/contract/miniapp/dict/queryDictItemsByCode`, 'GET',id)\n}\r\n\r\n\r\nexport const queryAppOrderFinanceByMainId = (id) => {\n\treturn request(`/contract/miniapp/order/queryAppOrderFinanceByMainId`, 'GET',id)\n}\r\n\r\n\r\nexport const queryAppOrderVoucherByMainId = (id) => {\n\treturn request(`/contract/miniapp/order/queryAppOrderVoucherByMainId`, 'GET',id)\n}"],"names":["request","uni","idCardInfo"],"mappings":";;;AAKa,MAAA,QAAS,CAAC,MAAG,SAAA;AACzB,SAAOA,QAAO,QAAC,gCAAgC,QAAO,GAAG;AAC1D;AAEa,MAAA,cAAe,CAAC,MAAG,SAAA;AAC/B,SAAOA,QAAO,QAAC,+BAA+B,OAAM,GAAG;AACxD;AAIa,MAAA,UAAW,MAAA;AACvB,MAAG,CAACC,cAAG,MAAC,eAAe,OAAO,GAAE;AAC/BA,kBAAAA,MAAI,WACJ,EAAE,KAAK,qBAAsB,CAAA;AAAA,EAE7B;AACF;AAGa,MAAA,eAAgB,MAAA;AAC5B,SAAOD,gBAAQ,gCAAgC,KAAK;AACrD;AAIa,MAAA,aAAc,CAAC,UAAO,SAAA;AAClC,SAAOA,QAAO,QAAC,wCAAwC,OAAM,OAAO;AACrE;AAIa,MAAA,aAAc,CAACE,cAAU,SAAA;AACrC,SAAOF,QAAAA,QAAQ,qCAAqC,OAAME,aAAW,IAAI;AAC1E;AAoCa,MAAA,MAAO,CAAC,kBAAe,SAAA;AACnC,SAAOF,QAAO,QAAC,+BAA+B,QAAO,eAAe;AACrE;AAIa,MAAA,OAAQ,CAAC,SAAM,SAAA;AAC3B,SAAOA,QAAO,QAAC,gCAAgC,OAAM,MAAM;AAC5D;AAKa,MAAA,UAAW,CAAC,SAAM,SAAA;AAC9B,SAAOA,QAAAA,QAAQ,sCAAsC,OAAM,QAAO,IAAI;AACvE;AAKa,MAAA,SAAU,MAAA;AACtB,SAAOA,gBAAQ,iCAAiC,MAAM;AACvD;AASa,MAAA,aAAc,MAAA;AAC1B,SAAOA,gBAAQ,sCAAsC,KAAK;AAC3D;AAGa,MAAA,UAAW,MAAA;AACvB,SAAOA,gBAAQ,iCAAiC,KAAK;AACtD;AAMa,MAAA,YAAa,CAAC,KAAE,SAAA;AAC5B,SAAOA,QAAO,QAAC,mCAAmC,OAAM,EAAE;AAC3D;AAIa,MAAA,2BAA4B,CAAC,KAAE,SAAA;AAC3C,SAAOA,QAAO,QAAC,oDAAoD,OAAM,EAAE;AAC5E;AAIa,MAAA,uBAAwB,CAAC,KAAE,SAAA;AACvC,SAAOA,QAAO,QAAC,+CAA+C,OAAM,EAAE;AACvE;AAGa,MAAA,+BAAgC,CAAC,KAAE,SAAA;AAC/C,SAAOA,QAAO,QAAC,wDAAwD,OAAM,EAAE;AAChF;AAGa,MAAA,+BAAgC,CAAC,KAAE,SAAA;AAC/C,SAAOA,QAAO,QAAC,wDAAwD,OAAM,EAAE;AAChF;;;;;;;;;;;;;;;;;;"} | |||
| @ -1 +1 @@ | |||
| {"version":3,"file":"app.js","sources":["App.uvue"],"sourcesContent":["<script lang=\"uts\">\r\n\tlet firstBackTime = 0\r\n\texport default {\r\n\t\tusrInfo:{},\r\n\t\tallMsg:[],\r\n\t\tinfoList:[],\r\n\t\tproductName:\"\",\r\n\t\tproductUrl:'',\r\n\t\tstoreName:'',\r\n\t\tdealerAddress:'',\r\n\t\tpid:'',\r\n\t\tpid_1:'',\r\n\t\tcertFront:'',\r\n\t\tcarPic:'',\r\n\t\tcertBack:'',\r\n\t\tonLaunch: function () {\r\n\t\t\tuni.__f__('log','at App.uvue:17','App Launch')\r\n\t\t},\r\n\t\tonShow: function () {\r\n\t\t\tuni.__f__('log','at App.uvue:20','App Show')\r\n\t\t},\r\n\t\tonHide: function () {\r\n\t\t\tuni.__f__('log','at App.uvue:23','App Hide')\r\n\t\t},\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\tonExit: function () {\r\n\t\t\tuni.__f__('log','at App.uvue:44','App Exit')\r\n\t\t},\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t@import \"@/static/iconfont.css\";\r\n\t@import \"css/header.css\";\r\n\t/*每个页面公共css */\r\n\tbody{\r\n\t\tbackground-color: #ffffff;\r\n\t}\r\n\t\r\n\tbody {\r\n\t\t font-family: Arial, sans-serif;\r\n\t\t margin: 0;\r\n\t\t padding: 0;\r\n\t}\r\n\tbody::-webkit-scrollbar {\r\n display: none;\r\n}\r\n\t @media only screen and (-webkit-min-device-pixel-ratio:2),(min-device-pixel-ratio:2){\r\n\t .uni-hairline{\r\n\t border-width: 0.5px !important;\r\n\t }\r\n\t .uni-nbfc {\r\n\t background-color: transparent !important;\r\n\t }\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 320px) {\r\n\t html {font-size: 14px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 360px) {\r\n\t html {font-size: 16px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 400px) {\r\n\t html {font-size: 18px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 440px) {\r\n\t html {font-size: 20px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 480px) {\r\n\t html {font-size: 22px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 640px) {\r\n\t html {font-size: 28px;}\r\n\t }\r\n\r\n</style>"],"names":["defineComponent","uni"],"mappings":";;;;;;;;;;;;;;AAEC,MAAA,YAAeA,8BAAA;AAAA,EACd,SAAQ,CAAE;AAAA,EACV,QAAO,CAAE;AAAA,EACT,UAAS,CAAE;AAAA,EACX,aAAY;AAAA,EACZ,YAAW;AAAA,EACX,WAAU;AAAA,EACV,eAAc;AAAA,EACd,KAAI;AAAA,EACJ,OAAM;AAAA,EACN,WAAU;AAAA,EACV,QAAO;AAAA,EACP,UAAS;AAAA,EACT,UAAU,WAAA;AACTC,kBAAAA,MAAI,MAAM,OAAM,kBAAiB,YAAY;AAAA,EAC7C;AAAA,EACD,QAAQ,WAAA;AACPA,kBAAAA,MAAI,MAAM,OAAM,kBAAiB,UAAU;AAAA,EAC3C;AAAA,EACD,QAAQ,WAAA;AACPA,kBAAAA,MAAI,MAAM,OAAM,kBAAiB,UAAU;AAAA,EAC3C;AAAA,EAmBD,QAAQ,WAAA;AACPA,kBAAAA,MAAI,MAAM,OAAM,kBAAiB,UAAU;AAAA,EAC3C;CACF;;;;;;;;;"} | |||
| {"version":3,"file":"app.js","sources":["App.uvue"],"sourcesContent":["<script lang=\"uts\">\r\n\tlet firstBackTime = 0\r\n\texport default {\r\n\t\tusrInfo:{},\r\n\t\tallMsg:[],\r\n\t\tinfoList:[],\r\n\t\tproductName:\"\",\r\n\t\tproductUrl:'',\r\n\t\tstoreName:'',\r\n\t\tdealerAddress:'',\r\n\t\tpid:'',\r\n\t\tpid_1:'',\r\n\t\torderCount:'',\r\n\t\tcertFront:'',\r\n\t\tcarPic:'',\r\n\t\tcertBack:'',\r\n\t\tid:'',\r\n\t\tflag:0,\r\n\t\tonLaunch: function () {\r\n\t\t\tuni.__f__('log','at App.uvue:20','App Launch')\r\n\t\t},\r\n\t\tonShow: function () {\r\n\t\t\tuni.__f__('log','at App.uvue:23','App Show')\r\n\t\t},\r\n\t\tonHide: function () {\r\n\t\t\tuni.__f__('log','at App.uvue:26','App Hide')\r\n\t\t},\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\tonExit: function () {\r\n\t\t\tuni.__f__('log','at App.uvue:47','App Exit')\r\n\t\t},\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t@import \"@/static/iconfont.css\";\r\n\t@import \"css/header.css\";\r\n\t/*每个页面公共css */\r\n\tbody{\r\n\t\tbackground-color: #ffffff;\r\n\t}\r\n\t\r\n\tbody {\r\n\t\t font-family: Arial, sans-serif;\r\n\t\t margin: 0;\r\n\t\t padding: 0;\r\n\t}\r\n\tbody::-webkit-scrollbar {\r\n display: none;\r\n}\r\n\t @media only screen and (-webkit-min-device-pixel-ratio:2),(min-device-pixel-ratio:2){\r\n\t .uni-hairline{\r\n\t border-width: 0.5px !important;\r\n\t }\r\n\t .uni-nbfc {\r\n\t background-color: transparent !important;\r\n\t }\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 320px) {\r\n\t html {font-size: 14px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 360px) {\r\n\t html {font-size: 16px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 400px) {\r\n\t html {font-size: 18px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 440px) {\r\n\t html {font-size: 20px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 480px) {\r\n\t html {font-size: 22px;}\r\n\t }\r\n\t \r\n\t @media screen and (min-width: 640px) {\r\n\t html {font-size: 28px;}\r\n\t }\r\n\r\n</style>"],"names":["defineComponent","uni"],"mappings":";;;;;;;;;;;;;;;;;AAEC,MAAA,YAAeA,8BAAA;AAAA,EACd,SAAQ,CAAE;AAAA,EACV,QAAO,CAAE;AAAA,EACT,UAAS,CAAE;AAAA,EACX,aAAY;AAAA,EACZ,YAAW;AAAA,EACX,WAAU;AAAA,EACV,eAAc;AAAA,EACd,KAAI;AAAA,EACJ,OAAM;AAAA,EACN,YAAW;AAAA,EACX,WAAU;AAAA,EACV,QAAO;AAAA,EACP,UAAS;AAAA,EACT,IAAG;AAAA,EACH,MAAK;AAAA,EACL,UAAU,WAAA;AACTC,kBAAAA,MAAI,MAAM,OAAM,kBAAiB,YAAY;AAAA,EAC7C;AAAA,EACD,QAAQ,WAAA;AACPA,kBAAAA,MAAI,MAAM,OAAM,kBAAiB,UAAU;AAAA,EAC3C;AAAA,EACD,QAAQ,WAAA;AACPA,kBAAAA,MAAI,MAAM,OAAM,kBAAiB,UAAU;AAAA,EAC3C;AAAA,EAmBD,QAAQ,WAAA;AACPA,kBAAAA,MAAI,MAAM,OAAM,kBAAiB,UAAU;AAAA,EAC3C;CACF;;;;;;;;;"} | |||
| @ -1 +1 @@ | |||
| {"version":3,"file":"car.js","sources":["pages/views/car.uvue","D:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvdmlld3MvY2FyLnV2dWU"],"sourcesContent":["<template>\n\t<view class=\"container\">\r\n\t\t<view class=\"header_infos\">\r\n\t\t\t<view class=\"header_info_left\" @click=\"getBack\">\r\n\t\t\t\t<uni-icons type=\"left\" size=\"30\">\r\n\t\t\t\t</uni-icons>\r\n\t\t\t</view>\r\n\t\t\t<text class=\"header_info_right\">\r\n\t\t\t\t选择型号\r\n\t\t\t</text>\r\n\t\t</view>\r\n\t\t\r\n\t\t<view class=\"contents\">\r\n\t\t<scroll-view scroll-y=\"true\" class=\"scroll-view\" :scroll-into-view=\"currentIndex\">\r\n\t\t\t<view class=\"content\" v-for=\"(item, index) in list\" :key=\"index\" @click=\"getName(item.name)\">\r\n\t\t\t\t<text class=\"content-left\">\r\n\t\t\t\t\t{{item.name}}\r\n\t\t\t\t</text>\r\n\t\t\t\t<uni-icons class=\"content-right\" type=\"right\" color=\"#c0c0c0\"></uni-icons>\r\n\t\t\t</view>\r\n\t\t\t</scroll-view>\r\n\t\t</view>\n\t\t\n\t</view>\n</template>\n\n<script lang=\"uts\">\r\n\timport {childList} from '@/api.uts'\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tlist:[],\r\n\t\t\t\tcurrentIndex: '',\r\n\t\t\t\tclientInfo:{},\r\n\t\t\t\tcertFront:'',\r\n\t\t\t\tcarPic:'',\r\n\t\t\t\tcertBack:'',\n\t\t\t}\n\t\t},\r\n\t\tonLoad(options) {\r\n\t\t\tthis.clientInfo = JSON.parse(decodeURIComponent(options.clientInfo));\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tchildList({pid:getApp().pid_1}).then((res)=>{\r\n\t\t\t\tthis.list =res.result.records\r\n\t\t\t})\r\n\t\t},\n\t\tmethods: {\n\t\t\tgetBack(){\r\n\t\t\t\tuni.navigateBack(\r\n\t\t\t\t{delta:1}\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\tgetName(name){\r\n\t\t\t\tthis.clientInfo.appOrderCarList[0].carSeries = this.clientInfo.appOrderCarList[0].carSeries + name;\r\n\t\t\t\tuni.__f__('log','at pages/views/car.uvue:56','3',this.clientInfo.appOrderCarList[0].carSeries);\r\n\t\t\t\tuni.navigateTo (\r\n\t\t\t\t{url:'/pages/index/PayPal?clientInfo='+ encodeURIComponent(JSON.stringify(this.clientInfo))}\r\n\t\t\t\t)\r\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style scss>\r\n.container-info{\r\n\theight: ;\r\n}\r\n\t\r\n.header_infos{\r\n\theight: 10%;\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\talign-items: center;\r\n\tbackground-color: #f8f8f8;\r\n}\r\n.header_info_right{\r\n\twidth: 80%;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\tleft: 35%;\r\n}\r\n\r\n.contents{\r\n\theight: 100%;\r\n\twidth: 100%;\r\n}\r\n\r\n.scroll-view {\n flex: 1;\n height: 100%;\r\n /* margin-top: 10%; */\r\n background-color: #ffffff;\n}\r\n.content{\r\n\theight: 5%;\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\tborder-bottom: 0.01rem solid #e0e0e0;\r\n\t/* height: 15%; */\r\n}\r\n.content-left{\r\n\t font-size: 0.8rem;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n}\r\n.content-right{\r\n\tmargin-left: auto;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n}\r\n\n</style>","import MiniProgramPage from 'C:/Users/lj/Desktop/121/contract-front/111/pages/views/car.uvue'\nwx.createPage(MiniProgramPage)"],"names":["defineComponent","childList","uni"],"mappings":";;;AA4BC,MAAA,YAAeA,8BAAA;AAAA,EACd,OAAI;AACH,WAAO;AAAA,MACN,MAAK,CAAE;AAAA,MACP,cAAc;AAAA,MACd,YAAU,IAAA,cAAC,EAAE;AAAA,MACb,WAAU;AAAA,MACV,QAAO;AAAA,MACP,UAAS;AAAA;EAEV;AAAA,EACD,OAAO,SAAO;AACb,SAAK,aAAa,IAAA,KAAK,MAAM,mBAAmB,QAAQ,UAAU,CAAC;AAAA,EACnE;AAAA,EACD,UAAO;AACNC,QAAAA,UAAU,IAAA,cAAA,EAAC,KAAI,OAAQ,EAAC,MAAM,CAAA,GAAE,KAAK,CAAC,MAAG,SAAA;AACxC,WAAK,OAAM,IAAI,OAAO;AAAA,IACvB,CAAC;AAAA,EACD;AAAA,EACD,SAAS;AAAA,IACR,UAAO;AACNC,oBAAAA,MAAI,aACJ,EAAC,OAAM,EAAC,CAAA;AAAA,IAER;AAAA,IACD,QAAQ,OAAI,MAAA;AACX,WAAK,WAAW,gBAAgB,CAAC,EAAE,YAAa,KAAK,WAAW,gBAAgB,CAAC,EAAE,YAAY;AAC/FA,oBAAAA,MAAI,MAAM,OAAM,8BAA6B,KAAI,KAAK,WAAW,gBAAgB,CAAC,EAAE,SAAS;AAC7FA,oBAAAA,MAAI,WACJ,EAAC,KAAI,oCAAmC,mBAAmB,SAAK,UAAU,KAAK,UAAU,CAAC,EAAC,CAAA;AAAA,IAE5F;AAAA,EACD;CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5DD,GAAG,WAAW,eAAe;"} | |||
| {"version":3,"file":"car.js","sources":["pages/views/car.uvue","D:/Program Files/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvdmlld3MvY2FyLnV2dWU"],"sourcesContent":["<template>\n\t<view class=\"container\">\r\n\t\t<view class=\"header_infos\">\r\n\t\t\t<view class=\"header_info_left\" @click=\"getBack\">\r\n\t\t\t\t<uni-icons type=\"left\" size=\"30\">\r\n\t\t\t\t</uni-icons>\r\n\t\t\t</view>\r\n\t\t\t<text class=\"header_info_right\">\r\n\t\t\t\t选择型号\r\n\t\t\t</text>\r\n\t\t</view>\r\n\t\t\r\n\t\t<view class=\"contents\">\r\n\t\t<scroll-view scroll-y=\"true\" class=\"scroll-view\" :scroll-into-view=\"currentIndex\">\r\n\t\t\t<view class=\"content\" v-for=\"(item, index) in list\" :key=\"index\" @click=\"getName(item.name)\">\r\n\t\t\t\t<text class=\"content-left\">\r\n\t\t\t\t\t{{item.name}}\r\n\t\t\t\t</text>\r\n\t\t\t\t<uni-icons class=\"content-right\" type=\"right\" color=\"#c0c0c0\"></uni-icons>\r\n\t\t\t</view>\r\n\t\t\t</scroll-view>\r\n\t\t</view>\n\t\t\n\t</view>\n</template>\n\n<script lang=\"uts\">\r\n\timport {childList} from '@/api.uts'\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tlist:[],\r\n\t\t\t\tcurrentIndex: '',\r\n\t\t\t\tclientInfo:{},\r\n\t\t\t\tcertFront:'',\r\n\t\t\t\tcarPic:'',\r\n\t\t\t\tcertBack:'',\n\t\t\t}\n\t\t},\r\n\t\tonLoad(options) {\r\n\t\t\tthis.clientInfo = JSON.parse(decodeURIComponent(options.clientInfo));\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tchildList({pid:getApp().pid_1}).then((res)=>{\r\n\t\t\t\tthis.list =res.result.records\r\n\t\t\t})\r\n\t\t},\n\t\tmethods: {\n\t\t\tgetBack(){\r\n\t\t\t\tuni.navigateBack(\r\n\t\t\t\t{delta:1}\r\n\t\t\t\t)\r\n\t\t\t},\r\n\t\t\tgetName(name){\r\n\t\t\t\tthis.clientInfo.appOrderCarList[0].carSeries = this.clientInfo.appOrderCarList[0].carSeries + name;\r\n\t\t\t\tuni.__f__('log','at pages/views/car.uvue:56','3',this.clientInfo.appOrderCarList[0].carSeries);\r\n\t\t\t\tif(getApp().flag != 1){\r\n\t\t\t\t\tuni.redirectTo (\r\n\t\t\t\t\t{url:'/pages/index/PayPal?clientInfo='+ encodeURIComponent(JSON.stringify(this.clientInfo))}\r\n\t\t\t\t\t)\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.redirectTo (\r\n\t\t\t\t\t{url:'/pages/index/PayPal_pinpai?clientInfo='+ encodeURIComponent(JSON.stringify(this.clientInfo))}\r\n\t\t\t\t\t)\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style scss>\r\n.container-info{\r\n\theight: ;\r\n}\r\n\t\r\n.header_infos{\r\n\theight: 10%;\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\talign-items: center;\r\n\tbackground-color: #f8f8f8;\r\n}\r\n.header_info_right{\r\n\twidth: 80%;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\tleft: 35%;\r\n}\r\n\r\n.contents{\r\n\theight: 100%;\r\n\twidth: 100%;\r\n}\r\n\r\n.scroll-view {\n flex: 1;\n height: 100%;\r\n /* margin-top: 10%; */\r\n background-color: #ffffff;\n}\r\n.content{\r\n\theight: 5%;\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\tborder-bottom: 0.01rem solid #e0e0e0;\r\n\t/* height: 15%; */\r\n}\r\n.content-left{\r\n\t font-size: 0.8rem;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n}\r\n.content-right{\r\n\tmargin-left: auto;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n}\r\n\n</style>","import MiniProgramPage from 'C:/Users/lj/Desktop/121/contract-front/111/pages/views/car.uvue'\nwx.createPage(MiniProgramPage)"],"names":["defineComponent","childList","uni"],"mappings":";;;AA4BC,MAAA,YAAeA,8BAAA;AAAA,EACd,OAAI;AACH,WAAO;AAAA,MACN,MAAK,CAAE;AAAA,MACP,cAAc;AAAA,MACd,YAAU,IAAA,cAAC,EAAE;AAAA,MACb,WAAU;AAAA,MACV,QAAO;AAAA,MACP,UAAS;AAAA;EAEV;AAAA,EACD,OAAO,SAAO;AACb,SAAK,aAAa,IAAA,KAAK,MAAM,mBAAmB,QAAQ,UAAU,CAAC;AAAA,EACnE;AAAA,EACD,UAAO;AACNC,QAAAA,UAAU,IAAA,cAAA,EAAC,KAAI,OAAQ,EAAC,MAAM,CAAA,GAAE,KAAK,CAAC,MAAG,SAAA;AACxC,WAAK,OAAM,IAAI,OAAO;AAAA,IACvB,CAAC;AAAA,EACD;AAAA,EACD,SAAS;AAAA,IACR,UAAO;AACNC,oBAAAA,MAAI,aACJ,EAAC,OAAM,EAAC,CAAA;AAAA,IAER;AAAA,IACD,QAAQ,OAAI,MAAA;AACX,WAAK,WAAW,gBAAgB,CAAC,EAAE,YAAa,KAAK,WAAW,gBAAgB,CAAC,EAAE,YAAY;AAC/FA,oBAAAA,MAAI,MAAM,OAAM,8BAA6B,KAAI,KAAK,WAAW,gBAAgB,CAAC,EAAE,SAAS;AAC7F,UAAG,OAAM,EAAG,QAAQ,GAAE;AACrBA,sBAAAA,MAAI,WACJ,EAAC,KAAI,oCAAmC,mBAAmB,SAAK,UAAU,KAAK,UAAU,CAAC,EAAC,CAAA;AAAA,MAE3F,OAAI;AACJA,sBAAAA,MAAI,WACJ,EAAC,KAAI,2CAA0C,mBAAmB,SAAK,UAAU,KAAK,UAAU,CAAC,EAAC,CAAA;AAAA,MAEnG;AAAA,IAED;AAAA,EACD;CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACnED,GAAG,WAAW,eAAe;"} | |||
| @ -0,0 +1 @@ | |||
| {"code":"import {} from \"vue\";\nlet firstBackTime = 0;\nexport default defineComponent({\n usrInfo: {},\n allMsg: [],\n infoList: [],\n productName: \"\",\n productUrl: '',\n storeName: '',\n dealerAddress: '',\n pid: '',\n pid_1: '',\n orderCount: '',\n certFront: '',\n carPic: '',\n certBack: '',\n id: '',\n flag: 0,\n onLaunch: function () {\n uni.__f__('log', 'at App.uvue:20', 'App Launch');\n },\n onShow: function () {\n uni.__f__('log', 'at App.uvue:23', 'App Show');\n },\n onHide: function () {\n uni.__f__('log', 'at App.uvue:26', 'App Hide');\n },\n onExit: function () {\n uni.__f__('log', 'at App.uvue:47', 'App Exit');\n },\n});\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/App.uvue?vue&type=script&lang.uts.js.map","references":[],"uniExtApis":["uni.__f__"],"map":"{\"version\":3,\"file\":\"App.uvue?vue&type=script&lang.uts.js\",\"sourceRoot\":\"\",\"sources\":[\"App.uvue?vue&type=script&lang.uts\"],\"names\":[],\"mappings\":\";AACC,IAAI,aAAa,GAAG,CAAC,CAAA;AACrB,+BAAe;IACd,OAAO,EAAC,EAAE;IACV,MAAM,EAAC,EAAE;IACT,QAAQ,EAAC,EAAE;IACX,WAAW,EAAC,EAAE;IACd,UAAU,EAAC,EAAE;IACb,SAAS,EAAC,EAAE;IACZ,aAAa,EAAC,EAAE;IAChB,GAAG,EAAC,EAAE;IACN,KAAK,EAAC,EAAE;IACR,UAAU,EAAC,EAAE;IACb,SAAS,EAAC,EAAE;IACZ,MAAM,EAAC,EAAE;IACT,QAAQ,EAAC,EAAE;IACX,EAAE,EAAC,EAAE;IACL,IAAI,EAAC,CAAC;IACN,QAAQ,EAAE;QACT,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,gBAAgB,EAAC,YAAY,CAAC,CAAA;IAC/C,CAAC;IACD,MAAM,EAAE;QACP,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,gBAAgB,EAAC,UAAU,CAAC,CAAA;IAC7C,CAAC;IACD,MAAM,EAAE;QACP,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,gBAAgB,EAAC,UAAU,CAAC,CAAA;IAC7C,CAAC;IAmBD,MAAM,EAAE;QACP,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,gBAAgB,EAAC,UAAU,CAAC,CAAA;IAC7C,CAAC;CACD,EAAA\"}"} | |||
| @ -1 +0,0 @@ | |||
| {"code":"import {} from \"vue\";\nlet firstBackTime = 0;\nexport default defineComponent({\n usrInfo: {},\n allMsg: [],\n infoList: [],\n productName: \"\",\n productUrl: '',\n storeName: '',\n dealerAddress: '',\n pid: '',\n pid_1: '',\n certFront: '',\n carPic: '',\n certBack: '',\n onLaunch: function () {\n uni.__f__('log', 'at App.uvue:17', 'App Launch');\n },\n onShow: function () {\n uni.__f__('log', 'at App.uvue:20', 'App Show');\n },\n onHide: function () {\n uni.__f__('log', 'at App.uvue:23', 'App Hide');\n },\n onExit: function () {\n uni.__f__('log', 'at App.uvue:44', 'App Exit');\n },\n});\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/App.uvue?vue&type=script&lang.uts.js.map","references":[],"uniExtApis":["uni.__f__"],"map":"{\"version\":3,\"file\":\"App.uvue?vue&type=script&lang.uts.js\",\"sourceRoot\":\"\",\"sources\":[\"App.uvue?vue&type=script&lang.uts\"],\"names\":[],\"mappings\":\";AACC,IAAI,aAAa,GAAG,CAAC,CAAA;AACrB,+BAAe;IACd,OAAO,EAAC,EAAE;IACV,MAAM,EAAC,EAAE;IACT,QAAQ,EAAC,EAAE;IACX,WAAW,EAAC,EAAE;IACd,UAAU,EAAC,EAAE;IACb,SAAS,EAAC,EAAE;IACZ,aAAa,EAAC,EAAE;IAChB,GAAG,EAAC,EAAE;IACN,KAAK,EAAC,EAAE;IACR,SAAS,EAAC,EAAE;IACZ,MAAM,EAAC,EAAE;IACT,QAAQ,EAAC,EAAE;IACX,QAAQ,EAAE;QACT,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,gBAAgB,EAAC,YAAY,CAAC,CAAA;IAC/C,CAAC;IACD,MAAM,EAAE;QACP,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,gBAAgB,EAAC,UAAU,CAAC,CAAA;IAC7C,CAAC;IACD,MAAM,EAAE;QACP,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,gBAAgB,EAAC,UAAU,CAAC,CAAA;IAC7C,CAAC;IAmBD,MAAM,EAAE;QACP,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,gBAAgB,EAAC,UAAU,CAAC,CAAA;IAC7C,CAAC;CACD,EAAA\"}"} | |||
| @ -1 +0,0 @@ | |||
| {"code":"import { defineComponent } from \"vue\";\nimport { childList } from \"@/api\";\nexport default defineComponent({\n data() {\n return {\n list: [],\n currentIndex: '',\n clientInfo: new UTSJSONObject({}),\n certFront: '',\n carPic: '',\n certBack: '',\n };\n },\n onLoad(options) {\n this.clientInfo = UTS.JSON.parse(decodeURIComponent(options.clientInfo));\n uni.__f__('log', 'at pages/views/carTwo.uvue:42', this.clientInfo.appOrderCarList[0].carSeries);\n },\n mounted() {\n childList(new UTSJSONObject({ pid: getApp().pid })).then((res = null) => {\n this.list = res.result.records;\n });\n },\n methods: {\n getBack() {\n uni.__f__('log', 'at pages/views/carTwo.uvue:51', 1);\n uni.navigateBack({ delta: 1 });\n },\n getPid(id = null, name = null) {\n this.clientInfo.appOrderCarList[0].carSeries = this.clientInfo.appOrderCarList[0].carSeries + name;\n childList(new UTSJSONObject({ pid: id })).then((res = null) => {\n if (res.result.records.length == 0) {\n uni.navigateTo({ url: '/pages/index/PayPal?clientInfo=' + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))\n });\n }\n else {\n getApp().pid_1 = id;\n uni.navigateTo({ url: '/pages/views/car?clientInfo=' + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))\n });\n }\n });\n }\n }\n});\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/pages/views/carTwo.uvue?vue&type=script&lang.uts.js.map","references":[],"uniExtApis":["uni.__f__","uni.navigateBack","uni.navigateTo"],"map":"{\"version\":3,\"file\":\"carTwo.uvue?vue&type=script&lang.uts.js\",\"sourceRoot\":\"\",\"sources\":[\"carTwo.uvue?vue&type=script&lang.uts\"],\"names\":[],\"mappings\":\";AACC,OAAO,EAAC,SAAS,EAAC,cAAiB;AACnC,+BAAe;IACd,IAAI;QACH,OAAO;YACN,IAAI,EAAC,EAAE;YACP,YAAY,EAAE,EAAE;YAChB,UAAU,oBAAC,EAAE,CAAA;YACb,SAAS,EAAC,EAAE;YACZ,MAAM,EAAC,EAAE;YACT,QAAQ,EAAC,EAAE;SACX,CAAA;IACF,CAAC;IACD,MAAM,CAAC,OAAO;QACb,IAAI,CAAC,UAAU,GAAG,SAAK,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QACrE,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,+BAA+B,EAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC/F,CAAC;IACD,OAAO;QACN,SAAS,mBAAC,EAAC,GAAG,EAAC,MAAM,EAAE,CAAC,GAAG,EAAC,EAAC,CAAC,IAAI,CAAC,CAAC,GAAG,OAAA;YACtC,IAAI,CAAC,IAAI,GAAE,GAAG,CAAC,MAAM,CAAC,OAAO,CAAA;QAC9B,CAAC,CAAC,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACR,OAAO;YACN,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,+BAA+B,EAAC,CAAC,CAAC,CAAA;YAClD,GAAG,CAAC,YAAY,CAChB,EAAC,KAAK,EAAC,CAAC,EAAC,CACR,CAAA;QACF,CAAC;QACD,MAAM,CAAC,EAAE,OAAA,EAAC,IAAI,OAAA;YACb,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,GAAI,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;YACpG,SAAS,mBAAC,EAAC,GAAG,EAAC,EAAE,EAAC,EAAC,CAAC,IAAI,CAAC,CAAC,GAAG,OAAA;gBAC5B,IAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,EAAC;oBACjC,GAAG,CAAC,UAAU,CACd,EAAC,GAAG,EAAC,iCAAiC,GAAE,kBAAkB,CAAC,SAAK,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;qBAC1F,CACA,CAAA;iBACD;qBAAI;oBACJ,MAAM,EAAE,CAAC,KAAK,GAAG,EAAE,CAAC;oBACpB,GAAG,CAAC,UAAU,CACd,EAAC,GAAG,EAAC,8BAA8B,GAAE,kBAAkB,CAAC,SAAK,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;qBACvF,CACA,CAAA;iBACD;YACF,CAAC,CAAC,CAAA;QACH,CAAC;KACD;CACD,EAAA\"}"} | |||
| @ -0,0 +1 @@ | |||
| {"code":"import { defineComponent } from \"vue\";\nimport { childList } from \"@/api\";\nexport default defineComponent({\n data() {\n return {\n list: [],\n currentIndex: '',\n clientInfo: new UTSJSONObject({}),\n certFront: '',\n carPic: '',\n certBack: '',\n };\n },\n onLoad(options) {\n this.clientInfo = UTS.JSON.parse(decodeURIComponent(options.clientInfo));\n uni.__f__('log', 'at pages/views/carTwo.uvue:42', this.clientInfo.appOrderCarList[0].carSeries);\n },\n mounted() {\n childList(new UTSJSONObject({ pid: getApp().pid })).then((res = null) => {\n this.list = res.result.records;\n });\n },\n methods: {\n getBack() {\n uni.navigateBack({ delta: 1 });\n },\n getPid(id = null, name = null) {\n this.clientInfo.appOrderCarList[0].carSeries = this.clientInfo.appOrderCarList[0].carSeries + name;\n childList(new UTSJSONObject({ pid: id })).then((res = null) => {\n if (res.result.records.length == 0) {\n if (this.pagesCount >= 10) {\n // 使用重定向跳转页面\n uni.redirectTo({ url: '/pages/index/PayPal?clientInfo=' + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))\n });\n }\n else {\n uni.navigateTo({ url: '/pages/index/PayPal?clientInfo=' + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))\n });\n }\n }\n else {\n getApp().pid = id;\n if (this.pagesCount >= 10) {\n // 使用重定向跳转页面\n uni.redirectTo({ url: '/pages/views/carFinal?clientInfo=' + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))\n });\n }\n else {\n uni.navigateTo({ url: '/pages/views/carFinal?clientInfo=' + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))\n });\n }\n }\n });\n }\n }\n});\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/pages/views/carTwo.uvue?vue&type=script&lang.uts.js.map","references":[],"uniExtApis":["uni.__f__","uni.navigateBack","uni.redirectTo","uni.navigateTo"],"map":"{\"version\":3,\"file\":\"carTwo.uvue?vue&type=script&lang.uts.js\",\"sourceRoot\":\"\",\"sources\":[\"carTwo.uvue?vue&type=script&lang.uts\"],\"names\":[],\"mappings\":\";AACC,OAAO,EAAC,SAAS,EAAC,cAAiB;AACnC,+BAAe;IACd,IAAI;QACH,OAAO;YACN,IAAI,EAAC,EAAE;YACP,YAAY,EAAE,EAAE;YAChB,UAAU,oBAAC,EAAE,CAAA;YACb,SAAS,EAAC,EAAE;YACZ,MAAM,EAAC,EAAE;YACT,QAAQ,EAAC,EAAE;SACX,CAAA;IACF,CAAC;IACD,MAAM,CAAC,OAAO;QACb,IAAI,CAAC,UAAU,GAAG,SAAK,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QACrE,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,+BAA+B,EAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC/F,CAAC;IACD,OAAO;QACN,SAAS,mBAAC,EAAC,GAAG,EAAC,MAAM,EAAE,CAAC,GAAG,EAAC,EAAC,CAAC,IAAI,CAAC,CAAC,GAAG,OAAA;YACtC,IAAI,CAAC,IAAI,GAAE,GAAG,CAAC,MAAM,CAAC,OAAO,CAAA;QAC9B,CAAC,CAAC,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACR,OAAO;YACP,GAAG,CAAC,YAAY,CAChB,EAAC,KAAK,EAAC,CAAC,EAAC,CACR,CAAA;QACD,CAAC;QACD,MAAM,CAAC,EAAE,OAAA,EAAC,IAAI,OAAA;YACb,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,GAAI,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;YACpG,SAAS,mBAAC,EAAC,GAAG,EAAC,EAAE,EAAC,EAAC,CAAC,IAAI,CAAC,CAAC,GAAG,OAAA;gBAC5B,IAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,EAAC;oBACjC,IAAG,IAAI,CAAC,UAAU,IAAI,EAAE,EAAC;wBACnB,YAAY;wBACZ,GAAG,CAAC,UAAU,CACd,EAAC,GAAG,EAAC,iCAAiC,GAAE,kBAAkB,CAAC,SAAK,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;yBAC1F,CAAC,CAAA;qBACF;yBAAI;wBACR,GAAG,CAAC,UAAU,CACd,EAAC,GAAG,EAAC,iCAAiC,GAAE,kBAAkB,CAAC,SAAK,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;yBAC1F,CAAC,CAAA;qBACH;iBACD;qBAAI;oBACJ,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC;oBAClB,IAAG,IAAI,CAAC,UAAU,IAAI,EAAE,EAAC;wBACnB,YAAY;wBACZ,GAAG,CAAC,UAAU,CACd,EAAC,GAAG,EAAC,mCAAmC,GAAE,kBAAkB,CAAC,SAAK,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;yBAC5F,CAAC,CAAA;qBACF;yBAAI;wBACR,GAAG,CAAC,UAAU,CACd,EAAC,GAAG,EAAC,mCAAmC,GAAE,kBAAkB,CAAC,SAAK,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;yBAC5F,CAAC,CAAA;qBACH;iBACD;YACF,CAAC,CAAC,CAAA;QACH,CAAC;KACD;CACD,EAAA\"}"} | |||
| @ -1 +0,0 @@ | |||
| {"code":"import { defineComponent } from \"vue\";\nimport { getList, childList } from \"@/api\";\nimport transformBrands from \"@/js/airport\";\nexport default defineComponent({\n data() {\n return {\n currentIndex: '',\n letter: \"\",\n clientInfo: new UTSJSONObject({}),\n indexList: [],\n certFront: '',\n carPic: '',\n certBack: '',\n };\n },\n onLoad(options) {\n this.clientInfo = UTS.JSON.parse(decodeURIComponent(options.clientInfo));\n uni.__f__('log', 'at pages/views/carOne.uvue:52', this.clientInfo.appOrderCarList[0].carSeries);\n },\n mounted() {\n getList().then((res = null) => {\n let list = transformBrands(res.result);\n this.indexList = list;\n });\n },\n methods: {\n scrollToIndex(letter = null) {\n this.letter = letter;\n this.currentIndex = letter;\n },\n getID(id = null, name = null) {\n this.clientInfo.appOrderCarList[0].carSeries = name;\n uni.__f__('log', 'at pages/views/carOne.uvue:68', '1', this.clientInfo.appOrderCarList[0].carSeries);\n childList(new UTSJSONObject({ pid: id })).then((res = null) => {\n getApp().pid = res.result.records[0].id;\n uni.navigateTo({ url: '/pages/views/carTwo?clientInfo=' + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))\n });\n });\n },\n getBack() {\n uni.__f__('log', 'at pages/views/carOne.uvue:78', 1);\n uni.navigateBack({ delta: 1 });\n }\n }\n});\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/pages/views/carOne.uvue?vue&type=script&lang.uts.js.map","references":[],"uniExtApis":["uni.__f__","uni.navigateTo","uni.navigateBack"],"map":"{\"version\":3,\"file\":\"carOne.uvue?vue&type=script&lang.uts.js\",\"sourceRoot\":\"\",\"sources\":[\"carOne.uvue?vue&type=script&lang.uts\"],\"names\":[],\"mappings\":\";AACC,OAAO,EAAC,OAAO,EAAC,SAAS,EAAC,cAAiB;AAC3C,OAAO,eAAe,qBAAwB;AAC/C,+BAAe;IACb,IAAI;QACF,OAAO;YACL,YAAY,EAAE,EAAE;YACnB,MAAM,EAAC,EAAE;YACT,UAAU,oBAAC,EAAE,CAAA;YACV,SAAS,EAAE,EAAE;YAChB,SAAS,EAAC,EAAE;YACZ,MAAM,EAAC,EAAE;YACT,QAAQ,EAAC,EAAE;SACT,CAAC;IACJ,CAAC;IACD,MAAM,CAAC,OAAO;QACb,IAAI,CAAC,UAAU,GAAG,SAAK,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QACrE,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,+BAA+B,EAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC/F,CAAC;IACD,OAAO;QAEN,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,OAAA;YACpB,IAAI,IAAI,GAAI,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;YACvC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,CAAC,CAAC,CAAA;IACF,CAAC;IACD,OAAO,EAAE;QACP,aAAa,CAAC,MAAM,OAAA;YACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;YAChB,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;QAC7B,CAAC;QACJ,KAAK,CAAC,EAAE,OAAA,EAAC,IAAI,OAAA;YACZ,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,GAAI,IAAI,CAAC;YACrD,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,+BAA+B,EAAC,GAAG,EAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAE,CAAC;YACnG,SAAS,mBAAC,EAAC,GAAG,EAAC,EAAE,EAAC,EAAC,CAAC,IAAI,CAAC,CAAC,GAAG,OAAA;gBAC5B,MAAM,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBACxC,GAAG,CAAC,UAAU,CACd,EAAC,GAAG,EAAC,iCAAiC,GAAE,kBAAkB,CAAC,SAAK,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;iBACzF,CACD,CAAA;YACF,CAAC,CAAC,CAAA;QACH,CAAC;QACD,OAAO;YACN,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,+BAA+B,EAAC,CAAC,CAAC,CAAA;YAClD,GAAG,CAAC,YAAY,CAChB,EAAC,KAAK,EAAC,CAAC,EAAC,CACR,CAAA;QACF,CAAC;KACC;CACF,EAAC\"}"} | |||
| @ -0,0 +1 @@ | |||
| {"code":"import { defineComponent } from \"vue\";\nimport { childList } from \"@/api\";\nexport default defineComponent({\n data() {\n return {\n list: [],\n currentIndex: '',\n clientInfo: new UTSJSONObject({}),\n certFront: '',\n carPic: '',\n certBack: '',\n };\n },\n onLoad(options) {\n this.clientInfo = UTS.JSON.parse(decodeURIComponent(options.clientInfo));\n },\n mounted() {\n childList(new UTSJSONObject({ pid: getApp().pid_1 })).then((res = null) => {\n this.list = res.result.records;\n });\n },\n methods: {\n getBack() {\n uni.navigateBack({ delta: 1 });\n },\n getName(name = null) {\n this.clientInfo.appOrderCarList[0].carSeries = this.clientInfo.appOrderCarList[0].carSeries + name;\n uni.__f__('log', 'at pages/views/car.uvue:56', '3', this.clientInfo.appOrderCarList[0].carSeries);\n if (getApp().flag != 1) {\n uni.redirectTo({ url: '/pages/index/PayPal?clientInfo=' + encodeURIComponent(UTS.JSON.stringify(this.clientInfo)) });\n }\n else {\n uni.redirectTo({ url: '/pages/index/PayPal_pinpai?clientInfo=' + encodeURIComponent(UTS.JSON.stringify(this.clientInfo)) });\n }\n }\n }\n});\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/pages/views/car.uvue?vue&type=script&lang.uts.js.map","references":[],"uniExtApis":["uni.navigateBack","uni.__f__","uni.redirectTo"],"map":"{\"version\":3,\"file\":\"car.uvue?vue&type=script&lang.uts.js\",\"sourceRoot\":\"\",\"sources\":[\"car.uvue?vue&type=script&lang.uts\"],\"names\":[],\"mappings\":\";AACC,OAAO,EAAC,SAAS,EAAC,cAAiB;AACnC,+BAAe;IACd,IAAI;QACH,OAAO;YACN,IAAI,EAAC,EAAE;YACP,YAAY,EAAE,EAAE;YAChB,UAAU,oBAAC,EAAE,CAAA;YACb,SAAS,EAAC,EAAE;YACZ,MAAM,EAAC,EAAE;YACT,QAAQ,EAAC,EAAE;SACX,CAAA;IACF,CAAC;IACD,MAAM,CAAC,OAAO;QACb,IAAI,CAAC,UAAU,GAAG,SAAK,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;IACtE,CAAC;IACD,OAAO;QACN,SAAS,mBAAC,EAAC,GAAG,EAAC,MAAM,EAAE,CAAC,KAAK,EAAC,EAAC,CAAC,IAAI,CAAC,CAAC,GAAG,OAAA;YACxC,IAAI,CAAC,IAAI,GAAE,GAAG,CAAC,MAAM,CAAC,OAAO,CAAA;QAC9B,CAAC,CAAC,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACR,OAAO;YACN,GAAG,CAAC,YAAY,CAChB,EAAC,KAAK,EAAC,CAAC,EAAC,CACR,CAAA;QACF,CAAC;QACD,OAAO,CAAC,IAAI,OAAA;YACX,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,GAAI,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;YACpG,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,4BAA4B,EAAC,GAAG,EAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YAC/F,IAAG,MAAM,EAAE,CAAC,IAAI,IAAI,CAAC,EAAC;gBACrB,GAAG,CAAC,UAAU,CACd,EAAC,GAAG,EAAC,iCAAiC,GAAE,kBAAkB,CAAC,SAAK,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,EAAC,CAC3F,CAAA;aACD;iBAAI;gBACJ,GAAG,CAAC,UAAU,CACd,EAAC,GAAG,EAAC,wCAAwC,GAAE,kBAAkB,CAAC,SAAK,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,EAAC,CAClG,CAAA;aACD;QAEF,CAAC;KACD;CACD,EAAA\"}"} | |||
| @ -1 +0,0 @@ | |||
| {"code":"import { defineComponent } from \"vue\";\nimport { childList } from \"@/api\";\nexport default defineComponent({\n data() {\n return {\n list: [],\n currentIndex: '',\n clientInfo: new UTSJSONObject({}),\n certFront: '',\n carPic: '',\n certBack: '',\n };\n },\n onLoad(options) {\n this.clientInfo = UTS.JSON.parse(decodeURIComponent(options.clientInfo));\n },\n mounted() {\n childList(new UTSJSONObject({ pid: getApp().pid_1 })).then((res = null) => {\n this.list = res.result.records;\n });\n },\n methods: {\n getBack() {\n uni.navigateBack({ delta: 1 });\n },\n getName(name = null) {\n this.clientInfo.appOrderCarList[0].carSeries = this.clientInfo.appOrderCarList[0].carSeries + name;\n uni.__f__('log', 'at pages/views/car.uvue:56', '3', this.clientInfo.appOrderCarList[0].carSeries);\n uni.navigateTo({ url: '/pages/index/PayPal?clientInfo=' + encodeURIComponent(UTS.JSON.stringify(this.clientInfo)) });\n }\n }\n});\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/pages/views/car.uvue?vue&type=script&lang.uts.js.map","references":[],"uniExtApis":["uni.navigateBack","uni.__f__","uni.navigateTo"],"map":"{\"version\":3,\"file\":\"car.uvue?vue&type=script&lang.uts.js\",\"sourceRoot\":\"\",\"sources\":[\"car.uvue?vue&type=script&lang.uts\"],\"names\":[],\"mappings\":\";AACC,OAAO,EAAC,SAAS,EAAC,cAAiB;AACnC,+BAAe;IACd,IAAI;QACH,OAAO;YACN,IAAI,EAAC,EAAE;YACP,YAAY,EAAE,EAAE;YAChB,UAAU,oBAAC,EAAE,CAAA;YACb,SAAS,EAAC,EAAE;YACZ,MAAM,EAAC,EAAE;YACT,QAAQ,EAAC,EAAE;SACX,CAAA;IACF,CAAC;IACD,MAAM,CAAC,OAAO;QACb,IAAI,CAAC,UAAU,GAAG,SAAK,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;IACtE,CAAC;IACD,OAAO;QACN,SAAS,mBAAC,EAAC,GAAG,EAAC,MAAM,EAAE,CAAC,KAAK,EAAC,EAAC,CAAC,IAAI,CAAC,CAAC,GAAG,OAAA;YACxC,IAAI,CAAC,IAAI,GAAE,GAAG,CAAC,MAAM,CAAC,OAAO,CAAA;QAC9B,CAAC,CAAC,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACR,OAAO;YACN,GAAG,CAAC,YAAY,CAChB,EAAC,KAAK,EAAC,CAAC,EAAC,CACR,CAAA;QACF,CAAC;QACD,OAAO,CAAC,IAAI,OAAA;YACX,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,GAAI,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;YACpG,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,4BAA4B,EAAC,GAAG,EAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YAC/F,GAAG,CAAC,UAAU,CACd,EAAC,GAAG,EAAC,iCAAiC,GAAE,kBAAkB,CAAC,SAAK,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,EAAC,CAC3F,CAAA;QACF,CAAC;KACD;CACD,EAAA\"}"} | |||
| @ -0,0 +1 @@ | |||
| {"code":"import { defineComponent } from \"vue\";\nimport { getList, childList } from \"@/api\";\nimport transformBrands from \"@/js/airport\";\nexport default defineComponent({\n data() {\n return {\n currentIndex: '',\n letter: \"\",\n clientInfo: new UTSJSONObject({}),\n indexList: [],\n certFront: '',\n carPic: '',\n certBack: '',\n };\n },\n onLoad(options) {\n this.clientInfo = UTS.JSON.parse(decodeURIComponent(options.clientInfo));\n uni.__f__('log', 'at pages/views/carOne.uvue:52', this.clientInfo.appOrderCarList[0].carSeries);\n },\n mounted() {\n getList().then((res = null) => {\n let list = transformBrands(res.result);\n this.indexList = list;\n });\n },\n methods: {\n scrollToIndex(letter = null) {\n this.letter = letter;\n this.currentIndex = letter;\n },\n getID(id = null, name = null) {\n uni.__f__('log', 'at pages/views/carOne.uvue:66', id);\n this.clientInfo.appOrderCarList[0].carSeries = name;\n // uni.__f__('log','at pages/views/carOne.uvue:68','1',this.clientInfo.appOrderCarList[0].carSeries );\n // uni.__f__('log','at pages/views/carOne.uvue:69',res.result);\n getApp().pid = id;\n uni.redirectTo({ url: '/pages/views/carTwo?clientInfo=' + encodeURIComponent(UTS.JSON.stringify(this.clientInfo))\n });\n },\n getBack() {\n uni.__f__('log', 'at pages/views/carOne.uvue:78', 1);\n uni.navigateBack({ delta: 1 });\n }\n }\n});\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/pages/views/carOne.uvue?vue&type=script&lang.uts.js.map","references":[],"uniExtApis":["uni.__f__","uni.redirectTo","uni.navigateBack"],"map":"{\"version\":3,\"file\":\"carOne.uvue?vue&type=script&lang.uts.js\",\"sourceRoot\":\"\",\"sources\":[\"carOne.uvue?vue&type=script&lang.uts\"],\"names\":[],\"mappings\":\";AACC,OAAO,EAAC,OAAO,EAAC,SAAS,EAAC,cAAiB;AAC3C,OAAO,eAAe,qBAAwB;AAC/C,+BAAe;IACb,IAAI;QACF,OAAO;YACL,YAAY,EAAE,EAAE;YACnB,MAAM,EAAC,EAAE;YACT,UAAU,oBAAC,EAAE,CAAA;YACV,SAAS,EAAE,EAAE;YAChB,SAAS,EAAC,EAAE;YACZ,MAAM,EAAC,EAAE;YACT,QAAQ,EAAC,EAAE;SACT,CAAC;IACJ,CAAC;IACD,MAAM,CAAC,OAAO;QACb,IAAI,CAAC,UAAU,GAAG,SAAK,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QACrE,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,+BAA+B,EAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC/F,CAAC;IACD,OAAO;QACN,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,OAAA;YACpB,IAAI,IAAI,GAAI,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;YACvC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,CAAC,CAAC,CAAA;IACF,CAAC;IACD,OAAO,EAAE;QACP,aAAa,CAAC,MAAM,OAAA;YACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;YAChB,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;QAC7B,CAAC;QACJ,KAAK,CAAC,EAAE,OAAA,EAAC,IAAI,OAAA;YACZ,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,+BAA+B,EAAC,EAAE,CAAC,CAAC;YACpD,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,GAAI,IAAI,CAAC;YACrD,sGAAsG;YACrG,+DAA+D;YAC/D,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC;YAClB,GAAG,CAAC,UAAU,CACd,EAAC,GAAG,EAAC,iCAAiC,GAAE,kBAAkB,CAAC,SAAK,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aACzF,CACD,CAAA;QAEH,CAAC;QACD,OAAO;YACN,GAAG,CAAC,KAAK,CAAC,KAAK,EAAC,+BAA+B,EAAC,CAAC,CAAC,CAAA;YAClD,GAAG,CAAC,YAAY,CAChB,EAAC,KAAK,EAAC,CAAC,EAAC,CACR,CAAA;QACF,CAAC;KACC;CACF,EAAC\"}"} | |||
| @ -1 +1 @@ | |||
| <view id="{{w}}" change:eS="{{uV.sS}}" eS="{{$eS[w]}}" class="{{['container', virtualHostClass]}}" style="{{virtualHostStyle}}" hidden="{{virtualHostHidden}}"><view class="header"><view class="header_info"><text class="header_texts" title="{{b}}">{{a}}</text><text class="header_info_icon">|</text><view bindtap="{{d}}" class="header_change"><text>切换</text><uni-icons u-i="6e052f20-0" bind:__l="__l" u-p="{{c||''}}"></uni-icons></view></view></view><view class="swiper"><image class="swiper-image" src="{{e}}"></image></view><view class="sales"><view class="sales_left">{{f}} <text>本月订单</text></view><view class="sales_right">{{g}} <text>销售额</text></view></view><view class="order_Entry_container" bindtap="{{j}}"><image class="order_Entry_image" src="{{h}}"></image><text style="color:#115881;font-weight:bold;margin-left:1rem">录入订单</text><uni-icons class="order_Entry_end" virtualHostClass="order_Entry_end" u-i="6e052f20-1" bind:__l="__l" u-p="{{i||''}}"></uni-icons></view><view wx:if="{{k}}" class="show_container"><view class="isshow-header"><uni-icons class="isshow-header-content-icon" virtualHostClass="isshow-header-content-icon" u-i="6e052f20-2" bind:__l="__l" u-p="{{l||''}}"></uni-icons><uni-easyinput bindinput="{{m}}" class="isshow-header-content-input" virtualHostClass="isshow-header-content-input" u-i="6e052f20-3" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o||''}}"/><text class="isshow-header-content-text" bindtap="{{p}}">搜索</text></view><view class="isshow-content"><text wx:for="{{q}}" wx:for-item="item" wx:key="b" class="isshow-content-text" bindtap="{{item.c}}">{{item.a}}</text></view></view><view wx:if="{{r}}" class="show_container_1"><image class="show_container_1_image" src="{{s}}"></image><view class="show_container_1_footer"><text>门店已经切换为{{t}}</text><button class="show_container_1_footer_button" bindtap="{{v}}">好的</button></view></view></view><wxs src="/common/uniView.wxs" module="uV"/> | |||
| <view id="{{x}}" change:eS="{{uV.sS}}" eS="{{$eS[x]}}" class="{{['container', virtualHostClass]}}" style="{{virtualHostStyle}}" hidden="{{virtualHostHidden}}"><view class="header"><view class="header_info"><text class="header_texts" title="{{b}}">{{a}}</text><text class="header_info_icon">|</text><view bindtap="{{d}}" class="header_change"><text>切换</text><uni-icons u-i="6e052f20-0" bind:__l="__l" u-p="{{c||''}}"></uni-icons></view></view></view><view class="swiper"><image class="swiper-image" src="{{e}}"></image></view><view class="sales"><view class="sales_left"><text>总订单</text><text>本月订单 : {{f}}</text><text>销售额:{{g}}</text></view></view><view class="sales"><view wx:for="{{h}}" wx:for-item="item" class="sales_left"><text>{{item.a}}</text><text>本月订单 : {{item.b}}</text><text>销售额:{{item.c}}</text></view></view><view class="order_Entry_container" bindtap="{{k}}"><image class="order_Entry_image" src="{{i}}"></image><text style="color:#115881;font-weight:bold;margin-left:1rem">录入订单</text><uni-icons class="order_Entry_end" virtualHostClass="order_Entry_end" u-i="6e052f20-1" bind:__l="__l" u-p="{{j||''}}"></uni-icons></view><view wx:if="{{l}}" class="show_container"><view class="isshow-header"><uni-icons class="isshow-header-content-icon" virtualHostClass="isshow-header-content-icon" u-i="6e052f20-2" bind:__l="__l" u-p="{{m||''}}"></uni-icons><uni-easyinput bindinput="{{n}}" class="isshow-header-content-input" virtualHostClass="isshow-header-content-input" u-i="6e052f20-3" bind:__l="__l" bindupdateModelValue="{{o}}" u-p="{{p||''}}"/><text class="isshow-header-content-text" bindtap="{{q}}">搜索</text></view><view class="isshow-content"><text wx:for="{{r}}" wx:for-item="item" wx:key="b" class="isshow-content-text" bindtap="{{item.c}}">{{item.a}}</text></view></view><view wx:if="{{s}}" class="show_container_1"><image class="show_container_1_image" src="{{t}}"></image><view class="show_container_1_footer"><text>门店已经切换为{{v}}</text><button class="show_container_1_footer_button" bindtap="{{w}}">好的</button></view></view></view><wxs src="/common/uniView.wxs" module="uV"/> | |||
| @ -0,0 +1,677 @@ | |||
| "use strict"; | |||
| const common_vendor = require("../../common/vendor.js"); | |||
| const api = require("../../api.js"); | |||
| const common_assets = require("../../common/assets.js"); | |||
| const _sfc_main = common_vendor.defineComponent({ | |||
| data() { | |||
| return { | |||
| uploadConfig: new UTSJSONObject({ | |||
| // 上传地址 | |||
| url: "https://gpt.aiym.run/contract/miniapp/file/upload", | |||
| // 文件字段名 | |||
| name: "file", | |||
| // 请求头 | |||
| header: new UTSJSONObject({}), | |||
| // 附带的表单数据 | |||
| formData: new UTSJSONObject({ | |||
| "biz": "cert" | |||
| }), | |||
| // 是否开启实际上传 | |||
| enabled: true | |||
| }), | |||
| clientInfo: new UTSJSONObject({ | |||
| appOrderCarList: [ | |||
| new UTSJSONObject({ | |||
| buyMoney: 0, | |||
| buyTax: 0, | |||
| carModel: "", | |||
| carNo: "", | |||
| carSeries: "", | |||
| carType: "", | |||
| engineNo: "", | |||
| newCar: 0, | |||
| useType: "", | |||
| vin: "" | |||
| }) | |||
| ], | |||
| appOrderVoucherList: [ | |||
| new UTSJSONObject({ | |||
| dealerAddress: "", | |||
| firstBeneficiary: "", | |||
| packageMoney: 0, | |||
| serviceMoney: 0 | |||
| }) | |||
| ], | |||
| carPic: "", | |||
| certBack: "", | |||
| certFront: "", | |||
| custAddress: "", | |||
| custCardNo: "", | |||
| custName: "", | |||
| custPhone: "", | |||
| custType: 0, | |||
| invoiceUrl: "", | |||
| payType: "全款", | |||
| payVoucherUrl: "", | |||
| payee: "", | |||
| productName: "自动填写所选商品服务分类", | |||
| productServiceYear: 1, | |||
| saleName: "", | |||
| salePort: "售前", | |||
| status: 0, | |||
| storeName: "自动填写所选择的门店" | |||
| }), | |||
| fileList1: [], | |||
| fileList2: [], | |||
| departments: ["售前", "售后", "二网车"], | |||
| carType: ["燃油车", "新能源"], | |||
| useType: ["非营运", "营运"], | |||
| carBrandIndex: -1, | |||
| useTypeIndex: -1, | |||
| serviceAges: ["1年", "2年", "3年"], | |||
| serviceAgeIndex: -1, | |||
| payees: [], | |||
| payeeIndex: -1, | |||
| screenHeight: 0, | |||
| curHeight: 0, | |||
| // 扫描 | |||
| positiveImg: "/static/image/组件 4 – 1.png", | |||
| certFront: "", | |||
| carPic: "", | |||
| certBack: "", | |||
| // 反面身份证 | |||
| reverseImg: "/static/image/组 71663.png", | |||
| // 行车驾驶证 | |||
| carImg: "/static/image/组件 2 – 1.png" | |||
| //自己图片路径 | |||
| }; | |||
| }, | |||
| onLoad(options) { | |||
| api.isToken(); | |||
| this.clientInfo.storeName = getApp().storeName || "自动填写所选择的门店"; | |||
| this.clientInfo.productName = getApp().productName || "自动填写所选商品服务分类"; | |||
| this.clientInfo.appOrderVoucherList[0].dealerAddress = getApp().dealerAddress; | |||
| for (var index = 0; index < getApp().allMsg.length; index++) { | |||
| this.payees.push(getApp().allMsg[index].storeName); | |||
| } | |||
| this.clientInfo.payee = getApp().storeName; | |||
| this.uploadConfig.header = new UTSJSONObject({ | |||
| "X-Access-Token": common_vendor.index.getStorageSync("token") | |||
| }); | |||
| let clientInfo = UTS.JSON.parse(decodeURIComponent(options.clientInfo)); | |||
| if (clientInfo) { | |||
| this.clientInfo = UTS.JSON.parse(decodeURIComponent(options.clientInfo)); | |||
| this.certFront = getApp().certFront; | |||
| this.carPic = getApp().carPic; | |||
| this.certBack = getApp().certBack; | |||
| } | |||
| }, | |||
| onUpload() { | |||
| common_vendor.index.offKeyboardHeightChange(); | |||
| }, | |||
| methods: { | |||
| // 凭证上传函数 | |||
| deletePic(event = null) { | |||
| this[`fileList${event.name}`].splice(event.index, 1); | |||
| }, | |||
| // 新增图片 | |||
| afterRead(event = null) { | |||
| return common_vendor.__awaiter(this, void 0, void 0, function* () { | |||
| let lists = [].concat(event.file); | |||
| let fileListLen = this[`fileList${event.name}`].length; | |||
| lists.map((item) => { | |||
| this[`fileList${event.name}`].push(new UTSJSONObject(Object.assign(Object.assign({}, item), { status: "uploading", message: "上传中" }))); | |||
| }); | |||
| for (let i = 0; i < lists.length; i++) { | |||
| const result = yield this.uploadFilePromise(lists[i].url, event.name); | |||
| let item = this[`fileList${event.name}`][fileListLen]; | |||
| this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, { | |||
| status: "success", | |||
| message: "", | |||
| url: result | |||
| })); | |||
| fileListLen++; | |||
| } | |||
| }); | |||
| }, | |||
| uploadFilePromise(url = null, name = null) { | |||
| let token = common_vendor.index.getStorageSync("token"); | |||
| return new Promise((resolve, reject) => { | |||
| common_vendor.index.uploadFile({ | |||
| url: "https://www.shengchuangyunkong.com/contract/miniapp/file/upload", | |||
| filePath: url, | |||
| name: "file", | |||
| formData: new UTSJSONObject({ | |||
| biz: "test" | |||
| }), | |||
| header: new UTSJSONObject({ | |||
| "X-Access-Token": token | |||
| }), | |||
| success: (res) => { | |||
| if (name == "1") { | |||
| this.clientInfo.payVoucherUrl = UTS.JSON.parse(res.data).message; | |||
| setTimeout(() => { | |||
| resolve(res.data.data); | |||
| }, 1e3); | |||
| } else { | |||
| this.clientInfo.invoiceUrl = UTS.JSON.parse(res.data).message; | |||
| setTimeout(() => { | |||
| resolve(res.data.data); | |||
| }, 1e3); | |||
| } | |||
| } | |||
| }); | |||
| }); | |||
| }, | |||
| isEmpty(value = null) { | |||
| if (value === null || value === void 0) | |||
| return false; | |||
| if (typeof value === "string" && value.trim() === "") | |||
| return false; | |||
| if (Array.isArray(value) && value.length === 0) | |||
| return false; | |||
| if (typeof value === "object" && Object.keys(value).length === 0) | |||
| return false; | |||
| return true; | |||
| }, | |||
| get_to() { | |||
| common_vendor.index.__f__("log", "at pages/index/PayPal_pinpai.uvue:418", "suss", UTS.JSON.parse(UTS.JSON.stringify(this.clientInfo))); | |||
| for (var i in this.clientInfo) { | |||
| if (typeof this.clientInfo[i] == "object") { | |||
| for (var j in this.clientInfo[i]) { | |||
| if (!this.isEmpty(this.clientInfo[i][j]) && j != "carNo") { | |||
| common_vendor.index.showToast({ | |||
| title: "提交失败,请检查字段是否未填!", | |||
| icon: "error", | |||
| duration: 500, | |||
| success: (res) => { | |||
| }, | |||
| fail: (res) => { | |||
| } | |||
| }); | |||
| return false; | |||
| } | |||
| } | |||
| } else { | |||
| if (!this.isEmpty(this.clientInfo[i])) { | |||
| common_vendor.index.showToast({ | |||
| title: "提交失败,请检查字段是否未填!", | |||
| icon: "error", | |||
| duration: 500, | |||
| success: (res) => { | |||
| }, | |||
| fail: (res) => { | |||
| } | |||
| }); | |||
| return false; | |||
| } | |||
| } | |||
| } | |||
| api.add(this.clientInfo).then((res = null) => { | |||
| if (res.success) { | |||
| common_vendor.index.showToast({ | |||
| title: "提交成功", | |||
| icon: "success", | |||
| duration: 500, | |||
| success: (res2) => { | |||
| }, | |||
| fail: (res2) => { | |||
| } | |||
| }); | |||
| common_vendor.index.switchTab({ url: "/pages/index/dingdan" }); | |||
| } else { | |||
| common_vendor.index.showToast({ | |||
| title: "提交失败,请检查格式!", | |||
| icon: "error", | |||
| duration: 500, | |||
| success: (res2) => { | |||
| }, | |||
| fail: (res2) => { | |||
| } | |||
| }); | |||
| } | |||
| }).catch((err = null) => { | |||
| common_vendor.index.__f__("log", "at pages/index/PayPal_pinpai.uvue:477", "err", err); | |||
| }); | |||
| }, | |||
| getCar() { | |||
| getApp().flag = 1; | |||
| common_vendor.index.navigateTo({ | |||
| url: "/pages/views/carOne?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo)) | |||
| }); | |||
| getApp().certFront = this.certFront; | |||
| getApp().carPic = this.carPic; | |||
| getApp().certBack = this.certBack; | |||
| }, | |||
| toBack() { | |||
| common_vendor.index.navigateBack({ delta: 1 }); | |||
| }, | |||
| handleDepartmentChange(e = null) { | |||
| this.clientInfo.salePort = e; | |||
| }, | |||
| // 修改车辆类型 | |||
| bindCarBrandChanges(e = null) { | |||
| this.clientInfo.appOrderCarList[0].carType = this.carType[e.detail.value]; | |||
| }, | |||
| // 修改车辆类型 | |||
| binduseTypeChanges(e = null) { | |||
| this.clientInfo.appOrderCarList[0].useType = this.useType[e.detail.value]; | |||
| }, | |||
| // 取服务年限 | |||
| bindServiceAgeChange(e = null) { | |||
| this.serviceAgeIndex = e.detail.value; | |||
| if (this.serviceAges[e.detail.value] == "1年") { | |||
| this.clientInfo.productServiceYear = 1; | |||
| } else if (this.serviceAges[e.detail.value] == "2年") { | |||
| this.clientInfo.productServiceYear = 2; | |||
| } else { | |||
| this.clientInfo.productServiceYear = 3; | |||
| } | |||
| }, | |||
| // 选择收款方 | |||
| bindPayeeChange(e = null) { | |||
| this.payeeIndex = e.detail.value; | |||
| this.clientInfo.payee = this.payees[e.detail.value]; | |||
| }, | |||
| msToDate(msec = null) { | |||
| let datetime = new Date(msec); | |||
| let year = datetime.getFullYear(); | |||
| let month = datetime.getMonth(); | |||
| let date = datetime.getDate(); | |||
| let hour = datetime.getHours(); | |||
| let minute = datetime.getMinutes(); | |||
| let second = datetime.getSeconds(); | |||
| let result1 = year + "-" + (month + 1 >= 10 ? month + 1 : "0" + (month + 1)) + "-" + (date + 1 < 10 ? "0" + date : date) + " " + (hour + 1 < 10 ? "0" + hour : hour) + ":" + (minute + 1 < 10 ? "0" + minute : minute) + ":" + (second + 1 < 10 ? "0" + second : second); | |||
| let result2 = year + "-" + (month + 1 >= 10 ? month + 1 : "0" + (month + 1)) + "-" + (date + 1 < 10 ? "0" + date : date); | |||
| let result = new UTSJSONObject({ | |||
| hasTime: result1, | |||
| withoutTime: result2 | |||
| }); | |||
| return result; | |||
| }, | |||
| // 修改生效时间 | |||
| changeEffectiveTime(e = null) { | |||
| var dateTime = new Date(e); | |||
| dateTime.setDate(dateTime.getDate() + 2); | |||
| dateTime = new Date(dateTime); | |||
| this.clientInfo.appOrderVoucherList[0].effectiveTime = this.msToDate(dateTime).withoutTime; | |||
| }, | |||
| changeTime(e = null) { | |||
| common_vendor.index.__f__("log", "at pages/index/PayPal_pinpai.uvue:569", e); | |||
| if (this.clientInfo.appOrderVoucherList[0].effectiveTime) { | |||
| var dateTime = new Date(this.clientInfo.appOrderVoucherList[0].effectiveTime); | |||
| let year = Number(dateTime.getFullYear()) + Number(e.detail.value); | |||
| dateTime.setFullYear(year); | |||
| dateTime = new Date(dateTime); | |||
| this.clientInfo.appOrderVoucherList[0].endTime = this.msToDate(dateTime).withoutTime; | |||
| } else { | |||
| common_vendor.index.showToast({ | |||
| title: "请先选择生效时间!", | |||
| icon: "error", | |||
| duration: 500, | |||
| success: (res) => { | |||
| }, | |||
| fail: (res) => { | |||
| } | |||
| }); | |||
| } | |||
| }, | |||
| changebuyTax() { | |||
| this.clientInfo.appOrderCarList[0].buyTax = (this.clientInfo.appOrderCarList[0].buyMoney / 11.3).toFixed(2); | |||
| }, | |||
| // 身份证正面上传 | |||
| uploadPositive() { | |||
| common_vendor.index.chooseImage({ | |||
| count: 1, | |||
| sizeType: ["original", "compressed"], | |||
| sourceType: ["album", "camera"], | |||
| success: (res) => { | |||
| let filePath = res.tempFilePaths[0]; | |||
| let token = common_vendor.index.getStorageSync("token"); | |||
| this.uploadIdentify(token, "front", filePath, "sfz"); | |||
| } | |||
| }); | |||
| }, | |||
| // 身份证反面上传 | |||
| uploadReverse() { | |||
| common_vendor.index.chooseImage({ | |||
| count: 1, | |||
| sizeType: ["original", "compressed"], | |||
| sourceType: ["album", "camera"], | |||
| success: (res) => { | |||
| let filePath = res.tempFilePaths[0]; | |||
| let token = common_vendor.index.getStorageSync("token"); | |||
| this.uploadIdentify(token, "back", filePath, "sfz"); | |||
| } | |||
| }); | |||
| }, | |||
| uploadCarCert() { | |||
| common_vendor.index.chooseImage({ | |||
| count: 1, | |||
| sizeType: ["original", "compressed"], | |||
| sourceType: ["album", "camera"], | |||
| success: (res) => { | |||
| let filePath = res.tempFilePaths[0]; | |||
| let token = common_vendor.index.getStorageSync("token"); | |||
| this.uploadIdentify(token, "", filePath, "carCert"); | |||
| } | |||
| }); | |||
| }, | |||
| // 上传识别 | |||
| uploadIdentify(token = null, side = null, filePath = null, type = null) { | |||
| common_vendor.index.uploadFile({ | |||
| url: "https://www.shengchuangyunkong.com/contract/miniapp/file/upload", | |||
| filePath, | |||
| name: "file", | |||
| formData: new UTSJSONObject({ | |||
| "biz": "cert" | |||
| }), | |||
| header: new UTSJSONObject({ | |||
| "X-Access-Token": token | |||
| }), | |||
| success: (res) => { | |||
| let image = UTS.JSON.parse(res.data).message; | |||
| if (type == "sfz") { | |||
| api.idCardInfo(new UTSJSONObject({ "side": side, "url": UTS.JSON.parse(res.data).message })).then((res2 = null) => { | |||
| if (res2.success) { | |||
| if (side == "front") { | |||
| this.clientInfo.custName = res2.result.name; | |||
| this.clientInfo.appOrderVoucherList[0].firstBeneficiary = res2.result.name; | |||
| this.clientInfo.custAddress = res2.result.address; | |||
| this.clientInfo.custCardNo = res2.result.idCard; | |||
| this.clientInfo.certFront = image; | |||
| this.certFront = filePath; | |||
| } else { | |||
| this.clientInfo.certBack = image; | |||
| this.certBack = filePath; | |||
| } | |||
| } else { | |||
| common_vendor.index.showToast({ | |||
| title: "身份证识别错误,请重新上传!", | |||
| icon: "error", | |||
| duration: 500, | |||
| success: (res3) => { | |||
| }, | |||
| fail: (res3) => { | |||
| } | |||
| }); | |||
| } | |||
| }).catch((err = null) => { | |||
| common_vendor.index.__f__("log", "at pages/index/PayPal_pinpai.uvue:673", "catch: ", err); | |||
| }); | |||
| } else if (type == "carCert") { | |||
| api.carCert(new UTSJSONObject({ "url": UTS.JSON.parse(res.data).message })).then((res2 = null) => { | |||
| if (res2.success) { | |||
| this.clientInfo.appOrderCarList[0].vin = res2.result.VinNo; | |||
| this.clientInfo.carPic = image; | |||
| this.carPic = filePath; | |||
| this.clientInfo.appOrderCarList[0].engineNo = res2.result.EngineNo; | |||
| this.clientInfo.appOrderCarList[0].carModel = res2.result.CarModel; | |||
| } else { | |||
| common_vendor.index.showToast({ | |||
| title: "识别错误,请重新上传!", | |||
| icon: "error", | |||
| duration: 500, | |||
| success: (res3) => { | |||
| }, | |||
| fail: (res3) => { | |||
| } | |||
| }); | |||
| } | |||
| }).catch((err = null) => { | |||
| common_vendor.index.__f__("log", "at pages/index/PayPal_pinpai.uvue:700", "catch: ", err); | |||
| }); | |||
| } | |||
| }, | |||
| fail: (err) => { | |||
| common_vendor.index.__f__("log", "at pages/index/PayPal_pinpai.uvue:707", err); | |||
| } | |||
| }); | |||
| }, | |||
| onChange(e = null) { | |||
| if (e == "个人") { | |||
| this.clientInfo.custType = 0; | |||
| } else { | |||
| this.clientInfo.custType = 1; | |||
| } | |||
| }, | |||
| onChanges(e = null) { | |||
| if (e == "是") { | |||
| this.clientInfo.appOrderCarList[0].newCar = 1; | |||
| } else { | |||
| this.clientInfo.appOrderCarList[0].newCar = 0; | |||
| } | |||
| } | |||
| } | |||
| }); | |||
| if (!Array) { | |||
| const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); | |||
| const _easycom_l_radio2 = common_vendor.resolveComponent("l-radio"); | |||
| const _easycom_l_radio_group2 = common_vendor.resolveComponent("l-radio-group"); | |||
| const _easycom_uv_upload2 = common_vendor.resolveComponent("uv-upload"); | |||
| (_easycom_uni_icons2 + _easycom_l_radio2 + _easycom_l_radio_group2 + _easycom_uv_upload2)(); | |||
| } | |||
| const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; | |||
| const _easycom_l_radio = () => "../../uni_modules/lime-radio/components/l-radio/l-radio.js"; | |||
| const _easycom_l_radio_group = () => "../../uni_modules/lime-radio/components/l-radio-group/l-radio-group.js"; | |||
| const _easycom_uv_upload = () => "../../uni_modules/uv-upload/components/uv-upload/uv-upload.js"; | |||
| if (!Math) { | |||
| (_easycom_uni_icons + _easycom_l_radio + _easycom_l_radio_group + _easycom_uv_upload)(); | |||
| } | |||
| function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { | |||
| return common_vendor.e({ | |||
| a: common_vendor.p({ | |||
| type: "left", | |||
| size: "30", | |||
| color: "#c2d4de" | |||
| }), | |||
| b: common_vendor.o((...args) => $options.toBack && $options.toBack(...args)), | |||
| c: common_vendor.w(({ | |||
| checked | |||
| }, s0, i0) => { | |||
| return { | |||
| a: checked, | |||
| b: !checked, | |||
| c: i0, | |||
| d: s0 | |||
| }; | |||
| }, { | |||
| name: "icon", | |||
| path: "c", | |||
| vueId: "2d7e3f76-1" | |||
| }), | |||
| d: common_assets._imports_0$4, | |||
| e: common_assets._imports_1$3, | |||
| f: common_vendor.p({ | |||
| checked: $data.clientInfo.payType === "全款", | |||
| label: "全款", | |||
| fontSize: "1rem" | |||
| }), | |||
| g: common_vendor.w(({ | |||
| checked | |||
| }, s0, i0) => { | |||
| return { | |||
| a: checked, | |||
| b: !checked, | |||
| c: i0, | |||
| d: s0 | |||
| }; | |||
| }, { | |||
| name: "icon", | |||
| path: "g", | |||
| vueId: "2d7e3f76-3,2d7e3f76-2" | |||
| }), | |||
| h: common_assets._imports_0$4, | |||
| i: common_assets._imports_1$3, | |||
| j: common_vendor.p({ | |||
| checked: $data.clientInfo.custType == 0 ? true : false, | |||
| value: "个人", | |||
| label: "个人", | |||
| fontSize: "1rem" | |||
| }), | |||
| k: common_vendor.w(({ | |||
| checked | |||
| }, s0, i0) => { | |||
| return { | |||
| a: checked, | |||
| b: !checked, | |||
| c: i0, | |||
| d: s0 | |||
| }; | |||
| }, { | |||
| name: "icon", | |||
| path: "k", | |||
| vueId: "2d7e3f76-4,2d7e3f76-2" | |||
| }), | |||
| l: common_assets._imports_0$4, | |||
| m: common_assets._imports_1$3, | |||
| n: common_vendor.p({ | |||
| checked: $data.clientInfo.custType == 1 ? true : false, | |||
| value: "公司", | |||
| label: "公司", | |||
| fontSize: "1rem" | |||
| }), | |||
| o: common_vendor.o($options.onChange), | |||
| p: $data.clientInfo.certFront == "" ? $data.positiveImg : $data.certFront, | |||
| q: $data.certFront == "" ? true : false | |||
| }, ($data.certFront == "" ? true : false) ? {} : {}, { | |||
| r: common_vendor.o((...args) => $options.uploadPositive && $options.uploadPositive(...args)), | |||
| s: $data.clientInfo.certBack == "" ? $data.reverseImg : $data.certBack, | |||
| t: $data.certBack == "" ? true : false | |||
| }, ($data.certBack == "" ? true : false) ? {} : {}, { | |||
| v: common_vendor.o((...args) => $options.uploadReverse && $options.uploadReverse(...args)), | |||
| w: $data.clientInfo.carPic == "" ? $data.carImg : $data.carPic, | |||
| x: $data.carPic == "" ? true : false | |||
| }, ($data.carPic == "" ? true : false) ? {} : {}, { | |||
| y: common_vendor.o((...args) => $options.uploadCarCert && $options.uploadCarCert(...args)), | |||
| z: common_assets._imports_3, | |||
| A: common_vendor.t($data.clientInfo.productName), | |||
| B: common_vendor.t($data.clientInfo.storeName), | |||
| C: $data.clientInfo.custName, | |||
| D: common_vendor.o(($event) => $data.clientInfo.custName = $event.detail.value), | |||
| E: $data.clientInfo.custAddress, | |||
| F: common_vendor.o(($event) => $data.clientInfo.custAddress = $event.detail.value), | |||
| G: $data.clientInfo.custCardNo, | |||
| H: common_vendor.o(($event) => $data.clientInfo.custCardNo = $event.detail.value), | |||
| I: $data.clientInfo.custPhone, | |||
| J: common_vendor.o(($event) => $data.clientInfo.custPhone = $event.detail.value), | |||
| K: common_vendor.f($data.departments, (item, k0, i0) => { | |||
| return { | |||
| a: common_vendor.w(({ | |||
| checked | |||
| }, s1, i1) => { | |||
| return { | |||
| a: checked, | |||
| b: !checked, | |||
| c: i1, | |||
| d: s1 | |||
| }; | |||
| }, { | |||
| name: "icon", | |||
| path: "K[" + i0 + "].a", | |||
| vueId: "2d7e3f76-6-" + i0 + ",2d7e3f76-5" | |||
| }), | |||
| b: "2d7e3f76-6-" + i0 + ",2d7e3f76-5", | |||
| c: common_vendor.p({ | |||
| value: item, | |||
| checked: $data.clientInfo.salePort === item | |||
| }), | |||
| d: common_vendor.t(item), | |||
| e: item | |||
| }; | |||
| }), | |||
| L: common_assets._imports_0$4, | |||
| M: common_assets._imports_1$3, | |||
| N: common_vendor.o($options.handleDepartmentChange), | |||
| O: $data.clientInfo.saleName, | |||
| P: common_vendor.o(($event) => $data.clientInfo.saleName = $event.detail.value), | |||
| Q: common_assets._imports_3, | |||
| R: common_vendor.t($data.clientInfo.appOrderCarList[0].carSeries || "请选择车辆品牌 >"), | |||
| S: common_vendor.o((...args) => $options.getCar && $options.getCar(...args)), | |||
| T: $data.clientInfo.appOrderCarList[0].carModel, | |||
| U: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].carModel = $event.detail.value), | |||
| V: $data.clientInfo.appOrderCarList[0].vin, | |||
| W: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].vin = $event.detail.value), | |||
| X: common_vendor.t($data.clientInfo.appOrderCarList[0].carType || "请选择车辆类型 >"), | |||
| Y: common_vendor.o((...args) => $options.bindCarBrandChanges && $options.bindCarBrandChanges(...args)), | |||
| Z: $data.carBrandIndex, | |||
| aa: $data.carType, | |||
| ab: common_vendor.t($data.clientInfo.appOrderCarList[0].useType || "请选择使用性质 >"), | |||
| ac: common_vendor.o((...args) => $options.binduseTypeChanges && $options.binduseTypeChanges(...args)), | |||
| ad: $data.useTypeIndex, | |||
| ae: $data.useType, | |||
| af: common_vendor.w(({ | |||
| checked | |||
| }, s0, i0) => { | |||
| return { | |||
| a: checked, | |||
| b: !checked, | |||
| c: i0, | |||
| d: s0 | |||
| }; | |||
| }, { | |||
| name: "icon", | |||
| path: "af", | |||
| vueId: "2d7e3f76-8,2d7e3f76-7" | |||
| }), | |||
| ag: common_assets._imports_0$4, | |||
| ah: common_assets._imports_1$3, | |||
| ai: common_vendor.p({ | |||
| checked: $data.clientInfo.appOrderCarList[0].newCar == 1 ? true : false, | |||
| value: "是", | |||
| label: "是", | |||
| fontSize: "1rem" | |||
| }), | |||
| aj: common_vendor.w(({ | |||
| checked | |||
| }, s0, i0) => { | |||
| return { | |||
| a: checked, | |||
| b: !checked, | |||
| c: i0, | |||
| d: s0 | |||
| }; | |||
| }, { | |||
| name: "icon", | |||
| path: "aj", | |||
| vueId: "2d7e3f76-9,2d7e3f76-7" | |||
| }), | |||
| ak: common_assets._imports_0$4, | |||
| al: common_assets._imports_1$3, | |||
| am: common_vendor.p({ | |||
| checked: $data.clientInfo.appOrderCarList[0].newCar == 0 ? true : false, | |||
| value: "否", | |||
| label: "否", | |||
| fontSize: "1rem" | |||
| }), | |||
| an: common_vendor.o($options.onChanges), | |||
| ao: $data.clientInfo.appOrderCarList[0].carNo, | |||
| ap: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].carNo = $event.detail.value), | |||
| aq: $data.clientInfo.appOrderCarList[0].engineNo, | |||
| ar: common_vendor.o(($event) => $data.clientInfo.appOrderCarList[0].engineNo = $event.detail.value), | |||
| as: common_assets._imports_3, | |||
| at: common_assets._imports_6, | |||
| av: common_vendor.o($options.afterRead), | |||
| aw: common_vendor.o($options.deletePic), | |||
| ax: common_vendor.p({ | |||
| fileList: $data.fileList1, | |||
| name: "1", | |||
| multiple: true, | |||
| maxCount: 1 | |||
| }), | |||
| ay: common_assets._imports_6, | |||
| az: common_vendor.o($options.afterRead), | |||
| aA: common_vendor.o($options.deletePic), | |||
| aB: common_vendor.p({ | |||
| fileList: $data.fileList2, | |||
| name: "2", | |||
| multiple: true, | |||
| maxCount: 1 | |||
| }), | |||
| aC: common_vendor.o((...args) => $options.get_to && $options.get_to(...args)), | |||
| aD: common_vendor.sei(_ctx.virtualHostId, "view") | |||
| }); | |||
| } | |||
| const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2d7e3f76"]]); | |||
| wx.createPage(MiniProgramPage); | |||
| //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/PayPal_pinpai.js.map | |||
| @ -0,0 +1,10 @@ | |||
| { | |||
| "navigationBarTitleText": "", | |||
| "navigationStyle": "custom", | |||
| "usingComponents": { | |||
| "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", | |||
| "l-radio": "../../uni_modules/lime-radio/components/l-radio/l-radio", | |||
| "l-radio-group": "../../uni_modules/lime-radio/components/l-radio-group/l-radio-group", | |||
| "uv-upload": "../../uni_modules/uv-upload/components/uv-upload/uv-upload" | |||
| } | |||
| } | |||
| @ -0,0 +1,160 @@ | |||
| @import "../../uvue.wxss"; | |||
| :host{display:flex;flex-direction:column} | |||
| /** | |||
| * 这里是uni-app内置的常用样式变量 | |||
| * | |||
| * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 | |||
| * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App | |||
| * | |||
| */ | |||
| /** | |||
| * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 | |||
| * | |||
| * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 | |||
| */ | |||
| /* 颜色变量 */ | |||
| /* 行为相关颜色 */ | |||
| /* 文字基本颜色 */ | |||
| /* 背景颜色 */ | |||
| /* 边框颜色 */ | |||
| /* 尺寸变量 */ | |||
| /* 文字尺寸 */ | |||
| /* 图片尺寸 */ | |||
| /* Border Radius */ | |||
| /* 水平间距 */ | |||
| /* 垂直间距 */ | |||
| /* 透明度 */ | |||
| /* 文章场景相关 */ | |||
| .containers.data-v-2d7e3f76 { | |||
| height: 100vh; | |||
| width: 100%; | |||
| background-color: #fff; | |||
| overflow-y: scroll; | |||
| } | |||
| .footer.data-v-2d7e3f76 { | |||
| position: fixed; | |||
| bottom: 0; | |||
| left: 0; | |||
| } | |||
| .container.data-v-2d7e3f76::-webkit-scrollbar { | |||
| display: none; | |||
| } | |||
| .section.data-v-2d7e3f76 { | |||
| border-bottom: 1rpx solid #eee; | |||
| margin: 0 1rem 0 1rem; | |||
| } | |||
| .sections.data-v-2d7e3f76 { | |||
| margin: 0 1rem 1rem 1rem; | |||
| } | |||
| .form-item.data-v-2d7e3f76 { | |||
| display: flex; | |||
| flex-direction: row; | |||
| justify-content: space-between; | |||
| align-items: center; | |||
| padding: 0.5rem 0; | |||
| border-bottom: 0.1rem solid #f2f2f2; | |||
| color: #767676; | |||
| } | |||
| .labels.data-v-2d7e3f76 { | |||
| color: red; | |||
| display: flex; | |||
| justify-content: center; | |||
| align-items: center; | |||
| } | |||
| .label.data-v-2d7e3f76 { | |||
| font-size: 28rpx; | |||
| color: #666; | |||
| width: 200rpx; | |||
| } | |||
| .input.data-v-2d7e3f76 { | |||
| flex: 1; | |||
| text-align: right; | |||
| font-size: 28rpx; | |||
| color: #737373; | |||
| height: 100%; | |||
| } | |||
| .picker.data-v-2d7e3f76 { | |||
| flex: 1; | |||
| } | |||
| .picker-text.data-v-2d7e3f76 { | |||
| text-align: right; | |||
| color: #737373; | |||
| font-size: 0.8rem; | |||
| } | |||
| .radio-group.data-v-2d7e3f76 { | |||
| display: flex; | |||
| flex: 1; | |||
| justify-content: flex-end; | |||
| flex-direction: row; | |||
| } | |||
| .radio-label.data-v-2d7e3f76 { | |||
| padding: 0; | |||
| margin-left: 10rpx; | |||
| display: flex; | |||
| flex-direction: row; | |||
| font-size: 1rem; | |||
| transform: scale(0.7); | |||
| } | |||
| .value.data-v-2d7e3f76 { | |||
| flex: 1; | |||
| text-align: right; | |||
| color: #737373; | |||
| font-size: 0.8rem; | |||
| } | |||
| .idCard-box.data-v-2d7e3f76 { | |||
| margin-top: 10%; | |||
| width: 100%; | |||
| height: 50%; | |||
| display: flex; | |||
| flex-direction: row; | |||
| /* background-color: red; */ | |||
| flex-wrap: wrap; | |||
| } | |||
| .idCard-box .reverse.data-v-2d7e3f76 { | |||
| height: 30%; | |||
| width: 40%; | |||
| display: flex; | |||
| align-items: center; | |||
| justify-content: center; | |||
| margin: 0 5% 0 5%; | |||
| } | |||
| .idCard-box .reverse image.data-v-2d7e3f76 { | |||
| width: 100%; | |||
| height: 100%; | |||
| } | |||
| .idCard-box .reverse text.data-v-2d7e3f76 { | |||
| position: absolute; | |||
| text-shadow: 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black; | |||
| font-size: 0.8rem; | |||
| color: #fff; | |||
| } | |||
| /* 表单分区样式 */ | |||
| .con_size.data-v-2d7e3f76 { | |||
| font-size: 1rem; | |||
| font-weight: bold; | |||
| margin: 1rem 0; | |||
| color: #000000; | |||
| display: flex; | |||
| flex-direction: row; | |||
| align-items: center; | |||
| } | |||
| .con_size_img.data-v-2d7e3f76 { | |||
| height: 100%; | |||
| width: 2%; | |||
| margin-right: 2%; | |||
| } | |||
| .form-button.data-v-2d7e3f76 { | |||
| width: 100%; | |||
| height: 100%; | |||
| display: flex; | |||
| align-items: center; | |||
| justify-content: center; | |||
| } | |||
| .button.data-v-2d7e3f76 { | |||
| height: 100%; | |||
| width: 100%; | |||
| background-color: #044f7a; | |||
| color: #ffffff; | |||
| border-radius: 1rem; | |||
| } | |||
| @ -0,0 +1,213 @@ | |||
| "use strict"; | |||
| const common_vendor = require("../../common/vendor.js"); | |||
| const api = require("../../api.js"); | |||
| const common_assets = require("../../common/assets.js"); | |||
| const _sfc_main = common_vendor.defineComponent({ | |||
| data() { | |||
| return { | |||
| records: [ | |||
| new UTSJSONObject({ | |||
| id: "1897277583591075841", | |||
| orderNum: "CXSC20250305302395", | |||
| productName: "畅行无忧", | |||
| productServiceYear: "1", | |||
| productMoney: null, | |||
| productContractTemp: "https://img.augcl.com/temp/test_car_1741181182533.pdf", | |||
| productType: "普通产品", | |||
| storeName: "上海测试门店", | |||
| custName: "陈朋涛", | |||
| custAddress: "山东省滕州市龙阳镇", | |||
| custCardNo: "532101198906010015", | |||
| custPhone: "13456788765", | |||
| salePort: "售前", | |||
| createBy: "tanzs", | |||
| saleName: "lj", | |||
| payType: "全款", | |||
| custType: 0, | |||
| certFront: "https://img.augcl.com/cert/4uUVhHO3qByFbeb95285d2741f5437d370fea46a67b9_1740859563993.jpg", | |||
| certBack: "https://img.augcl.com/cert/J4X2ZFsgotLXdcc88281956f0b3fb63708bb497c1698_1740859570051.jpg", | |||
| carPic: "https://img.augcl.com/cert/w2Aoeo53vXfBb3f85e86690e90e240e1111c770e6f26_1740859575127.jpg", | |||
| busLicense: null, | |||
| createTime: "2025-03-05 21:26:39", | |||
| updateBy: null, | |||
| updateTime: null, | |||
| sysOrgCode: null, | |||
| status: 1, | |||
| contractUrl: "https://img.augcl.com/contract/CXSC20250305302395_1741181199845.pdf", | |||
| payee: "上海测试门店", | |||
| payeeTime: null, | |||
| payVoucherUrl: "https://img.augcl.com/test/F5n9sMOVIOBs363af867a4affb43fcf1cc64bb01916d_1740859625764.png", | |||
| salePort_dictText: "售前", | |||
| custType_dictText: "个人", | |||
| status_dictText: "已生效" | |||
| }) | |||
| ], | |||
| cars: [ | |||
| new UTSJSONObject({ | |||
| id: "1897277583754653697", | |||
| carSeries: "比亚迪海狮05 EV2025款 低配版", | |||
| vin: "LC0CE6DB8S4040471", | |||
| carType: "燃油车", | |||
| useType: "非营运", | |||
| newCar: 1, | |||
| carModel: "BYD7008BEVB1", | |||
| carNo: "fg6545", | |||
| engineNo: "2V4003609", | |||
| mileage: "10000", | |||
| buyTime: "2025-03-02 04:06:50", | |||
| buyMoney: 1e4, | |||
| buyTax: 885, | |||
| orderFkId: "1897277583591075841", | |||
| updateBy: null, | |||
| createTime: "2025-03-05 21:26:40", | |||
| updateTime: null, | |||
| sysOrgCode: null, | |||
| createBy: "tanzs" | |||
| }) | |||
| ], | |||
| vouchers: [], | |||
| Finances: [], | |||
| productTypeFlag: true | |||
| }; | |||
| }, | |||
| onLoad(options) { | |||
| api.isToken(); | |||
| api.list(new UTSJSONObject({ id: getApp().id })).then((res = null) => { | |||
| this.records = res.result.records; | |||
| }); | |||
| api.queryAppOrderCarByMainId(new UTSJSONObject({ id: getApp().id })).then((res = null) => { | |||
| this.cars = res.result; | |||
| }); | |||
| api.queryAppOrderFinanceByMainId(new UTSJSONObject({ id: getApp().id })).then((res = null) => { | |||
| this.Finances = res.result; | |||
| }); | |||
| api.queryAppOrderVoucherByMainId(new UTSJSONObject({ id: getApp().id })).then((res = null) => { | |||
| this.vouchers = res.result; | |||
| }); | |||
| common_vendor.index.__f__("log", "at pages/index/PayPal_xq.uvue:323", "111", UTS.JSON.parse(this.cars)); | |||
| this.productTypeFlag = getApp().productTypeFlag; | |||
| }, | |||
| onUpload() { | |||
| common_vendor.index.offKeyboardHeightChange(); | |||
| }, | |||
| methods: { | |||
| keyboardheightchange(e = null) { | |||
| }, | |||
| clickImg() { | |||
| common_vendor.index.previewImage({ | |||
| urls: [this.records[0].payVoucherUrl], | |||
| current: "", | |||
| success: function(res) { | |||
| }, | |||
| fail: function(res) { | |||
| }, | |||
| complete: function(res = null) { | |||
| } | |||
| }); | |||
| }, | |||
| toBack() { | |||
| common_vendor.index.navigateBack({ delta: 1 }); | |||
| } | |||
| } | |||
| }); | |||
| if (!Array) { | |||
| const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); | |||
| _easycom_uni_icons2(); | |||
| } | |||
| const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; | |||
| if (!Math) { | |||
| _easycom_uni_icons(); | |||
| } | |||
| function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { | |||
| return common_vendor.e({ | |||
| a: common_vendor.p({ | |||
| type: "left", | |||
| size: "30", | |||
| color: "#c2d4de" | |||
| }), | |||
| b: common_vendor.o((...args) => $options.toBack && $options.toBack(...args)), | |||
| c: common_vendor.t($data.records[0].payType), | |||
| d: common_vendor.t($data.records[0].custType == 0 ? "个人" : "公司"), | |||
| e: common_vendor.o((...args) => _ctx.onChange && _ctx.onChange(...args)), | |||
| f: $data.records[0].certFront, | |||
| g: common_vendor.o((...args) => _ctx.uploadPositive && _ctx.uploadPositive(...args)), | |||
| h: $data.records[0].certBack, | |||
| i: common_vendor.o((...args) => _ctx.uploadReverse && _ctx.uploadReverse(...args)), | |||
| j: $data.records[0].carPic, | |||
| k: common_vendor.o((...args) => _ctx.uploadCarCert && _ctx.uploadCarCert(...args)), | |||
| l: common_assets._imports_3, | |||
| m: common_vendor.t($data.records[0].productName), | |||
| n: common_vendor.t($data.records[0].storeName), | |||
| o: common_vendor.t($data.records[0].custName), | |||
| p: common_vendor.t($data.records[0].custAddress), | |||
| q: common_vendor.t($data.records[0].custCardNo), | |||
| r: common_vendor.t($data.records[0].custPhone), | |||
| s: common_vendor.t($data.records[0].storeName), | |||
| t: common_vendor.t($data.records[0].saleName), | |||
| v: common_assets._imports_3, | |||
| w: common_vendor.t($data.cars[0].saleName), | |||
| x: common_vendor.t($data.cars[0].carModel), | |||
| y: common_vendor.t($data.cars[0].vin), | |||
| z: common_vendor.t($data.cars[0].carType), | |||
| A: common_vendor.t($data.cars[0].useType), | |||
| B: common_vendor.t($data.cars[0].newCar == 0 ? "否" : "是"), | |||
| C: common_vendor.t($data.cars[0].carNo), | |||
| D: common_vendor.t($data.cars[0].engineNo), | |||
| E: $data.productTypeFlag | |||
| }, $data.productTypeFlag ? { | |||
| F: common_vendor.t($data.cars[0].mileage) | |||
| } : {}, { | |||
| G: $data.productTypeFlag | |||
| }, $data.productTypeFlag ? { | |||
| H: common_vendor.t($data.cars[0].buyTime) | |||
| } : {}, { | |||
| I: $data.productTypeFlag | |||
| }, $data.productTypeFlag ? { | |||
| J: common_vendor.t($data.cars[0].buyMoney) | |||
| } : {}, { | |||
| K: $data.productTypeFlag | |||
| }, $data.productTypeFlag ? { | |||
| L: common_vendor.t($data.cars[0].buyTax) | |||
| } : {}, { | |||
| M: common_assets._imports_3, | |||
| N: $data.productTypeFlag | |||
| }, $data.productTypeFlag ? { | |||
| O: common_vendor.t($data.vouchers[0].firstBeneficiary) | |||
| } : {}, { | |||
| P: $data.productTypeFlag | |||
| }, $data.productTypeFlag ? { | |||
| Q: common_vendor.t($data.vouchers[0].serviceMoney) | |||
| } : {}, { | |||
| R: $data.productTypeFlag | |||
| }, $data.productTypeFlag ? { | |||
| S: common_vendor.t($data.vouchers[0].effectiveTime) | |||
| } : {}, { | |||
| T: $data.productTypeFlag | |||
| }, $data.productTypeFlag ? { | |||
| U: common_vendor.t($data.vouchers[0].endTime) | |||
| } : {}, { | |||
| V: $data.productTypeFlag | |||
| }, $data.productTypeFlag ? { | |||
| W: common_vendor.t($data.vouchers[0].serviceYear) | |||
| } : {}, { | |||
| X: $data.productTypeFlag | |||
| }, $data.productTypeFlag ? { | |||
| Y: common_vendor.t($data.vouchers[0].payTime) | |||
| } : {}, { | |||
| Z: $data.records[0].payVoucherUrl, | |||
| aa: common_vendor.o((...args) => $options.clickImg && $options.clickImg(...args)), | |||
| ab: $data.records[0].invoiceUrl, | |||
| ac: common_vendor.o((...args) => $options.clickImg && $options.clickImg(...args)), | |||
| ad: $data.productTypeFlag | |||
| }, $data.productTypeFlag ? { | |||
| ae: common_assets._imports_3, | |||
| af: common_vendor.t($data.Finances[0].lender || 0), | |||
| ag: common_vendor.t($data.Finances[0].lenderMoney || 0), | |||
| ah: common_vendor.t($data.Finances[0].lenderYear || 0) | |||
| } : {}, { | |||
| ai: common_vendor.sei(_ctx.virtualHostId, "view") | |||
| }); | |||
| } | |||
| const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-76649624"]]); | |||
| wx.createPage(MiniProgramPage); | |||
| //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/PayPal_xq.js.map | |||
| @ -0,0 +1,7 @@ | |||
| { | |||
| "navigationBarTitleText": "", | |||
| "navigationStyle": "custom", | |||
| "usingComponents": { | |||
| "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons" | |||
| } | |||
| } | |||
| @ -0,0 +1,159 @@ | |||
| @import "../../uvue.wxss"; | |||
| :host{display:flex;flex-direction:column} | |||
| /** | |||
| * 这里是uni-app内置的常用样式变量 | |||
| * | |||
| * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 | |||
| * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App | |||
| * | |||
| */ | |||
| /** | |||
| * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 | |||
| * | |||
| * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 | |||
| */ | |||
| /* 颜色变量 */ | |||
| /* 行为相关颜色 */ | |||
| /* 文字基本颜色 */ | |||
| /* 背景颜色 */ | |||
| /* 边框颜色 */ | |||
| /* 尺寸变量 */ | |||
| /* 文字尺寸 */ | |||
| /* 图片尺寸 */ | |||
| /* Border Radius */ | |||
| /* 水平间距 */ | |||
| /* 垂直间距 */ | |||
| /* 透明度 */ | |||
| /* 文章场景相关 */ | |||
| .containers.data-v-76649624 { | |||
| height: 100%; | |||
| width: 100%; | |||
| background-color: #fff; | |||
| overflow-y: scroll; | |||
| } | |||
| .footer.data-v-76649624 { | |||
| position: fixed; | |||
| bottom: 0; | |||
| left: 0; | |||
| } | |||
| .container.data-v-76649624::-webkit-scrollbar { | |||
| display: none; | |||
| } | |||
| .section.data-v-76649624 { | |||
| border-bottom: 1rpx solid #eee; | |||
| margin: 0 1rem 0 1rem; | |||
| } | |||
| .sections.data-v-76649624 { | |||
| margin: 0 1rem 1rem 1rem; | |||
| } | |||
| .form-item.data-v-76649624 { | |||
| display: flex; | |||
| flex-direction: row; | |||
| justify-content: space-between; | |||
| align-items: center; | |||
| padding: 0.5rem 0; | |||
| border-bottom: 0.1rem solid #f2f2f2; | |||
| color: #767676; | |||
| } | |||
| .labels.data-v-76649624 { | |||
| color: red; | |||
| display: flex; | |||
| justify-content: center; | |||
| align-items: center; | |||
| } | |||
| .label.data-v-76649624 { | |||
| font-size: 28rpx; | |||
| color: #666; | |||
| width: 200rpx; | |||
| } | |||
| .input.data-v-76649624 { | |||
| flex: 1; | |||
| text-align: right; | |||
| font-size: 28rpx; | |||
| color: #737373; | |||
| } | |||
| .picker.data-v-76649624 { | |||
| flex: 1; | |||
| } | |||
| .picker-text.data-v-76649624 { | |||
| text-align: right; | |||
| color: #737373; | |||
| font-size: 0.8rem; | |||
| } | |||
| .radio-group.data-v-76649624 { | |||
| display: flex; | |||
| flex: 1; | |||
| justify-content: flex-end; | |||
| flex-direction: row; | |||
| } | |||
| .radio-label.data-v-76649624 { | |||
| padding: 0; | |||
| margin-left: 10rpx; | |||
| display: flex; | |||
| flex-direction: row; | |||
| font-size: 1rem; | |||
| transform: scale(0.7); | |||
| } | |||
| .value.data-v-76649624 { | |||
| flex: 1; | |||
| text-align: right; | |||
| color: #737373; | |||
| font-size: 0.8rem; | |||
| } | |||
| .idCard-box.data-v-76649624 { | |||
| margin-top: 10%; | |||
| width: 100%; | |||
| height: 50%; | |||
| display: flex; | |||
| flex-direction: row; | |||
| /* background-color: red; */ | |||
| flex-wrap: wrap; | |||
| } | |||
| .idCard-box .reverse.data-v-76649624 { | |||
| height: 30%; | |||
| width: 40%; | |||
| display: flex; | |||
| align-items: center; | |||
| justify-content: center; | |||
| margin: 0 5% 0 5%; | |||
| } | |||
| .idCard-box .reverse image.data-v-76649624 { | |||
| width: 100%; | |||
| height: 100%; | |||
| } | |||
| .idCard-box .reverse text.data-v-76649624 { | |||
| position: absolute; | |||
| text-shadow: 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black; | |||
| font-size: 0.8rem; | |||
| color: #fff; | |||
| } | |||
| /* 表单分区样式 */ | |||
| .con_size.data-v-76649624 { | |||
| font-size: 1rem; | |||
| font-weight: bold; | |||
| margin: 1rem 0; | |||
| color: #000000; | |||
| display: flex; | |||
| flex-direction: row; | |||
| align-items: center; | |||
| } | |||
| .con_size_img.data-v-76649624 { | |||
| height: 100%; | |||
| width: 2%; | |||
| margin-right: 2%; | |||
| } | |||
| .form-button.data-v-76649624 { | |||
| width: 100%; | |||
| height: 100%; | |||
| display: flex; | |||
| align-items: center; | |||
| justify-content: center; | |||
| } | |||
| .button.data-v-76649624 { | |||
| height: 100%; | |||
| width: 100%; | |||
| background-color: #044f7a; | |||
| color: #ffffff; | |||
| border-radius: 1rem; | |||
| } | |||
| @ -1 +1 @@ | |||
| <scroll-view lower-threshold="50" bindscrolltolower="{{k}}" enable-flex="true" enhanced="true" scroll-y="true" id="{{j}}" change:eS="{{uV.sS}}" eS="{{$eS[j]}}" class="{{['container', 'data-v-6e742b06', virtualHostClass]}}" style="{{virtualHostStyle}}" hidden="{{virtualHostHidden}}"><view class="header data-v-6e742b06"><view class="header_info data-v-6e742b06"><view class="header_info_icon data-v-6e742b06" catchtap="{{b}}" style="display:flex;justify-content:center;align-items:center"><uni-icons class="data-v-6e742b06" virtualHostClass="data-v-6e742b06" u-i="6e742b06-0" bind:__l="__l" u-p="{{a||''}}"></uni-icons></view><text class="header_text data-v-6e742b06">录入订单</text></view></view><view class="search-box data-v-6e742b06"><uni-icons class="isshow-header-content-icon data-v-6e742b06" virtualHostClass="isshow-header-content-icon data-v-6e742b06" u-i="6e742b06-1" bind:__l="__l" u-p="{{c||''}}"></uni-icons><uni-easyinput class="search-input data-v-6e742b06" virtualHostClass="search-input data-v-6e742b06" bindclear="{{d}}" u-i="6e742b06-2" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f||''}}"/><button bindtap="{{g}}" class="search-btn data-v-6e742b06" hover-class="none">搜索</button></view><view class="filter-tabs data-v-6e742b06"><text wx:for="{{h}}" wx:for-item="tab" wx:key="b" class="{{['data-v-6e742b06', 'tab-item', tab.c]}}" bindtap="{{tab.d}}">{{tab.a}}</text></view><view wx:for="{{i}}" wx:for-item="order" wx:key="o" class="order-item data-v-6e742b06"><view class="order-header data-v-6e742b06"><text class="order-no data-v-6e742b06">{{order.a}}</text><text class="copy-btn data-v-6e742b06" bindtap="{{order.b}}">复制</text></view><view class="order-info data-v-6e742b06"><text class="data-v-6e742b06">客户姓名:{{order.c}}</text><text class="data-v-6e742b06">联系方式:{{order.d}}</text><text class="data-v-6e742b06">服务名称:{{order.e}}</text><text class="data-v-6e742b06">订单时间:{{order.f}}</text><text class="data-v-6e742b06">销售人员:{{order.g}}</text><text class="data-v-6e742b06">门店名称:{{order.h}}</text></view><button wx:if="{{order.i}}" class="download-btn data-v-6e742b06" bindtap="{{order.j}}">PDF下载</button><image wx:if="{{order.k}}" src="{{order.l}}" class="status data-v-6e742b06"></image><image wx:if="{{order.m}}" src="{{order.n}}" class="status data-v-6e742b06"></image></view></scroll-view><wxs src="/common/uniView.wxs" module="uV"/> | |||
| <scroll-view lower-threshold="50" bindscrolltolower="{{k}}" enable-flex="true" enhanced="true" scroll-y="true" id="{{j}}" change:eS="{{uV.sS}}" eS="{{$eS[j]}}" class="{{['container', 'data-v-6e742b06', virtualHostClass]}}" style="{{virtualHostStyle}}" hidden="{{virtualHostHidden}}"><view class="header data-v-6e742b06"><view class="header_info data-v-6e742b06"><view class="header_info_icon data-v-6e742b06" catchtap="{{b}}" style="display:flex;justify-content:center;align-items:center"><uni-icons class="data-v-6e742b06" virtualHostClass="data-v-6e742b06" u-i="6e742b06-0" bind:__l="__l" u-p="{{a||''}}"></uni-icons></view><text class="header_text data-v-6e742b06">录入订单</text></view></view><view class="search-box data-v-6e742b06"><uni-icons class="isshow-header-content-icon data-v-6e742b06" virtualHostClass="isshow-header-content-icon data-v-6e742b06" u-i="6e742b06-1" bind:__l="__l" u-p="{{c||''}}"></uni-icons><uni-easyinput class="search-input data-v-6e742b06" virtualHostClass="search-input data-v-6e742b06" bindclear="{{d}}" u-i="6e742b06-2" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f||''}}"/><button bindtap="{{g}}" class="search-btn data-v-6e742b06" hover-class="none">搜索</button></view><view class="filter-tabs data-v-6e742b06"><text wx:for="{{h}}" wx:for-item="tab" wx:key="b" class="{{['data-v-6e742b06', 'tab-item', tab.c]}}" bindtap="{{tab.d}}">{{tab.a}}</text></view><view wx:for="{{i}}" wx:for-item="order" wx:key="p" class="order-item data-v-6e742b06"><view class="order-header data-v-6e742b06"><text class="order-no data-v-6e742b06">{{order.a}}</text><text class="copy-btn data-v-6e742b06" bindtap="{{order.b}}">复制</text></view><view class="order-info data-v-6e742b06"><text class="data-v-6e742b06">客户姓名:{{order.c}}</text><text class="data-v-6e742b06">联系方式:{{order.d}}</text><text class="data-v-6e742b06">服务名称:{{order.e}}</text><text class="data-v-6e742b06">订单时间:{{order.f}}</text><text class="data-v-6e742b06">销售人员:{{order.g}}</text><text class="data-v-6e742b06">门店名称:{{order.h}}</text></view><button wx:if="{{order.i}}" class="download-btn data-v-6e742b06" bindtap="{{order.j}}">PDF下载</button><button class="download-btns data-v-6e742b06" bindtap="{{order.k}}">查看详情</button><image wx:if="{{order.l}}" src="{{order.m}}" class="status data-v-6e742b06"></image><image wx:if="{{order.n}}" src="{{order.o}}" class="status data-v-6e742b06"></image></view></scroll-view><wxs src="/common/uniView.wxs" module="uV"/> | |||
| @ -0,0 +1,95 @@ | |||
| "use strict"; | |||
| const common_vendor = require("../../common/vendor.js"); | |||
| const api = require("../../api.js"); | |||
| const _sfc_main = common_vendor.defineComponent({ | |||
| data() { | |||
| return { | |||
| list: [], | |||
| currentIndex: "", | |||
| clientInfo: new UTSJSONObject({}), | |||
| certFront: "", | |||
| carPic: "", | |||
| certBack: "" | |||
| }; | |||
| }, | |||
| onLoad(options) { | |||
| this.clientInfo = UTS.JSON.parse(decodeURIComponent(options.clientInfo)); | |||
| common_vendor.index.__f__("log", "at pages/views/carFinal.uvue:42", this.clientInfo.appOrderCarList[0].carSeries); | |||
| }, | |||
| mounted() { | |||
| api.childList(new UTSJSONObject({ pid: getApp().pid })).then((res = null) => { | |||
| this.list = res.result.records; | |||
| }); | |||
| }, | |||
| methods: { | |||
| getBack() { | |||
| common_vendor.index.navigateBack({ delta: 1 }); | |||
| }, | |||
| getPid(id = null, name = null) { | |||
| this.clientInfo.appOrderCarList[0].carSeries = this.clientInfo.appOrderCarList[0].carSeries + name; | |||
| api.childList(new UTSJSONObject({ pid: id })).then((res = null) => { | |||
| common_vendor.index.__f__("log", "at pages/views/carFinal.uvue:58", res.result.records); | |||
| if (res.result.records.length == 0) { | |||
| if (this.pagesCount >= 10) { | |||
| if (getApp().flag == 0) { | |||
| common_vendor.index.redirectTo({ url: "/pages/index/PayPal?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo)) }); | |||
| } else { | |||
| common_vendor.index.redirectTo({ url: "/pages/index/PayPal_pinpai?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo)) }); | |||
| } | |||
| } else { | |||
| if (getApp().flag == 0) { | |||
| common_vendor.index.navigateTo({ url: "/pages/index/PayPal?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo)) }); | |||
| } else { | |||
| common_vendor.index.navigateTo({ url: "/pages/index/PayPal_pinpai?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo)) }); | |||
| } | |||
| } | |||
| } else { | |||
| getApp().pid_1 = id; | |||
| if (this.pagesCount >= 10) { | |||
| common_vendor.index.redirectTo({ | |||
| url: "/pages/views/car?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo)) | |||
| }); | |||
| } else { | |||
| common_vendor.index.navigateTo({ | |||
| url: "/pages/views/car?clientInfo=" + encodeURIComponent(UTS.JSON.stringify(this.clientInfo)) | |||
| }); | |||
| } | |||
| } | |||
| }); | |||
| } | |||
| } | |||
| }); | |||
| if (!Array) { | |||
| const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); | |||
| _easycom_uni_icons2(); | |||
| } | |||
| const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; | |||
| if (!Math) { | |||
| _easycom_uni_icons(); | |||
| } | |||
| function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { | |||
| return { | |||
| a: common_vendor.p({ | |||
| type: "left", | |||
| size: "30" | |||
| }), | |||
| b: common_vendor.o((...args) => $options.getBack && $options.getBack(...args)), | |||
| c: common_vendor.f($data.list, (item, index, i0) => { | |||
| return { | |||
| a: common_vendor.t(item.name), | |||
| b: "2cb7d1cc-1-" + i0, | |||
| c: index, | |||
| d: common_vendor.o(($event) => $options.getPid(item.id, item.name), index) | |||
| }; | |||
| }), | |||
| d: common_vendor.p({ | |||
| type: "right", | |||
| color: "#c0c0c0" | |||
| }), | |||
| e: $data.currentIndex, | |||
| f: common_vendor.sei(_ctx.virtualHostId, "view") | |||
| }; | |||
| } | |||
| const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]); | |||
| wx.createPage(MiniProgramPage); | |||
| //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/views/carFinal.js.map | |||
| @ -0,0 +1,7 @@ | |||
| { | |||
| "navigationBarTitleText": "", | |||
| "navigationStyle": "custom", | |||
| "usingComponents": { | |||
| "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons" | |||
| } | |||
| } | |||
| @ -0,0 +1 @@ | |||
| <view id="{{f}}" change:eS="{{uV.sS}}" eS="{{$eS[f]}}" class="{{['container', virtualHostClass]}}" style="{{virtualHostStyle}}" hidden="{{virtualHostHidden}}"><view class="header_infos"><view class="header_info_left" bindtap="{{b}}"><uni-icons u-i="2cb7d1cc-0" bind:__l="__l" u-p="{{a||''}}"></uni-icons></view><text class="header_info_right"> 选择车系 </text></view><view class="contents"><scroll-view scroll-y="true" class="scroll-view" scroll-into-view="{{e}}" enable-flex="true" enhanced="true"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" class="content" bindtap="{{item.d}}"><text class="content-left">{{item.a}}</text><uni-icons class="content-right" virtualHostClass="content-right" u-i="{{item.b}}" bind:__l="__l" u-p="{{d||''}}"></uni-icons></view></scroll-view></view></view><wxs src="/common/uniView.wxs" module="uV"/> | |||
| @ -0,0 +1,48 @@ | |||
| @import "../../uvue.wxss"; | |||
| :host{display:flex;flex-direction:column} | |||
| .header_infos{ | |||
| height: 10%; | |||
| width: 100%; | |||
| display: flex; | |||
| flex-direction: row; | |||
| align-items: center; | |||
| background-color: #f8f8f8; | |||
| } | |||
| .header_info_right{ | |||
| width: 80%; | |||
| display: flex; | |||
| align-items: center; | |||
| justify-content: center; | |||
| /* left: 40%; */ | |||
| } | |||
| .contents{ | |||
| height: 100%; | |||
| width: 100%; | |||
| } | |||
| .scroll-view { | |||
| flex: 1; | |||
| height: 100%; | |||
| /* margin-top: 10%; */ | |||
| background-color: #ffffff; | |||
| } | |||
| .content{ | |||
| height: 5%; | |||
| display: flex; | |||
| flex-direction: row; | |||
| border-bottom: 0.01rem solid #e0e0e0; | |||
| /* height: 15%; */ | |||
| } | |||
| .content-left{ | |||
| font-size: 0.8rem; | |||
| display: flex; | |||
| align-items: center; | |||
| justify-content: center; | |||
| } | |||
| .content-right{ | |||
| margin-left: auto; | |||
| display: flex; | |||
| align-items: center; | |||
| justify-content: center; | |||
| } | |||