11.27前端

This commit is contained in:
@QQNZX 2023-11-27 13:18:18 +08:00
parent e797fad752
commit 160b1e93ef
9 changed files with 2260 additions and 14 deletions

View File

@ -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;

View File

@ -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

File diff suppressed because it is too large Load Diff

View 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"
}
}

View File

@ -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>

View File

@ -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 {

View File

@ -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 {

View File

@ -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);

View File

@ -11,7 +11,7 @@
* *
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量同时无需 import 这个文件 * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量同时无需 import 这个文件
*/ */
@import '@/uni_modules/uview-ui/theme.scss'; @import 'uview-ui/theme.scss';
/* 颜色变量 */ /* 颜色变量 */
/* 行为相关颜色 */ /* 行为相关颜色 */