uniapp 为他人支付
parent
ec8c740a3b
commit
2d459bd679
|
@ -5,8 +5,8 @@ ENV = 'development'
|
|||
VUE_APP_TITLE = 创盈商户管理系统
|
||||
|
||||
# 芋道管理系统/开发环境
|
||||
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 = 'https://cmx.bskies.cc:8000/cyywl-api'
|
||||
VUE_APP_BASE_API = 'http://192.168.1.188:48080'
|
||||
|
||||
# 路由懒加载
|
||||
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', {})
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据手机号查询档次信息
|
||||
*/
|
||||
export function memberByHomeGradeInfo(phone){
|
||||
return request.get(`api/order/member/memberByHomeGradeInfo?phone=${phone}`, {})
|
||||
}
|
||||
/**
|
||||
* 会员头部信息
|
||||
*/
|
||||
|
|
|
@ -3,7 +3,7 @@ import request from "@/utils/request.js";
|
|||
/**
|
||||
* 获取产品详情
|
||||
* @param int id
|
||||
*
|
||||
*
|
||||
*/
|
||||
export function getProductDetail(id, type) {
|
||||
return request.get('product/detail/' + id + '?type=' + type, {}, {
|
||||
|
@ -59,7 +59,7 @@ export function collectDelete(ids) {
|
|||
|
||||
/**
|
||||
* 购车添加
|
||||
*
|
||||
*
|
||||
*/
|
||||
export function postCartAdd(data) {
|
||||
return request.post('cart/save', data, {});
|
||||
|
@ -67,10 +67,10 @@ export function postCartAdd(data) {
|
|||
|
||||
/**
|
||||
* 获取分类列表
|
||||
*
|
||||
*
|
||||
*/
|
||||
export function getCategoryList() {
|
||||
return request.get('category', {}, {
|
||||
return request.get('front/category', {}, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
|
@ -80,17 +80,17 @@ export function getCategoryList() {
|
|||
* @param object data
|
||||
*/
|
||||
export function getProductslist(data) {
|
||||
return request.get('products', data, {
|
||||
return request.get('front/products', data, {
|
||||
noAuth: true
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取推荐产品
|
||||
*
|
||||
*
|
||||
*/
|
||||
export function getProductHot(page, limit) {
|
||||
return request.get("product/hot", {
|
||||
return request.get("front/product/hot", {
|
||||
page: page === undefined ? 1 : page,
|
||||
limit: limit === undefined ? 4 : limit
|
||||
}, {
|
||||
|
@ -99,9 +99,9 @@ export function getProductHot(page, limit) {
|
|||
}
|
||||
/**
|
||||
* 批量收藏
|
||||
*
|
||||
*
|
||||
* @param object id 产品编号 join(',') 切割成字符串
|
||||
* @param string category
|
||||
* @param string category
|
||||
*/
|
||||
export function collectAll(id, category) {
|
||||
return request.post('collect/all', {
|
||||
|
@ -112,8 +112,8 @@ export function collectAll(id, category) {
|
|||
|
||||
/**
|
||||
* 首页产品的轮播图和产品信息
|
||||
* @param int type
|
||||
*
|
||||
* @param int type
|
||||
*
|
||||
*/
|
||||
export function getGroomList(type, data) {
|
||||
return request.get('index/product/' + type, data, {
|
||||
|
@ -133,7 +133,7 @@ export function getCollectUserList(data) {
|
|||
* 获取产品评论
|
||||
* @param int id
|
||||
* @param object data
|
||||
*
|
||||
*
|
||||
*/
|
||||
export function getReplyList(id, data) {
|
||||
return request.get('reply/list/' + id, data,{
|
||||
|
@ -153,7 +153,7 @@ export function getReplyConfig(id) {
|
|||
|
||||
/**
|
||||
* 获取搜索关键字获取
|
||||
*
|
||||
*
|
||||
*/
|
||||
export function getSearchKeyword() {
|
||||
return request.get('search/keyword', {}, {
|
||||
|
@ -182,10 +182,10 @@ export function getProductGood() {
|
|||
* 详情页产品评论
|
||||
* @param int id
|
||||
* @param object data
|
||||
*
|
||||
*
|
||||
*/
|
||||
export function getReplyProduct(id) {
|
||||
return request.get('reply/product/' + id, {
|
||||
noAuth: true
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -147,12 +147,13 @@
|
|||
title: '支付中',
|
||||
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({
|
||||
title: '请在微信客户端进行支付操作'
|
||||
});
|
||||
} else {
|
||||
that.payInfo.openid = that.openId
|
||||
}
|
||||
memberTopUp({
|
||||
...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 = {
|
||||
// 请求域名 格式: https://您的域名
|
||||
// #ifdef MP
|
||||
HTTP_REQUEST_URL: domain,
|
||||
// #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
|
||||
//H5接口是浏览器地址
|
||||
// HTTP_REQUEST_URL: window.location.protocol+"//"+window.location.host,
|
||||
|
@ -26,8 +28,8 @@ module.exports = {
|
|||
EXPIRE:0,
|
||||
//分页最多显示条数
|
||||
LIMIT: 10,
|
||||
// 推广链接域名
|
||||
// 推广链接域名
|
||||
SPREAD_DOMAIN: 'http://h5.cyywl.top',
|
||||
// 推广码生成访问H5链接地址
|
||||
// 推广码生成访问H5链接地址
|
||||
SPREAD_LINK: '/pages/member_application/index',
|
||||
};
|
||||
|
|
|
@ -574,18 +574,18 @@
|
|||
"borderStyle": "white",
|
||||
"backgroundColor": "#ffffff",
|
||||
"list": [
|
||||
// {
|
||||
// "pagePath": "pages/index/index",
|
||||
// "iconPath": "static/images/tabbar/nav_icon_shop.png",
|
||||
// "selectedIconPath": "static/images/1-002.png",
|
||||
// "text": "商城"
|
||||
// },
|
||||
// {
|
||||
// "pagePath": "pages/goods_cate/goods_cate",
|
||||
// "iconPath": "static/images/tabbar/nav_icon_sort.png",
|
||||
// "selectedIconPath": "static/images/2-002.png",
|
||||
// "text": "分类"
|
||||
// },
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"iconPath": "static/images/tabbar/nav_icon_shop.png",
|
||||
"selectedIconPath": "static/images/1-002.png",
|
||||
"text": "商城"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/goods_cate/goods_cate",
|
||||
"iconPath": "static/images/tabbar/nav_icon_sort.png",
|
||||
"selectedIconPath": "static/images/2-002.png",
|
||||
"text": "分类"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/member_application/index",
|
||||
"iconPath": "static/images/2-001.png",
|
||||
|
|
|
@ -107,8 +107,7 @@
|
|||
});
|
||||
try{
|
||||
const res = await memberGradeInfo()
|
||||
if(res.data.some((item) => !!!parseInt(item.isExist))){
|
||||
console.log(123123)
|
||||
if(res.data.some((item) => !!parseInt(item.isExist))){
|
||||
uni.setTabBarItem({
|
||||
index: 0,
|
||||
pagePath: '/pages/member_equity/index'
|
||||
|
|
|
@ -17,7 +17,10 @@
|
|||
</view>
|
||||
<view class="box-equity">
|
||||
<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>
|
||||
</view>
|
||||
<view class="equity-item" v-for="(item,index) in 3" :key="index">
|
||||
|
@ -213,7 +216,16 @@
|
|||
display: flex;
|
||||
align-items: center;
|
||||
height: 10%;
|
||||
|
||||
view{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 44%;
|
||||
image{
|
||||
width: 26rpx;
|
||||
height: 26rpx;
|
||||
}
|
||||
}
|
||||
.equity-member {
|
||||
margin: 0 10%;
|
||||
font-size: 30rpx;
|
||||
|
|
|
@ -43,7 +43,8 @@
|
|||
|
||||
<script>
|
||||
import {
|
||||
memberGradeInfo
|
||||
memberGradeInfo,
|
||||
memberByHomeGradeInfo
|
||||
} from '@/api/member.js';
|
||||
import paymentMember from '@/components/paymentMember';
|
||||
import store from '@/store/index';
|
||||
|
@ -125,6 +126,23 @@
|
|||
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: {
|
||||
handleMember(value, index) {
|
||||
if (!!parseInt(value.isExist)) return
|
||||
|
|
Loading…
Reference in New Issue