add
This commit is contained in:
parent
ecf2da62cf
commit
3bf955d804
|
@ -10,7 +10,8 @@
|
|||
<up-form labelPosition="left" label-width="100rpx">
|
||||
<up-form-item label="身份" borderBottom>
|
||||
<up-radio-group v-model="Role" placement="row">
|
||||
<up-radio activeColor="#20b128" label="行业会员" :name="1" style="margin-right: 10rpx;"></up-radio>
|
||||
<up-radio activeColor="#20b128" label="行业会员" :name="1"
|
||||
style="margin-right: 10rpx;"></up-radio>
|
||||
<up-radio activeColor="#20b128" label="商户" :name="4"></up-radio>
|
||||
</up-radio-group>
|
||||
</up-form-item>
|
||||
|
@ -21,8 +22,8 @@
|
|||
|
||||
<view v-else>
|
||||
<up-sticky bgColor="#fff" style="padding: 20rpx;">
|
||||
<up-tabs v-if="Role == 1" :list="tabsLst" :itemStyle="{ width: '33vw', paddingBottom: '20rpx' }" lineColor='#50C758'
|
||||
:current='currentTab' @change="tabsChange"></up-tabs>
|
||||
<up-tabs v-if="Role == 1" :list="tabsLst" :itemStyle="{ width: '33vw', paddingBottom: '20rpx' }"
|
||||
lineColor='#50C758' :current='currentTab' @change="tabsChange"></up-tabs>
|
||||
<up-tabs v-else :list="tabsLst2" :itemStyle="{ width: '50vw', paddingBottom: '20rpx' }" lineColor='#50C758'
|
||||
:current='currentTab' @change="tabsChange1"></up-tabs>
|
||||
</up-sticky>
|
||||
|
@ -51,8 +52,8 @@
|
|||
</up-form-item>
|
||||
<up-form-item label="">
|
||||
<view @click="showPop = true" style="width: 100%;">
|
||||
<up-input style="pointer-events: none" v-model="formData.address" border="none" prefixIcon="map"
|
||||
readonly placeholder="点击选择地址" :customStyle="{
|
||||
<up-input style="pointer-events: none" v-model="formData.address" border="none"
|
||||
prefixIcon="map" readonly placeholder="点击选择地址" :customStyle="{
|
||||
background: '#F3F3F3', padding: '20rpx',
|
||||
'border-radius': '30rpx'
|
||||
}" :placeholderStyle="{ color: '#444444' }" :prefixIconStyle="{ 'margin-right': '40rpx' }"
|
||||
|
@ -87,8 +88,8 @@
|
|||
点击查看礼品包内容
|
||||
</view>
|
||||
<view class="gift-pack">
|
||||
<view class="gift-pack-li" :class="index == giftIndex && 'act-gift'" v-for="(item, index) in rechargeList"
|
||||
:key="index" @click="choseGift(index)">
|
||||
<view class="gift-pack-li" :class="index == giftIndex && 'act-gift'"
|
||||
v-for="(item, index) in rechargeList" :key="index" @click="choseGift(index)">
|
||||
<view class="gift-pack-li-top" :class="index == giftIndex && 'act-gift-top'">
|
||||
<text style="font-size: 40rpx;">{{ item.money }}</text><text>元采购包</text>
|
||||
</view>
|
||||
|
@ -125,11 +126,12 @@
|
|||
<up-input v-model="formData2.real_name" disabled border="none" prefixIcon="account"
|
||||
placeholder="系统自动获取" color='grey'
|
||||
:customStyle="{ background: '#F3F3F3', padding: '20rpx', 'border-radius': '30rpx' }"
|
||||
:placeholderStyle="{ color: 'grey' }" :prefixIconStyle="{ 'margin-right': '40rpx' }"></up-input>
|
||||
:placeholderStyle="{ color: 'grey' }"
|
||||
:prefixIconStyle="{ 'margin-right': '40rpx' }"></up-input>
|
||||
</up-form-item>
|
||||
<up-form-item label="">
|
||||
<up-input style="pointer-events: none" v-model="formData2.address" border="none" prefixIcon="map"
|
||||
readonly color='grey' placeholder="系统自动获取" :customStyle="{
|
||||
<up-input style="pointer-events: none" v-model="formData2.address" border="none"
|
||||
prefixIcon="map" readonly color='grey' placeholder="系统自动获取" :customStyle="{
|
||||
background: '#F3F3F3', padding: '20rpx',
|
||||
'border-radius': '30rpx'
|
||||
}" :placeholderStyle="{ color: 'grey' }" :prefixIconStyle="{ 'margin-right': '40rpx' }"></up-input>
|
||||
|
@ -149,8 +151,8 @@
|
|||
<view class="store-info">
|
||||
<view class="" style="width: 300rpx;margin: 0 auto;border-bottom: 1px solid #F3F3F3;">
|
||||
<up-input inputAlign='center' placeholder="请输入金额" @focus="formData2.price = ''" color='#FF6B00'
|
||||
:placeholderStyle="{ fontSize: '28rpx' }" fontSize='20px' border="none" v-model="formData2.price"
|
||||
type='digit' @blur='tofixedPrice(2)'></up-input>
|
||||
:placeholderStyle="{ fontSize: '28rpx' }" fontSize='20px' border="none"
|
||||
v-model="formData2.price" type='digit' @blur='tofixedPrice(2)'></up-input>
|
||||
</view>
|
||||
<view style="color: red;margin-top: 20rpx;font-size: 24rpx;"
|
||||
v-if="formData2.label_limit && formData2.price < formData2.label_limit">
|
||||
|
@ -271,8 +273,8 @@
|
|||
:activeStyle="{ color: '#20B128' }"></up-tabs>
|
||||
<up-line style="margin-top:20rpx "></up-line>
|
||||
<view class="address-content" v-if='currentAddressIndex == 0'>
|
||||
<view class="address-li" :class='{ act: item.city_code == formData.city }' v-for="item in addressList.city"
|
||||
:key="item.city_code" @click="addressLiClick(0, item)">
|
||||
<view class="address-li" :class='{ act: item.city_code == formData.city }'
|
||||
v-for="item in addressList.city" :key="item.city_code" @click="addressLiClick(0, item)">
|
||||
<text>{{ item.city_name }}</text>
|
||||
<up-icon name="arrow-right" :color="item.city_code == formData.city ? '#20B128' : '#777777'" />
|
||||
</view>
|
||||
|
@ -295,12 +297,13 @@
|
|||
<view class="address-li" v-for="item in addressList.village" @click="addressLiClick(3, item)"
|
||||
:key="item.village_code" :class='{ act: item.village_code == formData.village }'>
|
||||
<text>{{ item.village_name }}</text>
|
||||
<up-icon name="arrow-right" :color="item.village_code == formData.village ? '#20B128' : '#777777'" />
|
||||
<up-icon name="arrow-right"
|
||||
:color="item.village_code == formData.village ? '#20B128' : '#777777'" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="address-content" v-else-if='currentAddressIndex == 4'>
|
||||
<view class="address-li" :class='{ act: item.id == formData.brigade }' v-for="item in addressList.brigade"
|
||||
:key="item.id" @click="addressLiClick(4, item)">
|
||||
<view class="address-li" :class='{ act: item.id == formData.brigade }'
|
||||
v-for="item in addressList.brigade" :key="item.id" @click="addressLiClick(4, item)">
|
||||
<text>{{ item.brigade_name }}</text>
|
||||
<up-icon name="arrow-right" :color="item.id == formData.brigade ? '#20B128' : '#777777'" />
|
||||
</view>
|
||||
|
@ -798,7 +801,10 @@ const submit = async (type = 1) => {
|
|||
formData2.auth_code = res.result
|
||||
formData2.recharge_type = 'INDUSTRYMEMBERS'
|
||||
formData2.user_ship = formData2.label_id
|
||||
vipRechargeApi(formData2).then(res => {
|
||||
vipRechargeApi({
|
||||
...formData2,
|
||||
type: 2
|
||||
}).then(res => {
|
||||
paySuccess = false;
|
||||
timerInvol = setTimeout(() => {
|
||||
uni.hideLoading();
|
||||
|
|
Loading…
Reference in New Issue