Commit 7c4bb4e5 authored by 肖健's avatar 肖健

Merge remote-tracking branch 'origin/dev_cd' into dev_jd

parents 906d9fb3 2475dbb4
This diff is collapsed.
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
mapState mapState
} from 'vuex'; } from 'vuex';
import tabbar from '@/common/hans-tabbar/hans-tabbar' import tabbar from '@/common/hans-tabbar/hans-tabbar'
import index from './home' // import index from './home'
import index from './home-new.vue'
import moveCar from './moveCar' import moveCar from './moveCar'
import shop from './shop' import shop from './shop'
import personal from './personal' import personal from './personal'
......
...@@ -179,7 +179,7 @@ export default { ...@@ -179,7 +179,7 @@ export default {
return return
} }
uni.showToast({ uni.showToast({
title: "该商品无链接!", title: "该商品无链接!",
icon: 'none', icon: 'none',
duration: 1500, duration: 1500,
}); });
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<!-- 我的订单 --> <!-- 我的订单 -->
<view class="get-coupon"> <view class="get-coupon">
<view class="box"> <view class="box">
<image src="../../../static/index/coupon1.png"></image> <image src="http://jdnc-oss.uzosp.com/2022/05/31/5c01ded6473a44c7b5f1370b6010ae87.png"></image>
<view class="title"> <view class="title">
<view style="margin-bottom:20rpx;"> <view style="margin-bottom:20rpx;">
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<!-- 领取成功后弹框 --> <!-- 领取成功后弹框 -->
<view class="pooup-success" v-if="pooupSuccess"> <view class="pooup-success" v-if="pooupSuccess">
<view class="success-box"> <view class="success-box">
<image src="../../../static/index/coupon2.png"></image> <image src="http://jdnc-oss.uzosp.com/2022/05/31/7f0a17d1075d47ffb784b4095e79d36a.png"></image>
<view class="close" @click="closeCoupon"> <view class="close" @click="closeCoupon">
X X
</view> </view>
......
...@@ -15,13 +15,13 @@ ...@@ -15,13 +15,13 @@
</div> </div>
<div class="item__title" @click="goGetPrice(vo.id)"> <div class="item__title" @click="goGetPrice(vo.id)">
<view class="title"> <view class="title">
{{vo.brand + "-" + item.seriesName}} {{vo.brand + "-" + vo.seriesName}}
</view> </view>
<view class="type"> <view class="type">
{{vo.carModel}} {{vo.carModel}}
</view> </view>
<view class="route"> <view class="route">
行驶里程 {{vo.mileage}}KM 行驶里程 {{vo.mileage || 0}}KM
</view> </view>
</div> </div>
<!-- <div class="item__edit" @click="editCar(vo.id)"> <!-- <div class="item__edit" @click="editCar(vo.id)">
......
...@@ -111,6 +111,7 @@ ...@@ -111,6 +111,7 @@
detailInfo: '', detailInfo: '',
//是否微信通知 //是否微信通知
wechat: false, wechat: false,
code:null
}, },
noticeResult: { noticeResult: {
secretPhone: '', secretPhone: '',
...@@ -153,7 +154,10 @@ ...@@ -153,7 +154,10 @@
this.noticeResult = res.data.data this.noticeResult = res.data.data
if (this.noticeResult.allowPhone) { if (this.noticeResult.allowPhone) {
// this.list[0].name = this.noticeResult.secretPhone // this.list[0].name = this.noticeResult.secretPhone
this.show = true; // this.show = true;
uni.makePhoneCall({
phoneNumber: this.noticeResult.secretPhone
});
} }
} else { } else {
this.noticeResult = res.data.data this.noticeResult = res.data.data
...@@ -195,6 +199,7 @@ ...@@ -195,6 +199,7 @@
}, },
selectClick(index) { selectClick(index) {
if (index.name == "呼叫") { if (index.name == "呼叫") {
this.show = false;
uni.makePhoneCall({ uni.makePhoneCall({
phoneNumber: this.noticeResult.secretPhone phoneNumber: this.noticeResult.secretPhone
}); });
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</view> </view>
<view class="item-input flex align-center"> <view class="item-input flex align-center">
<input type="number" placeholder="请输入" v-model="model1.verificationCode"> <input type="number" placeholder="请输入" v-model="model1.verificationCode">
<view class="code text-red" v-if="!smsbtn.status" @click="sendCode"> <view class="code" style="color: #F1251B;" v-if="!smsbtn.status" @click="sendCode">
{{smsbtn.text}} {{smsbtn.text}}
</view> </view>
<view class="code" v-else> <view class="code" v-else>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<u-search placeholder="请输入商品" :showAction='false' bgColor='#ffffff' v-model="keyword" @search="searchCommodity"></u-search> <u-search placeholder="请输入商品" :showAction='false' bgColor='#ffffff' v-model="keyword" @search="searchCommodity"></u-search>
</div> </div>
<div class="list"> <div class="list">
<div class="list__item" v-for="(vo,inx) in items" :key="inx" @click="goDetail(vo.id)"> <div class="list__item" v-for="(vo,inx) in items" :key="inx" @click="goDetail(vo.id,vo.link)">
<div class="list__img"> <div class="list__img">
<!-- <image :src="vo.img" /> --> <!-- <image :src="vo.img" /> -->
<image :src="vo.mainImgUrl" style="width: 160rpx;height: 160rpx;border-radius:10rpx;"></image> <image :src="vo.mainImgUrl" style="width: 160rpx;height: 160rpx;border-radius:10rpx;"></image>
...@@ -51,7 +51,7 @@ export default { ...@@ -51,7 +51,7 @@ export default {
let searchCondition = { let searchCondition = {
searchVal: this.keyword searchVal: this.keyword
} }
console.log(searchCondition) console.log(searchCondition,222222222)
let opts = { url: '/app/index/mall/list', method: 'get' }; let opts = { url: '/app/index/mall/list', method: 'get' };
this.http.httpRequest(opts, searchCondition).then(res => { this.http.httpRequest(opts, searchCondition).then(res => {
if(res.data.code == 200){ if(res.data.code == 200){
...@@ -59,10 +59,38 @@ export default { ...@@ -59,10 +59,38 @@ export default {
} }
}) })
}, },
goDetail(id) { goDetail(id,link) {
let token = uni.getStorageSync('userToken');
if(!token){
let returnPage= '/pages/main';
let pageType = "reLaunch"
uni.navigateTo({ uni.navigateTo({
url: '/pagesC/pages/shop/detail?id=' + id url:"/pages/login/index/index?returnPage="+returnPage+'&pageType='+pageType
}) })
return;
}
if(link){
// uni.navigateTo({
// url: '/pages/webview/webview?url=' + link
// })
uni.navigateToMiniProgram({
appId: 'wx91d27dbf599dff74', // 跳转目标小程序的id
path: '', // 目标小程序的页面路径
extraData: { // 需要携带的参数
},
success(res) {// 打开成功
}
})
return
}
uni.showToast({
title: "该商品暂无链接!",
icon: 'none',
duration: 1500,
});
// uni.navigateTo({
// url: '/pagesC/pages/shop/detail?id=' + id
// })
}, },
}, },
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<span class="cover__name">头像</span> <span class="cover__name">头像</span>
<div class="cover"> <div class="cover">
<image v-if="image" :src="image" /> <image v-if="image" :src="image" />
<image v-else src="@/static/my/my2.png" /> <image v-else src="@/static/my/my2.jpg" />
<!-- 此处应该有默认头像 --> <!-- 此处应该有默认头像 -->
<!-- <image v-else src="@/static/my/my2.png" />--> <!-- <image v-else src="@/static/my/my2.png" />-->
<span> <span>
...@@ -239,6 +239,10 @@ export default { ...@@ -239,6 +239,10 @@ export default {
}, },
select() { select() {
let that = this let that = this
uni.showLoading({
title:"加载中",
mask:true
})
uni.chooseImage({ uni.chooseImage({
count: 1, //默认9 count: 1, //默认9
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有 sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
...@@ -270,12 +274,25 @@ export default { ...@@ -270,12 +274,25 @@ export default {
val: uploadData.data.url val: uploadData.data.url
}; };
that.http.httpTokenRequest(opts, userInfoItem).then(response => { that.http.httpTokenRequest(opts, userInfoItem).then(response => {
uni.hideLoading()
if (response.data.code == 200) { if (response.data.code == 200) {
that.$nextTick(() => { that.$nextTick(() => {
that.image = uploadData.data.url that.image = uploadData.data.url
}) })
}else{
uni.showToast({
title: response.data.msg,
icon: "error",
});
} }
}) })
},
fail() {
uni.hideLoading()
uni.showToast({
title: "上传头像失败!",
icon: "error",
});
} }
}); });
} }
......
static/my/my2.jpg

28.1 KB | W: | H:

static/my/my2.jpg

22.2 KB | W: | H:

static/my/my2.jpg
static/my/my2.jpg
static/my/my2.jpg
static/my/my2.jpg
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment