!98 2022-1-24 Jiamin

Merge pull request !98 from Admin/sit-jiamin-v2
This commit is contained in:
Admin 2022-01-24 10:43:27 +00:00 committed by Gitee
commit 563b3d7c74
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 25 additions and 27 deletions

View File

@ -3,10 +3,11 @@
<Myheader></Myheader>
<div class="rc-top"></div>
<div class="rc-main" v-for="(item,index) in goldmedal" :key="item.id" >
<div class="rc-receiving" >
<div class="rc-main rc-receiving" >
<em>{{item.status=='0'?'待付款':item.status=='1'?'待收货':item.status=='2'?'已完成':item.status=='3'?'已取消':'异常订单'}}</em>
<span>{{orderstatus}}</span>
</div>
<div class="delivery" v-if="isshow" >
<div class="to-delivery">
<span>{{ trackingstates}}</span>
@ -19,23 +20,17 @@
<img :src="leftico" alt="" />
</div>
</div>
<div
class="mypersonal"
v-for="(datddress, index) in useraddress"
:key="datddress.id"
>
<div class="my-delivery">
<span>{{ datddress.recipient }}</span>
<i>{{ datddress.recipientPhone }}</i>
<span>{{ item.addressUserName }}</span>
<i>{{ item.addressPhoneNumber }}</i>
</div>
<div class="per-delivery">
<span>{{ datddress.provinceName }}{{datddress.cityName}}{{datddress.districtName}}{{datddress.detailAddress}}</span>
<span>{{ item.addressProvinceName }}{{item.addressCityName}}{{item.addressCountyName}}</span>
</div>
</div>
<div >
<div class="rc-center">
<div class="rc-usermain" v-for="(userlist,index) in item.orderDetailList" :key="index">
@ -124,8 +119,8 @@
<i>合计金额:</i>
<em>{{usersalesAmount}}</em>
</div>
<div style="padding-bottom:40px">
<span @click="onceagain()">再次购买</span>
<div style="padding-bottom:40px;cursor: pointer">
<span @click="onceagain(item)"> {{payorsucess}}</span>
</div>
</div>
@ -159,6 +154,7 @@ export default {
goldmedal:[],
userproductId:'',
logisticsDate:'',
addressPhoneNumber:'',
userphone:'',
logisticsNumber:'',
customer:'',//
@ -168,6 +164,7 @@ export default {
logisticsCompany:'',//
orderstatus: '',
goldastates:'',
userisdelivery:'待收货',
userdelivery: "派送中",
isshow:true,
@ -241,11 +238,11 @@ userpay(){
}
},
//
onceagain(){
onceagain(item){
console.log(this.payorsucess);
if(this.payorsucess=='立即支付'){
console.log('----')
this.getwei();
this.getwei(item);
}else{
this.$router.push({
@ -268,6 +265,7 @@ if(data){
console.log(this.goldmedal);
for(let i=0;i<this.goldmedal.length;i++){
this.goldastates=this.goldmedal[i].status;
this.userproductId=this.goldmedal[i].orderDetailList[0].productId;
this.logisticsNumber=this.goldmedal[i].orderDetailList[0].logisticsNumber; //
this.trackingstates=this.goldmedal[i].orderDetailList[0].status//
@ -285,7 +283,7 @@ if(data){
this.orderNumber=this.goldmedal[i].orderNumber
this.usersalesAmount=this.goldmedal[i].salesAmount;
this.addressUserName=this.goldmedal[i].addressUserName;
this.addressPhoneNumber=this.goldmedal[i].addressPhoneNumber;
}
console.log(this.goldmedal,this.userproductId,this.usersalesAmount);
}
@ -296,10 +294,11 @@ if(data){
async getwei(user) {
console.log(user);
let userPayData = {
userprice: this.usersalesAmount,
orderId:this.orderNumber,
userinformation:this.useraddress[0].recipient +
" "+this.userphone
userinformation:this.addressUserName +
" "+this.addressPhoneNumber
};
this.$router.push({
path: "/personal/userpay",
@ -310,12 +309,7 @@ if(data){
},
});
// this.$router.push({
// path: "/personal/userpay",
// query: {
// },
// });
},
async editaddress(user) {
// user.data.id=844350;

View File

@ -48,7 +48,7 @@
<span>{{item.validFrom}}</span>
<em>{{item.validTo}}</em>
</div>
<nuxt-link :to="`/productdetails/productlist`">
<nuxt-link :to="`/productdetails/productlist`" v-if="activeIndex==0">
<div class="ts-standard-btn">
立即使用
</div>

View File

@ -320,7 +320,7 @@ export default {
this.useralllist[i].orderNumber = this.goldmedal[i].orderNumber;
this.useralllist[i].status = this.goldmedal[i].status;
this.useralllist[i].addressUserName = this.goldmedal[i].addressUserName;
this.useralllist[i].phoneNumber = this.goldmedal[i].phoneNumber;
this.useralllist[i].phoneNumber = this.goldmedal[i].addressPhoneNumber;
this.useralllist[i].salesAmount = this.goldmedal[i].salesAmount;
// this.useralllist[i].picFile = this.goldmedal[i].picFile; //
// this.useralllist[i].productName=this.goldmedal[i].productName;//

View File

@ -256,10 +256,14 @@ export default {
else{
//let user= JSON.parse(localStorage.getItem("userInfo"));
let data = await this.vadmsg();
if(data.code=="1")
console.log(data.code)
if(data.code=1)
{
console.log('---');
data=await useredit(this.tel);
if(data.code=='1'){
console.log(this.tel);
console.log(data);
if(data.code=1){
let couponId='0000000123';
this.serdiscount(this.tel,couponId);
setTimeout(() => {