yujialong 12 months ago
parent 9f45d81bee
commit 77554b79ad
  1. 6
      order/orderDetail/orderDetail.vue
  2. 17
      order/productDetail/productDetail.vue
  3. 7
      pages/login/login.vue

@ -35,11 +35,11 @@
<view class="name">邮箱</view> <view class="name">邮箱</view>
<view class="val">{{ form.email }}</view> <view class="val">{{ form.email }}</view>
</view> </view>
<view :class="['line req', {err: err === 'orderType'}]"> <!-- <view :class="['line req', {err: err === 'orderType'}]">
<view class="name">订单类型</view> <view class="name">订单类型</view>
<view v-if="isDetail" class="val">{{ orderTypes.find(e => e.value === form.orderType).text }}</view> <view v-if="isDetail" class="val">{{ orderTypes.find(e => e.value === form.orderType).text }}</view>
<uni-data-picker v-else class="picker-input" placeholder="请选择订单类型" popup-title="请选择订单类型" preload :clear-icon="false" :localdata="orderTypes" v-model="form.orderType" @change="calcTotal(1)"></uni-data-picker> <uni-data-picker v-else class="picker-input" placeholder="请选择订单类型" popup-title="请选择订单类型" preload :clear-icon="false" :localdata="orderTypes" v-model="form.orderType" @change="calcTotal(1)"></uni-data-picker>
</view> </view> -->
<template v-if="edited"> <template v-if="edited">
<view class="line"> <view class="line">
<view class="name">订单编号</view> <view class="name">订单编号</view>
@ -209,7 +209,7 @@
email: '', email: '',
customerId: '', // id customerId: '', // id
customerName: '', customerName: '',
orderType: '', orderType: 2,
cityId: '', cityId: '',
cityName: '', cityName: '',
phone: '', phone: '',

@ -8,18 +8,20 @@
<view class="fields"> <view class="fields">
<view class="field"> <view class="field">
<image class="icon" src="@/static/image/product/1.png"></image> <image class="icon" src="@/static/image/product/1.png"></image>
市场建议价{{ form.mall.marketUnitPrice }}/ 市场建议价{{ form.mall.marketUnitPrice || '' }}/
</view> </view>
<view class="field"> <view class="field">
<image class="icon" src="@/static/image/product/2.png"></image> <image class="icon" src="@/static/image/product/2.png"></image>
产品类型{{ form.goodsRes.typeName }} 产品类型{{ form.goodsRes.typeName || '' }}
</view> </view>
</view> </view>
</view> </view>
<view class="detail"> <view class="detail">
<ul class="tabs"> <ul class="tabs">
<li v-for="(tab, i) in tabs" :class="{active: curTab === tab.id}" @click="tabChange(tab)">{{ tab.name }}</li> <li :class="{active: curTab === 0}" @click="tabChange(0)">详情介绍</li>
<li :class="{active: curTab === 1, disabled: !form.interfaceDiagram}" @click="tabChange(1)">界面图</li>
<li :class="{active: curTab === 2, disabled: !form.mallAnnex || !form.mallAnnex.length}" @click="tabChange(2)">参数</li>
</ul> </ul>
<view class="title"> <view class="title">
<image class="icon" src="@/static/image/product/3.png"></image> <image class="icon" src="@/static/image/product/3.png"></image>
@ -208,7 +210,8 @@
}).catch(e => {}) }).catch(e => {})
}, },
// tab // tab
tabChange({ id }) { tabChange(id) {
if ((id === 1 && !this.form.interfaceDiagram) || (id === 2 && (!form.mallAnnex || !form.mallAnnex.length))) return false
this.curTab = id this.curTab = id
id == 1 && uni.pageScrollTo({ id == 1 && uni.pageScrollTo({
selector: '#pics', selector: '#pics',
@ -352,6 +355,9 @@
background-color: #007EFF; background-color: #007EFF;
} }
} }
.disabled {
color: #b3b3b3;
}
} }
.detail { .detail {
padding: 34rpx 32rpx; padding: 34rpx 32rpx;
@ -416,6 +422,9 @@
color: #f00; color: #f00;
} }
} }
.swiper-box {
min-height: 250px;
}
.pic { .pic {
width: 100%; width: 100%;
} }

@ -11,9 +11,9 @@
<view class="tips">未注册或未绑定职站商城的手机号将帮你注册新账号</view> <view class="tips">未注册或未绑定职站商城的手机号将帮你注册新账号</view>
</template> </template>
<template v-else> <template v-else>
<!-- <view class="btn wechat" @click="login"> <view class="btn wechat" @click="login">
快捷登录 快捷登录
</view> --> </view>
</template> </template>
<view class="agree"> <view class="agree">
@ -72,6 +72,9 @@
console.log(22, userInfo) console.log(22, userInfo)
uni.setStorageSync('userName', userInfo.nickName) uni.setStorageSync('userName', userInfo.nickName)
uni.setStorageSync('avatar', userInfo.avatarUrl) uni.setStorageSync('avatar', userInfo.avatarUrl)
uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjk4OTkxMTU1LCJleHAiOjE2OTk4NTUxNTUsImFjY291bnRJZCI6IjEwOCJ9.u1zi29b93oGhY38gkgldBhhvguXFGeVPd_x2OalQBXQ')
this.toIndex()
return
uni.login({ uni.login({
success: ({ code }) => { success: ({ code }) => {
if (code) { if (code) {

Loading…
Cancel
Save