优化升级弹窗,以及委托订单,文章详情页面优化
This commit is contained in:
parent
59af0d169d
commit
b775d4cf78
@ -12,7 +12,7 @@
|
|||||||
<view class="top-two-two">
|
<view class="top-two-two">
|
||||||
<!-- 2020-07-07 14:14:14
|
<!-- 2020-07-07 14:14:14
|
||||||
-->
|
-->
|
||||||
{{objinfo.entrust_start_date}}
|
{{objinfo.entrust_start_date}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -44,7 +44,7 @@
|
|||||||
<view class="center-twoa">
|
<view class="center-twoa">
|
||||||
委托方:
|
委托方:
|
||||||
</view>
|
</view>
|
||||||
<view class="center-twob" >
|
<view class="center-twob">
|
||||||
{{objinfo.mer_info.mer_name}}
|
{{objinfo.mer_info.mer_name}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -52,7 +52,7 @@
|
|||||||
<view class="center-twoa">
|
<view class="center-twoa">
|
||||||
被委托方:
|
被委托方:
|
||||||
</view>
|
</view>
|
||||||
<view class="center-twob" >
|
<view class="center-twob">
|
||||||
{{objinfo.entrust_mer_info.mer_name}}
|
{{objinfo.entrust_mer_info.mer_name}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -114,7 +114,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view class="content_bootm_one" v-for="(item,i) in objinfo.product_list">
|
<view class="content_bootm_one" v-for="(item,i) in objinfo.product_list" @click="Merchbaby(item)">
|
||||||
<view class="bootm_oneimg">
|
<view class="bootm_oneimg">
|
||||||
<image :src="item.image[0]" mode="aspectFit"></image>
|
<image :src="item.image[0]" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
@ -163,14 +163,22 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//商品详情
|
||||||
list(id) {
|
list(id) {
|
||||||
entrustdetail(id).then((res) => {
|
entrustdetail(id).then((res) => {
|
||||||
console.log(res.data)
|
|
||||||
this.objinfo = res.data
|
this.objinfo = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
//商品宝贝详情
|
||||||
|
Merchbaby(item) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/goods_details/index?id=${item.product_id}`
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
//提交购物车
|
||||||
submit(item) {
|
submit(item) {
|
||||||
addEntrustCart({
|
addEntrustCart({
|
||||||
community_id: item.community_id
|
community_id: item.community_id
|
||||||
|
@ -157,16 +157,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
uni.startLocationUpdate({
|
|
||||||
success: res => {
|
|
||||||
console.log('开启接收位置消息成功')
|
|
||||||
|
|
||||||
},
|
|
||||||
fail: err => {
|
|
||||||
this.selfLocation()
|
|
||||||
},
|
|
||||||
complete: msg => console.log('调用开启接收位置消息 API 完成')
|
|
||||||
});
|
|
||||||
|
|
||||||
//监听网络状态变化
|
//监听网络状态变化
|
||||||
uni.onNetworkStatusChange((res) => {
|
uni.onNetworkStatusChange((res) => {
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<view :style="viewColor">
|
<view :style="viewColor">
|
||||||
|
<!-- #ifdef H5 -->
|
||||||
<view class="head-menu">
|
<view class="head-menu">
|
||||||
<view class='iconfont icon-xiangzuo' @click="returns"></view>
|
<view class='iconfont icon-xiangzuo' @click="returns"></view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- #endif -->
|
||||||
<view v-if="followDetail != null && followDetail" class="main" @click.stop="showManage = false">
|
<view v-if="followDetail != null && followDetail" class="main" @click.stop="showManage = false">
|
||||||
<view v-if="followDetail.status != 1" class="approval_status">
|
<view v-if="followDetail.status != 1" class="approval_status">
|
||||||
<view class="status_count" :class="followDetail.status == 0 ? 'status1' : 'status0'">
|
<view class="status_count" :class="followDetail.status == 0 ? 'status1' : 'status0'">
|
||||||
|
@ -117,38 +117,43 @@ const actions = {
|
|||||||
} else {
|
} else {
|
||||||
apptype = 1
|
apptype = 1
|
||||||
}
|
}
|
||||||
console.log(apptype, '11111')
|
|
||||||
Appversion({
|
Appversion({
|
||||||
version: os.appWgtVersion,
|
version: os.appWgtVersion,
|
||||||
type: apptype
|
type: apptype
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (data) uni.showLoading({
|
|
||||||
title: '检查更新中'
|
if (Object.keys(res.data.appInfo).length > 0) {
|
||||||
})
|
|
||||||
|
|
||||||
// 版本更新
|
|
||||||
if (compareVersions(res.data.appInfo.version, os.appWgtVersion || wgt_v) == 1 &&
|
uni.showLoading({
|
||||||
compareVersions(res.data.appInfo.version,
|
title: '检查更新中'
|
||||||
wgt_v) == 1) {
|
})
|
||||||
try {
|
|
||||||
let info = res.data.appInfo || {};
|
// 版本更新
|
||||||
let version = {
|
if (compareVersions(res.data.appInfo.version, os.appWgtVersion || wgt_v) == 1 &&
|
||||||
title: info.title || '发现新版本',
|
compareVersions(res.data.appInfo.version,
|
||||||
content: info.content || '修复了部分BUG',
|
wgt_v) == 1) {
|
||||||
versionName: info.version || '1.0.1',
|
try {
|
||||||
downUrl: info.dow_url || '',
|
let info = res.data.appInfo || {};
|
||||||
force: info.force == 1 ? true : false, // 是否强制更新
|
let version = {
|
||||||
quiet: info.quiet == 1 ? true : false // 是否静默更新
|
title: info.title || '发现新版本',
|
||||||
|
content: info.content || '修复了部分BUG',
|
||||||
|
versionName: info.version || '1.0.1',
|
||||||
|
downUrl: info.dow_url || '',
|
||||||
|
force: info.force == 1 ? true : false, // 是否强制更新
|
||||||
|
quiet: info.quiet == 1 ? true : false // 是否静默更新
|
||||||
|
}
|
||||||
|
Updater.update(version);
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e);
|
||||||
}
|
}
|
||||||
Updater.update(version);
|
uni.hideLoading();
|
||||||
} catch (e) {
|
|
||||||
console.log(e);
|
|
||||||
}
|
}
|
||||||
if (data) uni.hideLoading();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err)
|
// console.log(err)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user