前端
@ -49,7 +49,6 @@ Vue.prototype.addDateRange = addDateRange
|
|||||||
Vue.prototype.getName = getName
|
Vue.prototype.getName = getName
|
||||||
Vue.prototype.download = download
|
Vue.prototype.download = download
|
||||||
Vue.prototype.handleTree = handleTree
|
Vue.prototype.handleTree = handleTree
|
||||||
|
|
||||||
// 全局组件挂载
|
// 全局组件挂载
|
||||||
Vue.component('DictTag', DictTag)
|
Vue.component('DictTag', DictTag)
|
||||||
Vue.component('Pagination', Pagination)
|
Vue.component('Pagination', Pagination)
|
||||||
|
@ -35,6 +35,7 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
// this.getHomeData();
|
// this.getHomeData();
|
||||||
this.getChartsData();
|
this.getChartsData();
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 查询首页数据
|
// 查询首页数据
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
// 应用全局配置
|
// 应用全局配置
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
|
baseUrl: 'https://8q4f124343.yicp.fun/',
|
||||||
// baseUrl: 'http://192.168.0.196:8081/',
|
|
||||||
// baseUrl: 'http://192.168.1.4:8080/',
|
|
||||||
baseUrl: 'http://192.168.0.138:8080/',
|
|
||||||
|
|
||||||
// baseUrl: 'http://192.168.1.5:8002/cdJdc',
|
|
||||||
|
|
||||||
imagesUrl: 'http://www.nuoyunr.com/lananRsc',
|
imagesUrl: 'http://www.nuoyunr.com/lananRsc',
|
||||||
// 应用信息
|
// 应用信息
|
||||||
appInfo: {
|
appInfo: {
|
||||||
@ -29,4 +23,4 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
1871
gasStation-uni/package-lock.json
generated
@ -3,7 +3,8 @@
|
|||||||
"@dcloudio/uni-ui": "^1.4.28",
|
"@dcloudio/uni-ui": "^1.4.28",
|
||||||
"bignumber.js": "^9.1.2",
|
"bignumber.js": "^9.1.2",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"uview-ui": "^2.0.36"
|
"uview-ui": "^2.0.36",
|
||||||
|
"weixin-js-sdk": "^1.6.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"sass": "^1.69.5",
|
"sass": "^1.69.5",
|
||||||
|
@ -218,8 +218,6 @@
|
|||||||
uni.setStorageSync("storeId", storeId)
|
uni.setStorageSync("storeId", storeId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// this.isExistStoreId();
|
|
||||||
|
|
||||||
this.getUserAuthority();
|
this.getUserAuthority();
|
||||||
this.getOilType();
|
this.getOilType();
|
||||||
},
|
},
|
||||||
|
@ -71,6 +71,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import wx from 'weixin-js-sdk' // 引入微信js-sdk
|
||||||
import request from "../../utils/request";
|
import request from "../../utils/request";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -82,8 +83,7 @@
|
|||||||
storeId: '',
|
storeId: '',
|
||||||
show: false,
|
show: false,
|
||||||
options: {
|
options: {
|
||||||
code: 'https://www.tuofeng.cc/oilStation?storeId=' + uni.getStorageSync('storeId') + '&staffId=' + uni
|
code: 'https://www.tuofeng.cc/oily?storeId=19&userId=45',
|
||||||
.getStorageSync('storeId'),
|
|
||||||
// code: 'https://www.tuofeng.cc/oily?storeId=' + uni.getStorageSync('storeId') + ' &userId=' + uni
|
// code: 'https://www.tuofeng.cc/oily?storeId=' + uni.getStorageSync('storeId') + ' &userId=' + uni
|
||||||
// .getStorageSync('userId'), // 生成二维码的值
|
// .getStorageSync('userId'), // 生成二维码的值
|
||||||
size: 460, // 460代表生成的二维码的宽高均为460rpx
|
size: 460, // 460代表生成的二维码的宽高均为460rpx
|
||||||
@ -100,20 +100,41 @@
|
|||||||
components: {
|
components: {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
onShare() {
|
||||||
|
wx.showShareMenu({
|
||||||
|
withShareTicket: true,
|
||||||
|
success: function() {
|
||||||
|
console.log('成功开启分享菜单')
|
||||||
|
},
|
||||||
|
fail: function(res) {
|
||||||
|
console.log('开启分享菜单失败', res)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
onShareAppMessage() {
|
wx.onShareAppMessage(function() {
|
||||||
|
return {
|
||||||
|
title: '来个油惠',
|
||||||
|
path: '/pages/index/index',
|
||||||
|
imageUrl: 'https://example.com/share.jpg',
|
||||||
|
success: function(res) {
|
||||||
|
console.log('分享成功', res)
|
||||||
|
},
|
||||||
|
fail: function(res) {
|
||||||
|
console.log('分享失败', res)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
onShareAppMessage(res) {
|
||||||
|
if (res.from === 'button') { // 来自页面内分享按钮
|
||||||
|
console.log(res.target)
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
title: '来个油惠',
|
title: '来个油惠',
|
||||||
path: '/pages/index/index?userId=' + uni.getStorageSync('userId') + '&storeId=' + uni.getStorageSync(
|
path: '/pages/index/index'
|
||||||
'storeId') + '&type=yaoqingyouli',
|
}
|
||||||
success() {
|
|
||||||
console.log('分享成功');
|
|
||||||
},
|
|
||||||
fail(err) {
|
|
||||||
console.error('分享失败', err);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getAllAmount();
|
this.getAllAmount();
|
||||||
this.getActiveRecommendRecords();
|
this.getActiveRecommendRecords();
|
||||||
|
Before Width: | Height: | Size: 386 B After Width: | Height: | Size: 349 B |
Before Width: | Height: | Size: 973 B After Width: | Height: | Size: 765 B |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 192 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 428 B After Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 226 KiB After Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 730 B After Width: | Height: | Size: 557 B |
Before Width: | Height: | Size: 777 B After Width: | Height: | Size: 680 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 962 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 405 B After Width: | Height: | Size: 381 B |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 159 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 613 B After Width: | Height: | Size: 519 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 845 B |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 800 B After Width: | Height: | Size: 678 B |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 213 KiB |
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 644 B After Width: | Height: | Size: 583 B |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 22 KiB |