uniapp 为他人支付
parent
ec8c740a3b
commit
2d459bd679
|
@ -5,8 +5,8 @@ ENV = 'development'
|
||||||
VUE_APP_TITLE = 创盈商户管理系统
|
VUE_APP_TITLE = 创盈商户管理系统
|
||||||
|
|
||||||
# 芋道管理系统/开发环境
|
# 芋道管理系统/开发环境
|
||||||
VUE_APP_BASE_API = 'https://cmx.bskies.cc:8000/cyywl-api'
|
#VUE_APP_BASE_API = 'https://cmx.bskies.cc:8000/cyywl-api'
|
||||||
#VUE_APP_BASE_API = 'http://192.168.1.147:48080'
|
VUE_APP_BASE_API = 'http://192.168.1.188:48080'
|
||||||
|
|
||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||||
|
|
17330
yudao-ui-admin/yarn.lock
17330
yudao-ui-admin/yarn.lock
File diff suppressed because it is too large
Load Diff
|
@ -15,6 +15,12 @@ export function memberOrderInfo(){
|
||||||
return request.get('api/order/member/memberOrderInfo', {})
|
return request.get('api/order/member/memberOrderInfo', {})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据手机号查询档次信息
|
||||||
|
*/
|
||||||
|
export function memberByHomeGradeInfo(phone){
|
||||||
|
return request.get(`api/order/member/memberByHomeGradeInfo?phone=${phone}`, {})
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 会员头部信息
|
* 会员头部信息
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -70,7 +70,7 @@ export function postCartAdd(data) {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export function getCategoryList() {
|
export function getCategoryList() {
|
||||||
return request.get('category', {}, {
|
return request.get('front/category', {}, {
|
||||||
noAuth: true
|
noAuth: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ export function getCategoryList() {
|
||||||
* @param object data
|
* @param object data
|
||||||
*/
|
*/
|
||||||
export function getProductslist(data) {
|
export function getProductslist(data) {
|
||||||
return request.get('products', data, {
|
return request.get('front/products', data, {
|
||||||
noAuth: true
|
noAuth: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,7 @@ export function getProductslist(data) {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export function getProductHot(page, limit) {
|
export function getProductHot(page, limit) {
|
||||||
return request.get("product/hot", {
|
return request.get("front/product/hot", {
|
||||||
page: page === undefined ? 1 : page,
|
page: page === undefined ? 1 : page,
|
||||||
limit: limit === undefined ? 4 : limit
|
limit: limit === undefined ? 4 : limit
|
||||||
}, {
|
}, {
|
||||||
|
|
|
@ -147,12 +147,13 @@
|
||||||
title: '支付中',
|
title: '支付中',
|
||||||
mask: true
|
mask: true
|
||||||
});
|
});
|
||||||
if (paytype === 'WXPAY' && !that.openId) {
|
if(paytype === 'WXPAY' && that.openId) {
|
||||||
|
that.payInfo.openid = that.openId
|
||||||
|
|
||||||
|
} else if(paytype === 'WXPAY' && !that.openId){
|
||||||
return that.$util.Tips({
|
return that.$util.Tips({
|
||||||
title: '请在微信客户端进行支付操作'
|
title: '请在微信客户端进行支付操作'
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
that.payInfo.openid = that.openId
|
|
||||||
}
|
}
|
||||||
memberTopUp({
|
memberTopUp({
|
||||||
...that.payInfo,
|
...that.payInfo,
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
|
|
||||||
let domain = 'http://api.cyywl.top'
|
// let domain = 'http://yuxy.perrymake.com'
|
||||||
|
let domain = 'http://192.168.1.188:48080'
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// 请求域名 格式: https://您的域名
|
// 请求域名 格式: https://您的域名
|
||||||
// #ifdef MP
|
// #ifdef MP
|
||||||
HTTP_REQUEST_URL: domain,
|
HTTP_REQUEST_URL: domain,
|
||||||
// #endif
|
// #endif
|
||||||
HTTP_ADMIN_URL:'http://api.cyywl.top', //PC后台的API请求地址,上传图片用
|
// HTTP_ADMIN_URL:'http://yuxy.perrymake.com', //PC后台的API请求地址,上传图片用
|
||||||
|
HTTP_ADMIN_URL:'http://192.168.1.188:48080', //PC后台的API请求地址,上传图片用
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
//H5接口是浏览器地址
|
//H5接口是浏览器地址
|
||||||
// HTTP_REQUEST_URL: window.location.protocol+"//"+window.location.host,
|
// HTTP_REQUEST_URL: window.location.protocol+"//"+window.location.host,
|
||||||
|
|
|
@ -574,18 +574,18 @@
|
||||||
"borderStyle": "white",
|
"borderStyle": "white",
|
||||||
"backgroundColor": "#ffffff",
|
"backgroundColor": "#ffffff",
|
||||||
"list": [
|
"list": [
|
||||||
// {
|
{
|
||||||
// "pagePath": "pages/index/index",
|
"pagePath": "pages/index/index",
|
||||||
// "iconPath": "static/images/tabbar/nav_icon_shop.png",
|
"iconPath": "static/images/tabbar/nav_icon_shop.png",
|
||||||
// "selectedIconPath": "static/images/1-002.png",
|
"selectedIconPath": "static/images/1-002.png",
|
||||||
// "text": "商城"
|
"text": "商城"
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// "pagePath": "pages/goods_cate/goods_cate",
|
"pagePath": "pages/goods_cate/goods_cate",
|
||||||
// "iconPath": "static/images/tabbar/nav_icon_sort.png",
|
"iconPath": "static/images/tabbar/nav_icon_sort.png",
|
||||||
// "selectedIconPath": "static/images/2-002.png",
|
"selectedIconPath": "static/images/2-002.png",
|
||||||
// "text": "分类"
|
"text": "分类"
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/member_application/index",
|
"pagePath": "pages/member_application/index",
|
||||||
"iconPath": "static/images/2-001.png",
|
"iconPath": "static/images/2-001.png",
|
||||||
|
|
|
@ -107,8 +107,7 @@
|
||||||
});
|
});
|
||||||
try{
|
try{
|
||||||
const res = await memberGradeInfo()
|
const res = await memberGradeInfo()
|
||||||
if(res.data.some((item) => !!!parseInt(item.isExist))){
|
if(res.data.some((item) => !!parseInt(item.isExist))){
|
||||||
console.log(123123)
|
|
||||||
uni.setTabBarItem({
|
uni.setTabBarItem({
|
||||||
index: 0,
|
index: 0,
|
||||||
pagePath: '/pages/member_equity/index'
|
pagePath: '/pages/member_equity/index'
|
||||||
|
|
|
@ -17,7 +17,10 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="box-equity">
|
<view class="box-equity">
|
||||||
<view class="equity-text">
|
<view class="equity-text">
|
||||||
<text class="equity-member">我的会员权益</text>
|
<view >
|
||||||
|
<image src='../../static/images/memberLogo.png'></image>
|
||||||
|
<text class="equity-member">我的会员权益</text>
|
||||||
|
</view>
|
||||||
<text class="equity-look">查看权益></text>
|
<text class="equity-look">查看权益></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="equity-item" v-for="(item,index) in 3" :key="index">
|
<view class="equity-item" v-for="(item,index) in 3" :key="index">
|
||||||
|
@ -213,7 +216,16 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 10%;
|
height: 10%;
|
||||||
|
view{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 44%;
|
||||||
|
image{
|
||||||
|
width: 26rpx;
|
||||||
|
height: 26rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
.equity-member {
|
.equity-member {
|
||||||
margin: 0 10%;
|
margin: 0 10%;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
|
|
|
@ -43,7 +43,8 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
memberGradeInfo
|
memberGradeInfo,
|
||||||
|
memberByHomeGradeInfo
|
||||||
} from '@/api/member.js';
|
} from '@/api/member.js';
|
||||||
import paymentMember from '@/components/paymentMember';
|
import paymentMember from '@/components/paymentMember';
|
||||||
import store from '@/store/index';
|
import store from '@/store/index';
|
||||||
|
@ -125,6 +126,23 @@
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch:{
|
||||||
|
'form.confirmPhone' (){
|
||||||
|
this.$refs.uForm.validate().then(async res => {
|
||||||
|
uni.showLoading({
|
||||||
|
title: '加载中',
|
||||||
|
mask: true
|
||||||
|
});
|
||||||
|
try{
|
||||||
|
const res = await memberByHomeGradeInfo(this.form.confirmPhone)
|
||||||
|
this.memberData = res.data
|
||||||
|
} finally{
|
||||||
|
uni.hideLoading();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleMember(value, index) {
|
handleMember(value, index) {
|
||||||
if (!!parseInt(value.isExist)) return
|
if (!!parseInt(value.isExist)) return
|
||||||
|
|
Loading…
Reference in New Issue