master
xy 1 year ago
parent d70fb991c2
commit c1940e57f9

@ -48,7 +48,7 @@ const install = (Vue, vm) => {
} else { } else {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title: res.errmsg||"系统错误" title: res.data.errmsg||"系统错误"
}) })
return false return false
} }

@ -15,7 +15,7 @@
:current="swiperCurrent" :current="swiperCurrent"
@change="change" @change="change"
:is-scroll="false" :is-scroll="false"
:offset="[5, 5]" :offset="[10, 5]"
swiperWidth="750" swiperWidth="750"
></u-tabs-swiper> ></u-tabs-swiper>
</view> </view>
@ -44,7 +44,7 @@
<view class="price"> <view class="price">
<view class="price-icon"> <view class="price-icon">
<u-icon :name="i.cover ? i.cover.url : vuex_default_icon" size="30"></u-icon> <u-icon :name="(i.order_detail[0] && i.order_detail[0].product && i.order_detail[0].product.image) ? i.order_detail[0].product.image.url : vuex_default_icon" size="30"></u-icon>
</view> </view>
<view class="price-text"> <view class="price-text">

@ -202,9 +202,6 @@
>{{ item.address }}</view >{{ item.address }}</view
> >
</view> </view>
<view class="bottom">
<text>{{ item.name }} {{ item.mobile }}</text>
</view>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
@ -338,6 +335,7 @@ export default {
try { try {
const res = await this.$u.api.userOrdersDetail({ id }) const res = await this.$u.api.userOrdersDetail({ id })
this.detail = res this.detail = res
this.carts = res.order_detail
} catch (err) { } catch (err) {
console.error(err) console.error(err)
} }

@ -307,10 +307,10 @@
<!-- --> <!-- -->
<view class="navigation"> <view class="navigation">
<view class="left"> <view class="left">
<view class="item"> <button class="item" open-type="contact">
<u-icon name="server-fill" :size="40" color="#333"></u-icon> <u-icon name="server-fill" :size="40" color="#333"></u-icon>
<view class="text u-line-1">客服</view> <view class="text u-line-1">客服</view>
</view> </button>
<view class="item car" @tap="$u.route({ url: '/package_sub/pages/Shop/Cart' })"> <view class="item car" @tap="$u.route({ url: '/package_sub/pages/Shop/Cart' })">
<u-badge <u-badge
class="car-num" class="car-num"
@ -596,6 +596,9 @@ export default {
this.getCartNum(); this.getCartNum();
} }
if (this.isImmediateBuy) { if (this.isImmediateBuy) {
this.$u.route({
url: '/package_sub/pages/Shop/Pay'
})
} }
this.showType = false; this.showType = false;
} catch (err) {} } catch (err) {}
@ -1050,6 +1053,23 @@ page {
.left { .left {
display: flex; display: flex;
font-size: 20rpx; font-size: 20rpx;
button {
display: block;
margin: 0;
padding: 0;
line-height: normal;
background: none;
border-radius: 0;
box-shadow: none;
border: none;
font-size: unset;
text-align: unset;
overflow: visible;
color: inherit;
&::after {
border: none;
}
}
.item { .item {
color: #333; color: #333;
margin: 0 30rpx; margin: 0 30rpx;

@ -115,8 +115,11 @@
<image :src="form.headimgurl || vuex_default_icon" mode="aspectFit"></image> <image :src="form.headimgurl || vuex_default_icon" mode="aspectFit"></image>
</button> </button>
</u-form-item> </u-form-item>
<u-form-item label="昵称">
<input type="nickname" v-model="form.nickname" @change="nicknameChange"></input>
</u-form-item>
<u-form-item label="性别"> <u-form-item label="性别">
<u-radio-group v-model="form.sex"> <u-radio-group v-model="form.sex" active-color="#b83531">
<u-radio name="男"></u-radio> <u-radio name="男"></u-radio>
<u-radio name="女"></u-radio> <u-radio name="女"></u-radio>
<u-radio name="保密">保密</u-radio> <u-radio name="保密">保密</u-radio>
@ -154,6 +157,7 @@ export default {
isShowModal: false, isShowModal: false,
isShowMyInfo: false, isShowMyInfo: false,
form: { form: {
nickname: '',
headimgurl: '', headimgurl: '',
mobile: '', mobile: '',
sex: '' sex: ''
@ -161,6 +165,9 @@ export default {
}; };
}, },
methods: { methods: {
nicknameChange(e) {
this.form.nickname = e.target.value
},
async onPhoneNumber(e) { async onPhoneNumber(e) {
try { try {
if (e.detail.encryptedData) { if (e.detail.encryptedData) {
@ -230,7 +237,9 @@ export default {
this.form.mobile = newVal.mobile this.form.mobile = newVal.mobile
this.form.sex = newVal.sex this.form.sex = newVal.sex
this.form.headimgurl = newVal.headimgurl this.form.headimgurl = newVal.headimgurl
} this.form.nickname = newVal.nickname
},
immediate: true
} }
}, },
onLoad() { onLoad() {

Loading…
Cancel
Save