@@ -11,7 +11,8 @@ export enum OrderStatus { | |||
'完成填写基本信息' = 1, | |||
'完成个人/单位信息上传' = 2, | |||
'完成车辆信息上传' = 3, | |||
'待支付' = 4, | |||
// '待支付' = 4, | |||
'待支付' = 26, | |||
'已支付' = 5, | |||
'待审核' = 6, | |||
'审核不通过' = 7, |
@@ -78,8 +78,8 @@ const nextStep = () => { | |||
} | |||
//TODO 目前后端规定验证码只能是123456,所以目前写死 | |||
// navTo(`/login/register-step3?phone=${phone.value}&code=${code.value}`); | |||
navTo(`/login/register-step3?phone=${phone.value}&code=123456`); | |||
navTo(`/login/register-step3?phone=${phone.value}&code=${code.value}`); | |||
// navTo(`/login/register-step3?phone=${phone.value}&code=123456`); | |||
}; | |||
</script> | |||
@@ -201,6 +201,7 @@ | |||
</view> | |||
</view> | |||
</view> | |||
</template> | |||
<script setup lang="ts"> | |||
@@ -243,7 +244,7 @@ | |||
navTo, | |||
confirm | |||
} from "@/utils/utils"; | |||
const bgOrange = `url(${fileURL}image/index/bg-orange.png) center center no-repeat`; | |||
const bgBlue = `url(${fileURL}image/index/bg-blue.png) center center no-repeat`; | |||
const list = reactive(["您有一条待办事项,还未办理完成"]) |
@@ -16,7 +16,7 @@ | |||
<view class="right"> | |||
<view class="right-content"> | |||
<block v-if="menu.list.length >0"> | |||
<view v-for="(item,index) in menu.list[tableSelectIndex].subMenus" :key='index' class="item-box" @click="toNext(item.link)"> | |||
<view v-for="(item,index) in menu.list[tableSelectIndex].children" :key='index' class="item-box" @click="toNext(item.link)"> | |||
<view class="item bg-blue" :style="{ '--background': bgBlue }"> | |||
<image :src="`${$imgUrl}${item.iconPath}`" /> | |||
</view> |
@@ -62,7 +62,7 @@ | |||
source: 'WECHAT', | |||
tabIndex: '0', | |||
orderStep: '11', | |||
isValueCard: '2' | |||
// isValueCard: '2' | |||
}; | |||
const options = { | |||
type: 2, |
@@ -59,7 +59,7 @@ | |||
source: 'WECHAT', | |||
tabIndex: '0', | |||
orderStep: '11', | |||
isValueCard: '2' | |||
// isValueCard: '2' | |||
}; | |||
const options = { | |||
type: 2, |
@@ -45,7 +45,7 @@ const quanCheckActionTrue = () => { | |||
source: "WECHAT", | |||
tabIndex: "0", | |||
orderStep: "11", | |||
isValueCard: "2", | |||
// isValueCard: "2", | |||
}; | |||
const options = { | |||
type: 2, |
@@ -193,7 +193,7 @@ | |||
import { getEtcCardStatus } from "@/datas/etcCardStatus.js"; | |||
import { getItem } from "@/utils/storage"; | |||
import {hasLogin} from "@/utils/utils.ts" | |||
const scrollTop = ref(0); | |||
//监听页面滚动 | |||
@@ -224,16 +224,24 @@ | |||
state.data.transferLogs = value.transferLogs; | |||
state.show = true; | |||
} else { | |||
if (state.type == 1 || state.type == "1") { | |||
uni.redirectTo({ | |||
url: `/subpackage/applyCard/addAddress?orderId=${state.form.orderId | |||
}&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | |||
}); | |||
} else { | |||
// 签约 | |||
if(state.isSign == 1){ | |||
if (!hasLogin()) { | |||
uni.redirectTo({ | |||
url: `/subpackage/applyCard/addAddress?orderId=${state.form.orderId | |||
}&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | |||
}); | |||
} else { | |||
uni.redirectTo({ | |||
// url: `/subpackage/applyCard/choice-product?orderId=${state.form.orderId}`, | |||
url: `/subpackage/applyCard/release-products?orderId=${state.form.orderId | |||
}&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | |||
}); | |||
} | |||
}else{ | |||
// 不签约 | |||
uni.redirectTo({ | |||
// url: `/subpackage/applyCard/choice-product?orderId=${state.form.orderId}`, | |||
url: `/subpackage/applyCard/release-products?orderId=${state.form.orderId | |||
}&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | |||
url: `/subpackage/applyCard/sign-up?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | |||
}); | |||
} | |||
} | |||
@@ -357,11 +365,14 @@ | |||
outlineL: "", | |||
outlineW: "", | |||
outlineH: "", | |||
isSign:'' | |||
}); | |||
onLoad((option : any) => { | |||
state.form.orderId = option.orderId; | |||
state.type = option.type; | |||
state.vehiclePlateColor = option.vehiclePlateColor; | |||
state.isSign=option.isSign | |||
console.log("option",option) | |||
}); | |||
//外廓尺寸输入框 |
@@ -16,12 +16,19 @@ | |||
<image class="icon-tip" :src="`${$imgUrl}applyCard/wechat.png`"></image> | |||
<view class="content"> | |||
<view class="title"> | |||
{{ item.name }} | |||
{{ item.promoteName }} | |||
</view> | |||
<view style="margin-top: 15rpx" class="tip"> | |||
{{ item.productMsg }} | |||
<!-- 1记账卡2储值卡3记存卡 --> | |||
<view style="margin-top: 15rpx" class="tip" v-if="item.cardType=='1'"> | |||
记账卡 | |||
</view> | |||
<view style="margin-top: 15rpx" class="tip" v-else> | |||
储值卡 | |||
</view> | |||
</view> | |||
<view class="money"> | |||
¥:{{ item.fee * 0.01 }} | |||
</view> | |||
</view> | |||
</view> | |||
<view class="bottomTip"> 到底啦!敬请期待其他产品! </view> | |||
@@ -47,13 +54,15 @@ const imgURL = `${fileURL}image/`; | |||
const scrollTop = ref(0); //滚动距离 | |||
const savaHandle = (val) => { | |||
console.log("vAL",val) | |||
// productReCodeAction(val.id).then((value) => { | |||
// if (val.isValueCard === 2) { | |||
setItem("clientFee", val.clientFee); | |||
setItem("productId", val.id); | |||
setItem("promoteId", val.promoteId); | |||
setItem("isValueCard", val.isValueCard); | |||
state.isSign=val.isSign; | |||
uni.redirectTo({ | |||
url: `/subpackage/applyCard/essential-information?productId=${val.id}&userType=${state.userType}&type=${state.type}`, | |||
url: `/subpackage/applyCard/essential-information?promoteId=${val.promoteId}&userType=${state.userType}&type=${state.type}&isSign=${state.isSign}`, | |||
}); | |||
// if (state.userType === 1) { | |||
@@ -116,13 +125,27 @@ onLoad((option: any) => { | |||
method: "POST", | |||
showLoading: true, | |||
}; | |||
console.log("输出内容", options.data); | |||
console.log("输出内容", options); | |||
request(etcQueryProduct, options).then((res) => { | |||
// console.log(res.bizContent); | |||
const data = stringToJson(res.bizContent); | |||
console.log(data); | |||
// console.log(typeof(data)); | |||
state.dataArray = data.csmsnProducts ?? []; | |||
state.dataArray = data.csmsnPromoteDistPro ?? []; | |||
// for(var i=0;i<state.dataArray.length;i++){ | |||
// for(var j=0;j<state.dataArray[i].cardType.length;j++){ | |||
// const cardTypeArr=[] | |||
// if(state.dataArray[i].cardType[j]=='1'){ | |||
// cardTypeArr.push('记账卡') | |||
// }else if(state.dataArray[i].cardType[j]=='2'){ | |||
// cardTypeArr.push('储值卡') | |||
// }else if(state.dataArray[i].cardType[j]=='3'){ | |||
// cardTypeArr.push('记存卡') | |||
// } | |||
// } | |||
// state.dataArray[i].cardTypeArr=cardTypeArr.toString() | |||
// } | |||
console.log("state.dataArray",state.dataArray) | |||
}); | |||
}); | |||
@@ -153,6 +176,7 @@ const productReCodeAction = (id) => { | |||
}; | |||
const state = reactive({ | |||
isSign:'', | |||
orderId: "", | |||
userType: 1, //1 个人 2单位 | |||
type: 0, //0 客车 1货车 | |||
@@ -185,7 +209,7 @@ const state = reactive({ | |||
.content-value { | |||
position: relative; | |||
margin-top: -50rpx; | |||
// margin-top: -50rpx; | |||
padding: 0rpx 30rpx; | |||
position: relative; | |||
@@ -291,14 +315,17 @@ const state = reactive({ | |||
position: absolute; | |||
display: flex; | |||
align-items: center; | |||
justify-content: space-around; | |||
// justify-content: space-around; | |||
width: 80%; | |||
.content { | |||
width: 51%; | |||
.title { | |||
font-size: 32rpx; | |||
font-family: Microsoft YaHei; | |||
font-weight: 400; | |||
color: #ffffff; | |||
} | |||
.tip { | |||
@@ -319,4 +346,8 @@ const state = reactive({ | |||
margin-left: 40rpx; | |||
} | |||
} | |||
.money{ | |||
color: white; | |||
// float: right; | |||
} | |||
</style> |
@@ -169,10 +169,11 @@ const state = reactive({ | |||
region: "", | |||
address: "", | |||
postalCode: "", | |||
productId:"", | |||
promoteId:"", | |||
}, | |||
show: false, | |||
addressArray: [], | |||
isSign:'' | |||
}); | |||
/* 选择车牌颜色 */ | |||
@@ -246,18 +247,17 @@ const nextAction = () => { | |||
} else { | |||
const data = stringToJson(res.bizContent); | |||
console.log(data); | |||
//提交产品信息 | |||
productReCodeAction(data.orderId).then((result)=>{ | |||
console.log(state.data); | |||
console.log(result); | |||
if (state.data.userType == 1) { | |||
uni.navigateTo({ | |||
url: `/subpackage/applyCard/opening-account-people?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}`, | |||
url: `/subpackage/applyCard/opening-account-people?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}&isSign=${state.isSign}`, | |||
}); | |||
} else { | |||
uni.navigateTo({ | |||
url: `/subpackage/applyCard/opening-account-unit?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}`, | |||
url: `/subpackage/applyCard/opening-account-unit?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}&isSign=${state.isSign}`, | |||
}); | |||
} | |||
@@ -315,17 +315,24 @@ const orderStepGoActon = (val: any) => { | |||
uni.redirectTo({ | |||
url: `/subpackage/applyCard/choice-product?orderId=${val.orderId}`, | |||
}); | |||
} else if (val.orderStep === 4) { | |||
}else if (val.orderStep === 4) { | |||
uni.redirectTo({ | |||
url: `/subpackage/applyCard/product-detail?orderId=${val.orderId}&&clientFee=${val.product.clientFee}&&id=${val.productId}`, | |||
}); | |||
} else if (val.orderStep === 26) { | |||
uni.redirectTo({ | |||
url: `/subpackage/applyCard/product-detail?orderId=${val.orderId}&&clientFee=${val.product.clientFee}&&id=${val.productId}`, | |||
}); | |||
} | |||
}; | |||
onLoad((option: any) => { | |||
state.data.opId = getItem(StorageKeys.OpenId); | |||
state.data.type = option.type; //客车 | |||
state.data.userType = option.userType; | |||
state.data.productId = option.productId; | |||
state.data.promoteId = option.promoteId; | |||
state.isSign=option.isSign | |||
console.log("订单选择推广发行产品接口",option) | |||
}); | |||
//监听页面滚动 | |||
@@ -337,7 +344,6 @@ onShow(() => { | |||
var data = { | |||
openId: getItem(StorageKeys.OpenId), | |||
}; | |||
console.log(getItem(StorageKeys.OpenId)); | |||
if (getItem(StorageKeys.OpenId)) { | |||
const options = { | |||
type: 2, | |||
@@ -346,17 +352,20 @@ onShow(() => { | |||
showLoading: true, | |||
}; | |||
request(addressQuery, options).then((res) => { | |||
console.log(res.bizContent); | |||
const data = stringToJson(res.bizContent); | |||
console.log(data); | |||
console.log("111",data); | |||
state.addressArray = data.data ?? []; | |||
}); | |||
} | |||
}); | |||
const productReCodeAction = (orderId) => { | |||
// var data = { | |||
// productId: state.data.productId, | |||
// orderId: orderId, | |||
// }; | |||
var data = { | |||
productId: state.data.productId, | |||
promoteId: state.data.promoteId, | |||
orderId: orderId, | |||
}; | |||
const options = { | |||
@@ -365,12 +374,14 @@ const productReCodeAction = (orderId) => { | |||
method: "POST", | |||
showLoading: true, | |||
}; | |||
return new Promise(async (resolve, reject) => { | |||
const res = await request(productReCode, options); | |||
const data = stringToJson(res.bizContent); | |||
console.log("111") | |||
resolve(data); | |||
}).catch((error) => { | |||
console.log("222") | |||
reject(error); | |||
}); | |||
}; |
@@ -2,10 +2,12 @@ | |||
<view class="content"> | |||
<view class="item" v-for="(item,index) in state.list" :key='index'> | |||
<view class="title"> | |||
<view v-if='item.children' style="display: inline-block;"> | |||
<image :class="item.isShow?'imageChange':'imageDefault'" @click="changeIsShow(index)" src="../../static/image/icon-back.png" alt="" srcset=""></image> | |||
<view> | |||
<view v-if='item.children' style="display: inline-block;"> | |||
<image :class="item.isShow?'imageChange':'imageDefault'" @click="changeIsShow(index)" src="../../static/image/icon-back.png" alt="" srcset=""></image> | |||
</view> | |||
<text><text>{{item.productName}}</text> <text>¥{{item.discountPrice * 0.01}}</text></text> | |||
</view> | |||
<text><text>{{item.productName}}</text> <text>¥{{item.discountPrice * 0.01}}</text></text> | |||
<checkbox-group @change='getValue(index)'> | |||
<label > | |||
<checkbox :value="index" /> | |||
@@ -13,7 +15,7 @@ | |||
</checkbox-group> | |||
</view> | |||
<view v-if="item.isShow" class="children" v-for="(itemChild,index) in item.children" :key='index'> | |||
<view><text>{{itemChild.productName}}</text><text>{{itemChild.discountPrice * 0.01}}</text></view> | |||
<view><text>{{itemChild.productName}}</text> <text>{{itemChild.discountPrice * 0.01}}</text></view> | |||
</view> | |||
</view> | |||
<button type="default" class="button" @click="savaHandle()"> | |||
@@ -236,15 +238,22 @@ | |||
width: 90%; | |||
margin: 10rpx auto; | |||
background-color: rgb(41, 199, 207); | |||
height: 150rpx; | |||
// height: 150rpx; | |||
border-radius: 20rpx; | |||
padding: 20rpx; | |||
box-sizing: border-box; | |||
color: white; | |||
font-size: 32rpx; | |||
} | |||
.item>.title{ | |||
width: 100%; | |||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
} | |||
.title>checkbox-group{ | |||
float: right; | |||
// float: right; | |||
} | |||
.children{ | |||
margin-left: 50rpx; |
@@ -302,6 +302,7 @@ | |||
orderId: "", | |||
vehiclePlateColor: undefined, | |||
isMyPeopple: true, | |||
isSign:'' | |||
}); | |||
const userGenderAction = () => { | |||
@@ -326,7 +327,7 @@ | |||
} | |||
//如果未登录||新用户 | |||
if (!getItem('openId')) { | |||
// if (!getItem('openId')) { | |||
let data = { | |||
userType: "PERSONAL", | |||
@@ -368,32 +369,29 @@ | |||
// let result = stringToJson(res.bizContent); | |||
console.log(res); | |||
uni.redirectTo({ | |||
url: `/subpackage/applyCard/car-release?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}&type=1`, | |||
url: `/subpackage/applyCard/car-release?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}&type=1&isSign=${state.isSign}`, | |||
}); | |||
}); | |||
} | |||
}) | |||
} else { | |||
// } else { | |||
//已经登录 | |||
let data = state.form; | |||
const options = { | |||
type: 2, | |||
data: data, | |||
method: "POST", | |||
showLoading: true, | |||
}; | |||
request(etcUserCardInfoSubmit, options).then((res) => { | |||
// let result = stringToJson(res.bizContent); | |||
console.log(res); | |||
uni.redirectTo({ | |||
url: `/subpackage/applyCard/car-release?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}`, | |||
}); | |||
}); | |||
} | |||
// let data = state.form; | |||
// const options = { | |||
// type: 2, | |||
// data: data, | |||
// method: "POST", | |||
// showLoading: true, | |||
// }; | |||
// request(etcUserCardInfoSubmit, options).then((res) => { | |||
// // let result = stringToJson(res.bizContent); | |||
// console.log(res); | |||
// uni.redirectTo({ | |||
// url: `/subpackage/applyCard/car-release?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}&isSign=${state.isSign}`, | |||
// }); | |||
// }); | |||
// } | |||
}; | |||
const cardFileImageUpdate = () => { | |||
uni.chooseImage({ | |||
@@ -462,6 +460,7 @@ | |||
state.orderId = option.orderId; | |||
state.vehiclePlateColor = option.vehiclePlateColor; | |||
state.form.opId = getItem('openId')??''; | |||
state.isSign=option.isSign; | |||
//state.fromOrder = option.fromOrder //是否来自订单-修改资料 | |||
}); | |||
@@ -165,7 +165,8 @@ import { | |||
orderSource: 'WECHAT', | |||
}, | |||
orderId: "", | |||
vehiclePlateColor: '' | |||
vehiclePlateColor: '', | |||
isSign:'' | |||
}); | |||
const savaHandle = () => { | |||
@@ -184,7 +185,7 @@ import { | |||
} | |||
//如果未登录||新用户 | |||
if (!getItem('openId')) { | |||
// if (!getItem('openId')) { | |||
let data = { | |||
userType: "ENTERPRISE", | |||
@@ -225,27 +226,27 @@ import { | |||
// let result = stringToJson(res.bizContent); | |||
console.log(res); | |||
uni.redirectTo({ | |||
url: `/subpackage/applyCard/car-release?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}&type=1`, | |||
url: `/subpackage/applyCard/car-release?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}&type=1&isSign=${state.isSign}`, | |||
}); | |||
}); | |||
} | |||
}) | |||
}else{ | |||
var data = state.form; | |||
const options = { | |||
type: 2, | |||
data: data, | |||
method: "POST", | |||
showLoading: true, | |||
}; | |||
request(etcCompanyCardInfoSubmit, options).then((res) => { | |||
const data = stringToJson(res.bizContent); | |||
uni.redirectTo({ | |||
url: `/subpackage/applyCard/car-release?orderId=${state.orderId}&&vehiclePlateColor=${state.vehiclePlateColor}`, | |||
}); | |||
}); | |||
} | |||
// }else{ | |||
// var data = state.form; | |||
// const options = { | |||
// type: 2, | |||
// data: data, | |||
// method: "POST", | |||
// showLoading: true, | |||
// }; | |||
// request(etcCompanyCardInfoSubmit, options).then((res) => { | |||
// const data = stringToJson(res.bizContent); | |||
// uni.redirectTo({ | |||
// url: `/subpackage/applyCard/car-release?orderId=${state.orderId}&&vehiclePlateColor=${state.vehiclePlateColor}&isSign=${state.isSign}`, | |||
// }); | |||
// }); | |||
// } | |||
}; | |||
@@ -254,6 +255,7 @@ import { | |||
state.orderId = option.orderId; | |||
state.vehiclePlateColor = option.vehiclePlateColor; | |||
state.form.opId = getItem('openId')??''; | |||
state.isSign=option.isSign; | |||
}); | |||
//监听页面滚动 |
@@ -13,24 +13,31 @@ | |||
</view> | |||
</view> | |||
</view> | |||
<uni-swipe-action> | |||
<uni-swipe-action-item | |||
class="del_item" | |||
v-for="(item,index) in state.list" | |||
:right-options="state.options2" | |||
:show="item.isOpened" | |||
:auto-close="false" | |||
@change="change" | |||
@click="bindClick(index)" | |||
> | |||
<view class="content-box"> | |||
<text class="content-text" @tap="setOpened">{{item.productName}} ¥{{item.discountPrice * 0.01}}</text> | |||
</view> | |||
</uni-swipe-action-item> | |||
</uni-swipe-action> | |||
<!-- 加购权益列表 --> | |||
<view class="add_all"> | |||
<uni-swipe-action> | |||
<uni-swipe-action-item | |||
class="del_item" | |||
v-for="(item,index) in state.list" | |||
:right-options="state.options2" | |||
:show="item.isOpened" | |||
:auto-close="false" | |||
@change="change" | |||
@click="bindClick(index)" | |||
> | |||
<view class="content-box"> | |||
<view v-if='item.children' style="display: inline-block;"> | |||
<image :class="item.isShow?'imageChange':'imageDefault'" @click="changeIsShow(index)" src="../../static/image/icon-back.png" alt="" srcset=""></image> | |||
</view> | |||
<text class="content-text" @tap="setOpened">{{item.productName}} ¥{{item.discountPrice * 0.01}}</text> | |||
<view v-if="item.isShow" class="children" v-for="(itemChild,index) in item.children" :key='index'> | |||
<view><text>{{itemChild.productName}}</text> <text>{{itemChild.discountPrice * 0.01}}</text></view> | |||
</view> | |||
</view> | |||
</uni-swipe-action-item> | |||
</uni-swipe-action> | |||
</view> | |||
<view class="value-wrapper"> | |||
<view class="flex"> | |||
@@ -62,12 +69,13 @@ | |||
</view> | |||
</view> | |||
</view> | |||
<view class="action"> | |||
<button type="default" class="button" @click="savaHandle()"> | |||
{{ "确认办理:¥" + state.allMoney }} | |||
</button> | |||
</view> | |||
</view> | |||
</template> | |||
@@ -77,7 +85,7 @@ | |||
onShow | |||
} from "@dcloudio/uni-app"; | |||
import { | |||
reactive | |||
reactive,ref | |||
} from "vue"; | |||
import { | |||
etcQueryProduct,addProduct | |||
@@ -111,9 +119,28 @@ | |||
msg | |||
} from "@/utils/utils"; | |||
const imgURL = `${fileURL}image/`; | |||
const savaHandle = () => { | |||
wxPayment(); | |||
console.log("state.productId.length",state.productId.length) | |||
if(state.productId.length>0){ | |||
queryAddProduct(); | |||
uni.showModal({ | |||
// title: '提示', | |||
content: '确定支付', | |||
success: function (res) { | |||
if (res.confirm) { | |||
console.log('用户点击确定'); | |||
wxPayment(); | |||
} else if (res.cancel) { | |||
console.log('用户点击取消'); | |||
} | |||
} | |||
}); | |||
}else{ | |||
wxPayment(); | |||
} | |||
// msg("确定绑定权益产品"); | |||
// wxPayment(); | |||
}; | |||
//获取微信小程序openid | |||
@@ -125,7 +152,7 @@ | |||
url: `https://api.weixin.qq.com/sns/jscode2session?appid=${wechatAppID}&secret=${wechatSecret}&js_code=${e.code}&grant_type=authorization_code`, | |||
success: (res: any) => { | |||
state.openid = res.data.openid; | |||
console.log(state.openid); | |||
console.log("state.openid",state.openid); | |||
}, | |||
}); | |||
}, | |||
@@ -182,7 +209,6 @@ | |||
}; | |||
request(checkOrderStatus, options).then((res) => { | |||
queryAddProduct(); | |||
msg("支付成功!"); | |||
var pages = getCurrentPages().length; | |||
uni.$emit("refreshOrder"); | |||
@@ -207,6 +233,7 @@ | |||
console.log("data",option) | |||
console.log("数组",JSON.parse(decodeURIComponent(option.data))) | |||
}); | |||
const state = reactive({ | |||
@@ -225,7 +252,12 @@ | |||
list:[], | |||
productMoney:0, | |||
allMoney:0, | |||
productId:[] | |||
productId:[], | |||
// 弹框 | |||
type: 'center', | |||
msgType: 'success', | |||
messageText: '这是一条成功提示', | |||
value: '' | |||
}); | |||
const bindClick=(i)=>{ | |||
console.log(i); | |||
@@ -263,22 +295,28 @@ | |||
} | |||
// 加购权益产品接口 | |||
const queryAddProduct=()=>{ | |||
console.log("state.openid",state.openid); | |||
const options = { | |||
type: 2, | |||
data: { | |||
orderId: state.orderId, //订单编号 | |||
openid: state.openid, //操作人 id | |||
singleEquityId: state.id, //单项益Id | |||
multipleEquityd: state.id, //多项益Id | |||
totalAmount: state.allMoney, //总金额 | |||
openId: state.openid, //操作人 id | |||
equityId: state.productId.toString() , //权益Id | |||
totalAmount: state.allMoney * 100, //总金额 | |||
isRepeatPurchase:0 | |||
}, | |||
method: "POST", | |||
showLoading: true, | |||
}; | |||
request(addProduct, options).then((res) => { | |||
msg("加购权益成功。"); | |||
// msg("加购权益成功。"); | |||
}); | |||
} | |||
const changeIsShow = (index) =>{ | |||
console.log(index,state.list[index]['isShow'],!state.list[index]['isShow']) | |||
state.list[index]['isShow']=!state.list[index]['isShow'] | |||
console.log("state.list",state.list) | |||
} | |||
</script> | |||
<style lang="scss" scoped> | |||
@@ -380,16 +418,45 @@ | |||
} | |||
} | |||
.del_item{ | |||
background-color: #43a1e0 !important; | |||
background-color: rgb(41, 199, 207) !important; | |||
} | |||
.content-box{ | |||
background-color: #43a1e0; | |||
background-color: rgb(41, 199, 207); | |||
line-height: 80rpx; | |||
color: white; | |||
font-size: 32rpx; | |||
border-radius: 10rpx; | |||
margin-bottom: 16rpx; | |||
border-radius: 10rpx 0 0 10rpx; | |||
padding: 20rpx; | |||
box-sizing: border-box; | |||
} | |||
::v-deep.uni-swipe_button-text{ | |||
font-size: 30rpx !important; | |||
} | |||
::v-deep.uni-swipe_button-group { | |||
font-size: 28rpx !important; | |||
} | |||
.add_all{ | |||
width: 95%; | |||
margin: 0 auto; | |||
} | |||
.uni-swipe_box{ | |||
margin-bottom: 16rpx !important; | |||
} | |||
::v-deep.uni-swipe { | |||
margin-bottom: 16rpx !important; | |||
} | |||
.imageDefault{ | |||
height: 40rpx; | |||
width: 40rpx; | |||
transform: rotate(270deg); | |||
margin-right: 12rpx; | |||
color: white; | |||
} | |||
.imageChange{ | |||
height: 40rpx; | |||
width: 40rpx; | |||
transform: rotate(90deg); | |||
margin-right: 12rpx; | |||
color: white; | |||
} | |||
</style> |
@@ -6,8 +6,8 @@ export const URL = "192.168.100.63"; | |||
export const envs = { | |||
//开发环境配置 | |||
development: { | |||
baseUrl: "192.168.100.63:8087", | |||
// baseUrl: "222.85.144.89:19002", | |||
// baseUrl: "192.168.100.63:8087", | |||
baseUrl: "222.85.144.89:19002", | |||
}, | |||
//生产环境配置 | |||
production: { | |||
@@ -65,7 +65,8 @@ export const exchangeProcess = '886' //8.101.ASS-换货/换卡签审核接口 | |||
//产品选择 | |||
// export const etcQueryProduct = "48"; //获取产品根据orderId获取 | |||
export const etcQueryProduct = "098bff3fc88e48bf9cafc3b5679b4d07"; //获取产品 根据客货类型获取 | |||
export const productReCode = '914'//订单产品选择接口 | |||
// export const productReCode = '914'//订单产品选择接口 | |||
export const productReCode = '198172b1858d474fa8e35225d65014d7'//订单选择推广发行产品 | |||
//签约 | |||
export const etcOpenIdMember = "62"; //统一会员平台openId查询接口 |