This commit is contained in:
Sliverber 2024-05-09 17:14:37 +08:00
parent 08fce8125d
commit 32f74fd685
8 changed files with 89 additions and 75 deletions

View File

@ -345,7 +345,7 @@ export function getInformationSave(data) {
// 分期套餐列表
export function getfenqilist(data) {
return request.get('installmentsCombo/list', data, {
return request.get('customInstallments/list', data, {
noAuth: true
});
}

View File

@ -41,7 +41,7 @@
</view>
</view>
<!-- 分期方案 -->
<view class="periodization" v-if='false'>
<view class="periodization" v-if="showfq">
<text class="fangan">分期方案</text>
<view class="returnthedate" v-for="(item,index) in fenqlist" :key="index">
<a href="javascript:;" :v-model="indexs" :class="indexs === index ? 'actives' : ''"
@ -123,12 +123,17 @@
iScart: {
type: Number,
value: 0
}
},
showfq: {
type: Boolean,
// default: false // false true
}
},
data() {
return {
indexs: 0,
fenqlist: [],
// showfq:this.showfq,
installments:'' //
};
},
@ -139,11 +144,12 @@
},
onShow() {
},
methods: {
//
getfqList: function() {
getfqList() {
console.log('执行了');
let data = {
limit: 15,
page: 1,
@ -154,6 +160,7 @@
this.installments = res.data.list[0] //
this.$Cache.set('installments', this.installments);
})
},
//
btnone(item, index) {

View File

@ -1,9 +1,11 @@
//移动端商城API
// let domain = 'http://117.50.163.143:20410'
// let domain = 'http://117.50.215.20:20410'
// let domain = 'http://192.168.2.35:20411'
// let domain = 'http://106.75.49.247:20410'
let domain = 'https://yruibao.com/prod'
// let domain = 'http://192.168.2.5:20411'
let domain = 'http://cxyigou.com.cn/prod'
// let domain = 'https://yruibao.com/prod'
// let domain = 'http://121.43.110.198:20410'
module.exports = {
// 请求域名 格式: https://您的域名
// #ifdef MP || APP-PLUS

View File

@ -228,12 +228,12 @@
<view class="bnt acea-row skeleton-rect" v-else>
<form @submit="joinCart" report-submit="true"><button class="joinCart bnts"
form-type="submit"></button></form>
<form @submit="goBuy(1)" report-submit="true"><button class="buy bnts" style="width: 200rpx;margin-right: 20rpx;"
<form @submit="goBuy(1)" report-submit="true"><button class="buy bnts" style="width: 400rpx;margin-right: 20rpx;"
form-type="submit">先享后付</button>
</form>
<form @submit="goBuys(0)" report-submit="true"><button class="buy bnts" style="width: 200rpx;"
<!-- <form @submit="goBuys(0)" report-submit="true"><button class="buy bnts" style="width: 200rpx;"
form-type="submit">立即购买</button>
</form>
</form> -->
</view>
</block>
<view class="bnt bntVideo acea-row skeleton-rect"
@ -250,7 +250,7 @@
<shareRedPackets :sharePacket="sharePacket" @listenerActionSheet="listenerActionSheet"
@showShare="showShare"></shareRedPackets>
<!-- 组件 -->
<productWindow :attr="attr" :isShow='1' :iSplus='1' @myevent="onMyEvent" @ChangeAttr="ChangeAttr"
<productWindow :attr="attr" :isShow='1' :iSplus='1' :showfq="isfenqi" @myevent="onMyEvent" @ChangeAttr="ChangeAttr"
@ChangeCartNum="ChangeCartNum" @attrVal="attrVal" @iptCartNum="iptCartNum" id='product-window'
@getImg="showImg" @installments="installments">
</productWindow>
@ -409,6 +409,7 @@
data() {
let that = this;
return {
isfenqi:false,
showSkeleton: true, //
isNodes: 0, //,
//
@ -560,6 +561,7 @@
this.getTokenIsExist();
this.getshiminfo()
this.getstause()
this.getfqList()
},
onLoad(options) {
// console.log(JSON.stringify(options),"options.spread")
@ -718,18 +720,18 @@
//
// getfqList: function() {
// let data = {
// limit:15,
// page:1,
// uid:this.$store.getters.uid
// }
// getfenqilist(data).then(res => {
// this.fenqlist = res.data.list
getfqList: function() {
let data = {
limit:15,
page:1,
uid:this.$store.getters.uid
}
getfenqilist(data).then(res => {
this.fenqlist = res.data.list
// // localStorage.setItem('fqlist',JSON.stringify(this.fenqlist))
// })
// },
// localStorage.setItem('fqlist',JSON.stringify(this.fenqlist))
})
},
//token,truefalse
getTokenIsExist() {
this.$LoginAuth.getTokenIsExist().then(data => {
@ -1383,6 +1385,7 @@
* 立即购买
*/
goBuy: Debounce(function(e) {
this.isfenqi=true
if (this.isLogin === false) {
toLogin();
// uni.navigateTo({
@ -1394,6 +1397,10 @@
this.$util.Tips({
title: '您有正在进行的订单,请还款后再继续'
});
}else if(this.fenqlist.length<1){
this.$util.Tips({
title: '系统配置错误,请稍后重试'
});
}else{
this.types=0
this.goCat(0);
@ -1414,6 +1421,7 @@
}
}),
goBuys(){
this.isfenqi=false
this.types=1
this.goCat(0);
},

View File

@ -51,8 +51,9 @@
},
onLoad(option) {
let abb =option
console.log(option);
// window.postMessage({ action:'someAction',data:'someData'});
if(abb.success=='false'){
this.success=abb.success
}else if(abb.success=='true'){
@ -67,6 +68,15 @@
}
this.getfaceinfo()
}
setTimeout(()=>{
let script = document.createElement('script');
script.src='https://res.wx.qq.com/open/js/jweixin-1.3.2.js'
document.head.appendChild(script);
},100)
setTimeout(()=>{
wx.miniProgram.navigateBack()
wx.miniProgram.postMessage({ data:{'url':option} })
},300)
},
methods: {
@ -76,6 +86,8 @@
token:this.token
}
getfaceInfo(data).then(res => {

View File

@ -226,7 +226,7 @@
<view>合计:
<text class='price_color'>{{orderInfoVo.payFee || 0}}</text>
</view>
<view class='settlement' style='z-index:100' @tap="SubOrder">立刻申请</view>
<view class='settlement' style='z-index:100' @tap="SubOrder">先享后付</view>
</view>
</view>

File diff suppressed because one or more lines are too long

View File

@ -1,50 +1,34 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>
<!-- Open Graph data -->
<!-- <meta property="og:title" content="Title Here" /> -->
<!-- <meta property="og:url" content="http://www.example.com/" /> -->
<!-- <meta property="og:image" content="http://example.com/image.jpg" /> -->
<!-- <meta property="og:description" content="Description Here" /> -->
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS
.supports(
'top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
</head>
<body>
<noscript>
<strong>Please enable JavaScript to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
<script type="text/javascript">
var userAgent = navigator.userAgent;
if (userAgent.indexOf('AlipayClient') > -1) {
// 支付宝小程序的 JS-SDK 防止 404 需要动态加载,如果不需要兼容支付宝小程序,则无需引用此 JS 文件。
document.writeln('<script src="https://appx/web-view.min.js"' + '>' + '<' + '/' + 'script>');
}
</script>
<script src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.min.js"></script>
<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script>
<script type="text/javascript" src="./js/uni.webview.js"></script>
<script type="text/javascript">
// 待触发 `UniAppJSBridgeReady` 事件后,即可调用 uni 的 API。
document.addEventListener('UniAppJSBridgeReady', function() {
uni.webView.getEnv(function(res) {
console.log('当前环境:' + JSON.stringify(res));
});
});
</script>
</html>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="shortcut icon" type="image/x-icon" href="static/favicon.ico">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
})
</script>
<link rel="stylesheet" href="<%= BASE_URL %>static/index.css" />
</head>
<body>
<noscript>
<strong>本站点必须要开启JavaScript才能运行</strong>
</noscript>
<div id="app"></div>
</body>
<script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<!-- uni 的 SDK -->
<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script>
<script>
document.addEventListener('UniAppJSBridgeReady', function() {
uni.webView.getEnv(function(res) {
console.log('当前环境:' + JSON.stringify(res));
});
});
</script>
</html>