修改订单
This commit is contained in:
parent
1cc68eea38
commit
7331ed7666
26
main.js
26
main.js
|
|
@ -16,7 +16,7 @@ Vue.prototype.$noMultipleClicks = common.noMultipleClicks
|
||||||
Vue.prototype.$c = common;
|
Vue.prototype.$c = common;
|
||||||
//var loginPage = "http://api.zpc-xy.com/login.html";
|
//var loginPage = "http://api.zpc-xy.com/login.html";
|
||||||
// var loginPage="http://api.zpc-xy.com/login.html";
|
// var loginPage="http://api.zpc-xy.com/login.html";
|
||||||
var loginPage="https://xinglanmh.shequtuangou.vip/login.html";
|
var loginPage = "https://xinglanmh.shequtuangou.vip/login.html";
|
||||||
Vue.prototype.$loginPage = loginPage;
|
Vue.prototype.$loginPage = loginPage;
|
||||||
Vue.prototype.$wxloginPage =
|
Vue.prototype.$wxloginPage =
|
||||||
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0e33d80d35e4a3b1&redirect_uri=${escape(loginPage)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`;
|
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0e33d80d35e4a3b1&redirect_uri=${escape(loginPage)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`;
|
||||||
|
|
@ -191,7 +191,31 @@ function loadScript(url) {
|
||||||
loadScript('https://res.wx.qq.com/open/js/jweixin-1.6.0.js');
|
loadScript('https://res.wx.qq.com/open/js/jweixin-1.6.0.js');
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
// #ifdef MP-WEIXIN
|
||||||
|
const updateManager = wx.getUpdateManager()
|
||||||
|
console.log(updateManager);
|
||||||
|
updateManager.onCheckForUpdate(function(res) {
|
||||||
|
// 请求完新版本信息的回调
|
||||||
|
console.log(res.hasUpdate)
|
||||||
|
})
|
||||||
|
|
||||||
|
updateManager.onUpdateReady(function() {
|
||||||
|
wx.showModal({
|
||||||
|
title: '更新提示',
|
||||||
|
content: '新版本已经准备好,是否重启应用?',
|
||||||
|
success(res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
|
||||||
|
updateManager.applyUpdate()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
updateManager.onUpdateFailed(function() {
|
||||||
|
// 新版本下载失败
|
||||||
|
})
|
||||||
|
// #endif
|
||||||
Vue.prototype.onBridgeReady = function(data) {
|
Vue.prototype.onBridgeReady = function(data) {
|
||||||
var x = {
|
var x = {
|
||||||
"appId": "wx2421b1c4370ec43b", //公众号ID,由商户传入
|
"appId": "wx2421b1c4370ec43b", //公众号ID,由商户传入
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,7 @@
|
||||||
<view class="pic">
|
<view class="pic">
|
||||||
<image :src="a.goodslist_imgurl" lazy-load></image>
|
<image :src="a.goodslist_imgurl" lazy-load></image>
|
||||||
<view class="num center">×{{ a.prize_num }}</view>
|
<view class="num center">×{{ a.prize_num }}</view>
|
||||||
|
<view class="num" style="left:auto;right:0;border-radius:0rpx 0rpx 0rpx 15rpx;background: #FF4D1E;" v-if="a.fh_status==1">已发货</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="title hang1">
|
<view class="title hang1">
|
||||||
|
|
@ -420,7 +421,7 @@
|
||||||
(pre, item) => pre + item.chooseNum * item.goodslist_money,
|
(pre, item) => pre + item.chooseNum * item.goodslist_money,
|
||||||
0
|
0
|
||||||
)
|
)
|
||||||
console.log("8888888" , total);
|
console.log("8888888", total);
|
||||||
return total.toFixed(2);
|
return total.toFixed(2);
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
@ -925,7 +926,7 @@
|
||||||
width: 155rpx;
|
width: 155rpx;
|
||||||
height: 68rpx;
|
height: 68rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: 30rpx;
|
margin-right: 25rpx;
|
||||||
font-family: YouSheBiaoTiHei;
|
font-family: YouSheBiaoTiHei;
|
||||||
|
|
||||||
&.act {
|
&.act {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
:style="{top:$sys().statusBarHeight+'px'}" @tap="$c.back(1)" color="#FFFFFF"></uni-icons>
|
:style="{top:$sys().statusBarHeight+'px'}" @tap="$c.back(1)" color="#FFFFFF"></uni-icons>
|
||||||
<view class="" :style="{top:$sys().statusBarHeight+'px'}"
|
<view class="" :style="{top:$sys().statusBarHeight+'px'}"
|
||||||
style="position: absolute;width: 100%; position: absolute; font-weight: 400; text-align: center; font-size: 37rpx; color: #FFFFFF;">
|
style="position: absolute;width: 100%; position: absolute; font-weight: 400; text-align: center; font-size: 37rpx; color: #FFFFFF;">
|
||||||
邀请榜</view>
|
邀新排行榜</view>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
style="width: 683rpx; margin-top: 457.64rpx; margin-bottom: 50rpx; display: flex; flex-direction: column; overflow: auto;">
|
style="width: 683rpx; margin-top: 457.64rpx; margin-bottom: 50rpx; display: flex; flex-direction: column; overflow: auto;">
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,9 @@
|
||||||
<image :src="item.goodslist_imgurl" lazy-load></image>
|
<image :src="item.goodslist_imgurl" lazy-load></image>
|
||||||
<!-- <view class="type">{{ item.shang_title }}</view> -->
|
<!-- <view class="type">{{ item.shang_title }}</view> -->
|
||||||
<view class="num center">×{{ item.prize_num }}</view>
|
<view class="num center">×{{ item.prize_num }}</view>
|
||||||
|
<view class="num"
|
||||||
|
style="left:auto;right:0;border-radius:0rpx 0rpx 0rpx 15rpx;background: #FF4D1E;"
|
||||||
|
v-if="item.fh_status==1">已发货</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="title hang1">
|
<view class="title hang1">
|
||||||
{{ item.goodslist_title }}
|
{{ item.goodslist_title }}
|
||||||
|
|
@ -71,14 +74,14 @@
|
||||||
this.getData(e.id)
|
this.getData(e.id)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
copy(num){
|
copy(num) {
|
||||||
uni.setClipboardData({
|
uni.setClipboardData({
|
||||||
data: num + '',
|
data: num + '',
|
||||||
showToast: false,
|
showToast: false,
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title:'复制成功',
|
title: '复制成功',
|
||||||
icon:"none"
|
icon: "none"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -171,8 +174,8 @@
|
||||||
padding: 20rpx 0;
|
padding: 20rpx 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
>image{
|
>image {
|
||||||
width: 40rpx;
|
width: 40rpx;
|
||||||
height: 40rpx;
|
height: 40rpx;
|
||||||
margin-left: 10rpx;
|
margin-left: 10rpx;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user