add
This commit is contained in:
parent
837e1319ca
commit
f11a088409
|
@ -110,3 +110,9 @@ export const rechargeListsApi = (data) => {
|
|||
export const updataOrderApi = (data) => {
|
||||
return request.get('/pay/wechatQuery', data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
export const getStoreByPhone = (data) => {
|
||||
return request.get('/store/Store/detail', data);
|
||||
}
|
|
@ -1,4 +1,16 @@
|
|||
<template>
|
||||
<view class="" v-if="!STORE_INFO.id">
|
||||
<up-modal :show="showModa" title="选择门店" @confirm="confirmStore" confirmColor='#20B128'>
|
||||
<view class="slot-content">
|
||||
<up-input v-model="storePhone" border="none" prefixIcon="phone" placeholder="请输入门店手机号"
|
||||
:customStyle="{background:'#F3F3F3',padding:'20rpx','border-radius':'30rpx'}"
|
||||
:placeholderStyle="{color:'#444444'}" :prefixIconStyle="{'margin-right':'40rpx'}"></up-input>
|
||||
|
||||
</view>
|
||||
</up-modal>
|
||||
</view>
|
||||
|
||||
<view v-else>
|
||||
<view class="tabs">
|
||||
<text @click="currentTab=1" :class="{actText:currentTab==1}">开通行业会员</text>
|
||||
<text @click="currentTab=2" :class="{actText:currentTab==2}"> 已开通列表</text>
|
||||
|
@ -15,12 +27,14 @@
|
|||
<up-form-item label="" prop="userInfo.name">
|
||||
<up-input v-model="formData.real_name" border="none" prefixIcon="account" placeholder="请输入真实姓名"
|
||||
:customStyle="{background:'#F3F3F3',padding:'20rpx','border-radius':'30rpx'}"
|
||||
:placeholderStyle="{color:'#444444'}" :prefixIconStyle="{'margin-right':'40rpx'}"></up-input>
|
||||
:placeholderStyle="{color:'#444444'}"
|
||||
:prefixIconStyle="{'margin-right':'40rpx'}"></up-input>
|
||||
</up-form-item>
|
||||
<up-form-item label="" prop="userInfo.name">
|
||||
<up-input v-model="formData.mobile" border="none" prefixIcon="account" placeholder="请输入电话号码"
|
||||
:customStyle="{background:'#F3F3F3',padding:'20rpx','border-radius':'30rpx'}"
|
||||
:placeholderStyle="{color:'#444444'}" :prefixIconStyle="{'margin-right':'40rpx'}"></up-input>
|
||||
:placeholderStyle="{color:'#444444'}"
|
||||
:prefixIconStyle="{'margin-right':'40rpx'}"></up-input>
|
||||
</up-form-item>
|
||||
<up-form-item label="" prop="userInfo.name">
|
||||
<view @click="showPop=true" style="width: 100%;">
|
||||
|
@ -73,6 +87,8 @@
|
|||
</uni-table>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<!-- 地址选择器 -->
|
||||
|
@ -136,17 +152,36 @@
|
|||
vipRechargeApi,
|
||||
rechargeCountApi,
|
||||
rechargeListsApi,
|
||||
updataOrderApi
|
||||
updataOrderApi,
|
||||
getStoreByPhone
|
||||
} from "@/api/user.js"
|
||||
|
||||
import {
|
||||
onPullDownRefresh
|
||||
} from "@dcloudio/uni-app"
|
||||
|
||||
|
||||
const showModa = ref(true)
|
||||
const storePhone = ref('')
|
||||
const confirmStore = () => {
|
||||
getStoreByPhone({
|
||||
phone: storePhone.value
|
||||
}).then(res => {
|
||||
for (let key in res.data) {
|
||||
STORE_INFO[key] = res.data[key]
|
||||
}
|
||||
}).catch(err => {
|
||||
uni.$u.toast('未查到店铺信息,请检查手机号码')
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
// 用户选择的门店信息
|
||||
let STORE_INFO = uni.getStorageSync('STORE_INFO');
|
||||
if (STORE_INFO)
|
||||
STORE_INFO = JSON.parse(STORE_INFO)
|
||||
let STORE_INFO = reactive({
|
||||
id: ""
|
||||
})
|
||||
|
||||
|
||||
const currentTab = ref(1)
|
||||
const formData = reactive({
|
||||
|
|
|
@ -434,15 +434,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
.shop-item:last-child {
|
||||
margin-bottom: 100px;
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,10 @@
|
|||
<up-button @click="weixinLogin" color="#20B128" size="large"><up-icon name="weixin-fill"
|
||||
color="#fff" size="28"></up-icon>微信快捷登录</up-button>
|
||||
</view>
|
||||
<view class="btn">
|
||||
<up-button @click="navgo('/pages/login/test')" color="#20B128" size="large"><up-icon
|
||||
name="weixin-fill" color="#fff" size="28"></up-icon>账号登录</up-button>
|
||||
</view>
|
||||
<!-- <view class="btn">
|
||||
<up-button @click="officialCode" color="#20B128" size="large"><up-icon name="weixin-fill" color="#fff"
|
||||
size="28"></up-icon>公众号授权</up-button>
|
||||
|
@ -285,6 +289,11 @@
|
|||
return true;
|
||||
} else uni.navigateBack();
|
||||
}
|
||||
const navgo = (url) => {
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
|
|
@ -64,12 +64,19 @@
|
|||
<view>运费</view>
|
||||
<view><text>¥</text>0<text>.00</text></view>
|
||||
</view>
|
||||
<view class="row" v-if="orderInfo.activities == 1" style="color: red;">
|
||||
<view class="row" v-if="[4,5,6].includes(userInfo.user_ship) ">
|
||||
<view>优惠减免</view>
|
||||
<view>
|
||||
<text>-¥</text>{{ c_price(orderInfo.preferential_amount, 0) }}<text>.{{ c_price(orderInfo.preferential_amount, 1) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- <view class="row" v-if="orderInfo.activities == 1" style="color: red;">
|
||||
<view>活动折扣 <text>{{ orderInfo.activity }}</text></view>
|
||||
<view>
|
||||
-¥<text>{{ orderInfo.activity_price }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="m-card good-info">
|
||||
<view class="head-title">支付方式</view>
|
||||
|
@ -182,6 +189,8 @@
|
|||
|
||||
const userInfo = useUserStore().userInfo;
|
||||
|
||||
console.log(userInfo)
|
||||
|
||||
// 用户选择的门店信息
|
||||
let STORE_INFO = uni.getStorageSync('STORE_INFO');
|
||||
if (STORE_INFO)
|
||||
|
|
Loading…
Reference in New Issue