fix:支付接口调用之前先调用获取openid接口
This commit is contained in:
parent
bb06885853
commit
03138b7089
@ -86,6 +86,14 @@ export const checkPhoneFdd = () => {
|
||||
method: "POST",
|
||||
});
|
||||
};
|
||||
//获取openid
|
||||
export const getOpenId = (data) => {
|
||||
return http.request({
|
||||
url: "/api/wxuser/openid",
|
||||
method: "POST",
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
export default {
|
||||
login,
|
||||
@ -97,5 +105,6 @@ export default {
|
||||
getTelCaptcha,
|
||||
checkTelCaptcha,
|
||||
phoneRegister,
|
||||
checkPhoneFdd
|
||||
checkPhoneFdd,
|
||||
getOpenId
|
||||
};
|
13
http/mine.js
13
http/mine.js
@ -20,15 +20,24 @@ const update = (data) => {
|
||||
data,
|
||||
});
|
||||
};
|
||||
const logout = () => {
|
||||
// 注销账号
|
||||
const signOff = () => {
|
||||
return http.request({
|
||||
url: "/api/wxuser/remove",
|
||||
method: "POST",
|
||||
});
|
||||
};
|
||||
// 退出登录
|
||||
const logout = () => {
|
||||
return http.request({
|
||||
url: "/api/v3/logout",
|
||||
method: "POST",
|
||||
});
|
||||
}
|
||||
export default {
|
||||
infoOrders,
|
||||
info,
|
||||
update,
|
||||
logout,
|
||||
signOff,
|
||||
logout
|
||||
};
|
||||
|
@ -1,11 +1,16 @@
|
||||
<template>
|
||||
<div class="order-details">
|
||||
<title-block class="titile-d" :title="type==='detail'?'详情':'确认订单'">
|
||||
<title-block
|
||||
class="titile-d"
|
||||
:title="type === 'detail' ? '详情' : '确认订单'"
|
||||
>
|
||||
<template #left>
|
||||
<div>
|
||||
<image style="width: 112rpx;height: 52rpx"
|
||||
<image
|
||||
style="width: 112rpx; height: 52rpx"
|
||||
src="https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/785cf885-c4c9-44b3-8155-4b39988c7ef8.png"
|
||||
@click="back"></image>
|
||||
@click="back"
|
||||
></image>
|
||||
</div>
|
||||
</template>
|
||||
</title-block>
|
||||
@ -13,51 +18,130 @@
|
||||
<div class="wrap1">*请注意确认寄存结束时间</div>
|
||||
<div class="wrap2">
|
||||
<div class="wrap2_1" :style="{ height: `${listHeight}rpx` }">
|
||||
<div :class="['item',index===currentIndex?'active':'']" @click="itemClick(index)" v-for="(item,index) of listPaintings">
|
||||
<div
|
||||
:class="[
|
||||
'item',
|
||||
index === currentIndex ? 'active' : ''
|
||||
]"
|
||||
@click="itemClick(index)"
|
||||
v-for="(item, index) of listPaintings"
|
||||
>
|
||||
<div class="item_1">{{ index + 1 }}</div>
|
||||
<div class="item_2">
|
||||
<div class="item_2_1">
|
||||
<img :src="listPaintings[index].fileList1[0].url" alt="">
|
||||
<img
|
||||
:src="listPaintings[index].fileList1[0].url"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<div class="item_2_2">{{listPaintings[index].artworkNum}}</div>
|
||||
<div class="item_2_2">
|
||||
{{ listPaintings[index].artworkNum }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="item_3">
|
||||
{{ listPaintings[index].artworkName }}
|
||||
</div>
|
||||
<div class="item_4">
|
||||
{{
|
||||
listPaintings[index].warehouseID
|
||||
? addressList.find(
|
||||
(x) =>
|
||||
x.ID ===
|
||||
listPaintings[index].warehouseID
|
||||
).address
|
||||
: ''
|
||||
}}
|
||||
</div>
|
||||
<div class="item_5">
|
||||
{{ listPaintings[index].endAt }}
|
||||
</div>
|
||||
<div class="item_3">{{listPaintings[index].artworkName}}</div>
|
||||
<div class="item_4">{{listPaintings[index].warehouseID?addressList.find(x=>x.ID===listPaintings[index].warehouseID).address:''}}</div>
|
||||
<div class="item_5">{{listPaintings[index].endAt}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrap2_2" @click="expand">
|
||||
<div class="wrap2_2_1" v-if="listPaintings.length>2" :style="{transform:`${isExpand?'rotate(180deg)':''}`}">
|
||||
<img src="https://cdns.fontree.cn/fonchain-main/prod/image/default/approval/13639162-2871-4187-abc5-71c2d9f01ac2.png" alt="">
|
||||
<div
|
||||
class="wrap2_2_1"
|
||||
v-if="listPaintings.length > 2"
|
||||
:style="{
|
||||
transform: `${isExpand ? 'rotate(180deg)' : ''}`
|
||||
}"
|
||||
>
|
||||
<img
|
||||
src="https://cdns.fontree.cn/fonchain-main/prod/image/default/approval/13639162-2871-4187-abc5-71c2d9f01ac2.png"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<div class="wrap2_2_2">共计{{listPaintings.length}}幅画作</div>
|
||||
<div class="wrap2_2_2">
|
||||
共计{{ listPaintings.length }}幅画作
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<scroll-view class="content-center" :style="{marginTop:`${contentListHeight+10}px`,marginBottom:type==='detail'?'30rpx':'180rpx'}" @scroll="scrollDetail" :scroll-into-view="scrollId" scroll-y="true">
|
||||
<div class="content-scroll" v-for="(item,index) of listPaintings" :id="`item-${index}`">
|
||||
</div>
|
||||
<scroll-view
|
||||
class="content-center"
|
||||
:style="{
|
||||
marginTop: `${contentListHeight + 10}px`,
|
||||
marginBottom: type === 'detail' ? '30rpx' : '180rpx'
|
||||
}"
|
||||
@scroll="scrollDetail"
|
||||
:scroll-into-view="scrollId"
|
||||
scroll-y="true"
|
||||
>
|
||||
<div
|
||||
class="content-scroll"
|
||||
v-for="(item, index) of listPaintings"
|
||||
:id="`item-${index}`"
|
||||
>
|
||||
<div class="painting-name" v-if="listPaintings.length > 1">
|
||||
<div class="wrap1">画作{{ index + 1 }}:</div>
|
||||
<div class="wrap2" style="display: none" @click="itemDelete">删除</div>
|
||||
<div
|
||||
class="wrap2"
|
||||
style="display: none"
|
||||
@click="itemDelete"
|
||||
>
|
||||
删除
|
||||
</div>
|
||||
</div>
|
||||
<div class="content2">
|
||||
<u-upload
|
||||
:fileList="listPaintings[index].fileList1"
|
||||
@afterRead="(e)=>{afterRead(e,index)}"
|
||||
@delete="(e)=>{deletePic(e,index)}"
|
||||
@afterRead="
|
||||
(e) => {
|
||||
afterRead(e, index)
|
||||
}
|
||||
"
|
||||
@delete="
|
||||
(e) => {
|
||||
deletePic(e, index)
|
||||
}
|
||||
"
|
||||
name="6"
|
||||
multiple
|
||||
:maxCount="1"
|
||||
width="404rpx"
|
||||
height="306rpx"
|
||||
>
|
||||
<div style="width: 404rpx;height: 306rpx;background: #000;border-radius: 20rpx;display: flex;flex-direction: column;align-items: center;justify-content: center">
|
||||
<div
|
||||
style="
|
||||
width: 404rpx;
|
||||
height: 306rpx;
|
||||
background: #000;
|
||||
border-radius: 20rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
"
|
||||
>
|
||||
<div style="margin-bottom: 14rpx">
|
||||
<image style="width: 38.32rpx;height: 38.2rpx" src="../../static/zu142@3x.png"></image>
|
||||
<image
|
||||
style="width: 38.32rpx; height: 38.2rpx"
|
||||
src="../../static/zu142@3x.png"
|
||||
></image>
|
||||
</div>
|
||||
<div style="font-size: 32rpx; color: #fff">
|
||||
上传画作图片
|
||||
</div>
|
||||
<div style="font-size: 32rpx;color: #fff">上传画作图片</div>
|
||||
</div>
|
||||
|
||||
</u-upload>
|
||||
</div>
|
||||
<div class="content3">
|
||||
@ -67,7 +151,13 @@
|
||||
<div class="wrap1_1_1">画作编号</div>
|
||||
<div class="wrap1_1_2"></div>
|
||||
<div class="wrap1_1_3">
|
||||
<input style="color: #939393;font-size: 24rpx;" disabled v-model="listPaintings[index].artworkNum" placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请输入画作编号"/>
|
||||
<input
|
||||
style="color: #939393; font-size: 24rpx"
|
||||
disabled
|
||||
v-model="listPaintings[index].artworkNum"
|
||||
placeholder-style="color: #939393;font-size: 24rpx;"
|
||||
placeholder="请输入画作编号"
|
||||
/>
|
||||
</div>
|
||||
<div class="wrap1_1_4"></div>
|
||||
</div>
|
||||
@ -75,7 +165,13 @@
|
||||
<div class="wrap1_1_1">画作名称</div>
|
||||
<div class="wrap1_1_2"></div>
|
||||
<div class="wrap1_1_3">
|
||||
<input style="color: #939393;font-size: 24rpx;" disabled v-model="listPaintings[index].artworkName" placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请输入画作名称"/>
|
||||
<input
|
||||
style="color: #939393; font-size: 24rpx"
|
||||
disabled
|
||||
v-model="listPaintings[index].artworkName"
|
||||
placeholder-style="color: #939393;font-size: 24rpx;"
|
||||
placeholder="请输入画作名称"
|
||||
/>
|
||||
</div>
|
||||
<div class="wrap1_1_4"></div>
|
||||
</div>
|
||||
@ -83,16 +179,29 @@
|
||||
<div class="wrap1_1_1">画家名称</div>
|
||||
<div class="wrap1_1_2"></div>
|
||||
<div class="wrap1_1_3">
|
||||
<input style="color: #939393;font-size: 24rpx;" disabled v-model="listPaintings[index].artistName" placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请输入画家名称"/>
|
||||
</div>
|
||||
<div class="wrap1_1_4">
|
||||
<input
|
||||
style="color: #939393; font-size: 24rpx"
|
||||
disabled
|
||||
v-model="listPaintings[index].artistName"
|
||||
placeholder-style="color: #939393;font-size: 24rpx;"
|
||||
placeholder="请输入画家名称"
|
||||
/>
|
||||
</div>
|
||||
<div class="wrap1_1_4"></div>
|
||||
</div>
|
||||
<div class="wrap1_1">
|
||||
<div class="wrap1_1_1">画作平尺数</div>
|
||||
<div class="wrap1_1_2"></div>
|
||||
<div class="wrap1_1_3">
|
||||
<input style="color: #939393;font-size: 24rpx;" disabled v-model="listPaintings[index].artworkSquareSize" placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请输入画作平尺数"/>
|
||||
<input
|
||||
style="color: #939393; font-size: 24rpx"
|
||||
disabled
|
||||
v-model="
|
||||
listPaintings[index].artworkSquareSize
|
||||
"
|
||||
placeholder-style="color: #939393;font-size: 24rpx;"
|
||||
placeholder="请输入画作平尺数"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -104,8 +213,22 @@
|
||||
<div class="wrap1_1_1">寄存地址</div>
|
||||
<div class="wrap1_1_2"></div>
|
||||
<div class="wrap1_1_3">
|
||||
<input style="color: #939393;font-size: 24rpx;" disabled :value="listPaintings[index].warehouseID?addressList.find(x=>x.ID===listPaintings[index].warehouseID).address:''" placeholder-style="color: #939393;font-size: 24rpx;"
|
||||
placeholder="请选择寄存地址"/>
|
||||
<input
|
||||
style="color: #939393; font-size: 24rpx"
|
||||
disabled
|
||||
:value="
|
||||
listPaintings[index].warehouseID
|
||||
? addressList.find(
|
||||
(x) =>
|
||||
x.ID ===
|
||||
listPaintings[index]
|
||||
.warehouseID
|
||||
).address
|
||||
: ''
|
||||
"
|
||||
placeholder-style="color: #939393;font-size: 24rpx;"
|
||||
placeholder="请选择寄存地址"
|
||||
/>
|
||||
</div>
|
||||
<div class="wrap1_1_4"></div>
|
||||
<!-- <div class="wrap1_1_5">
|
||||
@ -116,14 +239,18 @@
|
||||
<div class="wrap1_1_1">寄存时长</div>
|
||||
<div class="wrap1_1_2"></div>
|
||||
<div class="wrap1_1_3">
|
||||
<input style="color: #939393;font-size: 24rpx;" :value="listPaintings[index].endAt" disabled placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请选择寄存时长"/>
|
||||
<input
|
||||
style="color: #939393; font-size: 24rpx"
|
||||
:value="listPaintings[index].endAt"
|
||||
disabled
|
||||
placeholder-style="color: #939393;font-size: 24rpx;"
|
||||
placeholder="请选择寄存时长"
|
||||
/>
|
||||
</div>
|
||||
<!-- <div class="wrap1_1_5">
|
||||
<image src="../../static/zu612@3x.png"></image>
|
||||
</div>-->
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="wrap2"></div>
|
||||
</div>
|
||||
@ -137,9 +264,12 @@
|
||||
</div>
|
||||
</scroll-view>
|
||||
|
||||
|
||||
<div class="content5" v-if="type !== 'detail'">
|
||||
<div class="wrap4" v-show="isExpand1" :style="{top:`-${152*listPaintings.length}rpx`}">
|
||||
<div
|
||||
class="wrap4"
|
||||
v-show="isExpand1"
|
||||
:style="{ top: `-${152 * listPaintings.length}rpx` }"
|
||||
>
|
||||
<div class="item" v-for="(item, index) in listPaintings">
|
||||
<div class="item_1">{{ index + 1 }}</div>
|
||||
<div class="item_2">{{ item.artworkNum }}</div>
|
||||
@ -147,26 +277,54 @@
|
||||
<div class="item_4">¥ {{ item.expectedPayment }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrap3" @click="expand1" :style="{transform:`${isExpand1?'':'rotate(180deg)'}`}"> <img src="https://cdns.fontree.cn/fonchain-main/prod/image/default/approval/13639162-2871-4187-abc5-71c2d9f01ac2.png" alt=""></div>
|
||||
<div
|
||||
class="wrap3"
|
||||
@click="expand1"
|
||||
:style="{ transform: `${isExpand1 ? '' : 'rotate(180deg)'}` }"
|
||||
>
|
||||
<img
|
||||
src="https://cdns.fontree.cn/fonchain-main/prod/image/default/approval/13639162-2871-4187-abc5-71c2d9f01ac2.png"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<div class="wrap1">
|
||||
<div class="wrap1_1">*仅微信付款</div>
|
||||
<div class="wrap1_2">预计 ¥{{ totalMoney || '0' }}</div>
|
||||
</div>
|
||||
<div class="wrap2" @click="signContract">付款</div>
|
||||
</div>
|
||||
<u-popup :round="15" :show="show_2" mode="bottom" @open="()=>{show_2=true}">
|
||||
<u-popup
|
||||
:round="15"
|
||||
:show="show_2"
|
||||
mode="bottom"
|
||||
@open="
|
||||
() => {
|
||||
show_2 = true
|
||||
}
|
||||
"
|
||||
>
|
||||
<div class="poup1">
|
||||
<div class="content1">
|
||||
<div class="wrap1">更换您的寄存地址</div>
|
||||
<div @click="show_2 = false" class="wrap2">
|
||||
<image
|
||||
src="https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/d84593b3-10a8-4d86-be8c-b048b03b22c7.png"></image>
|
||||
src="https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/d84593b3-10a8-4d86-be8c-b048b03b22c7.png"
|
||||
></image>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content2"></div>
|
||||
<div class="content3">
|
||||
<div v-for="(item,index) in addressList" @click="selectAddress(item)"
|
||||
:class="[listPaintings[currentIndex].warehouseID===item.ID?'active':'']" :key="index" class="wrap1">
|
||||
<div
|
||||
v-for="(item, index) in addressList"
|
||||
@click="selectAddress(item)"
|
||||
:class="[
|
||||
listPaintings[currentIndex].warehouseID === item.ID
|
||||
? 'active'
|
||||
: ''
|
||||
]"
|
||||
:key="index"
|
||||
class="wrap1"
|
||||
>
|
||||
<div class="wrap1_1">{{ item.address }}</div>
|
||||
<div class="wrap1_2">*剩余{{ item.leftNum }}位置</div>
|
||||
</div>
|
||||
@ -246,17 +404,28 @@
|
||||
</div>
|
||||
</div>
|
||||
</u-popup>-->
|
||||
<u-picker :show="show_1" ref="uPicker" :columns="columns" @confirm="confirmDate" @close="show_1=false" @change="changeHandler"></u-picker>
|
||||
<u-loading-page bgColor="rgba(0,0,0,0.5)" :loading="loading" loading-text="正在调起微信付款..."></u-loading-page>
|
||||
<u-picker
|
||||
:show="show_1"
|
||||
ref="uPicker"
|
||||
:columns="columns"
|
||||
@confirm="confirmDate"
|
||||
@close="show_1 = false"
|
||||
@change="changeHandler"
|
||||
></u-picker>
|
||||
<u-loading-page
|
||||
bgColor="rgba(0,0,0,0.5)"
|
||||
:loading="loading"
|
||||
loading-text="正在调起微信付款..."
|
||||
></u-loading-page>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import http from "@/http/api";
|
||||
import {postDataByParams} from "../../http/service";
|
||||
import {type} from "../../uni_modules/uni-forms/components/uni-forms/utils";
|
||||
import http from '@/http/api'
|
||||
import { postDataByParams } from '../../http/service'
|
||||
import { type } from '../../uni_modules/uni-forms/components/uni-forms/utils'
|
||||
|
||||
export default {
|
||||
name: "order-details",
|
||||
name: 'order-details',
|
||||
data() {
|
||||
const date = new Date()
|
||||
const years = []
|
||||
@ -277,15 +446,10 @@ export default {
|
||||
return {
|
||||
itemHeight: 0,
|
||||
scrollId: 'item-0',
|
||||
columns: [
|
||||
[180],
|
||||
['*'],
|
||||
[1,2,3,4,5],
|
||||
['='],
|
||||
[180]
|
||||
],
|
||||
columns: [[180], ['*'], [1, 2, 3, 4, 5], ['='], [180]],
|
||||
currentIndex: 0,
|
||||
listPaintings:[{
|
||||
listPaintings: [
|
||||
{
|
||||
expectedPayment: '',
|
||||
fileList1: [],
|
||||
artworkNum: '',
|
||||
@ -294,7 +458,8 @@ export default {
|
||||
artworkSquareSize: '',
|
||||
warehouseID: '',
|
||||
endAt: ''
|
||||
}],
|
||||
}
|
||||
],
|
||||
contentListHeight: 0,
|
||||
isExpand: false,
|
||||
isExpand1: false,
|
||||
@ -330,27 +495,27 @@ export default {
|
||||
computed: {
|
||||
totalMoney() {
|
||||
return this.listPaintings.reduce((total, item) => {
|
||||
return total + Number(item.expectedPayment);
|
||||
}, 0);
|
||||
return total + Number(item.expectedPayment)
|
||||
}, 0)
|
||||
},
|
||||
currentArtworkSquareSize() {
|
||||
if (
|
||||
this.currentIndex >= 0 &&
|
||||
this.currentIndex < this.listPaintings.length
|
||||
) {
|
||||
return this.listPaintings[this.currentIndex].artworkSquareSize;
|
||||
return this.listPaintings[this.currentIndex].artworkSquareSize
|
||||
}
|
||||
return null;
|
||||
return null
|
||||
},
|
||||
currentEndAt() {
|
||||
if (
|
||||
this.currentIndex >= 0 &&
|
||||
this.currentIndex < this.listPaintings.length
|
||||
) {
|
||||
return this.listPaintings[this.currentIndex].endAt;
|
||||
return this.listPaintings[this.currentIndex].endAt
|
||||
}
|
||||
return null
|
||||
}
|
||||
return null;
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
currentArtworkSquareSize(newValue, oldValue) {
|
||||
@ -363,7 +528,7 @@ export default {
|
||||
if (newValue !== oldValue) {
|
||||
this.obtainAmount()
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
onLoad(load) {
|
||||
if (load.url) {
|
||||
@ -386,7 +551,6 @@ export default {
|
||||
})
|
||||
}
|
||||
this.listPaintings = uni.getStorageSync('orderingInfo').listPaintings
|
||||
|
||||
},
|
||||
mounted() {
|
||||
this.getCycle()
|
||||
@ -403,21 +567,24 @@ export default {
|
||||
methods: {
|
||||
getElementHeight(selector) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const query = uni.createSelectorQuery();
|
||||
query.select(selector).boundingClientRect(data => {
|
||||
const query = uni.createSelectorQuery()
|
||||
query
|
||||
.select(selector)
|
||||
.boundingClientRect((data) => {
|
||||
if (data) {
|
||||
resolve(data.height); // 成功获取高度时,通过 Promise 返回
|
||||
resolve(data.height) // 成功获取高度时,通过 Promise 返回
|
||||
} else {
|
||||
reject(new Error('无法获取元素高度')); // 如果找不到元素或获取高度失败时,通过 Promise 返回错误
|
||||
reject(new Error('无法获取元素高度')) // 如果找不到元素或获取高度失败时,通过 Promise 返回错误
|
||||
}
|
||||
}).exec();
|
||||
});
|
||||
})
|
||||
.exec()
|
||||
})
|
||||
},
|
||||
async scrollDetail(event) {
|
||||
const scrollTop = event.detail.scrollTop; // 获取当前滚动位置
|
||||
const totalHeight = this.listPaintings.length * this.itemHeight;
|
||||
const scrollPercent = (scrollTop / totalHeight) * 100;
|
||||
const index = Math.floor(scrollTop / this.itemHeight); // 计算索引
|
||||
const scrollTop = event.detail.scrollTop // 获取当前滚动位置
|
||||
const totalHeight = this.listPaintings.length * this.itemHeight
|
||||
const scrollPercent = (scrollTop / totalHeight) * 100
|
||||
const index = Math.floor(scrollTop / this.itemHeight) // 计算索引
|
||||
/* console.log(`滚动了 ${scrollPercent}%`);
|
||||
console.log(`滚动到了第 ${index} 个元素的位置`);*/
|
||||
this.currentIndex = index
|
||||
@ -426,7 +593,10 @@ export default {
|
||||
const data1 = {
|
||||
ID: Number(this.$mp.query.ID)
|
||||
}
|
||||
const res1 = await postDataByParams('/api/v2/warehouse/detail', data1)
|
||||
const res1 = await postDataByParams(
|
||||
'/api/v2/warehouse/detail',
|
||||
data1
|
||||
)
|
||||
if (res1.code === 200) {
|
||||
this.info = res1.data
|
||||
}
|
||||
@ -440,7 +610,9 @@ export default {
|
||||
picker = this.$refs.uPicker
|
||||
} = e
|
||||
if (columnIndex === 2) {
|
||||
picker.setColumnValues(this.columns.length-1, [this.columns[2][e.index]*this.columns[0][0]])
|
||||
picker.setColumnValues(this.columns.length - 1, [
|
||||
this.columns[2][e.index] * this.columns[0][0]
|
||||
])
|
||||
}
|
||||
},
|
||||
itemDelete() {
|
||||
@ -452,8 +624,6 @@ export default {
|
||||
this.$nextTick(() => {
|
||||
this.getheight()
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
itemClick(index) {
|
||||
this.scrollId = `item-${index}`
|
||||
@ -476,17 +646,24 @@ export default {
|
||||
this.currentIndex = this.currentIndex + 1
|
||||
},
|
||||
getheight() {
|
||||
let query = uni.createSelectorQuery().in(this);
|
||||
query.select('.content-list').boundingClientRect(data => {
|
||||
let query = uni.createSelectorQuery().in(this)
|
||||
query
|
||||
.select('.content-list')
|
||||
.boundingClientRect((data) => {
|
||||
if (data) {
|
||||
let query = uni.createSelectorQuery().in(this);
|
||||
query.select('.titile-d').boundingClientRect(data1 => {
|
||||
let query = uni.createSelectorQuery().in(this)
|
||||
query
|
||||
.select('.titile-d')
|
||||
.boundingClientRect((data1) => {
|
||||
if (data1) {
|
||||
this.contentListHeight=data.bottom-data1.bottom
|
||||
this.contentListHeight =
|
||||
data.bottom - data1.bottom
|
||||
}
|
||||
}).exec();
|
||||
})
|
||||
.exec()
|
||||
}
|
||||
}).exec();
|
||||
})
|
||||
.exec()
|
||||
},
|
||||
expand1() {
|
||||
this.isExpand1 = !this.isExpand1
|
||||
@ -495,29 +672,34 @@ export default {
|
||||
if (this.isExpand) {
|
||||
this.listHeight = 154 * 2
|
||||
} else {
|
||||
this.listHeight=154*(this.listPaintings.length<=7?this.listPaintings.length:7)
|
||||
this.listHeight =
|
||||
154 *
|
||||
(this.listPaintings.length <= 7
|
||||
? this.listPaintings.length
|
||||
: 7)
|
||||
}
|
||||
this.isExpand = !this.isExpand
|
||||
},
|
||||
timestampToDateString(timestamp) {
|
||||
const date = new Date(timestamp ); // 把时间戳乘以1000转换为Date对象需要的毫秒数
|
||||
const year = date.getFullYear();
|
||||
const month = ("0" + (date.getMonth() + 1)).slice(-2); // 月份是从0开始的,所以加1,用slice保证格式是2位数
|
||||
const day = ("0" + date.getDate()).slice(-2); // 用slice保证格式是2位数
|
||||
return year + "-" + month + "-" + day;
|
||||
const date = new Date(timestamp) // 把时间戳乘以1000转换为Date对象需要的毫秒数
|
||||
const year = date.getFullYear()
|
||||
const month = ('0' + (date.getMonth() + 1)).slice(-2) // 月份是从0开始的,所以加1,用slice保证格式是2位数
|
||||
const day = ('0' + date.getDate()).slice(-2) // 用slice保证格式是2位数
|
||||
return year + '-' + month + '-' + day
|
||||
},
|
||||
confirmDate(data) {
|
||||
this.listPaintings[this.currentIndex].endAt=data.value[data.value.length-1]
|
||||
this.listPaintings[this.currentIndex].endAt =
|
||||
data.value[data.value.length - 1]
|
||||
this.obtainAmount()
|
||||
this.show_1 = false
|
||||
},
|
||||
openShow1() {
|
||||
if (!this.listPaintings[this.currentIndex].artworkSquareSize) {
|
||||
uni.showToast({
|
||||
title: "请先填写画作平尺数",
|
||||
title: '请先填写画作平尺数',
|
||||
duration: 2000,
|
||||
icon: "none",
|
||||
});
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.show_1 = true
|
||||
@ -525,14 +707,14 @@ export default {
|
||||
uploadFilePromise(url, type = null) {
|
||||
return new Promise((resolve) => {
|
||||
uni.uploadFile({
|
||||
url: http.baseUrl + "/api/wxuser/uploadpic",
|
||||
url: http.baseUrl + '/api/wxuser/uploadpic',
|
||||
filePath: url,
|
||||
name: "file",
|
||||
name: 'file',
|
||||
success: (res) => {
|
||||
const { path } = JSON.parse(res.data).data;
|
||||
resolve(path);
|
||||
},
|
||||
});
|
||||
const { path } = JSON.parse(res.data).data
|
||||
resolve(path)
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
deletePic() {
|
||||
@ -551,49 +733,94 @@ export default {
|
||||
})
|
||||
})
|
||||
for (let i = 0; i < lists.length; i++) {
|
||||
const result = await this.uploadFilePromise(lists[i].url, 'check')
|
||||
const result = await this.uploadFilePromise(
|
||||
lists[i].url,
|
||||
'check'
|
||||
)
|
||||
let item = this.listPaintings[index].fileList1[fileListLen]
|
||||
this.listPaintings[index].fileList1.splice(fileListLen, 1, Object.assign(item, {
|
||||
this.listPaintings[index].fileList1.splice(
|
||||
fileListLen,
|
||||
1,
|
||||
Object.assign(item, {
|
||||
status: 'success',
|
||||
message: '',
|
||||
url: result
|
||||
}))
|
||||
})
|
||||
)
|
||||
fileListLen++
|
||||
}
|
||||
},
|
||||
async signContract() {
|
||||
this.loading = true
|
||||
const data1 = {
|
||||
batchId:uni.getStorageSync('orderingInfo').transactionId,
|
||||
batchId: uni.getStorageSync('orderingInfo').transactionId
|
||||
}
|
||||
const res1 = await postDataByParams('/api/v2/warehouse/create',data1)
|
||||
const res1 = await postDataByParams(
|
||||
'/api/v2/warehouse/create',
|
||||
data1
|
||||
)
|
||||
if (res1.code === 200) {
|
||||
const res2 = await postDataByParams('/api/v2/warehouse/paid',{
|
||||
const res3 = await this.$api.login.getOpenId()
|
||||
if (res3.status === 0) {
|
||||
const res2 = await postDataByParams(
|
||||
'/api/v2/warehouse/paid',
|
||||
{
|
||||
ID: res1.data.ID
|
||||
})
|
||||
}
|
||||
)
|
||||
if (res2.code === 200) {
|
||||
uni.requestPayment({...res2.data,fail:(res)=>{
|
||||
uni.requestPayment({
|
||||
...res2.data,
|
||||
fail: (res) => {
|
||||
this.loading = false
|
||||
},success:()=>{
|
||||
},
|
||||
success: () => {
|
||||
this.loading = false
|
||||
uni.navigateTo({
|
||||
url: `/pages/paySuccess/paySuccess?ID=${res1.data.ID}`,
|
||||
});
|
||||
}})
|
||||
url: `/pages/paySuccess/paySuccess?ID=${res1.data.ID}`
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.$common.msgToast(res3.msg)
|
||||
}
|
||||
}
|
||||
},
|
||||
async obtainAmount() {
|
||||
uni.setStorageSync("endAt",new Date(Date.now() + this.listPaintings[this.currentIndex].endAt * 86400000)?.toISOString()?.slice(0, 10))
|
||||
uni.setStorageSync(
|
||||
'endAt',
|
||||
new Date(
|
||||
Date.now() +
|
||||
this.listPaintings[this.currentIndex].endAt * 86400000
|
||||
)
|
||||
?.toISOString()
|
||||
?.slice(0, 10)
|
||||
)
|
||||
const data = {
|
||||
orders: [
|
||||
{ artworkSquareSize:Number(this.listPaintings[this.currentIndex].artworkSquareSize),
|
||||
endAt:new Date(Date.now() + this.listPaintings[this.currentIndex].endAt * 86400000)?.toISOString()?.slice(0, 10)}
|
||||
{
|
||||
artworkSquareSize: Number(
|
||||
this.listPaintings[this.currentIndex]
|
||||
.artworkSquareSize
|
||||
),
|
||||
endAt: new Date(
|
||||
Date.now() +
|
||||
this.listPaintings[this.currentIndex].endAt *
|
||||
86400000
|
||||
)
|
||||
?.toISOString()
|
||||
?.slice(0, 10)
|
||||
}
|
||||
]
|
||||
}
|
||||
const res = await postDataByParams('/api/v2/warehouse/calculate',data)
|
||||
const res = await postDataByParams(
|
||||
'/api/v2/warehouse/calculate',
|
||||
data
|
||||
)
|
||||
if (res.code === 200) {
|
||||
this.listPaintings[this.currentIndex].expectedPayment=res.data.orders?.[0]?.money
|
||||
this.listPaintings[this.currentIndex].expectedPayment =
|
||||
res.data.orders?.[0]?.money
|
||||
}
|
||||
},
|
||||
confirmCycle() {
|
||||
@ -641,7 +868,11 @@ export default {
|
||||
}
|
||||
},
|
||||
changeData(e) {
|
||||
this.data = [e.detail.value[0] + 1990, e.detail.value[1] + 1, e.detail.value[2] + 1]
|
||||
this.data = [
|
||||
e.detail.value[0] + 1990,
|
||||
e.detail.value[1] + 1,
|
||||
e.detail.value[2] + 1
|
||||
]
|
||||
},
|
||||
back() {
|
||||
if (this.type === 'detail') {
|
||||
@ -668,7 +899,7 @@ export default {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: -1;
|
||||
background: #A9D897;
|
||||
background: #a9d897;
|
||||
color: #fff;
|
||||
height: 62rpx;
|
||||
}
|
||||
@ -702,7 +933,7 @@ picker-view {
|
||||
}
|
||||
|
||||
.order-details {
|
||||
background-image: url("https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/4fdc9a0f-d72a-46b6-a04d-ed56d5465213.png");
|
||||
background-image: url('https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/4fdc9a0f-d72a-46b6-a04d-ed56d5465213.png');
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
padding-left: 30rpx;
|
||||
@ -728,7 +959,6 @@ picker-view {
|
||||
.wrap2 {
|
||||
box-sizing: border-box;
|
||||
|
||||
|
||||
border-radius: 20rpx;
|
||||
background-color: #fff;
|
||||
padding-left: 18rpx;
|
||||
@ -890,7 +1120,7 @@ picker-view {
|
||||
height: 56rpx;
|
||||
color: #fff;
|
||||
font-size: 32rpx;
|
||||
background: #76C458;
|
||||
background: #76c458;
|
||||
}
|
||||
|
||||
.wrap1 {
|
||||
@ -907,7 +1137,7 @@ picker-view {
|
||||
|
||||
.wrap1_2 {
|
||||
font-size: 32rpx;
|
||||
color: #76C458;
|
||||
color: #76c458;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -931,7 +1161,7 @@ picker-view {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #76C458;
|
||||
background: #76c458;
|
||||
border-radius: 30rpx;
|
||||
}
|
||||
}
|
||||
@ -944,7 +1174,7 @@ picker-view {
|
||||
border-radius: 32rpx;
|
||||
height: 80rpx;
|
||||
box-sizing: border-box;
|
||||
border: 2px solid #76C458;
|
||||
border: 2px solid #76c458;
|
||||
padding-left: 44rpx;
|
||||
padding-right: 42rpx;
|
||||
display: flex;
|
||||
@ -952,7 +1182,7 @@ picker-view {
|
||||
align-items: center;
|
||||
|
||||
.wrap1_2 {
|
||||
color: #76C458;
|
||||
color: #76c458;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
@ -963,7 +1193,7 @@ picker-view {
|
||||
|
||||
&.disabled {
|
||||
border: none;
|
||||
background: #D8D8D8;
|
||||
background: #d8d8d8;
|
||||
|
||||
.wrap1_1 {
|
||||
color: #626262;
|
||||
@ -977,7 +1207,7 @@ picker-view {
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: #76C458;
|
||||
background: #76c458;
|
||||
|
||||
.wrap1_2 {
|
||||
color: #fff;
|
||||
@ -1023,7 +1253,6 @@ picker-view {
|
||||
padding-left: 30rpx;
|
||||
padding-right: 30rpx;
|
||||
& > .content7 {
|
||||
|
||||
}
|
||||
& > .content3 {
|
||||
display: flex;
|
||||
@ -1035,7 +1264,7 @@ picker-view {
|
||||
margin-top: 30rpx;
|
||||
width: 220rpx;
|
||||
height: 84rpx;
|
||||
background: #D8D8D8;
|
||||
background: #d8d8d8;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@ -1047,7 +1276,7 @@ picker-view {
|
||||
}
|
||||
|
||||
.wrap4_2 {
|
||||
color: #BE7E7E;
|
||||
color: #be7e7e;
|
||||
font-size: 16rpx;
|
||||
}
|
||||
}
|
||||
@ -1058,7 +1287,7 @@ picker-view {
|
||||
margin-right: 16rpx;
|
||||
font-size: 28rpx;
|
||||
border-radius: 32rpx;
|
||||
border: 2rpx solid #76C458;
|
||||
border: 2rpx solid #76c458;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
@ -1071,7 +1300,7 @@ picker-view {
|
||||
|
||||
&.active {
|
||||
color: #fff;
|
||||
background: #76C458;
|
||||
background: #76c458;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1089,7 +1318,7 @@ picker-view {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #76C458;
|
||||
background: #76c458;
|
||||
border-radius: 30rpx;
|
||||
}
|
||||
}
|
||||
@ -1099,15 +1328,15 @@ picker-view {
|
||||
height: 66rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 1rpx solid #BABABA;
|
||||
border-top: 1rpx solid #BABABA;
|
||||
border-bottom: 1rpx solid #bababa;
|
||||
border-top: 1rpx solid #bababa;
|
||||
|
||||
.wrap1 {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-grow: 1;
|
||||
color: #4E964D;
|
||||
color: #4e964d;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
@ -1116,7 +1345,7 @@ picker-view {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-grow: 1;
|
||||
color: #4E964D;
|
||||
color: #4e964d;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
@ -1125,7 +1354,7 @@ picker-view {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-grow: 1;
|
||||
color: #4E964D;
|
||||
color: #4e964d;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
}
|
||||
@ -1191,7 +1420,7 @@ picker-view {
|
||||
margin-top: 60rpx;
|
||||
|
||||
.wrap1 {
|
||||
border: 1rpx dashed #DFE9F0;
|
||||
border: 1rpx dashed #dfe9f0;
|
||||
background-color: #fff;
|
||||
|
||||
.wrap1_1 {
|
||||
@ -1225,7 +1454,6 @@ picker-view {
|
||||
width: 0;
|
||||
height: 66rpx;
|
||||
border-left: 0.5px solid #626262;
|
||||
|
||||
}
|
||||
|
||||
.wrap1_1_1 {
|
||||
@ -1243,13 +1471,13 @@ picker-view {
|
||||
margin-top: 60rpx;
|
||||
|
||||
.prompt {
|
||||
color: #4E964D;
|
||||
color: #4e964d;
|
||||
font-size: 16rpx;
|
||||
margin-bottom: 4rpx;
|
||||
}
|
||||
|
||||
.wrap1 {
|
||||
border: 1rpx dashed #DFE9F0;
|
||||
border: 1rpx dashed #dfe9f0;
|
||||
background-color: #fff;
|
||||
|
||||
.wrap1_1 {
|
||||
@ -1273,7 +1501,6 @@ picker-view {
|
||||
width: 0;
|
||||
height: 66rpx;
|
||||
border-left: 0.5px solid #626262;
|
||||
|
||||
}
|
||||
|
||||
.wrap1_1_1 {
|
||||
@ -1288,7 +1515,6 @@ picker-view {
|
||||
}
|
||||
|
||||
& > .content2 {
|
||||
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
@ -1340,14 +1566,9 @@ picker-view {
|
||||
height: 18rpx;
|
||||
background-color: rgba(118, 196, 88, 1);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -120,7 +120,7 @@ export default {
|
||||
return {
|
||||
code: '',
|
||||
openId: '',
|
||||
isShow: false,
|
||||
isShow: true,
|
||||
isNew: false,
|
||||
isShowCaptcha: false,
|
||||
phone: '',
|
||||
@ -143,10 +143,11 @@ export default {
|
||||
// 用户允许或去手机号
|
||||
let res = await this.$api.login.getTel({ code: e.detail.code })
|
||||
if (res.status == 0) {
|
||||
uni.setStorageSync('token', res.data.token)
|
||||
uni.setStorageSync('telNum', res.data.telNum)
|
||||
this.isPhoneLogin = false
|
||||
uni.setStorageSync('phoneLogin', this.isPhoneLogin)
|
||||
if (this.isNew) {
|
||||
if (res.data.isNew) {
|
||||
uni.reLaunch({
|
||||
url: '/pages/realName/realName'
|
||||
})
|
||||
@ -176,7 +177,7 @@ export default {
|
||||
!uni.getStorageSync('telNum')
|
||||
) {
|
||||
this.isShow = true
|
||||
this.isNew = res1.data.accountInfo.isNew
|
||||
// this.isNew = res1.data.accountInfo.isNew
|
||||
} else {
|
||||
uni.reLaunch({
|
||||
url: '/pages/home/index'
|
||||
@ -246,7 +247,7 @@ export default {
|
||||
this.isPhoneLogin = true
|
||||
uni.setStorageSync('phoneLogin', this.isPhoneLogin)
|
||||
uni.reLaunch({
|
||||
url: `/pages/realName/realName?isPhoneLogin`
|
||||
url: `/pages/realName/realName`
|
||||
})
|
||||
}
|
||||
} else {
|
||||
@ -288,7 +289,7 @@ export default {
|
||||
// this.getOpenId();
|
||||
// }
|
||||
// this.info();
|
||||
this.getOpenId()
|
||||
// this.getOpenId()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -32,7 +32,9 @@
|
||||
:maxCount="1"
|
||||
@afterRead="changeAvatar"
|
||||
>
|
||||
<view style="width: 348rpx; height: 56rpx; margin-top: 20rpx">
|
||||
<view
|
||||
style="width: 348rpx; height: 56rpx; margin-top: 20rpx"
|
||||
>
|
||||
<u-button
|
||||
text="更换头像"
|
||||
shape="circle"
|
||||
@ -55,10 +57,14 @@
|
||||
</div>
|
||||
<div class="wrap1_1">
|
||||
<div class="wrap1_1_1">
|
||||
{{ user.idType === "0" ? "身份证号" : "护照号" }}
|
||||
{{ user.idType === '0' ? '身份证号' : '护照号' }}
|
||||
</div>
|
||||
<div class="wrap1_1_2">
|
||||
{{ user.idType === "0" ? user.iDNum : user.passport.idNum }}
|
||||
{{
|
||||
user.idType === '0'
|
||||
? user.iDNum
|
||||
: user.passport.idNum
|
||||
}}
|
||||
</div>
|
||||
<div class="wrap1_1_3">
|
||||
<view></view>
|
||||
@ -76,92 +82,107 @@
|
||||
<div class="wrap2"></div>
|
||||
</div>
|
||||
<div class="content4">
|
||||
<div class="wrap1" @click="logout">注销账号</div>
|
||||
<div class="wrap1" @click="signOff">注销账号</div>
|
||||
</div>
|
||||
<div class="content5">
|
||||
<div class="wrap1" @click="logout">退出登录</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import http from "@/http/api";
|
||||
import tabBarJs from "../../util/tabbar";
|
||||
import http from '@/http/api'
|
||||
import tabBarJs from '../../util/tabbar'
|
||||
export default {
|
||||
name: "set-up",
|
||||
name: 'set-up',
|
||||
data() {
|
||||
return {
|
||||
user: {},
|
||||
};
|
||||
user: {}
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.info();
|
||||
this.info()
|
||||
},
|
||||
methods: {
|
||||
async info() {
|
||||
const res = await this.$api.mine.info();
|
||||
const res = await this.$api.mine.info()
|
||||
if (res.status === 0) {
|
||||
this.user = res.data.user;
|
||||
this.user = res.data.user
|
||||
} else {
|
||||
this.$common.msgToast(res.msg);
|
||||
this.$common.msgToast(res.msg)
|
||||
}
|
||||
},
|
||||
changeAvatar(file) {
|
||||
console.log(file);
|
||||
this.uploadFilePromise(file.file[0].url);
|
||||
console.log(file)
|
||||
this.uploadFilePromise(file.file[0].url)
|
||||
},
|
||||
uploadFilePromise(url) {
|
||||
return new Promise((resolve) => {
|
||||
uni.uploadFile({
|
||||
url: http.baseUrl + "/api/wxuser/uploadpic",
|
||||
url: http.baseUrl + '/api/wxuser/uploadpic',
|
||||
filePath: url,
|
||||
name: "file",
|
||||
name: 'file',
|
||||
success: (res) => {
|
||||
res.data = JSON.parse(res.data);
|
||||
resolve(res.data.data.path);
|
||||
res.data = JSON.parse(res.data)
|
||||
resolve(res.data.data.path)
|
||||
this.updateInfo({
|
||||
avatar: res.data.data.path,
|
||||
});
|
||||
},
|
||||
});
|
||||
});
|
||||
avatar: res.data.data.path
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
async updateInfo(data) {
|
||||
let res = await this.$api.mine.update(data);
|
||||
let res = await this.$api.mine.update(data)
|
||||
if (res.status === 0) {
|
||||
this.$common.msgToast("修改成功");
|
||||
this.info();
|
||||
this.$common.msgToast('修改成功')
|
||||
this.info()
|
||||
} else {
|
||||
this.$common.msgToast(res.msg);
|
||||
this.$common.msgToast(res.msg)
|
||||
}
|
||||
},
|
||||
backDafult() {
|
||||
this.updateInfo({
|
||||
avatar:
|
||||
"https://cdns.fontree.cn/fonchain-main/prod/image/407e7c22-eb62-411e-957b-b6c296fde530/artwork/814ac246-e1eb-49fe-beee-dd53aaf5d309.png",
|
||||
});
|
||||
avatar: 'https://cdns.fontree.cn/fonchain-main/prod/image/407e7c22-eb62-411e-957b-b6c296fde530/artwork/814ac246-e1eb-49fe-beee-dd53aaf5d309.png'
|
||||
})
|
||||
},
|
||||
|
||||
async logout() {
|
||||
let res = await this.$api.mine.logout();
|
||||
async signOff() {
|
||||
let res = await this.$api.mine.signOff()
|
||||
if (res.status === 0) {
|
||||
this.$common.msgToast("注销成功");
|
||||
uni.clearStorageSync();
|
||||
uni.setStorageSync("tabBar", tabBarJs);
|
||||
this.$common.msgToast('注销成功')
|
||||
uni.clearStorageSync()
|
||||
uni.setStorageSync('tabBar', tabBarJs)
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login",
|
||||
});
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
} else {
|
||||
this.$common.msgToast(res.msg);
|
||||
this.$common.msgToast(res.msg)
|
||||
}
|
||||
},
|
||||
async logout() {
|
||||
let res = await this.$api.mine.logout()
|
||||
if (res.status === 0) {
|
||||
this.$common.msgToast('退出成功')
|
||||
uni.clearStorageSync()
|
||||
uni.setStorageSync('tabBar', tabBarJs)
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
} else {
|
||||
this.$common.msgToast(res.msg)
|
||||
}
|
||||
},
|
||||
back() {
|
||||
uni.navigateBack({
|
||||
delta: 2,
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
delta: 2
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.set-up {
|
||||
background-image: url("https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/4fdc9a0f-d72a-46b6-a04d-ed56d5465213.png");
|
||||
background-image: url('https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/4fdc9a0f-d72a-46b6-a04d-ed56d5465213.png');
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
@ -174,7 +195,7 @@ export default {
|
||||
.content4 {
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
bottom: 104rpx;
|
||||
bottom: 200rpx;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
|
||||
@ -191,6 +212,26 @@ export default {
|
||||
background: #3e3e3e;
|
||||
}
|
||||
|
||||
.wrap1 {
|
||||
color: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 32rpx;
|
||||
border-radius: 40rpx;
|
||||
width: 292rpx;
|
||||
height: 56rpx;
|
||||
background: #a8a8a8;
|
||||
}
|
||||
}
|
||||
|
||||
.content5 {
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
bottom: 100rpx;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
|
||||
.wrap1 {
|
||||
color: #fff;
|
||||
display: flex;
|
||||
|
@ -173,6 +173,8 @@ export default {
|
||||
const data = {
|
||||
ID: this.item.ID
|
||||
}
|
||||
const res3 = await this.$api.login.getOpenId()
|
||||
if(res3.status === 0) {
|
||||
const res = await postDataByParams('/api/warehouse/supply/paid', data)
|
||||
if (res.code===200){
|
||||
uni.requestPayment({...res.data,fail:(res)=>{
|
||||
@ -189,6 +191,9 @@ export default {
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.$common.msgToast(res3.msg)
|
||||
}
|
||||
},
|
||||
async getDistanceFromTopToPageBottom(classValue) {
|
||||
const {windowHeight, windowWidth} = await uni.getSystemInfo();
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -36,7 +36,7 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: -1;
|
||||
background: #A9D897;
|
||||
background: #a9d897;
|
||||
color: #fff;
|
||||
height: 62rpx;
|
||||
}
|
||||
@ -251,7 +251,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
height: 56rpx;
|
||||
color: #fff;
|
||||
font-size: 32rpx;
|
||||
background: #76C458;
|
||||
background: #76c458;
|
||||
}
|
||||
.order-details > .content5 .wrap1.data-v-2b9e2b4a {
|
||||
margin-left: 18rpx;
|
||||
@ -266,7 +266,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
}
|
||||
.order-details > .content5 .wrap1 .wrap1_2.data-v-2b9e2b4a {
|
||||
font-size: 32rpx;
|
||||
color: #76C458;
|
||||
color: #76c458;
|
||||
}
|
||||
.order-details .poup1.data-v-2b9e2b4a {
|
||||
padding-top: 28rpx;
|
||||
@ -287,7 +287,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #76C458;
|
||||
background: #76c458;
|
||||
border-radius: 30rpx;
|
||||
}
|
||||
.order-details .poup1 > .content3.data-v-2b9e2b4a {
|
||||
@ -298,7 +298,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
border-radius: 32rpx;
|
||||
height: 80rpx;
|
||||
box-sizing: border-box;
|
||||
border: 2px solid #76C458;
|
||||
border: 2px solid #76c458;
|
||||
padding-left: 44rpx;
|
||||
padding-right: 42rpx;
|
||||
display: flex;
|
||||
@ -306,7 +306,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
align-items: center;
|
||||
}
|
||||
.order-details .poup1 > .content3 .wrap1 .wrap1_2.data-v-2b9e2b4a {
|
||||
color: #76C458;
|
||||
color: #76c458;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.order-details .poup1 > .content3 .wrap1 .wrap1_1.data-v-2b9e2b4a {
|
||||
@ -315,7 +315,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
}
|
||||
.order-details .poup1 > .content3 .wrap1.disabled.data-v-2b9e2b4a {
|
||||
border: none;
|
||||
background: #D8D8D8;
|
||||
background: #d8d8d8;
|
||||
}
|
||||
.order-details .poup1 > .content3 .wrap1.disabled .wrap1_1.data-v-2b9e2b4a {
|
||||
color: #626262;
|
||||
@ -326,7 +326,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
font-size: 16rpx;
|
||||
}
|
||||
.order-details .poup1 > .content3 .wrap1.active.data-v-2b9e2b4a {
|
||||
background: #76C458;
|
||||
background: #76c458;
|
||||
}
|
||||
.order-details .poup1 > .content3 .wrap1.active .wrap1_2.data-v-2b9e2b4a {
|
||||
color: #fff;
|
||||
@ -370,7 +370,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
margin-top: 30rpx;
|
||||
width: 220rpx;
|
||||
height: 84rpx;
|
||||
background: #D8D8D8;
|
||||
background: #d8d8d8;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@ -381,7 +381,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.order-details .poup > .content3 .wrap4 .wrap4_2.data-v-2b9e2b4a {
|
||||
color: #BE7E7E;
|
||||
color: #be7e7e;
|
||||
font-size: 16rpx;
|
||||
}
|
||||
.order-details .poup > .content3 .wrap1.data-v-2b9e2b4a {
|
||||
@ -390,7 +390,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
margin-right: 16rpx;
|
||||
font-size: 28rpx;
|
||||
border-radius: 32rpx;
|
||||
border: 2rpx solid #76C458;
|
||||
border: 2rpx solid #76c458;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
@ -402,7 +402,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
}
|
||||
.order-details .poup > .content3 .wrap1.active.data-v-2b9e2b4a {
|
||||
color: #fff;
|
||||
background: #76C458;
|
||||
background: #76c458;
|
||||
}
|
||||
.order-details .poup > .content6.data-v-2b9e2b4a {
|
||||
margin-top: 26rpx;
|
||||
@ -417,7 +417,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #76C458;
|
||||
background: #76c458;
|
||||
border-radius: 30rpx;
|
||||
}
|
||||
.order-details .poup > .content5.data-v-2b9e2b4a {
|
||||
@ -425,15 +425,15 @@ picker-view.data-v-2b9e2b4a {
|
||||
height: 66rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 1rpx solid #BABABA;
|
||||
border-top: 1rpx solid #BABABA;
|
||||
border-bottom: 1rpx solid #bababa;
|
||||
border-top: 1rpx solid #bababa;
|
||||
}
|
||||
.order-details .poup > .content5 .wrap1.data-v-2b9e2b4a {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-grow: 1;
|
||||
color: #4E964D;
|
||||
color: #4e964d;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.order-details .poup > .content5 .wrap2.data-v-2b9e2b4a {
|
||||
@ -441,7 +441,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-grow: 1;
|
||||
color: #4E964D;
|
||||
color: #4e964d;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.order-details .poup > .content5 .wrap3.data-v-2b9e2b4a {
|
||||
@ -449,7 +449,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-grow: 1;
|
||||
color: #4E964D;
|
||||
color: #4e964d;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.order-details .poup > .content4.data-v-2b9e2b4a {
|
||||
@ -504,7 +504,7 @@ picker-view.data-v-2b9e2b4a {
|
||||
margin-top: 60rpx;
|
||||
}
|
||||
.order-details .content-center .content-scroll > .content4 .wrap1.data-v-2b9e2b4a {
|
||||
border: 1rpx dashed #DFE9F0;
|
||||
border: 1rpx dashed #dfe9f0;
|
||||
background-color: #fff;
|
||||
}
|
||||
.order-details .content-center .content-scroll > .content4 .wrap1 .wrap1_1.data-v-2b9e2b4a {
|
||||
@ -547,12 +547,12 @@ picker-view.data-v-2b9e2b4a {
|
||||
margin-top: 60rpx;
|
||||
}
|
||||
.order-details .content-center .content-scroll > .content3 .prompt.data-v-2b9e2b4a {
|
||||
color: #4E964D;
|
||||
color: #4e964d;
|
||||
font-size: 16rpx;
|
||||
margin-bottom: 4rpx;
|
||||
}
|
||||
.order-details .content-center .content-scroll > .content3 .wrap1.data-v-2b9e2b4a {
|
||||
border: 1rpx dashed #DFE9F0;
|
||||
border: 1rpx dashed #dfe9f0;
|
||||
background-color: #fff;
|
||||
}
|
||||
.order-details .content-center .content-scroll > .content3 .wrap1 .wrap1_1.data-v-2b9e2b4a {
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/set-up"],{304:function(e,n,t){"use strict";(function(e,n){var a=t(4);t(26);a(t(25));var r=a(t(305));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},305:function(e,n,t){"use strict";t.r(n);var a=t(306),r=t(308);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t(310);var u,c=t(33),i=Object(c["default"])(r["default"],a["render"],a["staticRenderFns"],!1,null,"6d897039",null,!1,a["components"],u);i.options.__file="pages/mine/set-up.vue",n["default"]=i.exports},306:function(e,n,t){"use strict";t.r(n);var a=t(307);t.d(n,"render",(function(){return a["render"]})),t.d(n,"staticRenderFns",(function(){return a["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return a["recyclableRender"]})),t.d(n,"components",(function(){return a["components"]}))},307:function(e,n,t){"use strict";var a;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return a}));try{a={titleBlock:function(){return t.e("components/title-block/title-block").then(t.bind(null,422))},uUpload:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-upload/u-upload")]).then(t.bind(null,412))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,378))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},o=!1,u=[];r._withStripped=!0},308:function(e,n,t){"use strict";t.r(n);var a=t(309),r=t.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);n["default"]=r.a},309:function(e,n,t){"use strict";(function(e){var a=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(t(63)),o=a(t(65)),u=a(t(223)),c=a(t(30)),i={name:"set-up",data:function(){return{user:{}}},onLoad:function(){this.info()},methods:{info:function(){var e=this;return(0,o.default)(r.default.mark((function n(){var t;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.mine.info();case 2:t=n.sent,0===t.status?e.user=t.data.user:e.$common.msgToast(t.msg);case 4:case"end":return n.stop()}}),n)})))()},changeAvatar:function(e){console.log(e),this.uploadFilePromise(e.file[0].url)},uploadFilePromise:function(n){var t=this;return new Promise((function(a){e.uploadFile({url:u.default.baseUrl+"/api/wxuser/uploadpic",filePath:n,name:"file",success:function(e){e.data=JSON.parse(e.data),a(e.data.data.path),t.updateInfo({avatar:e.data.data.path})}})}))},updateInfo:function(e){var n=this;return(0,o.default)(r.default.mark((function t(){var a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$api.mine.update(e);case 2:a=t.sent,0===a.status?(n.$common.msgToast("修改成功"),n.info()):n.$common.msgToast(a.msg);case 4:case"end":return t.stop()}}),t)})))()},backDafult:function(){this.updateInfo({avatar:"https://cdns.fontree.cn/fonchain-main/prod/image/407e7c22-eb62-411e-957b-b6c296fde530/artwork/814ac246-e1eb-49fe-beee-dd53aaf5d309.png"})},logout:function(){var n=this;return(0,o.default)(r.default.mark((function t(){var a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$api.mine.logout();case 2:a=t.sent,0===a.status?(n.$common.msgToast("注销成功"),e.clearStorageSync(),e.setStorageSync("tabBar",c.default),e.navigateTo({url:"/pages/login/login"})):n.$common.msgToast(a.msg);case 4:case"end":return t.stop()}}),t)})))()},back:function(){e.navigateBack({delta:2})}}};n.default=i}).call(this,t(2)["default"])},310:function(e,n,t){"use strict";t.r(n);var a=t(311),r=t.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);n["default"]=r.a},311:function(e,n,t){}},[[304,"common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/set-up"],{304:function(e,n,t){"use strict";(function(e,n){var a=t(4);t(26);a(t(25));var r=a(t(305));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},305:function(e,n,t){"use strict";t.r(n);var a=t(306),r=t(308);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t(310);var u,c=t(33),i=Object(c["default"])(r["default"],a["render"],a["staticRenderFns"],!1,null,"6d897039",null,!1,a["components"],u);i.options.__file="pages/mine/set-up.vue",n["default"]=i.exports},306:function(e,n,t){"use strict";t.r(n);var a=t(307);t.d(n,"render",(function(){return a["render"]})),t.d(n,"staticRenderFns",(function(){return a["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return a["recyclableRender"]})),t.d(n,"components",(function(){return a["components"]}))},307:function(e,n,t){"use strict";var a;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return a}));try{a={titleBlock:function(){return t.e("components/title-block/title-block").then(t.bind(null,422))},uUpload:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-upload/u-upload")]).then(t.bind(null,412))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,378))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},o=!1,u=[];r._withStripped=!0},308:function(e,n,t){"use strict";t.r(n);var a=t(309),r=t.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);n["default"]=r.a},309:function(e,n,t){"use strict";(function(e){var a=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(t(63)),o=a(t(65)),u=a(t(223)),c=a(t(30)),i={name:"set-up",data:function(){return{user:{}}},onLoad:function(){this.info()},methods:{info:function(){var e=this;return(0,o.default)(r.default.mark((function n(){var t;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.mine.info();case 2:t=n.sent,0===t.status?e.user=t.data.user:e.$common.msgToast(t.msg);case 4:case"end":return n.stop()}}),n)})))()},changeAvatar:function(e){console.log(e),this.uploadFilePromise(e.file[0].url)},uploadFilePromise:function(n){var t=this;return new Promise((function(a){e.uploadFile({url:u.default.baseUrl+"/api/wxuser/uploadpic",filePath:n,name:"file",success:function(e){e.data=JSON.parse(e.data),a(e.data.data.path),t.updateInfo({avatar:e.data.data.path})}})}))},updateInfo:function(e){var n=this;return(0,o.default)(r.default.mark((function t(){var a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$api.mine.update(e);case 2:a=t.sent,0===a.status?(n.$common.msgToast("修改成功"),n.info()):n.$common.msgToast(a.msg);case 4:case"end":return t.stop()}}),t)})))()},backDafult:function(){this.updateInfo({avatar:"https://cdns.fontree.cn/fonchain-main/prod/image/407e7c22-eb62-411e-957b-b6c296fde530/artwork/814ac246-e1eb-49fe-beee-dd53aaf5d309.png"})},signOff:function(){var n=this;return(0,o.default)(r.default.mark((function t(){var a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$api.mine.signOff();case 2:a=t.sent,0===a.status?(n.$common.msgToast("注销成功"),e.clearStorageSync(),e.setStorageSync("tabBar",c.default),e.navigateTo({url:"/pages/login/login"})):n.$common.msgToast(a.msg);case 4:case"end":return t.stop()}}),t)})))()},logout:function(){var n=this;return(0,o.default)(r.default.mark((function t(){var a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$api.mine.logout();case 2:a=t.sent,0===a.status?(n.$common.msgToast("退出成功"),e.clearStorageSync(),e.setStorageSync("tabBar",c.default),e.navigateTo({url:"/pages/login/login"})):n.$common.msgToast(a.msg);case 4:case"end":return t.stop()}}),t)})))()},back:function(){e.navigateBack({delta:2})}}};n.default=i}).call(this,t(2)["default"])},310:function(e,n,t){"use strict";t.r(n);var a=t(311),r=t.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);n["default"]=r.a},311:function(e,n,t){}},[[304,"common/runtime","common/vendor"]]]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/set-up.js.map
|
@ -1 +1 @@
|
||||
<view class="set-up _div data-v-6d897039"><title-block vue-id="43a517ed-1" title="设置" class="data-v-6d897039" bind:__l="__l" vue-slots="{{['left']}}"><view class="_div data-v-6d897039" slot="left"><image style="width:112rpx;height:52rpx;" src="https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/785cf885-c4c9-44b3-8155-4b39988c7ef8.png" data-event-opts="{{[['tap',[['back',['$event']]]]]}}" bindtap="__e" class="data-v-6d897039"></image></view></title-block><view class="content2 _div data-v-6d897039"><view class="wrap1 _div data-v-6d897039"><image src="{{user.avatar?user.avatar:'https://cdns.fontree.cn/fonchain-main/prod/image/407e7c22-eb62-411e-957b-b6c296fde530/artwork/814ac246-e1eb-49fe-beee-dd53aaf5d309.png'}}" mode="scaleToFill" class="data-v-6d897039"></image></view><view class="wrap2 _div data-v-6d897039"><view data-event-opts="{{[['tap',[['backDafult',['$event']]]]]}}" class="wrap2_1 _div data-v-6d897039" bindtap="__e">恢复默认头像</view><u-upload vue-id="43a517ed-2" fileList="{{fileList}}" name="1" multiple="{{true}}" maxCount="{{1}}" data-event-opts="{{[['^afterRead',[['changeAvatar']]]]}}" bind:afterRead="__e" class="data-v-6d897039" bind:__l="__l" vue-slots="{{['default']}}"><view style="width:348rpx;height:56rpx;margin-top:20rpx;" class="data-v-6d897039"><u-button class="size data-v-6d897039" vue-id="{{('43a517ed-3')+','+('43a517ed-2')}}" text="更换头像" shape="circle" color="#76C458" bind:__l="__l"></u-button></view></u-upload></view></view><view class="content3 _div data-v-6d897039"><view class="wrap1 _div data-v-6d897039"><view class="wrap1_1 _div data-v-6d897039"><view class="wrap1_1_1 _div data-v-6d897039">姓名</view><view class="wrap1_1_2 _div data-v-6d897039">{{user.nickName}}</view><view class="wrap1_1_3 _div data-v-6d897039"><view class="data-v-6d897039"></view></view><view class="wrap1_1_4 _div data-v-6d897039"></view></view><view class="wrap1_1 _div data-v-6d897039"><view class="wrap1_1_1 _div data-v-6d897039">{{''+(user.idType==="0"?"身份证号":"护照号")+''}}</view><view class="wrap1_1_2 _div data-v-6d897039">{{''+(user.idType==="0"?user.iDNum:user.passport.idNum)+''}}</view><view class="wrap1_1_3 _div data-v-6d897039"><view class="data-v-6d897039"></view></view><view class="wrap1_1_4 _div data-v-6d897039"></view></view><view class="wrap1_1 _div data-v-6d897039"><view class="wrap1_1_1 _div data-v-6d897039">手机号</view><view class="wrap1_1_2 _div data-v-6d897039">{{user.telNum}}</view><view class="wrap1_1_3 _div data-v-6d897039"><view class="data-v-6d897039"></view></view></view></view><view class="wrap2 _div data-v-6d897039"></view></view><view class="content4 _div data-v-6d897039"><view data-event-opts="{{[['tap',[['logout',['$event']]]]]}}" class="wrap1 _div data-v-6d897039" bindtap="__e">注销账号</view></view></view>
|
||||
<view class="set-up _div data-v-6d897039"><title-block vue-id="43a517ed-1" title="设置" class="data-v-6d897039" bind:__l="__l" vue-slots="{{['left']}}"><view class="_div data-v-6d897039" slot="left"><image style="width:112rpx;height:52rpx;" src="https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/785cf885-c4c9-44b3-8155-4b39988c7ef8.png" data-event-opts="{{[['tap',[['back',['$event']]]]]}}" bindtap="__e" class="data-v-6d897039"></image></view></title-block><view class="content2 _div data-v-6d897039"><view class="wrap1 _div data-v-6d897039"><image src="{{user.avatar?user.avatar:'https://cdns.fontree.cn/fonchain-main/prod/image/407e7c22-eb62-411e-957b-b6c296fde530/artwork/814ac246-e1eb-49fe-beee-dd53aaf5d309.png'}}" mode="scaleToFill" class="data-v-6d897039"></image></view><view class="wrap2 _div data-v-6d897039"><view data-event-opts="{{[['tap',[['backDafult',['$event']]]]]}}" class="wrap2_1 _div data-v-6d897039" bindtap="__e">恢复默认头像</view><u-upload vue-id="43a517ed-2" fileList="{{fileList}}" name="1" multiple="{{true}}" maxCount="{{1}}" data-event-opts="{{[['^afterRead',[['changeAvatar']]]]}}" bind:afterRead="__e" class="data-v-6d897039" bind:__l="__l" vue-slots="{{['default']}}"><view style="width:348rpx;height:56rpx;margin-top:20rpx;" class="data-v-6d897039"><u-button class="size data-v-6d897039" vue-id="{{('43a517ed-3')+','+('43a517ed-2')}}" text="更换头像" shape="circle" color="#76C458" bind:__l="__l"></u-button></view></u-upload></view></view><view class="content3 _div data-v-6d897039"><view class="wrap1 _div data-v-6d897039"><view class="wrap1_1 _div data-v-6d897039"><view class="wrap1_1_1 _div data-v-6d897039">姓名</view><view class="wrap1_1_2 _div data-v-6d897039">{{user.nickName}}</view><view class="wrap1_1_3 _div data-v-6d897039"><view class="data-v-6d897039"></view></view><view class="wrap1_1_4 _div data-v-6d897039"></view></view><view class="wrap1_1 _div data-v-6d897039"><view class="wrap1_1_1 _div data-v-6d897039">{{''+(user.idType==='0'?'身份证号':'护照号')+''}}</view><view class="wrap1_1_2 _div data-v-6d897039">{{''+(user.idType==='0'?user.iDNum:user.passport.idNum)+''}}</view><view class="wrap1_1_3 _div data-v-6d897039"><view class="data-v-6d897039"></view></view><view class="wrap1_1_4 _div data-v-6d897039"></view></view><view class="wrap1_1 _div data-v-6d897039"><view class="wrap1_1_1 _div data-v-6d897039">手机号</view><view class="wrap1_1_2 _div data-v-6d897039">{{user.telNum}}</view><view class="wrap1_1_3 _div data-v-6d897039"><view class="data-v-6d897039"></view></view></view></view><view class="wrap2 _div data-v-6d897039"></view></view><view class="content4 _div data-v-6d897039"><view data-event-opts="{{[['tap',[['signOff',['$event']]]]]}}" class="wrap1 _div data-v-6d897039" bindtap="__e">注销账号</view></view><view class="content5 _div data-v-6d897039"><view data-event-opts="{{[['tap',[['logout',['$event']]]]]}}" class="wrap1 _div data-v-6d897039" bindtap="__e">退出登录</view></view></view>
|
@ -39,7 +39,7 @@
|
||||
left: 50%;
|
||||
-webkit-transform: translateX(-50%);
|
||||
transform: translateX(-50%);
|
||||
bottom: 104rpx;
|
||||
bottom: 200rpx;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
}
|
||||
@ -56,6 +56,25 @@
|
||||
background: #3e3e3e;
|
||||
}
|
||||
.set-up .content4 .wrap1.data-v-6d897039 {
|
||||
color: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 32rpx;
|
||||
border-radius: 40rpx;
|
||||
width: 292rpx;
|
||||
height: 56rpx;
|
||||
background: #a8a8a8;
|
||||
}
|
||||
.set-up .content5.data-v-6d897039 {
|
||||
left: 50%;
|
||||
-webkit-transform: translateX(-50%);
|
||||
transform: translateX(-50%);
|
||||
bottom: 100rpx;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
}
|
||||
.set-up .content5 .wrap1.data-v-6d897039 {
|
||||
color: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
Loading…
Reference in New Issue
Block a user