Commit c264e2b4 authored by 王建威's avatar 王建威

Merge branch 'develop' of http://39.96.27.29/zhengxiuming/shop_mobile_uni into develop

parents a6b058cc 08cc7fac
No preview for this file type
...@@ -5,4 +5,4 @@ ...@@ -5,4 +5,4 @@
/unpackage /unpackage
.DS_Store .DS_Store
publish.sh prod.sh
\ No newline at end of file \ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
// export const php = 'http://test.pet-dbc.cn/mobile/index.php?' // export const php = 'http://test.pet-dbc.cn/mobile/index.php?'
// php镜像 // php镜像
export const php = 'https://jingxiang.pet-dbc.cn/mobile/index.php?' // export const php = 'https://jingxiang.pet-dbc.cn/mobile/index.php?'
// php正式环境 // php正式环境
// export const php = 'https://shop.pet-dbc.cn/mobile/index.php?' export const php = 'https://shop.pet-dbc.cn/mobile/index.php?'
// go测试环境 // go测试环境
// export const go = 'https://tm.pet-dbc.cn' // export const go = 'https://tm.pet-dbc.cn'
// go镜像环境 // go镜像环境
export const go = 'https://jxm.pet-dbc.cn' // export const go = 'https://jxm.pet-dbc.cn'
// go正式环境 // go正式环境
// export const go = 'https://m.pet-dbc.cn'; export const go = 'https://m.pet-dbc.cn';
\ No newline at end of file \ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "shop_mobile_uni", "name": "shop_mobile_uni",
"appid": "__UNI__F904656", "appid": "__UNI__F904656",
"description": "", "description": "",
"versionName": "1.0.9", "versionName": "1.0.8",
"versionCode": "100", "versionCode": "100",
"transformPx": false, "transformPx": false,
"app-plus": { "app-plus": {
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
"mode": "history", "mode": "history",
"base": "/uni" "base": "/uni"
}, },
"publicPath": "https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/test/1.0.9/", "publicPath": "https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/prod/1.0.8/",
"optimization": { "optimization": {
"treeShaking": { "treeShaking": {
"enable": true "enable": true
......
{ {
"name": "shop_mobile_uni", "name": "shop_mobile_uni",
"version": "1.0.3", "version": "1.0.7",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
......
...@@ -28,5 +28,4 @@ ...@@ -28,5 +28,4 @@
"jweixin-module": "^1.6.0", "jweixin-module": "^1.6.0",
"moment": "^2.24.0" "moment": "^2.24.0"
} }
} }
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
const {origin} = location; const {origin} = location;
const install = uni.getStorageSync('installment'); const install = uni.getStorageSync('installment');
// 清除存储合同信息 // 清除存储合同信息
uni.removeStorageSync('temporary'); // uni.removeStorageSync('temporary');
const {contract_no, equipment_id, property_id} = install; const {contract_no, equipment_id, property_id} = install;
if(!this.order_price || !contract_no){ if(!this.order_price || !contract_no){
uni.showToast({ uni.showToast({
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -79,10 +79,10 @@ ...@@ -79,10 +79,10 @@
this.is_eidt = true; this.is_eidt = true;
} }
}else{ }else{
const temporary = uni.getStorageSync('temporary'); // const temporary = uni.getStorageSync('temporary');
if (temporary) { // if (temporary) {
this.data = JSON.parse(temporary); // this.data = JSON.parse(temporary);
} // }
} }
uni.request({ uni.request({
url: `/uni/api/signcontract/GetContractField?equipment_id=${equipment_id}`, url: `/uni/api/signcontract/GetContractField?equipment_id=${equipment_id}`,
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
} }
const data = this.getData(); const data = this.getData();
// 临时存储合同信息 // 临时存储合同信息
uni.setStorageSync('temporary', JSON.stringify(data)); // uni.setStorageSync('temporary', JSON.stringify(data));
const install = uni.getStorageSync('installment'); const install = uni.getStorageSync('installment');
const {contract_no, equipment_id, property_id} = install; const {contract_no, equipment_id, property_id} = install;
const url = this.is_eidt ? '/uni/api/signcontract/EditContract' : '/uni/api/signcontract/AddContract'; const url = this.is_eidt ? '/uni/api/signcontract/EditContract' : '/uni/api/signcontract/AddContract';
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
const data = this.getData(); const data = this.getData();
const install = uni.getStorageSync('installment'); const install = uni.getStorageSync('installment');
// 临时存储合同信息 // 临时存储合同信息
uni.setStorageSync('temporary', JSON.stringify(data)); // uni.setStorageSync('temporary', JSON.stringify(data));
const {contract_no, equipment_id, property_id} = install; const {contract_no, equipment_id, property_id} = install;
uni.showLoading({ uni.showLoading({
title: '获取合同中...', title: '获取合同中...',
...@@ -173,7 +173,11 @@ ...@@ -173,7 +173,11 @@
const {data} = res; const {data} = res;
uni.hideLoading(); uni.hideLoading();
if(data.code == 0){ if(data.code == 0){
this.$jump(data.data.viewUrl); const url = data.data.viewUrl;
// this.$jump(data.data.viewUrl);
uni.navigateTo({
url: `/pages/web/web?contract_url=${url}`
});
}else{ }else{
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
...@@ -208,6 +212,7 @@ ...@@ -208,6 +212,7 @@
.sign_content { .sign_content {
background: #fff; background: #fff;
padding: 80rpx 36rpx 0; padding: 80rpx 36rpx 0;
padding-bottom: 100rpx;
.apply_title { .apply_title {
font-size:32rpx; font-size:32rpx;
font-family:PingFangSC-Medium,PingFang SC; font-family:PingFangSC-Medium,PingFang SC;
......
<template>
<view>
<web-view :src="url"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
url: ''
}
},
mounted() {
this.url = this.$store.state.webviewUrl;
}
}
</script>
<style>
</style>
<template> <template>
<view> <view>
<TopBar title="分期合同"/>
<web-view :src="url"></web-view> <web-view :src="url"></web-view>
</view> </view>
</template> </template>
<script> <script>
import {parse} from 'querystring';
import TopBar from '@/components/TopBar/TopBar.vue';
export default { export default {
data() { data() {
return { return {
...@@ -12,7 +15,13 @@ ...@@ -12,7 +15,13 @@
} }
}, },
mounted() { mounted() {
this.url = this.$store.state.webviewUrl; const obj = window.location.href.split('?')[1];
const {contract_url} = parse(obj);
if(contract_url){
this.url = contract_url;
}else{
this.url = this.$store.state.webviewUrl;
}
} }
} }
</script> </script>
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
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