Browse Source

9-11调整

master
jiazhipeng 1 month ago
parent
commit
b770bbf58d
  1. 6
      subPackages/techan/cartOrder.vue
  2. 6
      subPackages/techan/cartOrder1.vue
  3. 67
      subPackages/techan/detail.vue
  4. 6
      subPackages/techan/order.vue
  5. 10
      subPackages/user/travelerList.vue

6
subPackages/techan/cartOrder.vue

@ -167,12 +167,12 @@
<view class="people-popup">
<view class="button" @click="changeAddressAddPopup('open','',{})">添加收货地址</view>
<!-- <view style="display: flex;justify-content: flex-end;padding-top: 20rpx;">
<view style="display: flex;justify-content: center;padding-top: 20rpx;">
<view class="wx-address" @click="getWXAddress()">
<image class="wx-icon" src="https://static.ticket.sz-trip.com/uploads/20250916/3402d54588c3f0470bf05ac754f76cf0.png"></image>
<text style="padding-left: 8rpx;">获取微信地址</text>
</view>
</view> -->
</view>
<view class="popup-list" v-if="addressList.length > 0">
<view :class="['popup-item',selectInfo.contacts.id==item.id?'active':'']" v-for="(item, index) in addressList" :key="index" @click="seldThisAddress(item)">
<view class="item-top flex-between">
@ -272,7 +272,7 @@ export default {
let _this = this;
uni.chooseAddress({
success: (res) => {
_this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{
_this.Post({...res,method:"POST"},'/api/uservice/user/addWxDefaultConsignee').then(()=>{
_this.getAddressList2()
})
}

6
subPackages/techan/cartOrder1.vue

@ -167,12 +167,12 @@
<view class="people-popup">
<view class="button" @click="changeAddressAddPopup('open','',{})">添加收货地址</view>
<!-- <view style="display: flex;justify-content: flex-end;padding-top: 20rpx;">
<view style="display: flex;justify-content: center;padding-top: 20rpx;">
<view class="wx-address" @click="getWXAddress()">
<image class="wx-icon" src="https://static.ticket.sz-trip.com/uploads/20250916/3402d54588c3f0470bf05ac754f76cf0.png"></image>
<text style="padding-left: 8rpx;">获取微信地址</text>
</view>
</view> -->
</view>
<view class="popup-list" v-if="addressList.length > 0">
<view :class="['popup-item',selectInfo.contacts.id==item.id?'active':'']" v-for="(item, index) in addressList" :key="index" @click="seldThisAddress(item)">
<view class="item-top flex-between">
@ -272,7 +272,7 @@ export default {
let _this = this;
uni.chooseAddress({
success: (res) => {
_this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{
_this.Post({...res,method:"POST"},'/api/uservice/user/addWxDefaultConsignee').then(()=>{
_this.getAddressList2()
})
}

67
subPackages/techan/detail.vue

@ -42,49 +42,19 @@
</view>
</view>
<view class="cert-box" style="padding-top: 1rpx;" v-if="false">
<view class="cert-item flex-between" @click="viewImage()">
<image src="https://static.ticket.sz-trip.com/uploads/20250916/927117700e11004a0c332b535bb249b6.png"></image>
<view class="cert-box" style="padding-top: 1rpx;" v-if="certObj">
<view v-for="(item,key) in certObj" :key="key" class="cert-item flex-between" @click="viewImage(item)">
<image v-if="key==1" src="https://static.ticket.sz-trip.com/uploads/20250916/927117700e11004a0c332b535bb249b6.png"></image>
<image v-if="key==2" src="https://static.ticket.sz-trip.com/uploads/20250916/de42d3e5c17462615e6f22246c3ea24f.png"></image>
<image v-if="key==3" src="https://static.ticket.sz-trip.com/uploads/20250916/b63681844b2b85aec5e087cf89d5acf5.png"></image>
<image v-if="key==4" src="https://static.ticket.sz-trip.com/uploads/20250916/001b09bc6e33251f1817c3af71e1e8ff.png"></image>
<view class="cert-content flex-1 w-1rpx flex-between">
<view class="cert-text flex-1 w-1rpx" style="padding-left: 13rpx;">
<view>绿色食品</view>
<view style="padding-top: 10rpx;">LB-15-23120620620830</view>
</view>
<view class="view-icon flex-shrink-0">
查看<uni-icons type="right" color="#6A8A2D" size="12"></uni-icons>
</view>
</view>
</view>
<view class="cert-item flex-between" @click="viewImage()">
<image src="https://static.ticket.sz-trip.com/uploads/20250916/de42d3e5c17462615e6f22246c3ea24f.png"></image>
<view class="cert-content flex-1 w-1rpx flex-between">
<view class="cert-text flex-1 w-1rpx" style="padding-left: 13rpx;">
<view>中国有机产品</view>
<view style="padding-top: 10rpx;">LB-15-23120620620830</view>
</view>
<view class="view-icon flex-shrink-0">
查看<uni-icons type="right" color="#6A8A2D" size="12"></uni-icons>
</view>
</view>
</view>
<view class="cert-item flex-between" @click="viewImage()">
<image src="https://static.ticket.sz-trip.com/uploads/20250916/b63681844b2b85aec5e087cf89d5acf5.png"></image>
<view class="cert-content flex-1 w-1rpx flex-between">
<view class="cert-text flex-1 w-1rpx" style="padding-left: 13rpx;">
<view>江苏食用农产品合格证</view>
<view style="padding-top: 10rpx;">LB-15-23120620620830</view>
</view>
<view class="view-icon flex-shrink-0">
查看<uni-icons type="right" color="#6A8A2D" size="12"></uni-icons>
</view>
</view>
</view>
<view class="cert-item flex-between" @click="viewImage()">
<image src="https://static.ticket.sz-trip.com/uploads/20250916/001b09bc6e33251f1817c3af71e1e8ff.png"></image>
<view class="cert-content flex-1 w-1rpx flex-between">
<view class="cert-text flex-1 w-1rpx" style="padding-left: 13rpx;">
<view>农产品地理标志</view>
<view style="padding-top: 10rpx;">LB-15-23120620620830</view>
<view v-if="key==1">绿色食品</view>
<view v-if="key==2">中国有机产品</view>
<view v-if="key==3">江苏食用农产品合格证</view>
<view v-if="key==4">农产品地理标志</view>
<view style="padding-top: 10rpx;">{{item.number}}</view>
</view>
<view class="view-icon flex-shrink-0">
查看<uni-icons type="right" color="#6A8A2D" size="12"></uni-icons>
@ -220,6 +190,7 @@
cartNum: 0,
supplierInfo: null,
certObj: null,
};
},
onPageScroll(e){
@ -244,10 +215,14 @@
this.getCartList()
},
methods: {
viewImage () {
viewImage (item) {
let image = "";
if (item.image) {
image = this.showImg(item.image)
uni.previewImage({
urls: ["https://static.ticket.sz-trip.com/uploads/20250916/927117700e11004a0c332b535bb249b6.png"]
urls: [image]
})
}
},
changPopShow (e) {
@ -269,6 +244,12 @@
}
this.info = res.data;
this.sku = res.data.sku || []
if (res.data.product_certification_data) {
try {
this.certObj = JSON.parse(res.data.product_certification_data)
console.log(this.certObj["1"])
} catch (e) {}
}
this.getSupplierInfo(res.data.supplier_id)
this.shareParam = {title: this.info.title, imageUrl: this.info.headimg}

6
subPackages/techan/order.vue

@ -138,12 +138,12 @@
<uni-popup ref="addressPopup" type="bottom" backgroundColor="#F4F4F4" @change="changPopShow">
<view class="people-popup">
<view class="button" @click="changeAddressAddPopup('open','',{})">添加收货地址</view>
<!-- <view style="display: flex;justify-content: flex-end;padding-top: 20rpx;">
<view style="display: flex;justify-content: center;padding-top: 20rpx;">
<view class="wx-address" @click="getWXAddress()">
<image class="wx-icon" src="https://static.ticket.sz-trip.com/uploads/20250916/3402d54588c3f0470bf05ac754f76cf0.png"></image>
<text style="padding-left: 8rpx;">获取微信地址</text>
</view>
</view> -->
</view>
<view class="popup-list" v-if="addressList.length > 0">
<view :class="['popup-item',selectInfo.contacts.id==item.id?'active':'']" v-for="(item, index) in addressList" :key="index" @click="seldThisAddress(item)">
@ -250,7 +250,7 @@ export default {
let _this = this;
uni.chooseAddress({
success: (res) => {
_this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{
_this.Post({...res,method:"POST"},'/api/uservice/user/addWxDefaultConsignee').then(()=>{
_this.getAddressList2()
})
}

10
subPackages/user/travelerList.vue

@ -89,11 +89,11 @@
</view>
<view class="btn-box">
<navigator :url="showType ? '/subPackages/user/myAddressAdd' : '/subPackages/user/myContactsAdd'" class="btn">
<!-- <navigator :url="showType ? '/subPackages/user/myAddressAdd' : '/subPackages/user/myContactsAdd'" class="btn">
{{showType ? '添加收货地址' : '添加联系人'}}
</navigator>
</navigator> -->
<!-- <view class="flex-between" v-if="showType>0" style="width: 660rpx;margin: 0 auto;">
<view class="flex-between" v-if="showType>0" style="width: 660rpx;margin: 0 auto;">
<navigator :url="'/subPackages/user/myAddressAdd'" class="btn" style="width: 300rpx;">添加收货地址</navigator>
<view class="btn" @click="getWXAddress()"
style="width: 300rpx;display: flex;align-items: center;justify-content: center;">
@ -103,7 +103,7 @@
</view>
<navigator v-else :url="'/subPackages/user/myContactsAdd'" class="btn">添加联系人</navigator>
-->
</view>
</view>
</template>
@ -204,7 +204,7 @@
let _this = this;
uni.chooseAddress({
success: (res) => {
_this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{
_this.Post({...res,method:"POST"},'/api/uservice/user/addWxDefaultConsignee').then(()=>{
_this.init()
})
}

Loading…
Cancel
Save