11.27前端
This commit is contained in:
parent
e797fad752
commit
160b1e93ef
@ -47,8 +47,9 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
/*每个页面公共css */
|
// /*每个页面公共css */
|
||||||
@import "@/uni_modules/uview-ui/index.scss";
|
@import "@/node_modules/uview-ui/index.scss";
|
||||||
|
|
||||||
|
|
||||||
.dis {
|
.dis {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import App from './App'
|
import App from './App'
|
||||||
import uView from '@/uni_modules/uview-ui'
|
import uView from "uview-ui";
|
||||||
|
Vue.use(uView);
|
||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
Vue.use(uView)
|
|
||||||
import share from './utils/share.js'
|
import share from './utils/share.js'
|
||||||
Vue.mixin(share)
|
Vue.mixin(share)
|
||||||
const baseUrl = config.baseUrl
|
const baseUrl = config.baseUrl
|
||||||
|
2236
gasStation-uni/package-lock.json
generated
2236
gasStation-uni/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
gasStation-uni/package.json
Normal file
10
gasStation-uni/package.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"@dcloudio/uni-ui": "^1.4.28",
|
||||||
|
"uview-ui": "^2.0.36"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"sass": "^1.69.5",
|
||||||
|
"sass-loader": "^10.4.1"
|
||||||
|
}
|
||||||
|
}
|
@ -90,6 +90,9 @@
|
|||||||
<view class="juanniu" @click="gooil()">
|
<view class="juanniu" @click="gooil()">
|
||||||
<view class="">一键加油</view>
|
<view class="">一键加油</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view style="height: 88px; width: 100%;"></view>
|
<view style="height: 88px; width: 100%;"></view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import input from '../../uni_modules/uview-ui/libs/config/props/input'
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -44,11 +44,11 @@
|
|||||||
<view class="boxback" style="box-sizing: border-box; padding: 1px; " v-if="actinput == 2 ">
|
<view class="boxback" style="box-sizing: border-box; padding: 1px; " v-if="actinput == 2 ">
|
||||||
<view class="inputbox">
|
<view class="inputbox">
|
||||||
<view class="cadname">卡号</view>
|
<view class="cadname">卡号</view>
|
||||||
<input type="text" placeholder="请输入礼品卡卡号" />
|
<!-- <input type="text" placeholder="请输入礼品卡卡号" /> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="inputbox">
|
<view class="inputbox">
|
||||||
<view class="cadname">卡密</view>
|
<view class="cadname">卡密</view>
|
||||||
<input type="text" placeholder="请输入礼品卡卡密" />
|
<!-- <input type="text" placeholder="请输入礼品卡卡密" /> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 底部 -->
|
<!-- 底部 -->
|
||||||
@ -75,7 +75,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import input from '../../uni_modules/uview-ui/libs/config/props/input'
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
// 同时发送异步代码的次数
|
// 同时发送异步代码的次数
|
||||||
let ajaxTimes = 0;
|
let ajaxTimes = 0;
|
||||||
export const request = (params) => {
|
export const request = (params) => {
|
||||||
|
|
||||||
var openid = wx.getStorageSync("openid") || '';
|
var openid = wx.getStorageSync("openid") || '';
|
||||||
let header = {
|
let header = {
|
||||||
...params.header
|
...params.header
|
||||||
@ -9,9 +8,9 @@ export const request = (params) => {
|
|||||||
|
|
||||||
let urls;
|
let urls;
|
||||||
if (params.url.indexOf('?')) {
|
if (params.url.indexOf('?')) {
|
||||||
urls = params.url
|
urls = params.url
|
||||||
} else {
|
} else {
|
||||||
urls = params.url
|
urls = params.url
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -23,7 +22,7 @@ export const request = (params) => {
|
|||||||
wx.request({
|
wx.request({
|
||||||
...params,
|
...params,
|
||||||
header: header,
|
header: header,
|
||||||
|
|
||||||
url: baseUrl + urls,
|
url: baseUrl + urls,
|
||||||
success: (result) => {
|
success: (result) => {
|
||||||
resolve(result.data);
|
resolve(result.data);
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
*
|
*
|
||||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||||
*/
|
*/
|
||||||
@import '@/uni_modules/uview-ui/theme.scss';
|
@import 'uview-ui/theme.scss';
|
||||||
/* 颜色变量 */
|
/* 颜色变量 */
|
||||||
|
|
||||||
/* 行为相关颜色 */
|
/* 行为相关颜色 */
|
||||||
|
Loading…
Reference in New Issue
Block a user